/* DAOITH Consulting — Professional advisory design system */

:root {
  --ink: #051c2c;
  --ink-mid: #0a2e4a;
  --ink-light: #163a5c;
  --accent: #2251ff;
  --accent-hover: #1a41cc;
  --accent-soft: #e8eeff;
  --navy: var(--ink);
  --navy-dark: #031018;
  --navy-light: var(--ink-mid);
  --gold: var(--accent);
  --gold-hover: var(--accent-hover);
  --gold-light: var(--accent-soft);
  --white: #ffffff;
  --bg: #ffffff;
  --bg-subtle: #f5f5f5;
  --bg-muted: #ebebeb;
  --cream: var(--bg-subtle);
  --cream-dark: var(--bg-muted);
  --text: #333333;
  --text-secondary: #555555;
  --text-muted: #757575;
  --border: #d4d4d4;
  --border-light: #e8e8e8;
  --success: #0d7a4e;
  --blue-accent: var(--accent);
  --shadow: 0 1px 3px rgba(5, 28, 44, 0.06);
  --shadow-lg: 0 8px 32px rgba(5, 28, 44, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --font-serif: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav > a,
.nav-dropdown-trigger {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  color: var(--ink);
  background: transparent;
}

.nav > a.active::after,
.nav-dropdown-trigger.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-caret {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-caret {
    transform: rotate(180deg);
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-dropdown-menu a.active::after {
  display: none;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary,
.btn-gold {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 108px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Process Flow */
.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.process-card {
  background: transparent;
  border-radius: var(--radius);
  padding: 8px 32px;
  box-shadow: none;
  border: none;
  min-width: 180px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.process-card:hover,
.process-card.is-active {
  background: var(--bg-subtle);
}

.process-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.process-step {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.process-card h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
}

.process-arrow::after {
  content: "→";
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 0;
  border-bottom: none;
}

.features-grid.is-collapsed {
  margin-top: 0;
}

.features-grid:not(.is-collapsed) {
  margin-top: 40px;
}

.feature-card.is-hidden {
  display: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}

.feature-card {
  background: var(--white);
  border-radius: 0;
  padding: 40px 32px;
  text-align: left;
  box-shadow: none;
  border: none;
  border-right: 1px solid var(--border-light);
  transition: background var(--transition);
}

.feature-card:last-child {
  border-right: none;
}

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

.feature-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 64px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-cream {
  background: var(--bg-subtle);
}

.section-white {
  background: var(--white);
}

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

.section-badge {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--accent);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-dark .section-badge {
  background: none;
  color: rgba(255, 255, 255, 0.7);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

/* One-section view mode: only the active nav target is visible */
[data-view] {
  display: none;
}

[data-view].is-active-view {
  display: block;
}

.hero[data-view].is-active-view {
  display: flex;
}

/* ===== AI SOLUTION ===== */
.ai-grid {
  --ai-panel-height: min(78vh, 680px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2.1fr);
  gap: 12px;
  align-items: stretch;
}

.ai-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: var(--ai-panel-height);
  max-height: var(--ai-panel-height);
  overflow: hidden;
}

.ai-grid > .ai-left .form-panel,
.ai-grid > .result-panel {
  min-height: 0;
}

.form-panel {
  background: #f3f6fb;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #e2e8f0;
  overflow-y: auto;
  max-height: 480px;
}

/* AI form — compact inputs & typography */
.ai-grid .form-panel {
  padding: 16px 14px;
  flex: 1 1 40%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.ai-grid .form-panel h3 {
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.ai-grid .form-panel .form-group {
  margin-bottom: 7px;
}

.ai-grid .form-panel .form-required-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 10px;
}

.ai-grid .form-panel .form-group label {
  font-size: 0.72rem;
  margin-bottom: 5px;
  font-weight: 600;
  line-height: 1.35;
}

.ai-grid .form-panel .req-mark {
  color: #b42318;
  font-weight: 700;
  margin-left: 2px;
}

.ai-grid .form-panel .opt-mark {
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.result-refine-hint {
  background: #f3f6fb;
  border-left: 3px solid #7aa2e3;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.ai-grid .form-panel .form-group select,
.ai-grid .form-panel .form-group input:not([type="radio"]):not([type="checkbox"]),
.ai-grid .form-panel .form-group textarea {
  padding: 7px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: 6px;
}

.ai-grid .form-panel .form-group textarea {
  min-height: 38px;
}

.ai-grid .form-panel .radio-group {
  gap: 4px;
}

.ai-grid .form-panel .radio-item {
  padding: 7px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  gap: 8px;
  border-radius: 6px;
}

.ai-grid .form-panel .radio-item.is-checked,
.ai-grid .form-panel .radio-item:has(input[type="radio"]:checked) {
  border-color: #9bbcff;
  background: #2251ff;
  box-shadow: 0 0 0 1px rgba(155, 188, 255, 0.55);
}

.ai-grid .form-panel .radio-item .radio-mark {
  width: 14px;
  height: 14px;
}

.ai-grid .form-panel .radio-item .radio-mark::after {
  width: 7px;
  height: 4px;
}

.ai-grid .form-panel .hs-input-group {
  gap: 6px;
}

.ai-grid .form-panel .hs-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.ai-grid .form-panel .hs-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-grid .form-panel .hs-actions .hs-query-btn {
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink);
  border-color: var(--border);
  background: var(--white);
}

.ai-grid .form-panel .hs-actions .hs-query-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.ai-grid .form-panel .hs-rate-box {
  flex: 1;
  min-width: 0;
  max-width: 110px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  text-align: center;
}

.ai-grid .form-panel .hs-rate-box::placeholder {
  color: var(--text-muted);
}

.ai-grid .form-panel .hs-actions .btn-sm {
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.ai-grid .form-panel .hs-hint {
  margin: 8px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.ai-grid .form-panel .hs-rate-source {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(34, 81, 255, 0.06);
  border-left: 2px solid var(--accent);
}

.ai-grid .form-panel .hs-rate-source[hidden] {
  display: none;
}

.ai-grid .form-panel .hs-rate-source a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 4px;
}

.ai-grid .form-panel .hs-input-group .btn-sm {
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.ai-grid .form-panel #aiForm > .btn-primary {
  padding: 8px 14px;
  font-size: 0.8125rem;
  margin-top: 2px;
}

.form-panel h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#ai-solution .form-panel h3 .tag {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(34, 81, 255, 0.2);
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group select,
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-group.is-invalid select,
.form-group.is-invalid input:not([type="radio"]):not([type="checkbox"]),
.form-group.is-invalid .hs-input-group input {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.22);
}

.form-group .field-error {
  margin: 5px 0 0;
  font-size: 0.7rem;
  color: #e11d48;
  line-height: 1.35;
}

.form-group select:focus,
.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 81, 255, 0.2);
}

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

.hs-input-group {
  display: flex;
  gap: 8px;
}

.hs-input-group input {
  flex: 1;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--ink);
}

.radio-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.radio-item .radio-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radio-item .radio-mark::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.radio-item.is-checked,
.radio-item:has(input[type="radio"]:checked) {
  border-color: #7aa2ff;
  background: #2251ff;
  box-shadow: 0 0 0 1px rgba(122, 162, 255, 0.6);
  color: #fff;
}

.radio-item input[type="radio"]:checked + .radio-mark,
.radio-item.is-checked .radio-mark {
  background: #fff;
  border-color: #fff;
}

.radio-item input[type="radio"]:checked + .radio-mark::after,
.radio-item.is-checked .radio-mark::after {
  opacity: 1;
  border-left-color: #2251ff;
  border-bottom-color: #2251ff;
}

.radio-item.is-checked .radio-text,
.radio-item:has(input[type="radio"]:checked) .radio-text {
  color: #fff;
  font-weight: 700;
}

.radio-item .radio-text {
  line-height: 1.4;
}

.result-panel {
  background: #e8eef6;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid #d5dee9;
  display: flex;
  flex-direction: column;
  position: relative;
  height: var(--ai-panel-height, min(72vh, 640px));
  max-height: var(--ai-panel-height, min(72vh, 640px));
  min-height: 0;
  color: var(--text);
}

.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 20px 16px;
  min-height: 240px;
}

.result-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.result-content {
  display: none;
}

.result-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.result-content h4 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.result-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item strong {
  color: var(--navy);
}

.result-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 8px;
}

#resultItems {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#resultItems .result-body,
#resultItems .result-loading,
#resultItems .result-error {
  flex: 1;
  min-height: 280px;
}

.result-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #d5dee9;
}

.result-section-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin: 10px 0 4px;
}

.result-body .result-section-title:first-child {
  margin-top: 0;
}

.result-paragraph {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.result-greeting {
  font-size: 0.75rem;
  color: var(--ink);
  background: rgba(34, 81, 255, 0.08);
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.result-facts {
  list-style: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d5dee9;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.result-facts li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 3px 0;
}

.result-facts .fact-key {
  flex: 0 0 8.5em;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}

.result-facts .fact-key::after {
  content: '：';
}

.result-facts .fact-val {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  color: var(--text);
}

#ai-solution .result-panel .result-facts {
  border-color: #d5dee9;
  background: rgba(255, 255, 255, 0.72);
}

#ai-solution .result-panel .result-facts li,
#ai-solution .result-panel .result-facts .fact-key,
#ai-solution .result-panel .result-facts .fact-val {
  color: var(--text);
}

#ai-solution .result-panel .result-facts .fact-key {
  flex: 0 0 8.5em;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}

.result-list {
  list-style: disc !important;
  margin: 0 0 12px 1.1rem;
  padding: 0 0 0 0.35rem;
}

.result-list li {
  list-style: disc !important;
  display: list-item;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
  padding-left: 2px;
}

#ai-solution .result-panel .result-list li {
  color: var(--text-secondary);
}

#ai-solution .result-panel .result-list {
  color: var(--text-secondary);
}

.result-list-ordered {
  list-style: decimal !important;
  margin: 0 0 12px 1.1rem;
  padding: 0 0 0 0.35rem;
}

.result-list-ordered li {
  list-style: decimal !important;
  display: list-item;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.result-error {
  color: #b42318;
  font-size: 0.75rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.result-loading {
  color: var(--text-muted);
}

/* FAQ (AI solution sidebar) */
.faq-section {
  margin-top: 48px;
}

.ai-grid .faq-panel.faq-section {
  margin-top: 0;
  background: #eef2f7;
  border: 1px solid #d8e0ea;
  border-radius: var(--radius);
  padding: 16px 14px;
  overflow-y: auto;
  flex: 1 1 52%;
  min-height: 300px;
  max-height: 58%;
  display: flex;
  flex-direction: column;
}

.ai-grid .faq-panel.faq-section[hidden] {
  display: none !important;
  flex: 0;
  max-height: 0;
}

.ai-grid .faq-panel h3 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.faq-section h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--white);
}

.ai-grid .faq-panel .faq-item {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(5, 28, 44, 0.08);
}

.ai-grid .faq-panel .faq-item:last-of-type {
  border-bottom: none;
}

.ai-grid .faq-panel .faq-item.open {
  margin-bottom: 8px;
  border: 1px solid #d8e0ea;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  transition: background var(--transition);
}

.ai-grid .faq-panel .faq-question {
  padding: 8px 2px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.ai-grid .faq-panel .faq-item.open .faq-question {
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.ai-grid .faq-panel .faq-arrow {
  flex-shrink: 0;
  font-size: 0.62rem;
  margin-top: 2px;
  color: var(--text-muted);
}

.ai-grid .faq-panel .faq-item.open .faq-arrow {
  color: var(--text-muted);
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.ai-grid .faq-panel .faq-question:hover {
  background: rgba(5, 28, 44, 0.04);
}

.ai-grid .faq-panel .faq-item.open .faq-question:hover {
  background: var(--bg-subtle);
}

.faq-arrow {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.ai-grid .faq-panel .faq-answer-inner {
  padding: 0 14px 12px;
  font-size: 0.68rem;
  line-height: 1.55;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.ai-grid .faq-panel .faq-item.open .faq-answer {
  max-height: 240px;
}

/* AI section — overall vertical compact (~1/3 shorter) */
#ai-solution {
  padding: 42px 0;
}

#ai-solution .section-header {
  margin-bottom: 26px;
}

#ai-solution .section-header h2 {
  margin-bottom: 10px;
}

#ai-solution .tax-calc {
  padding: 18px 20px;
  margin-top: 28px;
}

#ai-solution .tax-calc > p {
  margin-bottom: 10px;
  font-size: 0.78rem;
}

#ai-solution .tax-form-grid {
  gap: 8px;
  margin-bottom: 10px;
}

#ai-solution .tax-result {
  padding: 12px 14px;
  margin-top: 10px;
}

#ai-solution .tax-result-value {
  font-size: 1.35rem;
}

#ai-solution .result-placeholder .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

#ai-solution .result-placeholder h4 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

#ai-solution .result-placeholder p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Tax Calculator */
.tax-calc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  margin-top: 40px;
}

.tax-calc h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.tax-calc > p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.tax-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 10px;
  margin-bottom: 12px;
}

.tax-calc .form-group {
  margin-bottom: 0;
}

.tax-calc .form-group label {
  font-size: 0.7rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.tax-calc .form-group select,
.tax-calc .form-group input:not([type="radio"]):not([type="checkbox"]) {
  padding: 5px 7px;
  font-size: 0.7rem;
  line-height: 1.35;
  border-radius: 6px;
}

.tax-calc .form-group label .label-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
}

.tax-form-note {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tax-calc #calcTax {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.tax-result {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  margin-top: 12px;
}

.tax-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tax-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.tax-result-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.6;
}

.tax-breakdown {
  display: grid;
  gap: 8px;
}

.tax-breakdown-section,
.tax-breakdown-summary,
.tax-breakdown-disclaimer {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 8px 10px;
}

.tax-breakdown-section strong,
.tax-breakdown-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.8rem;
}

.tax-breakdown-ref {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.tax-breakdown-disclaimer {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.tax-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.tax-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.tax-cart-btn-icon {
  flex-shrink: 0;
}

.ai-grid .faq-panel .faq-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.ai-grid .faq-panel .tax-cart-btn {
  color: var(--ink);
  border-color: var(--border);
  background: var(--white);
}

.ai-grid .faq-panel .tax-cart-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Daoith floating chatbot — AI 解决方案页内固定浮动 */
.ai-chatbot {
  position: fixed;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.ai-chatbot > * {
  pointer-events: auto;
}

body:not([data-active-view="ai-solution"]) .ai-chatbot {
  display: none;
}

.ai-chatbot-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #1a2b5c 0%, #2251ff 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(15, 28, 63, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-chatbot-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(15, 28, 63, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.14) inset;
}

.ai-chatbot-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(34, 81, 255, 0.35);
  animation: ai-chatbot-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ai-chatbot-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

.ai-chatbot-fab img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}

.ai-chatbot-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.ai-chatbot-fab-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ai-chatbot-fab-sub {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.78;
  line-height: 1.2;
}

.ai-chatbot[data-state="open"] .ai-chatbot-fab {
  display: none;
}

.ai-chatbot-panel {
  width: min(420px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid rgba(15, 28, 63, 0.08);
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(15, 28, 63, 0.18),
    0 4px 12px rgba(15, 28, 63, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ai-chatbot-in 0.22s ease;
}

@keyframes ai-chatbot-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chatbot-panel[hidden] {
  display: none !important;
}

.ai-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, #0f1c3f 0%, #1a3370 55%, #2251ff 140%);
  color: #fff;
}

.ai-chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-chatbot-title img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.ai-chatbot-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ai-chatbot-title-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.ai-chatbot-title-text span {
  font-size: 0.68rem;
  opacity: 0.78;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ai-chatbot-new {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s ease;
}

.ai-chatbot-new:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ai-chatbot-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ai-chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 10px;
  background:
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chatbot-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-chatbot-bubble.is-rich {
  white-space: normal;
}

.ai-chatbot-bubble.is-rich .result-paragraph {
  margin: 0 0 0.45em;
  font-size: inherit;
  line-height: 1.6;
}

.ai-chatbot-bubble.is-rich .result-paragraph:last-child {
  margin-bottom: 0;
}

.ai-chatbot-bubble.is-rich .result-section-title,
.ai-chatbot-bubble.is-rich .result-section-subtitle {
  margin: 0.55em 0 0.3em;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f1c3f;
  line-height: 1.4;
}

.ai-chatbot-bubble.is-rich .result-section-title:first-child,
.ai-chatbot-bubble.is-rich .result-section-subtitle:first-child,
.ai-chatbot-bubble.is-rich .result-paragraph:first-child {
  margin-top: 0;
}

.ai-chatbot-bubble.is-rich .result-list {
  margin: 0.25em 0 0.45em;
  padding-left: 1.15em;
}

.ai-chatbot-bubble.is-rich .result-list li {
  margin: 0.22em 0;
  padding-left: 0.15em;
}

.ai-chatbot-bubble.is-rich strong {
  font-weight: 700;
  color: #0f1c3f;
}

.ai-chatbot-bubble.is-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 28, 63, 0.08);
  color: #1f2937;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 28, 63, 0.04);
}

.ai-chatbot-bubble.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1e4de0, #2251ff);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(34, 81, 255, 0.22);
}

.ai-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e8edf5;
  background: #fff;
}

.ai-chatbot-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d5dde8;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ai-chatbot-form input:focus {
  outline: none;
  border-color: #2251ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 81, 255, 0.12);
}

.ai-chatbot-form .ai-chatbot-send {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ai-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .ai-chatbot-panel {
    width: calc(100vw - 24px);
    height: min(72vh, 560px);
  }

  .ai-chatbot-fab-sub {
    display: none;
  }
}

/* ===== EXPERT INSIGHTS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent);
  background: var(--bg-subtle);
}

.article-date {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
}

.article-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.article-link:hover {
  color: var(--accent-hover);
}

.article-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.article-title-link:hover {
  color: var(--accent);
}

.article-card.is-paginated-hidden,
.policy-item.is-paginated-hidden,
.tax-system-card.is-paginated-hidden {
  display: none !important;
}

.btn-load-more {
  background: none;
  border: 1px solid var(--border);
  padding: 10px 28px;
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-load-more:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-load-more.is-hidden {
  display: none;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.view-all {
  text-align: center;
  margin-top: 32px;
}

.view-all a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.view-all a:hover {
  color: var(--accent-hover);
}

/* ===== SERVICES ===== */
.service-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.service-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.service-card-actions .btn {
  flex: 1 1 auto;
  min-width: 108px;
  text-align: center;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.cart-link-icon {
  display: block;
  width: 15px;
  height: 15px;
}

.cart-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.auth-slot {
  flex-shrink: 0;
}

.btn-wechat-login {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius);
  border: 1px solid #07c160;
  background: #07c160;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.btn-wechat-login:hover {
  background: #06ad56;
  border-color: #06ad56;
}

.btn-wechat-login-icon {
  display: block;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  overflow: hidden;
}

.btn-wechat-login-icon path {
  fill: currentColor;
}

/* 顶部：免费生成方案 — 略小于通用 btn-sm */
.header-inner > .btn-primary.btn-sm,
.header .btn-primary.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
}

.auth-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #07c160;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-name {
  font-size: 0.75rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

.auth-logout {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.auth-logout:hover {
  color: var(--accent);
}

.auth-callback-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-subtle);
}

.auth-callback-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.auth-callback-logo {
  border-radius: 50%;
  margin-bottom: 16px;
}

.auth-callback-card h1 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.auth-callback-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

.cart-badge[hidden],
.cart-badge.is-empty {
  display: none !important;
}

.daoith-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.daoith-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.service-detail-price {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
}

.service-detail-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Service detail — compact consulting typography */
.service-page .article-main .container {
  max-width: 1120px;
}

.service-page .article-view-tag {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-page .article-view-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.service-page .article-view-lead {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
  max-width: 48rem;
}

.service-page .service-detail-price {
  margin-top: 12px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.service-page .service-detail-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: #8a8a8a;
  margin-left: 4px;
}

.service-page .article-view-body {
  margin-bottom: 28px;
}

.service-page .article-view-h2.service-detail-heading {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #051c2c;
  margin: 26px 0 12px;
  padding: 8px 12px;
  border: 0;
  border-left: 3px solid #051c2c;
  border-radius: 0;
  background: #eef1f5 !important;
  box-shadow: none !important;
}

.service-page .article-view-h2.service-detail-heading:first-child {
  margin-top: 0;
}

.service-page .article-view-h2.service-detail-heading span {
  color: inherit;
}

.service-page .article-view-p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 52rem;
}

.service-page .article-view-footer {
  padding-top: 20px;
  gap: 10px;
}

.oa-articles-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.oa-articles-hint.is-error {
  color: #b42318;
}

.service-detail-list {
  margin: 0 0 18px;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-detail-list li + li {
  margin-top: 6px;
}

.service-detail-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 12px;
  border-top: 1px solid var(--border-light);
}

.service-faq-item {
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
}

.service-faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink);
  list-style: none;
}

.service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-faq-item p {
  margin: 6px 0 2px;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.6;
  max-width: 48rem;
}

.service-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.service-detail-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #444;
}

.service-detail-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.service-detail-table th,
.service-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  border-top: 0;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.service-detail-table thead th {
  background: #051c2c;
  color: #fff;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  white-space: normal;
  padding: 8px 10px;
  border-bottom: 0;
}

.service-detail-table tbody th {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink);
  background: #fafafa;
  min-width: 6.5rem;
  white-space: nowrap;
}

.service-detail-table tbody tr:last-child th,
.service-detail-table tbody tr:last-child td {
  border-bottom: 1px solid #cfcfcf;
}

.service-detail-table tbody tr:nth-child(even) td {
  background: transparent;
}

.service-detail-table--compare {
  table-layout: fixed;
  width: 100%;
  min-width: 720px;
  max-width: 100%;
}

.service-table-wrap--compare {
  max-width: 100%;
}

.service-detail-table--compare col.compare-col-item {
  width: 7.5rem;
}

.service-detail-table--compare col.compare-col-managed {
  width: 38%;
}

.service-detail-table--compare col.compare-col-traditional {
  width: 22%;
}

.service-detail-table--compare col.compare-col-value {
  width: auto;
}

.service-detail-table--compare thead th:nth-child(1),
.service-detail-table--compare tbody th {
  width: 7.5rem;
  max-width: 7.5rem;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  padding: 6px 8px;
  font-size: 0.68rem;
  line-height: 1.35;
  vertical-align: top;
}

.service-detail-table--compare thead th:nth-child(2),
.service-detail-table--compare tbody td.col-2 {
  border-left: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}

.service-detail-table--compare thead th:nth-child(2) {
  background: #0a2e4a;
  border-top: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.service-detail-table--compare tbody td.col-2 {
  color: var(--ink);
  font-weight: 400;
  background: rgba(5, 28, 44, 0.035);
}

.service-detail-table--compare tbody tr:last-child td.col-2 {
  border-bottom: 1.5px solid var(--ink);
}

.service-detail-table--compare thead th:nth-child(3) {
  color: #ffffff;
  font-weight: 600;
}

.service-detail-table--compare thead th:nth-child(3),
.service-detail-table--compare tbody td.col-3 {
  width: 22%;
  max-width: 12rem;
  padding: 6px 8px;
}

.service-detail-table--compare tbody td.col-3 {
  color: #051c2c;
}

.service-detail-table--compare tbody td.col-3 .svc-cell-list li {
  font-size: 0.7rem;
  line-height: 1.4;
}

.service-detail-table--compare tbody td.col-3 .svc-cell-list li span:last-child,
.service-detail-table--compare tbody td.col-3 .svc-cell-list li.is-ok span:last-child,
.service-detail-table--compare tbody td.col-3 .svc-cell-list li.is-no span:last-child,
.service-detail-table--compare tbody td.col-3 .svc-cell-list li.is-plain {
  color: #051c2c !important;
  font-weight: 400;
}

.service-detail-table--compare tbody td.col-4 {
  color: #444;
  padding: 6px 8px;
}

.service-detail-table--compare th,
.service-detail-table--compare td {
  padding: 6px 8px;
}

.svc-cell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-cell-list li {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 3px;
  align-items: start;
  font-size: 0.68rem;
  line-height: 1.35;
}

.svc-cell-list li.is-plain {
  grid-template-columns: 1fr;
  color: #555;
  margin-bottom: 1px;
}

.svc-cell-list .svc-mark {
  font-size: 0.64rem;
  line-height: 1.35;
  font-weight: 600;
}

.svc-cell-list li.is-ok .svc-mark {
  color: #1a7f4b;
}

.svc-cell-list li.is-no .svc-mark {
  color: #b42318;
}

.svc-cell-list li.is-ok span:last-child {
  color: #333;
}

.svc-cell-list li.is-no span:last-child {
  color: #333;
}

.service-detail-table--compare tbody td.col-4 .svc-cell-list li.is-plain {
  color: #444;
  font-size: 0.68rem;
}

.service-detail-table--pricing {
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.service-detail-table--pricing tbody td.col-2,
.service-detail-table--pricing tbody td.col-3 {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.service-table-wrap--scope,
.service-table-wrap--deliver,
.service-table-wrap--pricing {
  width: max-content;
  max-width: 100%;
}

.service-detail-table--scope {
  width: max-content;
  max-width: 100%;
  min-width: 0;
  table-layout: auto;
}

.service-detail-table--scope .svc-cell-list li {
  font-size: 0.72rem;
}

.service-detail-table--deliver {
  width: max-content;
  max-width: 100%;
  min-width: 0;
  table-layout: auto;
}

.service-detail-table--deliver thead th:nth-child(1),
.service-detail-table--deliver tbody th {
  white-space: normal;
  min-width: 0;
  max-width: 16rem;
}

.service-detail-table--deliver thead th:nth-child(2),
.service-detail-table--deliver tbody td.col-2 {
  color: #555;
  white-space: nowrap;
  font-size: 0.7rem;
  width: 1%;
}

.service-detail-table--deliver thead th:nth-child(3),
.service-detail-table--deliver tbody td.col-3 {
  color: #444;
  white-space: normal;
  max-width: 22rem;
}

.service-timeline {
  list-style: none;
  margin: 0 0 14px;
  padding: 4px 0 2px;
  display: grid;
  grid-template-columns: repeat(var(--timeline-count, 4), minmax(0, 1fr));
  gap: 12px 14px;
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--timeline-count, 4) * 12rem));
}

.service-timeline::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: #c8c8c8;
  z-index: 0;
}

.service-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  z-index: 1;
}

.service-timeline-step:not(:nth-child(4n)):after {
  display: none;
}

.service-timeline-marker {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.service-timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

.service-timeline-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.service-timeline-time {
  margin: 0;
  font-size: 0.66rem;
  color: #888;
  font-weight: 400;
  line-height: 1.4;
}

.service-timeline-desc {
  display: none;
}

@media (max-width: 1100px) {
  .service-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .service-timeline::before {
    display: none;
  }

  .service-timeline-step:not(:nth-child(2n)):after {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 26px;
    right: -12px;
    height: 1px;
    background: #d0d0d0;
    z-index: 0;
  }
}

@media (max-width: 900px) {
  .service-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }

  .service-timeline::before {
    display: none;
  }

  .service-timeline-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 14px 0;
  }

  .service-timeline-step:not(:last-child):before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: #d0d0d0;
  }

  .service-timeline-step:not(:nth-child(2n)):after,
  .service-timeline-step:not(:nth-child(4n)):after {
    display: none;
  }

  .service-timeline-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
  }

  .service-table-wrap--scope,
  .service-table-wrap--deliver,
  .service-table-wrap--pricing {
    width: 100%;
  }

  .service-detail-table--scope,
  .service-detail-table--deliver,
  .service-detail-table--pricing {
    width: 100%;
  }

  .service-detail-table th,
  .service-detail-table td {
    padding: 7px 8px;
  }
}

.cart-container {
  max-width: 960px;
}

.cart-page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.cart-page-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cart-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.cart-empty h2 {
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.cart-table th,
.cart-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 0.9rem;
}

.cart-table th {
  background: var(--cream, #f7f7f5);
  color: var(--text-secondary);
  font-weight: 600;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-item-title {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--accent);
}

.cart-item-unit {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-qty-input {
  width: 52px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-family: inherit;
}

.cart-remove {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.cart-remove:hover {
  color: var(--accent);
}

.cart-summary {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
}

.cart-total-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cart-total-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink);
}

.quote-modal[hidden] {
  display: none !important;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.quote-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.quote-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.quote-modal-dialog h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.quote-modal-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.quote-form .form-group {
  margin-bottom: 14px;
}

.quote-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.quote-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.quote-form-error {
  color: #b42318;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.quote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

body.modal-open {
  overflow: hidden;
}

.wechat-bind-dialog {
  width: min(520px, 100%);
}

.wechat-bind-steps {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.wechat-bind-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 12px;
}

.wechat-bind-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.wechat-bind-qr-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.wechat-bind-qr-card span {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 520px) {
  .wechat-bind-qr-grid {
    grid-template-columns: 1fr;
  }
}

.wechat-bind-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.wechat-bind-qr-wrap img {
  width: 180px;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.wechat-bind-link {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.4;
  margin: 0 0 14px;
  text-align: center;
}

.wechat-bind-actions {
  justify-content: center;
}

.wechat-bind-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.show-more button {
  background: none;
  border: 1px solid var(--border);
  padding: 12px 32px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.show-more button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hub-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border-light);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.show-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== SERVICE HUB ===== */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hub-panel h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.wechat-notify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

.toggle-switch.active {
  background: var(--success);
}

.toggle-switch:disabled {
  opacity: 0.6;
  cursor: wait;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(22px);
}

.hub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.hub-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}

.hub-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Quote records list */
.quote-record {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.quote-record:last-child {
  margin-bottom: 0;
}

.quote-record-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--cream);
  font-size: 0.8rem;
}

.quote-record-no {
  font-weight: 600;
  color: var(--ink);
}

.quote-record-date {
  color: var(--text-muted);
  flex: 1;
}

.quote-record-status {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.quote-record-body {
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.quote-record-services {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.quote-record-total {
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

/* Quote progress timeline */
.quote-progress {
  padding: 8px 0;
  display: grid;
  gap: 0;
}

.quote-progress-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 16px 0;
  position: relative;
}

.quote-progress-step::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.quote-progress-step:last-child::before {
  display: none;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.quote-progress-step.done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-body strong {
  font-size: 0.85rem;
  color: var(--ink);
}

.step-body span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quote-progress-step.done .step-body strong {
  color: var(--accent);
}

.quote-progress-step.skipped {
  opacity: 0.45;
}

.quote-progress-step.skipped .step-body strong {
  text-decoration: line-through;
}

.quote-progress-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.hub-tab-link {
  color: var(--accent);
  text-decoration: none;
}

.hub-tab-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .icon-muted {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 16px;
}

.feedback-form .type-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.type-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all var(--transition);
}

.type-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ===== ARTICLE DETAIL PAGE ===== */
.article-page {
  background: var(--cream);
}

.article-main {
  padding: 100px 0 64px;
  min-height: calc(100vh - 160px);
}

.article-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--accent-hover);
}

.article-view {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 820px;
  margin: 0 auto;
}

.article-view-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 24px;
}

.article-not-found {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.article-not-found h1 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.article-not-found p {
  color: var(--text-muted);
}

.is-hidden {
  display: none !important;
}

.article-view-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-view-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-view-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-view-tag {
  padding: 4px 10px;
  background: var(--bg-subtle);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.article-view-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.article-view-body {
  margin-bottom: 40px;
}

.article-view-h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-view-h2:first-child {
  margin-top: 0;
}

.article-view-p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-view-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.footer-compact {
  padding: 24px 0;
}

.footer-compact .footer-bottom {
  border-top: none;
  padding-top: 0;
  width: 100%;
}

.footer-compact .footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-compact .footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .article-view {
    padding: 32px 24px;
  }

  .article-main {
    padding-top: 88px;
  }
}

/* ===== TAX SYSTEMS ===== */
.tax-systems-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: -8px auto 32px;
  line-height: 1.7;
}

.tax-systems-disclaimer a {
  color: var(--accent);
  font-weight: 600;
}

.tax-systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tax-system-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tax-system-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tax-system-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-system-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.tax-system-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.tax-system-card h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.tax-system-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.tax-system-title-link:hover {
  color: var(--accent);
}

.tax-system-trade {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.tax-system-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.tax-system-highlight {
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin: 0;
  line-height: 1.5;
}

.tax-system-view-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tax-system-name-en {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

.tax-system-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.tax-system-table th,
.tax-system-table td {
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.tax-system-table th {
  width: 38%;
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 600;
}

.tax-system-table td {
  color: var(--text-secondary);
  line-height: 1.6;
}

.tax-system-tips {
  margin: 0 0 24px 18px;
  padding: 0;
}

.tax-system-tips li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.tax-system-source {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}

.tax-system-source p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 8px;
}

.tax-system-source p:last-of-type {
  margin-bottom: 12px;
}

.tax-system-source-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.tax-system-source-link:hover {
  color: var(--accent-hover);
}

.tax-system-view .article-view-title {
  margin-bottom: 8px;
}

/* ===== POLICY ===== */
.policy-block {
  margin-bottom: 28px;
}

.policy-block:last-of-type {
  margin-bottom: 20px;
}

.policy-block .view-all {
  margin-top: 16px;
}

.policy-block-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.policy-block-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.policy-block-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.policy-link-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.7rem;
}

.policy-list-platform {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.policy-list-platform .policy-item {
  margin-bottom: 0;
}

.policy-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.policy-filter-group h3 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.policy-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 32px;
}

.policy-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 81, 255, 0.15);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.chip:hover,
.chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-item {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  color: inherit;
}

.policy-item:hover {
  border-color: var(--accent);
  background: var(--bg-subtle);
}

.policy-item h4 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.policy-summary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.policy-item:hover h4 {
  color: var(--accent-hover);
}

.policy-item .meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.policy-sources {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.policy-sources a {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== ABOUT ===== */
#about {
  padding: 32px 0 28px;
}

#about .section-header {
  margin-bottom: 20px;
}

#about .section-header h2 {
  margin-bottom: 0;
}

.about-intro {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 1.15vw, 1.0625rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: none;
  margin: 0 auto 18px;
  line-height: 1.5;
  font-style: normal;
  white-space: nowrap;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: left;
  border: 1px solid var(--border-light);
}

.value-card .emoji,
.value-card .value-label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.value-card h4 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.values-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.value-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 12px;
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent);
}

.value-detail-card .icon {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.value-detail-card h5 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.value-detail-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.values-heading {
  text-align: center;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
}

.team-card-featured {
  border-color: var(--accent);
  border-top-width: 3px;
  padding-top: 32px;
  text-align: center;
}

.team-card-featured .team-avatar-lg {
  margin-left: auto;
  margin-right: auto;
}

.team-card-featured ul,
.team-card-featured .team-edu {
  text-align: left;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
  border: 2px solid #626068;
  background: #626068;
}

.team-avatar-zoe {
  width: 76px;
  height: 76px;
  object-position: center 28%;
}

.team-avatar-lg {
  width: 140px;
  height: 140px;
  border-color: var(--accent);
  background: #626068;
  margin-bottom: 24px;
}

.team-avatar.team-avatar-cheryl {
  object-position: 50% 52%;
  margin-top: -20px;
}

.team-card h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.team-title {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.team-card ul {
  margin-bottom: 16px;
}

.team-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.team-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.team-edu {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--ink);
  padding: 96px 0;
  text-align: center;
  color: var(--white);
  border-top: 3px solid var(--accent);
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.result-placeholder .icon-muted {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.about-legal {
  max-width: 820px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

#team .about-legal {
  margin-top: 48px;
}

.about-legal-name,
.about-legal-addr,
.about-legal-meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}

.about-legal-name {
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.about-legal-addr {
  margin-top: 4px;
}

.about-legal-meta {
  margin-top: 8px;
}

.about-legal-meta a {
  color: var(--text-secondary);
  font-weight: 500;
}

.about-legal-meta a:hover {
  color: var(--accent);
}

.about-legal-sep {
  margin: 0 0.45em;
  color: var(--border);
}

.footer-meta-line {
  display: block;
  font-size: 0.875rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.footer-copy {
  flex: 0 1 auto;
}

.footer-beian {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  max-width: min(720px, 100%);
  text-align: right;
}

.footer-beian-block {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px;
}

.footer-legal-lines {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal-lines span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.footer-beian-links {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.legal-container {
  max-width: 800px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.legal-list {
  margin: 0 0 20px;
  padding-left: 1.25rem;
}

.legal-list li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-view .article-view-h2 {
  margin-top: 28px;
}

@media (max-width: 640px) {
  .about-legal {
    margin-top: 28px;
    padding-top: 16px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-beian {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    text-align: right;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .ai-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.8fr);
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-grid {
    grid-template-columns: 1fr;
    --ai-panel-height: auto;
  }

  .ai-left {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .ai-grid > .ai-left .form-panel,
  .ai-grid > .result-panel {
    min-height: auto;
    max-height: none;
    height: auto;
  }

  .ai-grid .form-panel {
    max-height: min(70vh, 560px);
  }

  .form-panel {
    max-height: min(70vh, 560px);
  }

  .ai-grid .faq-panel.faq-section {
    max-height: min(50vh, 360px);
    flex: none;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid,
  .values-detail {
    grid-template-columns: 1fr;
  }

  .about-intro {
    white-space: normal;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 8px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 12px;
    background: transparent;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 10px 8px;
  }

  .header .btn-primary,
  .header .btn-gold {
    display: none;
  }

  .cart-link {
    margin-right: 6px;
    width: 30px;
    height: 30px;
  }

  .cart-link-icon {
    width: 14px;
    height: 14px;
  }

  .auth-name,
  .auth-logout {
    display: none;
  }

  .btn-wechat-login span {
    display: none;
  }

  .btn-wechat-login {
    padding: 5px 7px;
  }

  .mobile-toggle {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
    border: none;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .process-flow {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .articles-grid,
  .services-grid,
  .team-grid,
  .policy-list-platform {
    grid-template-columns: 1fr;
  }

  .team-card-featured {
    order: -1;
  }

  .team-avatar-lg {
    width: 120px;
    height: 120px;
  }

  .policy-filters {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 96px 0 48px;
  }
}

/* AI form — shipping mode selected state */
#aiForm .radio-group .radio-item {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}

#aiForm .radio-group .radio-item.is-checked,
#aiForm .radio-group .radio-item[data-checked="true"],
#aiForm .radio-group .radio-item:has(input[type="radio"]:checked) {
  border-color: #b8ccff;
  background: #2251ff;
  box-shadow: 0 0 0 2px rgba(155, 188, 255, 0.65);
  color: #fff;
}

#aiForm .radio-group .radio-item.is-checked .radio-text,
#aiForm .radio-group .radio-item[data-checked="true"] .radio-text,
#aiForm .radio-group .radio-item:has(input[type="radio"]:checked) .radio-text {
  color: #fff;
  font-weight: 700;
}

#aiForm .radio-group .radio-item.is-checked .radio-mark,
#aiForm .radio-group .radio-item[data-checked="true"] .radio-mark,
#aiForm .radio-group .radio-item input[type="radio"]:checked + .radio-mark {
  background: #fff;
  border-color: #fff;
}

#aiForm .radio-group .radio-item.is-checked .radio-mark::after,
#aiForm .radio-group .radio-item[data-checked="true"] .radio-mark::after,
#aiForm .radio-group .radio-item input[type="radio"]:checked + .radio-mark::after {
  opacity: 1;
  border-left-color: #2251ff;
  border-bottom-color: #2251ff;
}
