/* ====== 慧联保险经纪平台 - 中文官网共享样式 ====== */
:root {
  --primary: #1a73e8;
  --primary-dark: #1565c0;
  --dark-bg: #0a1628;
  --dark-bg2: #1a2d50;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --green: #34a853;
  --yellow: #fbbc04;
  --red: #ea4335;
  --purple: #8e24aa;
  --teal: #00897b;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ====== Navigation ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-height);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.nav-logo-text { color: #1a1a1a; font-size: 18px; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #555; font-size: 14px; padding: 6px 14px;
  border-radius: 6px; transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: #e8f0fe; font-weight: 600;
}
.nav-btn {
  background: var(--primary); color: #fff; border: none;
  border-radius: 6px; padding: 7px 18px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.nav-btn:hover { background: var(--primary-dark); }
.mobile-toggle {
  display: none; background: none; border: none;
  color: #333; font-size: 22px; cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height);
  left: 0; right: 0; background: var(--bg-white);
  z-index: 999; padding: 8px 24px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 16px; color: #555;
  font-size: 15px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
  border-radius: 6px; text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary); background: #e8f0fe; font-weight: 600;
}
.mobile-menu .nav-btn {
  width: 100%; padding: 10px; margin-top: 16px;
  border-radius: 6px; font-weight: 600; font-size: 15px;
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .mobile-toggle { display: block !important; }
}

/* ====== Hero Section ====== */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg2) 50%, var(--dark-bg) 100%);
  color: #fff; padding: 0 24px; text-align: center;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding-top: 60px; padding-bottom: 100px; }
.hero-badge {
  display: inline-block; background: rgba(26,115,232,0.15);
  border-radius: 20px; padding: 6px 20px; margin-bottom: 24px;
  border: 1px solid rgba(26,115,232,0.3);
}
.hero-badge span { color: #8ab4f8; font-size: 14px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero h1 .gradient { background: linear-gradient(90deg, #60a5fa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: rgba(255,255,255,0.7); font-size: 18; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }

/* ====== Buttons ====== */
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  height: 48px; font-size: 16px; font-weight: 600;
  border-radius: 8px; padding: 0 32px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: none;
  height: 48px; font-size: 16px; font-weight: 600;
  border-radius: 8px; padding: 0 32px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-sm {
  height: auto; padding: 10px 24px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; display: inline-block;
  text-decoration: none; text-align: center;
}
.btn-sm.primary { background: var(--primary); color: #fff; border: none; }
.btn-sm.primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-sm.outline:hover { background: rgba(255,255,255,0.1); }

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

/* ====== Section ====== */
.section { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 32px; font-weight: 700; color: #1a1a1a; }
.section-subtitle { text-align: center; color: #666; font-size: 16px; margin-bottom: 48px; }

/* ====== Cards ====== */
.card {
  background: var(--bg-white); border-radius: 12px;
  padding: 32px 24px; border: 1px solid var(--border);
  transition: all 0.3s; height: 100%;
}
.card:hover { box-shadow: 0 8px 24px rgba(26,115,232,0.12); transform: translateY(-4px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ====== Tags ====== */
.tag {
  background: #e8f0fe; color: var(--primary);
  border-radius: 4px; padding: 2px 10px;
  font-size: 12px; font-weight: 500; display: inline-block;
}

/* ====== Pricing Card ====== */
.pricing-card {
  background: var(--bg-white); border-radius: 16px;
  padding: 36px 28px; border: 1px solid var(--border);
  text-align: center; display: flex; flex-direction: column;
  height: 100%; position: relative;
}
.pricing-card.highlight {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(26,115,232,0.15);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; border-radius: 12px;
  padding: 3px 16px; font-size: 12px; font-weight: 600;
}
.pricing-price { font-size: 36px; font-weight: 700; color: var(--primary); }
.pricing-period { color: var(--text-muted); font-size: 14px; margin-left: 8px; }
.pricing-features { flex: 1; text-align: left; }
.pricing-features .item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 14px; color: #555;
}
.pricing-features .check { color: var(--primary); font-size: 16px; }
.pricing-btn {
  width: 100%; height: 44px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: 24px; transition: all 0.3s; border: none;
}
.pricing-btn.fill { background: var(--primary); color: #fff; }
.pricing-btn.fill:hover { background: var(--primary-dark); }
.pricing-btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.pricing-btn.ghost:hover { background: #f0f7ff; }

/* ====== FAQ Accordion ====== */
.faq-item {
  background: var(--bg-white); border-radius: 10px;
  margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer; transition: background 0.2s;
  font-size: 15px; font-weight: 500;
}
.faq-question:hover { background: #fafafa; }
.faq-arrow { color: var(--text-muted); font-size: 12px; transition: transform 0.3s; }
.faq-arrow.open { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 18px 54px; color: #666; font-size: 14px; line-height: 1.8; display: none; }
.faq-answer.open { display: block; }

/* ====== Footer ====== */
.footer {
  background: var(--dark-bg); color: rgba(255,255,255,0.5); padding: 48px 24px 24px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-name { color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-link {
  font-size: 13px; margin-bottom: 10px; cursor: pointer;
  color: rgba(255,255,255,0.5); transition: color 0.2s; display: block;
  text-decoration: none;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }

/* ====== Page content area ====== */
.page-content { padding-top: var(--nav-height); }

/* ====== Stats ====== */
.stat-value { font-size: 42px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 16px; font-weight: 600; margin-top: 4px; color: #333; }
.stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ====== Table ====== */
.data-table {
  width: 100%; border-collapse: collapse; background: var(--bg-white);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.data-table thead tr { background: var(--dark-bg); color: #fff; }
.data-table th { padding: 14px 20px; text-align: left; font-size: 14px; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.data-table td.right { text-align: right; font-family: monospace; }
.data-table .waived { background: #f0fdf4; }
.data-table .waived-badge {
  margin-left: 8px; background: #dcfce7; color: #166534;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
}

/* ====== Info box ====== */
.info-box {
  background: #f0f7ff; border-radius: 12px;
  padding: 24px 32px; border: 1px solid rgba(26,115,232,0.15);
}
.info-box h4 { color: var(--primary); margin-bottom: 12px; }

/* ====== Feature list ====== */
.feature-row {
  display: flex; align-items: center; padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.feature-row:last-child { border-bottom: none; }
.feature-row:nth-child(even) { background: #fafafa; }
.feature-row .label { font-weight: 600; color: #333; min-width: 120px; }
.feature-row .value { color: #555; }

/* ====== Changelog timeline ====== */
.timeline { position: relative; }
.timeline-line {
  position: absolute; left: 19px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #1a73e8, #e8e8e8);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: 10px; top: 24px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e8e8e8; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #d9d9d9; z-index: 1;
}
.timeline-dot.new {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-card {
  margin-left: 52px; background: var(--bg-white);
  border-radius: 16px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.timeline-card.new {
  border: 1px solid rgba(26,115,232,0.3);
  box-shadow: 0 4px 20px rgba(26,115,232,0.1);
}
.timeline-header { padding: 24px 28px; cursor: pointer; }
.timeline-version { font-weight: 700; font-size: 20px; color: #1a1a1a; }
.timeline-new-badge {
  background: var(--primary); color: #fff;
  padding: 2px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 600; margin-left: 10px;
}
.timeline-title { font-size: 17px; font-weight: 600; color: #333; margin: 8px 0; }
.timeline-date { color: #999; font-size: 13px; }
.timeline-body { border-top: 1px solid #f0f0f0; padding: 24px 28px; }
.timeline-body p { color: #666; font-size: 14px; line-height: 1.8; }
.update-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
}
.update-tag.new { color: #52c41a; background: #f6ffed; }
.update-tag.improve { color: #1a73e8; background: #e8f0fe; }
.update-tag.fix { color: #fa8c16; background: #fff7e6; }
.update-tag.plan { color: #8c8c8c; background: #f5f5f5; }
.update-list { background: #fafafa; border-radius: 12px; padding: 20px 24px; }
.update-list .item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.6; color: #444;
  padding: 5px 0;
}
.highlight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.highlight-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; background: #f8faff; border-radius: 8px;
  font-size: 13px; color: #555; line-height: 1.6;
}
.highlight-check { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* ====== Category filter ====== */
.category-filters {
  background: var(--bg-white); border-bottom: 1px solid #f0f0f0;
  position: sticky; top: var(--nav-height); z-index: 100;
}
.filter-inner {
  max-width: 900px; margin: 0 auto; padding: 16px 24px;
  display: flex; gap: 8px; overflow-x: auto;
  flex-wrap: wrap; justify-content: center;
}
.filter-btn {
  padding: 8px 18px; border-radius: 20px;
  border: 1px solid #e0e0e0; background: var(--bg-white);
  color: #555; cursor: pointer; font-size: 14px;
  font-weight: 500; transition: all 0.2s; white-space: nowrap;
}
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ====== About page ====== */
.about-card {
  background: #f8fafc; border-radius: 16px;
  padding: 40px 36px; border: 1px solid var(--border);
}
.about-icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: #f0f7ff; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-card {
  background: var(--bg-white); border-radius: 16px;
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--border);
}

/* ====== Help center ====== */
.help-category {
  background: var(--bg-white); border-radius: 16px;
  padding: 28px 24px; border: 1px solid var(--border);
  transition: all 0.3s;
}
.help-category:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.help-article {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px; color: #555; transition: color 0.2s;
  text-decoration: none;
}
.help-article:hover { color: var(--primary); }
.help-article:last-child { border-bottom: none; }
.help-article .arrow { color: #ccc; font-size: 12px; }
.shortcut-item {
  background: var(--bg-white); border-radius: 12px;
  padding: 24px 20px; text-align: center;
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.shortcut-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(26,115,232,0.1); }
.shortcut-icon { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.shortcut-label { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.shortcut-desc { font-size: 12px; color: var(--text-muted); }

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-inner { padding-top: 40px; padding-bottom: 60px; }
  .section { padding: 60px 24px; }
  .section-title { font-size: 26px; }
  .pricing-card.highlight { transform: none; }
  .card:hover { transform: none; box-shadow: none; }
  .help-category:hover { transform: none; }
}

/* ====== Calculator input ====== */
.calc-input {
  width: 100%; padding: 12px 16px; font-size: 18px;
  border-radius: 8px; border: 2px solid var(--border);
  outline: none; transition: border-color 0.2s;
}
.calc-input:focus { border-color: var(--primary); }
.calc-result { margin-top: 24px; padding: 24px; background: #f0f7ff; border-radius: 12px; }

/* ====== Search box ====== */
.search-box {
  max-width: 480px; margin: 32px auto 0; position: relative;
}
.search-box input {
  width: 100%; padding: 14px 20px 14px 48px; font-size: 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff;
  outline: none; backdrop-filter: blur(8px);
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box .icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); color: rgba(255,255,255,0.5);
  font-size: 18px;
}

/* ====== Utility ====== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; align-items: center; gap: 8px; }

/* ====== Rate card ====== */
.rate-card {
  background: var(--bg-white); border-radius: 16px;
  padding: 32px 24px; text-align: center;
  border: 2px solid; position: relative;
  overflow: hidden; transition: transform 0.3s;
}
.rate-card:hover { transform: translateY(-4px); }
.rate-card .top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.rate-card .tier-label { color: #999; font-size: 13px; margin-bottom: 8px; }
.rate-card .rate-value { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.rate-card .range { font-size: 14px; color: #555; padding: 8px 0; border-top: 1px solid #f0f0f0; }
.rate-card .note { font-size: 12px; color: #999; margin-top: 8px; }

/* ====== FAQ Category Section ====== */
.faq-category-title {
  font-size: 20px; font-weight: 600; margin-bottom: 20px;
  color: #1a1a1a; display: flex; align-items: center; gap: 8px;
}
.faq-category-bar {
  width: 4px; height: 20px; background: var(--primary);
  border-radius: 2px; display: inline-block;
}

/* ====== No results ====== */
.no-results {
  text-align: center; padding: 60px 0; color: var(--text-muted);
}
.no-results .icon { font-size: 48px; margin-bottom: 16px; display: block; }

/* ====== About page stats ====== */
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
