/* ===== CSS Variables ===== */
:root {
  --primary: #0d1b2a;
  --primary-light: #1b2838;
  --accent: #e23e57;
  --accent-hover: #c7344a;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --bg: #ffffff;
  --bg-light: #f7f8fa;
  --bg-dark: #0d1b2a;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  padding: 0 40px;
  transition: background var(--transition);
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.site-header .logo .logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  color: rgba(255,255,255,0.72);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.site-header nav a.active {
  background: var(--accent);
}

/* Mobile menu */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  margin-left: auto; padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(13,27,42,0.98); z-index: 999;
  flex-direction: column; padding: 20px 24px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 500;
  padding: 14px 16px; border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-nav a.active { color: var(--gold); }

@media (max-width: 1200px) {
  .site-header nav { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 1201px) {
  .mobile-nav { display: none !important; }
}

/* ===== Main Layout ===== */
.page-main {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 100px 40px 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a3045 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(226,62,87,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(212,168,67,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 600px; line-height: 1.8; }
.hero .hero-btns { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  padding: 60px 40px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(226,62,87,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 640px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(226,62,87,0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(226,62,87,0.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.3); color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,168,67,0.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,168,67,0.4); }
.btn-dark {
  background: var(--primary); color: #fff;
}
.btn-dark:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ===== Sections ===== */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-gray { background: var(--bg-light); }
.section-gray .section { padding: 80px 40px; }
.section-title {
  font-size: 32px; font-weight: 700; color: var(--primary);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-light); margin-bottom: 48px; max-width: 600px;
}
.section-label {
  display: inline-block;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid; gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.card-icon.red { background: rgba(226,62,87,0.1); color: var(--accent); }
.card-icon.gold { background: rgba(212,168,67,0.1); color: var(--gold); }
.card-icon.blue { background: rgba(13,27,42,0.08); color: var(--primary); }
.card-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  padding: 40px;
  transform: translateY(30px) scale(0.97);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-light);
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.12); color: var(--text); }
.modal-box h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.modal-box h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin: 20px 0 10px; }
.modal-box p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.modal-box ul { padding-left: 20px; margin-bottom: 16px; }
.modal-box ul li { font-size: 14px; color: var(--text-light); line-height: 2; list-style: disc; }

/* ===== Stats ===== */
.stats-row {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--accent); }
.stat-num.gold { color: var(--gold); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== Pricing ===== */
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(226,62,87,0.15);
}
.pricing-card.featured::before {
  content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--accent); margin: 16px 0; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-card .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card ul { text-align: left; margin-bottom: 28px; }
.pricing-card ul li {
  font-size: 14px; color: var(--text-light); line-height: 2.2;
  padding-left: 24px; position: relative;
}
.pricing-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ===== Steps ===== */
.steps {
  display: flex; gap: 24px; flex-wrap: wrap;
  counter-reset: step;
}
.step-item {
  flex: 1; min-width: 200px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: step;
}
.step-item::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700;
  margin-bottom: 16px;
}
.step-item h4 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-light); }

/* ===== Tags ===== */
.tag {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.tag-red { background: rgba(226,62,87,0.1); color: var(--accent); }
.tag-gold { background: rgba(212,168,67,0.1); color: var(--gold); }
.tag-blue { background: rgba(13,27,42,0.08); color: var(--primary); }
.tag-green { background: rgba(16,185,129,0.1); color: #10b981; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-size: 16px; font-weight: 600; color: var(--primary);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--accent); transition: var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 14px; color: var(--text-light); line-height: 1.8;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }

/* ===== News Card ===== */
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.news-card-body { padding: 24px; }
.news-card-date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.news-card-body h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.news-card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 60px 40px 30px;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

/* ===== Case Gallery ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1b2838, #0d1b2a);
}
.case-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,27,42,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff;
  opacity: 0; transition: opacity var(--transition);
}
.case-item:hover .case-item-overlay { opacity: 1; }
.case-item-overlay h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.case-item-overlay p { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ===== Designer Card ===== */
.designer-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  text-align: center; transition: all var(--transition);
}
.designer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.designer-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; font-weight: 700;
}
.designer-card h4 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.designer-card .field { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.designer-card .tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; text-align: center; padding: 64px 40px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(226,62,87,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 28px; position: relative; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 32px; }
  .page-hero { padding: 40px 20px 32px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 24px; }
  .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .modal-overlay { padding: 16px; }
  .modal-box { padding: 28px; }
  .stats-row { gap: 24px; }
  .stat-num { font-size: 28px; }
  .steps { flex-direction: column; }
  table { font-size: 12px; }
  table th, table td { padding: 10px 8px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Form ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* ===== Misc ===== */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
