﻿/* ============================================================
   衡水妙优文化传媒有限公司 - 官网样式
   响应式设计 | 现代简约风格
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-accent: #d4a853;
  --color-accent-light: #e8c97a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #0f0f23;
  --color-white: #ffffff;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Poppins', 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-cn);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--color-primary); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 12px; }
h3 { font-size: 1.4rem; }

.section-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.4);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(26,26,46,0.98);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 800;
}

.nav-list { display: flex; gap: 8px; }

.nav-list a {
  padding: 8px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent);
  background: rgba(255,255,255,0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #0d1b3e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: var(--header-height);
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212,168,83,0.15);
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 50px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.4rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat h3 {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.hero-stat p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Section Common --- */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header .section-subtitle { margin-bottom: 8px; }

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- About Preview Section --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-primary);
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  background: rgba(212,168,83,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,168,83,0.2);
  background: var(--color-white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(212,168,83,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Cases / Portfolio --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.case-thumb .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
}

.case-thumb .img-placeholder.bg1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.case-thumb .img-placeholder.bg2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.case-thumb .img-placeholder.bg3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.case-thumb .img-placeholder.bg4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.case-thumb .img-placeholder.bg5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.case-thumb .img-placeholder.bg6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212,168,83,0.12);
  color: var(--color-accent);
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  margin: 5px 0 3px 20px;
}

.case-card h3 {
  padding: 0 20px;
  margin: 8px 0 16px;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  text-align: center;
}

.cta h2 {
  color: var(--color-white);
}

.cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.footer-contact .icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: var(--color-accent); }

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(212,168,83,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.value-card h3 { margin-bottom: 8px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-text-light);
}

.team-avatar.av1 { background: #e0e7ff; }
.team-avatar.av2 { background: #fce7f3; }
.team-avatar.av3 { background: #d1fae5; }
.team-avatar.av4 { background: #fef3c7; }

.team-card h3 { font-size: 1.15rem; }

.team-card .role {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Services Page --- */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-detail-card {
  display: flex;
  gap: 24px;
  padding: 36px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-detail-card .service-icon-big {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: rgba(212,168,83,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-detail-card h3 { margin-bottom: 8px; }

.service-detail-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  padding: 4px 12px;
  background: rgba(212,168,83,0.08);
  color: var(--color-accent);
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

/* --- Cases Page --- */
.cases-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- Contact Page --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item .icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(212,168,83,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-accent);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.12);
}

.form-group textarea { resize: vertical; }

/* --- Map Placeholder --- */
.map-placeholder {
  width: 100%;
  height: 280px;
  background: #e8ecf1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: 32px;
}

/* --- Scroll To Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.4rem; }

  .about-preview,
  .about-story,
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }

  .services-grid,
  .cases-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .services-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease;
  }

  .nav.active { clip-path: inset(0 0 0 0); }

  .nav-list { flex-direction: column; gap: 4px; }

  .nav-list a {
    display: block;
    padding: 12px 20px;
    font-size: 1.05rem;
  }

  .hero { text-align: center; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 32px; }

  .services-grid,
  .cases-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: 1.8rem; }

  .service-detail-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero-desc { font-size: 1rem; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  h2 { font-size: 1.5rem; }
}
