/* ============ 云雾API 介绍站样式（主题色：青 teal） ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4fafa;
  --card: #ffffff;
  --border: #dbe7e7;
  --text: #0c1a1a;
  --text-sub: #5b7272;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --chip: #e6f7f5;
  --chip-ico: #0d9488;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, .28);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: #4b6363;
}
.main-nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 420px at 8% 0%, rgba(13, 148, 136, .09), transparent 65%),
    radial-gradient(700px 460px at 95% 90%, rgba(56, 189, 248, .08), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 90px;
}
.hero-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  background: rgba(13, 148, 136, .08);
  border: 1px solid rgba(13, 148, 136, .25);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  margin-top: 20px;
  max-width: 540px;
  color: var(--text-sub);
  font-size: 16.5px;
}

/* 接口地址盒 */
.endpoint-box {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(12, 26, 26, .05);
  max-width: 540px;
}
.endpoint-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.endpoint-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 13.5px;
}
.endpoint-host { color: #2f4747; white-space: nowrap; }
.endpoint-carousel {
  flex: 1;
  height: 1.6em;
  overflow: hidden;
  position: relative;
}
.endpoint-list {
  display: flex;
  flex-direction: column;
  color: var(--primary);
  animation: endpoints 12s steps(5) infinite;
}
.endpoint-list span { height: 1.6em; line-height: 1.6em; white-space: nowrap; }
@keyframes endpoints {
  from { transform: translateY(0); }
  to   { transform: translateY(-8em); }
}
.copy-ico { color: #8fb0ae; flex: none; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
  list-style: none;
}
.hero-stats li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 110px;
}
.hero-stats .num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--primary-dark);
}
.hero-stats .label { font-size: 12.5px; color: var(--text-sub); }

/* Hero 右侧面板 */
.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(12, 26, 26, .08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.panel-ico {
  width: 40px; height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--chip);
  font-size: 18px;
}
.panel-item h2 { font-size: 15.5px; font-weight: 700; }
.panel-item p { font-size: 13.5px; color: var(--text-sub); margin-top: 4px; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.eyebrow {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2, .cta-inner h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 16px;
}

.card-ico {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--chip);
  font-size: 19px;
  margin-bottom: 18px;
}

/* ---------- 特点卡片 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 148, 136, .05), rgba(255, 255, 255, 0) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12, 26, 26, .08);
}
.value-card h3 { font-size: 18px; }
.value-card p { margin-top: 8px; font-size: 14.5px; color: var(--text-sub); }

/* ---------- 灰底区块（价格 / FAQ） ---------- */
.workflow { background: var(--bg-soft); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0d9488, #38bdf8);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.step-card h3 { font-size: 18px; }
.step-card p { margin-top: 8px; font-size: 14.5px; color: var(--text-sub); }

/* ---------- 价格表 ---------- */
.price-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.price-table thead th {
  background: var(--chip);
  color: var(--primary-dark);
  font-weight: 700;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:last-child { color: var(--primary-dark); font-weight: 600; }
.price-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
  max-width: 720px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-sub);
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(13, 148, 136, .08), transparent 70%),
    var(--bg);
  text-align: center;
}
.cta-inner { max-width: 720px; }
.cta-inner .section-sub { margin-top: 18px; }
.cta-center { justify-content: center; margin-top: 32px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 36px 0 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
  color: #4b6363;
}
.footer-links a:hover { color: var(--primary); }
.footer-links .divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; }
  .value-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero-stats li { flex: 1 1 40%; min-width: 0; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .endpoint-input { font-size: 12px; }
}
