/* ============================================================
   SwiftIdc 展示站 · 国际化排版与视觉精修层
   说明：仅覆盖字体、间距、按钮、卡片、表单与浮层的观感，
        不改变组件结构与交互逻辑。样式优先级保持在组件样式之下。
   2026-11-30 | v1（随文案国际化一并上线）
   ============================================================ */

/* ---------- 字体与标题 ---------- */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --refine-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.002em;
  color: var(--ink);
}

h1, h2, h3, h4 {
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-weight: 700;
}

h2.section-title,
.section-title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.28;
}

h3 {
  font-weight: 650;
}

p {
  text-wrap: pretty;
}

/* 正文段落更紧凑的行宽，避免长行影响阅读 */
.section p,
.hero-inner p {
  max-width: 68ch;
}

/* ---------- 区块节奏 ---------- */
.section {
  padding: 84px 0;
}

.section + .section {
  padding-top: 0;
}

@media (max-width: 900px) {
  .section {
    padding: 56px 0;
  }
  .section + .section {
    padding-top: 0;
  }
}

/* ---------- 按钮 ---------- */
.btn {
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  transition: background-color 0.18s var(--refine-ease), border-color 0.18s var(--refine-ease),
    color 0.18s var(--refine-ease), box-shadow 0.18s var(--refine-ease), transform 0.18s var(--refine-ease);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14.5px;
  border-radius: 9px;
}

.btn-primary {
  box-shadow: 0 1px 2px rgba(8, 34, 42, 0.12), 0 6px 16px -8px rgba(14, 124, 134, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(8, 34, 42, 0.14), 0 10px 22px -10px rgba(14, 124, 134, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--line-strong);
  background: #fff;
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn:focus-visible,
.nav-trigger:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- 卡片与面板 ---------- */
.card,
.plan-card,
.hero-card,
.faq-item,
.rule-card,
.sec-card {
  border-radius: 14px;
  border: 1px solid #e6eaef;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card:hover,
.plan-card:hover,
.rule-card:hover {
  box-shadow: 0 10px 24px -12px rgba(16, 24, 40, 0.22);
  transition: box-shadow 0.22s var(--refine-ease), border-color 0.22s var(--refine-ease);
}

/* ---------- 表单 ---------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-radius: 9px;
  border-color: var(--line-strong);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.14);
}

/* ---------- 导航与浮层 ---------- */
.site-header .nav-wrap {
  gap: 20px;
}

.site-header .nav-trigger,
.site-header .nav-links > .nav-link {
  font-weight: 550;
  letter-spacing: 0.004em;
}

.nav-dropdown {
  border-radius: 16px;
  box-shadow: 0 20px 48px -20px rgba(16, 24, 40, 0.28), 0 4px 12px rgba(16, 24, 40, 0.05);
}

.dropdown-cell .dropdown-text strong {
  letter-spacing: 0.002em;
}

.dropdown-cell .dropdown-text > span {
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- 首屏 ---------- */
.hh-title {
  letter-spacing: -0.02em;
}

.hh-lead {
  max-width: 620px;
  color: var(--ink-2);
}

.hh-facts li {
  border: 1px solid var(--brand-soft-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}

.hh-btn {
  border-radius: 10px;
  transition: transform 0.18s var(--refine-ease), box-shadow 0.18s var(--refine-ease);
}

.hh-btn--primary:hover {
  transform: translateY(-1px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  font-size: 14.5px;
}

.footer-col strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.footer-col a {
  color: var(--ink-3);
  transition: color 0.16s var(--refine-ease);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-desc {
  color: var(--ink-3);
  line-height: 1.7;
}

/* ---------- 表格 ---------- */
table {
  font-variant-numeric: tabular-nums;
}

/* ---------- 中文与西文混排细节 ---------- */
.hh-eyebrow,
.eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* 数值类文本统一等宽数字，价格与指标不跳动 */
.price,
.hc-price-amount,
.plan-price,
.metric-value,
.infra-metric-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
/* ---------- 导航：按内容宽度布局，避免长语言标签与右侧入口重叠 ---------- */
.site-header .nav-links {
  flex: 1 1 auto;
  min-width: max-content;
}

.site-header .nav-actions {
  flex: 0 0 auto;
}

@media (max-width: 1599px) {
  .site-header .nav-quick {
    display: none;
  }
}

/* ---------- 首屏指标：英文标签不截断 ---------- */
.hh-meter span {
  width: auto;
  min-width: 38px;
}
.hh-meter b {
  width: 92px;
}
.hh-meters {
  min-width: 176px;
}

/* ---------- 页头标志：按高度收敛，避免多语标志尺寸差异导致溢出裁切 ---------- */
.site-header .brand-mark img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.site-footer .footer-logo img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

/* ---------- 拉丁语系页头字标（图标 + SwiftIdc 文本） ---------- */
.site-header a.brand {
  gap: 10px;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #0c2b31;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand-word {
    font-size: 17px;
  }
}


/* ---- 卡片等高修正（成组卡片拉伸至同高，底部操作区对齐） ---- */
.cs-plan-grid { align-items: stretch; }
.cs-plan-card { height: 100%; }
.cs-plan-card > .cs-plan-foot,
.cs-plan-card > .cs-plan-actions,
.cs-plan-card > .cs-plan-buy { margin-top: auto; }

.news-grid, .news-list { align-items: stretch; }
.news-card { height: 100%; }
.news-card-link { height: 100%; display: flex; flex-direction: column; }
.news-card-body { flex: 1 1 auto; }

.plan-grid { align-items: stretch; }
.plan-card { height: 100%; }


/* ---- 成组卡片跨行等高（文案限行 + 弹性占位） ---- */
.cs-plan-grid, .plan-grid, .news-grid, .news-list, .oa-card-grid, .bm-grid {
  align-items: stretch;
}
.cs-plan-card, .plan-card, .bm-card, .oa-card, .news-card { height: 100%; }
.cs-plan-card .cs-plan-intro {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.55em * 3);
}
.cs-plan-card .cs-plan-title-row { min-height: 32px; align-items: flex-start; }
.cs-plan-card > .cs-plan-actions,
.cs-plan-card > .cs-plan-price-row { margin-top: auto; }
.news-card-link { height: 100%; display: flex; flex-direction: column; }
.news-card-body { flex: 1 1 auto; }
.news-card .news-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 575px) {
  .cs-plan-card .cs-plan-intro { -webkit-line-clamp: 4; min-height: calc(1.55em * 4); }
}


/* 套餐区配图：统一圆角与描边 */
.pp-art-img, .cs-promo-img, .rent-visual img {
  border-radius: 14px; border: 1px solid #e4e7ec;
  box-shadow: 0 14px 34px rgba(17,36,39,.08);
}
/* 新闻卡与套餐卡跨行等高 */
.news-grid, .news-list { grid-auto-rows: 1fr; align-items: stretch; }
