/* Components — buttons, cards, forms, etc. */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  border: 2px solid transparent;
  text-transform: uppercase;
}

.btn svg { width: 16px; height: 16px; }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-dark); color: white; }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(242, 169, 59, 0.3);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(242, 169, 59, 0.45);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding-inline: var(--sp-3);
}
.btn--ghost:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  transform: none;
}

.btn--lg { padding: 1.125rem 2rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.625rem 1rem; font-size: var(--fs-xs); }

/* Quote button on dark header */
.btn--quote {
  padding: 0.625rem 1.125rem;
  font-size: var(--fs-xs);
}

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-circuit), var(--color-circuit-light));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-lg);
}

.card p {
  font-size: var(--fs-sm);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  color: var(--color-circuit);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.card-link::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease-out);
}

.card:hover .card-link::after { transform: translateX(4px); }

/* Service card with dark variant */
.service-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--color-border);
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-circuit), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

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

.service-card:hover::before { transform: scaleX(1); }

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  margin-block: var(--sp-6);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.section--dark .stat-value { color: var(--color-accent); }

.stat-label {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-dark-muted);
}

/* ============ FORMS ============ */
.form {
  background: white;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-field label .req { color: var(--color-error); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom on focus */
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-circuit);
  box-shadow: 0 0 0 3px rgba(30, 91, 198, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--color-error);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  display: none;
}

.form-field.has-error .form-error { display: block; }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-5);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.form-foot small {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  max-width: 36ch;
}

/* ============ NOTICE / BANNER ============ */
.notice {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.notice--info {
  background: rgba(30, 91, 198, 0.08);
  color: var(--color-circuit);
  border-left: 3px solid var(--color-circuit);
}

/* ============ ARTICLE CARDS ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: all var(--dur-base) var(--ease-out);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-circuit));
  position: relative;
  overflow: hidden;
}

.article-card-cover svg,
.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 37, 69, 0.5));
}

.article-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(30, 91, 198, 0.1);
  color: var(--color-circuit);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: var(--sp-3);
}

.article-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
  flex: 1;
}

.article-card-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-top: var(--sp-3);
}

/* ============ BADGES ============ */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.badge {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  text-align: center;
  padding: var(--sp-3);
  flex-shrink: 0;
}

.section--dark .badge { border-color: rgba(255, 255, 255, 0.2); }

.badge svg, .badge img { width: 100%; height: auto; }

.badge-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.1;
}

/* ============ TESTIMONIAL ============ */
.quote-block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.quote-mark {
  font-size: 4rem;
  color: var(--color-accent);
  line-height: 1;
  font-family: serif;
}

.quote-text {
  font-size: var(--fs-lg);
  color: var(--color-text-on-dark);
  font-style: italic;
  margin-bottom: var(--sp-4);
}

.quote-author {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
}

/* ============ HERO CAROUSEL ============ */
.hero-carousel {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s var(--ease-in-out), visibility 1s;
  visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11, 37, 69, 0.92) 0%,
    rgba(11, 37, 69, 0.75) 50%,
    rgba(30, 91, 198, 0.5) 100%);
  z-index: 1;
}

.hero-slide-bg svg,
.hero-slide-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 640px;
  padding-inline: var(--container-pad);
  margin-left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(242, 169, 59, 0.15);
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.hero-slide h1 {
  color: white;
  margin-bottom: var(--sp-4);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-6);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-controls {
  position: absolute;
  bottom: var(--sp-7);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--container-pad);
  pointer-events: none;
}

.hero-controls > * { pointer-events: auto; }

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--dur-fast) var(--ease-out);
}

.hero-arrow:hover { background: rgba(255, 255, 255, 0.2); }

.hero-indicators {
  display: flex;
  gap: var(--sp-2);
}

.hero-indicators button {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease-out),
              width var(--dur-base) var(--ease-out);
}

.hero-indicators button.is-active {
  background: var(--color-accent);
  width: 48px;
}

/* Auto-play progress: a lighter fill bar that grows over the same 6s interval
   the carousel uses, so users can see "this slide will change in N seconds". */
.hero-indicators button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left center;
  animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Respect users who don't want animation.
   The carousel still auto-advances, but the slide swap and progress bar
   become instant instead of animated. */
@media (prefers-reduced-motion: reduce) {
  .hero-indicators button.is-active::after { animation: none; display: none; }
  .hero-slide { transition: none; }
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, white);
  animation: scrollHint 1.6s var(--ease-in-out) infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ============ FEATURE GRID (Home) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.feature-card {
  background: white;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}

.feature-card:hover {
  border-color: var(--color-circuit);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-number {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-circuit);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.feature-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: var(--fs-sm);
}

/* ============ INDUSTRIES ============ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
}

.industry-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-align: center;
  color: var(--color-text-on-dark);
  transition: all var(--dur-base) var(--ease-out);
}

.industry-tile:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.industry-tile:hover .industry-tile-name {
  color: var(--color-primary);
}

.industry-tile svg {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-3);
  color: var(--color-circuit-light);
  transition: color var(--dur-fast) var(--ease-out);
}

.industry-tile:hover svg { color: var(--color-primary); }

.industry-tile-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-on-dark);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: var(--sp-7);
  margin-block: var(--sp-6);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-circuit), var(--color-accent));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-7);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-circuit);
  box-shadow: 0 0 0 4px white, var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--color-circuit);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.timeline-item h4 {
  margin-bottom: var(--sp-2);
}

.timeline-item p {
  font-size: var(--fs-sm);
}

/* ============ PROCESS STEPS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.process-step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-circuit);
}

.process-step-number {
  position: absolute;
  top: -16px;
  left: var(--sp-5);
  background: var(--color-circuit);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
}

.process-step h4 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-base);
}

.process-step p {
  font-size: var(--fs-sm);
}

/* ============ FAQ ============ */
.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-text);
  text-align: left;
}

.faq-q::after {
  content: "+";
  font-size: var(--fs-xl);
  color: var(--color-circuit);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--sp-4);
}

.faq-item.is-open .faq-q::after { content: "−"; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.faq-item.is-open .faq-a {
  max-height: 400px;
  padding-bottom: var(--sp-5);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-circuit) 100%);
  color: white;
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.2), transparent 60%);
  pointer-events: none;
}

.cta-banner h2 { color: white; margin-bottom: var(--sp-3); position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--sp-5); position: relative; }
.cta-banner .btn { position: relative; }

/* ============ ARTICLE (single) ============ */
.article-hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
  color: white;
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.article-hero h1 {
  color: white;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.article-hero .meta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

.article-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero .meta svg { width: 14px; height: 14px; }

.article-body {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--sp-7);
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--color-text);
}

.article-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  color: var(--color-primary);
}

.article-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.article-body p {
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-5);
}

.article-body li {
  margin-bottom: var(--sp-2);
  list-style: disc;
}

.article-body ol li { list-style: decimal; }

.article-body blockquote {
  border-left: 4px solid var(--color-circuit);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  margin-block: var(--sp-5);
  font-style: italic;
  color: var(--color-text-muted);
}

.article-body a { color: var(--color-circuit); text-decoration: underline; word-break: break-word; }
.article-body strong { color: var(--color-primary); }

/* Tables / preformatted / long URLs — never overflow the article column on mobile */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body pre,
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.125em 0.375em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-body pre {
  padding: var(--sp-4);
  overflow-x: auto;
  line-height: 1.5;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Chinese article body — extra breathing room, mixed-script spacing
   ========================================================= */
html[lang="zh"] .article-body {
  line-height: var(--cjk-line-height);
  letter-spacing: var(--cjk-letter-spacing);
  /* Proper inter-ideograph justification */
  text-align: justify;
  text-justify: inter-ideograph;
}
html[lang="zh"] .article-body p {
  word-spacing: var(--cjk-word-spacing);
}
html[lang="zh"] .article-body h2,
html[lang="zh"] .article-body h3 {
  letter-spacing: var(--cjk-heading-tracking);
  /* Slight increase in font weight so the structure reads at glance */
  font-weight: 700;
}
html[lang="zh"] .article-body h3 { font-weight: 600; }

/* Chinese list bullets — disc looks small at CJK sizes */
html[lang="zh"] .article-body ul,
html[lang="zh"] .article-body ol {
  padding-left: var(--sp-6);
}
html[lang="zh"] .article-body li {
  list-style: "·  ";
  margin-bottom: var(--sp-3);
}
html[lang="zh"] .article-body ol li {
  list-style: decimal;
}

.article-related {
  background: var(--color-bg-soft);
  padding-block: var(--sp-7);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

/* ============ TOC ============ */
.toc {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-block: var(--sp-5);
  border-left: 3px solid var(--color-accent);
}

.toc h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.toc h4 svg { width: 18px; height: 18px; color: var(--color-accent); }

.toc ol {
  padding-left: var(--sp-5);
  list-style: decimal;
}

.toc a {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.toc a:hover { color: var(--color-circuit); }

/* ============ CONTACT INFO ============ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.contact-info-card {
  background: white;
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-circuit), var(--color-circuit-light));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.contact-info-card .icon svg,
.contact-info-card .icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  /* Icons load as <img>, so the parent .icon { color: white } cannot reach
     them. The SVG file's stroke="currentColor" falls back to black when
     external. Force white here so the icons read against the blue gradient. */
  filter: brightness(0) invert(1);
}

.contact-info-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}

.contact-info-card p, .contact-info-card a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  display: block;
  line-height: 1.6;
}

.contact-info-card a:hover { color: var(--color-circuit); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 0;
  width: 100%;
  height: 360px;
}

/* ============ SPLIT LAYOUT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-circuit));
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.split-img svg { width: 80%; height: 80%; }

/* ============ HOVER LIFT ============ */
.hover-lift { transition: transform var(--dur-base) var(--ease-out); }
.hover-lift:hover { transform: translateY(-4px); }

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--sp-6);
}
