/* =========================================================================
   ZENYX 设计系统升级层 (Design System Refinement)
   以大厂 B2B 网站标准收紧：排版层级 / 呼吸节奏 / CTA 层级 / 灵动细节
   本层最后注入，覆盖式升级，不改动既有规范文件。
   ========================================================================= */

:root{
  /* 排版阶梯：拉开字号差距，建立清晰张力 */
  --fs-display: clamp(44px, 5.2vw, 76px);
  --fs-h1: clamp(34px, 4vw, 52px);
  --fs-h2: clamp(28px, 3vw, 42px);
  --fs-h3: 19px;
  /* 间距节奏 */
  --section-y: 112px;
  --section-y-tint: 112px;
}

/* -------------------------------------------------------------------------
   1. 排版：标题更紧、更重、更有层级
   ------------------------------------------------------------------------- */
.hero-copy{ max-width: 860px !important; }
.h1-nobr{ white-space: nowrap; }
.hero h1{
  font-size: var(--fs-display) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
  margin-top: 22px !important;
  max-width: 15ch !important;
}
.hero-sub{ font-size: clamp(18px,2vw,23px) !important; font-weight: 500 !important; letter-spacing: .02em; margin-top: 22px !important; }
.hero-desc{ font-size: 16px !important; line-height: 1.9 !important; max-width: 600px !important; }

.section-title,
.subhero h1,
.business-doc h2{
  letter-spacing: -.02em !important;
  line-height: 1.22 !important;
}
.section-title{ font-size: var(--fs-h2) !important; font-weight: 800 !important; }
.section-label{ letter-spacing: .14em !important; font-size: 12px !important; font-weight: 700 !important; }
.section-intro{ font-size: 16px !important; max-width: 720px !important; }

/* -------------------------------------------------------------------------
   2. 呼吸感：section 上下留白加大，节奏更从容
   ------------------------------------------------------------------------- */
.page-section{ padding: var(--section-y) 0 !important; }
.page-section.tint{ padding: var(--section-y-tint) 0 !important; }
.highlights{ padding: 8px 0 4px !important; }

/* -------------------------------------------------------------------------
   3. CTA 层级：主按钮强化、次按钮降级为文字链，全站一致
   ------------------------------------------------------------------------- */
.btn-accent{
  background: var(--cyan) !important;
  color: #062033 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(25,168,211,.28) !important;
  letter-spacing: .01em;
}
.btn-accent:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(25,168,211,.38) !important; }
.btn-ghost{ color: #dbe8f6 !important; border-color: rgba(255,255,255,.28) !important; }
.btn-ghost:hover{ color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
/* Hero 主 CTA 更大 */
.hero-actions .btn-accent{ padding: 15px 30px !important; font-size: 16px !important; }

/* 卡片内重复 CTA：默认收敛为低调链接，hover 整卡时才高亮 —— 降低全站 CTA 噪音 */
.tile .tile-more,
.insight-card .read-more,
.cap ul{ opacity: 1; color: var(--muted); transition: opacity .25s ease, transform .25s ease; }
.tile:hover .tile-more,
.insight-card:hover .read-more{ opacity: 1; transform: translateX(2px); }

/* 整卡可点：箭头浮于右上角，hover 才显现，替代每张卡重复的“查看xxx”文案 */
.tile, .insight-card{ position: relative; }
.tile::after,
.insight-card::after{
  content: "";
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0; transform: translate(-4px,4px) scale(.85);
  transition: opacity .28s ease, transform .28s ease;
}
.tile:hover::after,
.insight-card:hover::after{ opacity: 1; transform: translate(0,0) scale(1); }

/* -------------------------------------------------------------------------
   4. 灵动：卡片悬浮、入场错落、品牌墙律动
   ------------------------------------------------------------------------- */
.tile, .insight-card, .cap, .highlight-card, .standard, .kit-card{
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, border-color .32s ease !important;
}
.tile:hover, .insight-card:hover, .kit-card:hover{
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 44px rgba(9,32,89,.11) !important;
  border-color: rgba(25,168,211,.45) !important;
}

/* 品牌 logo 墙：hover 时去灰恢复原色，形成呼吸律动 */
.brand-tile .brand-logo-box img{ transition: filter .3s ease, transform .3s ease; }
.brand-tile:hover .brand-logo-box img{ transform: scale(1.06); }

/* 网格卡片入场轻微错落：仅前 8 个，营造节奏而不拖沓 */
.tile-grid > .reveal:nth-child(1){ transition-delay: 0s; }
.tile-grid > .reveal:nth-child(2){ transition-delay: .05s; }
.tile-grid > .reveal:nth-child(3){ transition-delay: .1s; }
.tile-grid > .reveal:nth-child(4){ transition-delay: .15s; }
.tile-grid > .reveal:nth-child(5){ transition-delay: .2s; }
.tile-grid > .reveal:nth-child(6){ transition-delay: .25s; }
.tile-grid > .reveal:nth-child(7){ transition-delay: .3s; }
.tile-grid > .reveal:nth-child(8){ transition-delay: .35s; }
@media (prefers-reduced-motion: reduce){ .tile-grid > .reveal{ transition-delay: 0s !important; } }

/* -------------------------------------------------------------------------
   5. 简繁得当：应用与服务的紧凑条目模式（配合生成器结构）
   ------------------------------------------------------------------------- */
/* 错落 Bento：第一块强调块更大更暗，其余紧凑 */
.bento-grid .tile:first-child{ background: var(--navy-900) !important; border-color: var(--navy-900) !important; }
.bento-grid .tile:first-child h3{ color: #fff !important; }
.bento-grid .tile:first-child p{ color: #b9cbe4 !important; }
.bento-grid .tile:first-child .tile-ico{ color: var(--cyan) !important; }
.bento-grid .tile:first-child::after{ background-color: var(--cyan) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23062033' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") !important; }

/* 服务紧凑列表：编号 + 标题同行，减_height，去重复 CTA */
.svc-list{ display: grid; grid-template-columns: repeat(2,1fr); gap: 0 40px; }
.svc-item{
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, color .25s ease;
}
.svc-item:hover{ padding-left: 12px; }
.svc-item .svc-no{ font-family: var(--font-en); font-size: 12px; font-weight: 800; color: var(--cyan); letter-spacing: .06em; flex: none; width: 34px; }
.svc-item h3{ font-size: 18px !important; margin: 0 0 4px !important; color: var(--navy-900); }
.svc-item p{ font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.svc-item .svc-arrow{ margin-left: auto; color: var(--cyan); opacity: 0; transition: opacity .25s ease; flex: none; }
.svc-item:hover .svc-arrow{ opacity: 1; }
.svc-item .svc-arrow .ico{ width: 16px; height: 16px; }

/* 标准维度：从 9 宫格改为紧凑三栏清单，弱化卡片感 */
.standard-grid{ gap: 0 32px !important; }
.standard{ border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: transparent !important; padding: 16px 0 !important; box-shadow: none !important; }

/* 筛选栏：单行横向滚动，消除两行断裂的凌乱感 */
.filter-bar{
  flex-wrap: nowrap !important;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg,#000 92%,transparent 100%);
  mask-image: linear-gradient(90deg,#000 92%,transparent 100%);
}
.filter-bar::-webkit-scrollbar{ display: none; }
.filter-btn{ flex: none !important; white-space: nowrap; padding: 7px 15px !important; font-size: 14px !important; }
.filter-bar .filter-count{ flex: none; position: sticky; right: 0; background: var(--card); padding-left: 10px; }

/* -------------------------------------------------------------------------
   6. 响应式收敛
   ------------------------------------------------------------------------- */
@media (max-width: 900px){
  :root{ --section-y: 76px; --section-y-tint: 76px; }
  .svc-list{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .hero h1{ letter-spacing: -.02em !important; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .tile::after, .insight-card::after{ opacity: .9; transform: none; }
}

/* 触控设备上把所有可点元素热区扩到 44px（WCAG 2.5.5） */
@media (hover: none){
  .cat-detail a, .cat-spec, .cat-filter, .app-filter, .chip,
  .filter-btn, .search-trigger, .menu-toggle, .copy-btn,
  .code-copy, .ia-toc a, .ia-filter button, .side-cta .btn{
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .cat-detail a{ padding: 10px 0; }
}
