/* ========================================
   百顺当企服 - 全局样式
   Color: 藏蓝 #1e2a3a + 金棕 #b8860b + 灰白
   ======================================== */

:root {
  --primary: #1e2a3a;
  --primary-light: #2c3e58;
  --primary-dark: #151d2b;
  --accent: #b8860b;
  --accent-light: #d4a017;
  --accent-dark: #8b6508;
  --white: #ffffff;
  --off-white: #faf9f7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red: #c0392b;
  --green: #27ae60;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-700); background: var(--off-white); line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gray-900); }
h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== NAVIGATION ========== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.nav-logo .logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; font-weight: 700; }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a { padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: var(--gray-600); transition: all 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); background: rgba(184,134,11,0.06); }
.nav-cta { margin-left: 8px; background: var(--accent); color: var(--white) !important; border-radius: 8px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); }
@media (max-width: 1000px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}

/* ========== HERO ========== */
.hero { padding: 140px 24px 100px; background: linear-gradient(160deg, #151d2b 0%, #1e2a3a 50%, #2c3e58 100%); position: relative; overflow: hidden; text-align: center; color: var(--white); }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 60%, rgba(184,134,11,0.12) 0%, transparent 55%), radial-gradient(circle at 70% 30%, rgba(184,134,11,0.08) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 6px 20px; border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; font-size: 0.85rem; margin-bottom: 24px; background: rgba(255,255,255,0.06); letter-spacing: 3px; }
.hero h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 16px; line-height: 1.35; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-outline, .btn-white { display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 0.88rem; }
@media (max-width: 640px) { .hero h1 { font-size: 1.9rem; } .hero { padding: 120px 16px 70px; } }

/* ========== SECTION ========== */
.section { padding: 80px 0; }
.section-bg { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-500); max-width: 660px; margin: 0 auto; font-size: 1.02rem; }

/* ========== PAGE HEADER ========== */
.page-header { padding: 120px 24px 60px; background: linear-gradient(160deg, #151d2b, #1e2a3a); color: var(--white); text-align: center; }
.page-header h1 { color: var(--white); font-size: 2.4rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.02rem; margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== CARDS ========== */
.cards-2, .cards-3, .cards-4, .cards-6 { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3, .cards-4, .cards-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-2, .cards-3, .cards-4, .cards-6 { grid-template-columns: 1fr; } }

.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 26px; border: 1px solid var(--gray-200); transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.card-icon.dark { background: rgba(30,42,58,0.08); color: var(--primary); }
.card-icon.gold { background: rgba(184,134,11,0.1); color: var(--accent); }
.card-icon.green { background: rgba(39,174,96,0.1); color: var(--green); }
.card-icon.blue { background: rgba(44,62,88,0.08); color: var(--primary-light); }
.card h3 { margin-bottom: 10px; }

/* ========== SERVICE CATEGORY CARD ========== */
.cat-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-card-header { padding: 28px 28px 20px; text-align: center; }
.cat-card-header.c1 { background: linear-gradient(135deg, #1e2a3a, #2c3e58); }
.cat-card-header.c2 { background: linear-gradient(135deg, #5d3a1a, #8b6508); }
.cat-card-header.c3 { background: linear-gradient(135deg, #1a3a4a, #1a6b5a); }
.cat-card-header.c4 { background: linear-gradient(135deg, #3a1a4a, #6b3a8b); }
.cat-card-header.c5 { background: linear-gradient(135deg, #4a2a1a, #8b4513); }
.cat-card-header.c6 { background: linear-gradient(135deg, #1a2a4a, #2a4a8b); }
.cat-card-header.c7 { background: linear-gradient(135deg, #5c1a6b, #8b3ab8); }
.cat-card-header.c8 { background: linear-gradient(135deg, #005a4a, #008a6b); }
.cat-card-header h3 { color: var(--white); font-size: 1.25rem; }
.cat-card-header .cat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.cat-card-body { padding: 20px 24px; }
.cat-card-body .sub-list { list-style: none; }
.cat-card-body .sub-list li { padding: 7px 0; font-size: 0.9rem; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); position: relative; padding-left: 16px; }
.cat-card-body .sub-list li:last-child { border-bottom: none; }
.cat-card-body .sub-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; }
.cat-card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); text-align: center; }
.cat-card-footer a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ========== SERVICE DETAIL PAGE ========== */
.service-block { margin-bottom: 48px; }
.service-block h3 { color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; font-size: 1.2rem; }
.service-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 768px) { .service-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .service-items { grid-template-columns: 1fr; } }
.service-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px 18px; transition: all 0.2s; }
.service-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.service-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--gray-800); }
.service-item p { font-size: 0.82rem; color: var(--gray-500); }

/* ========== MAJOR LIST (行业覆盖标签) ========== */
.major-list { display: flex; flex-wrap: wrap; gap: 12px; }
.major-tag { display: inline-block; padding: 10px 22px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 24px; font-size: 0.9rem; font-weight: 500; color: var(--gray-600); transition: all 0.25s; }
.major-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-1px); }

/* ========== FEATURE BAR ========== */
.feature-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-item { padding: 32px 24px; text-align: center; border-right: 1px solid var(--gray-100); }
.feature-item:last-child { border-right: none; }
.feature-item .num { font-size: 2.2rem; font-weight: 800; font-family: var(--font-heading); color: var(--accent); margin-bottom: 4px; }
.feature-item .label { color: var(--gray-500); font-size: 0.88rem; }
@media (max-width: 768px) { .feature-bar { grid-template-columns: repeat(2, 1fr); } .feature-item:nth-child(2) { border-right: none; } .feature-item { border-bottom: 1px solid var(--gray-100); padding: 24px 16px; } .feature-item:nth-child(3), .feature-item:nth-child(4) { border-bottom: none; } }

/* ========== ACCENT BOX ========== */
.accent-box { background: linear-gradient(135deg, rgba(184,134,11,0.04), rgba(30,42,58,0.04)); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 28px 32px; margin: 32px 0; }
.accent-box h3 { color: var(--primary); margin-bottom: 8px; }
.accent-box p { color: var(--gray-600); font-size: 0.93rem; }

/* ========== PROCESS STEPS ========== */
.flow-steps { display: flex; gap: 16px; counter-reset: step; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 160px; text-align: center; padding: 28px 18px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.flow-step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; font-size: 0.9rem; }
.flow-step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.82rem; color: var(--gray-500); }

/* ========== CTA ========== */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); text-align: center; padding: 72px 24px; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.78); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-phone { display: inline-block; font-size: 1.8rem; font-weight: 700; color: var(--accent-light); letter-spacing: 2px; margin-bottom: 24px; }

/* ========== NOTICE ========== */
.notice-box { background: #fefce8; border: 1px solid #fef08a; border-radius: var(--radius-md); padding: 20px 24px; display: flex; gap: 12px; align-items: flex-start; }
.notice-box .notice-icon { font-size: 1.3rem; flex-shrink: 0; }
.notice-box p { font-size: 0.9rem; color: #854d0e; line-height: 1.7; }

/* ========== TABLE ========== */
.table-wrap { overflow-x: auto; margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { background: var(--primary); color: var(--white); font-weight: 600; white-space: nowrap; }
.data-table tr:hover { background: rgba(184,134,11,0.03); }

/* ========== TIMELINE ========== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--accent), var(--primary)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent); }
.timeline-item h4 { color: var(--primary); font-size: 0.95rem; }
.timeline-item p { font-size: 0.85rem; color: var(--gray-500); }

/* ========== FOOTER ========== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.02rem; }
.footer p, .footer a { font-size: 0.88rem; line-height: 2; }
.footer a:hover { color: var(--accent-light); }
.footer .phone-num { color: var(--accent-light); font-size: 1.2rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 0.8rem; }
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--accent-light); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========== UTILS ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.sub-nav { text-align: center; padding: 32px 0 0; }
.sub-nav-tabs { display: inline-flex; gap: 4px; background: var(--gray-100); border-radius: 10px; padding: 4px; flex-wrap: wrap; justify-content: center; }
.sub-nav-tabs a { padding: 10px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--gray-600); transition: all 0.2s; white-space: nowrap; }
.sub-nav-tabs a:hover, .sub-nav-tabs a.active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
