/* ===== 成都画虎楼立科技有限公司 - Premium Dark Theme ===== */
:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2138;
  --bg-card-hover: #222b45;
  --gold-primary: #d4a853;
  --gold-light: #f0c860;
  --gold-dark: #b8923e;
  --accent-amber: #f59e0b;
  --text-primary: #f3f0eb;
  --text-secondary: #a8a4a0;
  --text-muted: #6b7280;
  --border-color: #2a3450;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --gradient-gold: linear-gradient(135deg, #d4a853, #f0c860, #d4a853);
  --gradient-bg: linear-gradient(180deg, #0b0f1a 0%, #111827 100%);
  --font-en: 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-zh: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body.zh-lang { font-family: var(--font-zh); }

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--gold-light); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Language Switcher ===== */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  font-family: inherit;
}
.lang-toggle:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

[data-lang="zh"] .lang-en { display: none; }
[data-lang="en"] .lang-zh { display: none; }

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-primary); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,168,83,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.04) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--gold-dark);
  border-radius: 30px;
  font-size: 13px;
  color: var(--gold-primary);
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 .highlight { 
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,83,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
}
.btn-outline:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ===== Sections Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--gold-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-dark);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(212,168,83,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-item:hover { background: var(--bg-card); }

.feature-num {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.about-text h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
}

.value-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.value-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Process ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--bg-card);
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(212,168,83,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 15px;
}

.contact-form { width: 100%; }

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

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== Services Detail ===== */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-dark);
}

.service-detail-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-detail-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-detail-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--bg-primary);
  font-weight: 700;
}

.team-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  color: var(--gold-primary);
}

.legal-content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  margin: 12px 0 20px;
  padding-left: 24px;
  line-height: 1.8;
}

.legal-content li { margin-bottom: 8px; }

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--gold-primary);
}

.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
  display: block;
}

.footer-col a:hover { color: var(--gold-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Page Header ===== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--gradient-bg);
  position: relative;
}

.page-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11,15,26,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .features-grid, .about-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
