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

:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

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

/* ========== Navbar ========== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; font-weight: 800;
}
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 18px; border-radius: 6px;
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light); color: var(--primary);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #0ea5e9 100%);
  color: var(--white); padding: 80px 0;
  text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; background: rgba(255,255,255,.05); border-radius: 50%;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }
.hero .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all .25s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }

/* ========== Sections ========== */
.section { padding: 72px 0; }
.section-gray { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ========== Page Banner (inner) ========== */
.page-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%);
  color: var(--white); padding: 56px 0; text-align: center;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-banner p { opacity: .85; font-size: 1.05rem; }

/* ========== Feature Cards ========== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 56px; height: 56px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: .95rem; }

/* ========== Service Cards ========== */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow); text-align: center;
  border: 2px solid transparent; transition: all .3s;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card.featured { border-color: var(--primary); position: relative; }
.service-card.featured::before {
  content: "推荐"; position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: var(--white); font-size: .75rem;
  padding: 2px 10px; border-radius: 12px; font-weight: 600;
}
.service-card .price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 12px 0 4px; }
.service-card .price small { font-size: .875rem; font-weight: 400; color: var(--text-light); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.service-card p { color: var(--text-light); font-size: .9rem; margin-bottom: 16px; }
.service-card ul { list-style: none; text-align: left; margin-bottom: 20px; }
.service-card ul li { padding: 6px 0; font-size: .9rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.service-card ul li::before { content: "✓"; color: var(--primary); margin-right: 8px; font-weight: 700; }

/* ========== Case Cards ========== */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.case-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card .case-img {
  height: 180px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary);
}
.case-card .case-body { padding: 20px; }
.case-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.case-card p { color: var(--text-light); font-size: .9rem; }
.case-card .tag {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); padding: 2px 12px; border-radius: 12px;
  font-size: .8rem; margin-bottom: 8px;
}

/* ========== Stats ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.stat-item p { color: var(--text-light); font-size: .95rem; }

/* ========== About Page ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid .about-img {
  background: var(--primary-light); border-radius: var(--radius);
  height: 320px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--primary);
}
.about-text h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 12px; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.team-member { text-align: center; }
.team-member .avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--primary);
}
.team-member h4 { font-size: 1.05rem; margin-bottom: 4px; }
.team-member p { color: var(--text-light); font-size: .85rem; }

.qualifications { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.qual-item {
  background: var(--white); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.qual-item .qual-icon { font-size: 2rem; }

/* ========== Contact Page ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 1.8rem; margin-bottom: 12px; }
.contact-info > p { color: var(--text-light); margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-detail .c-icon {
  width: 44px; height: 44px; background: var(--primary-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary); flex-shrink: 0;
}
.contact-detail h4 { font-size: .95rem; margin-bottom: 2px; }
.contact-detail p { color: var(--text-light); font-size: .9rem; }

.contact-form {
  background: var(--white); padding: 36px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  color: var(--white); padding: 64px 0; text-align: center;
}
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; font-size: 1.05rem; }

/* ========== Footer ========== */
.footer { background: #0f172a; color: #94a3b8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer p, .footer a { font-size: .9rem; color: #94a3b8; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 20px;
  text-align: center; font-size: .85rem;
}

/* ========== Toast ========== */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #10b981; color: var(--white); padding: 14px 28px;
  border-radius: 8px; font-weight: 600; z-index: 9999;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; box-shadow: var(--shadow-md); }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
