/* 开云 kaiyun — 官方网站 · 浅色 + 左侧导航 */
:root {
  --ink: #1a1a22;
  --ink-soft: rgba(26, 26, 34, 0.68);
  --ink-dim: rgba(26, 26, 34, 0.45);
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef1f6;
  --bar: #25252b;
  --teal: #2a9d8f;
  --teal-soft: rgba(42, 157, 143, 0.12);
  --coral: #e76f51;
  --coral-soft: rgba(231, 111, 81, 0.12);
  --gold: #d4a84b;
  --gold-soft: rgba(212, 168, 75, 0.15);
  --gradient-brand: linear-gradient(120deg, var(--coral) 0%, #e9b84a 50%, var(--teal) 100%);
  --gradient-hero: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(42, 157, 143, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(231, 111, 81, 0.1), transparent 45%);
  --border: rgba(26, 26, 34, 0.08);
  --border-strong: rgba(26, 26, 34, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 26, 34, 0.04);
  --shadow: 0 8px 32px rgba(26, 26, 34, 0.07);
  --shadow-lg: 0 20px 50px rgba(26, 26, 34, 0.1);
  --sidebar-w: 252px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "SF Pro Display", "PingFang SC", "Helvetica Neue", -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

/* —— Shell: 左栏 + 主区 —— */
.site-shell {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 24px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: var(--gradient-hero);
  background-attachment: fixed;
}

.site-main__inner {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 40px) 40px;
}

/* —— Sidebar brand & nav —— */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 36px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.brand:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 16px rgba(231, 111, 81, 0.25);
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-nav a:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  text-decoration: none;
}

.sidebar-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal);
  border-left-color: var(--teal);
  font-weight: 600;
}

.sidebar-nav__icon {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sidebar-footer__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.sidebar-footer a {
  font-size: 0.82rem;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.45;
}

.sidebar-footer__copy {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--ink-dim);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(231, 111, 81, 0.22);
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn--ghost:hover {
  background: var(--bg-subtle);
}

/* —— Page shell sections —— */
.page-shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: 12px 0 8px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 28em;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
}

.hero__phone {
  border-radius: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__phone-bar {
  height: 40px;
  background: var(--bar);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero__phone-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.mock-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.mock-card--accent {
  background: linear-gradient(135deg, var(--coral-soft), var(--gold-soft));
  border-color: rgba(231, 111, 81, 0.2);
}

.mock-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.mock-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.mock-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(26, 26, 34, 0.08);
  margin-top: 10px;
  overflow: hidden;
}

.mock-progress span {
  display: block;
  height: 100%;
  width: 65%;
  background: var(--gradient-brand);
  border-radius: inherit;
}

/* —— Stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 4px;
}

/* —— Section —— */
.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* —— Bento —— */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.bento-card {
  grid-column: span 4;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.bento-card--wide {
  grid-column: span 8;
}

.bento-card__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(26, 26, 34, 0.04);
  line-height: 1;
}

.bento-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.bento-card__icon--coral { background: var(--coral-soft); }
.bento-card__icon--teal { background: var(--teal-soft); }
.bento-card__icon--gold { background: var(--gold-soft); }

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* —— Flow —— */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.flow {
  counter-reset: step;
}

.flow-step {
  padding: 20px 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.flow-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 10px;
}

.flow-step strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.flow-step span {
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* —— CTA —— */
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background-image: linear-gradient(135deg, rgba(42, 157, 143, 0.06), rgba(231, 111, 81, 0.05));
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.cta-panel p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28em;
  font-size: 0.95rem;
}

.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--coral);
  font-weight: 500;
}

/* —— Inner pages —— */
.page-hero {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.page-toc a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  text-decoration: none;
}

.page-toc a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
  text-decoration: none;
}

.content-panel {
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.content-panel h2 {
  margin: 2em 0 0.75em;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel h3 {
  margin: 1.4em 0 0.5em;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--teal);
}

.content-panel p,
.content-panel li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.content-panel > p:first-child {
  margin-top: 0;
}

.policy-section {
  scroll-margin-top: 24px;
}

.contact-box {
  margin: 20px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coral-soft), var(--teal-soft));
  border: 1px solid var(--border);
}

.contact-box strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.contact-box a {
  font-weight: 600;
  word-break: break-all;
}

.contact-box p {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--ink-dim);
}

.info-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.info-pill {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* —— Main footer —— */
.page-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
}

/* —— Mobile: 顶栏 + 横向导航 —— */
@media (max-width: 900px) {
  .site-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    margin-bottom: 14px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: none;
    gap: 8px;
  }

  .sidebar-nav a {
    border-left: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
  }

  .sidebar-nav a[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.35);
  }

  .sidebar-footer {
    display: none;
  }

  .site-shell {
    flex-direction: column;
  }

  .site-main {
    margin-left: 0;
  }

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

  .hero__visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .bento-card,
  .bento-card--wide {
    grid-column: span 12;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-panel {
    padding: 24px 20px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bento-card:hover { transform: none; }
}
