/* 功能：宣传页区块层——功能矩阵 / AI 透明 / 安全 / CTA / 页脚 / 响应式与动效降级（语雀风） */
/* 作者：Thorleying */
/* 时间：2026-06-12 01:55 */

/* ── 通用区块头 ── */
.section-head {
  width: min(680px, 92%);
  margin: 0 auto clamp(40px, 6vh, 60px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-2); font-size: 15px; }

/* ── 滚动显形：JS 给 .reveal 加 .in ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out) calc(var(--d, 0) * 80ms),
    transform 0.8s var(--ease-out) calc(var(--d, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── 功能矩阵 ── */
.features { padding: clamp(60px, 9vh, 100px) 0; background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  width: min(1140px, 92%);
  margin: 0 auto;
}
.card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease,
    opacity 0.8s var(--ease-out) calc(var(--d, 0) * 80ms);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 35, 41, 0.26);
  box-shadow: 0 16px 36px -12px rgba(31, 35, 41, 0.16);
}
.card h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.card p { font-size: 14px; color: var(--text-2); line-height: 1.85; }

/* 图标徽底：浅绿圆角块 + 线描图标，悬停时重新描线 */
.card-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-bg);
  transition: background 0.3s ease, transform 0.35s var(--ease-out);
}
.card:hover .card-badge { background: var(--accent-bg-strong); transform: scale(1.06) rotate(-3deg); }
.card-badge svg { width: 28px; height: 28px; }
.card-badge svg * {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-badge svg .faint { stroke: rgba(31, 35, 41, 0.38); }
.card:hover .card-badge .draw {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: redraw 1s var(--ease-out) forwards;
}
@keyframes redraw { to { stroke-dashoffset: 0; } }

/* ── 产品窗口演示内的渐进显形 ── */
.p-h, .p-line, .p-table { opacity: 0; transform: translateY(10px); transition: all 0.7s var(--ease-out); }
.show { opacity: 1 !important; transform: translateY(0) !important; }

/* AI 痕迹底纹演示：金色底纹扫入 */
.ai-mark {
  background: linear-gradient(transparent 30%, rgba(199, 154, 59, 0.24) 30%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1.4s var(--ease-out) 0.2s;
}
.show .ai-mark { background-size: 100% 100%; }

/* 迷你表格演示：单元格编辑高亮闪烁 */
.p-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 16px; }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; }
.pt-row span { padding: 8px 14px; border-bottom: 1px solid var(--border); }
.pt-row span:first-child { border-right: 1px solid var(--border); }
.pt-row:last-child span { border-bottom: none; }
.pt-head { background: var(--bg-soft); font-weight: 600; }
.show .pt-edit { animation: cell-flash 2.4s ease 1.4s; }
@keyframes cell-flash {
  0%, 100% { background: transparent; }
  18%, 60% { background: var(--accent-bg-strong); box-shadow: inset 0 0 0 1.5px var(--accent); }
}

/* ── AI 透明 ── */
.authorship { padding: clamp(70px, 11vh, 120px) 0; }
.auth-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  width: min(1080px, 92%);
  margin: 0 auto;
}
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.auth-copy h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.auth-copy p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.auth-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--text-2); }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; }
.lg-human { background: var(--brand); }
.lg-ai { background: var(--gold); }
.lg-mix { background: var(--mix); }

.auth-demo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.auth-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 22px; background: var(--bg-soft); }
.seg { transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.seg-human { flex: 72; background: var(--brand); }
.seg-ai { flex: 19; background: var(--gold); transition-delay: 0.45s; }
.seg-mix { flex: 9; background: var(--mix); transition-delay: 0.8s; }
.reveal.in .seg { transform: scaleX(1); }
.auth-sample { font-size: 15px; line-height: 2.15; color: var(--text); }
.s-ai { background: linear-gradient(transparent 28%, rgba(199, 154, 59, 0.22) 28%); }
.s-mix { background: linear-gradient(transparent 28%, rgba(255, 125, 77, 0.2) 28%); }

/* ── 安全 ── */
.security { padding: clamp(60px, 9vh, 100px) 0; background: var(--bg-soft); }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: min(1140px, 92%);
  margin: 0 auto;
}
.sec-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease,
    opacity 0.8s var(--ease-out) calc(var(--d, 0) * 80ms);
}
.sec-item:hover { transform: translateY(-4px); border-color: rgba(31, 35, 41, 0.26); }
.sec-item b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sec-item b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: 1px; }
.sec-item p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

/* ── 下载 CTA ── */
.cta { padding: clamp(70px, 11vh, 130px) 0; }
.cta-card {
  width: min(800px, 92%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(44px, 6vw, 70px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(56% 70% at 50% 0%, var(--accent-bg) 0%, transparent 75%),
    #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
}
.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px -8px rgba(31, 35, 41, 0.3);
  transition: transform 0.4s var(--ease-out);
}
.cta-card:hover .cta-icon { transform: scale(1.06) rotate(-3deg); }
.cta-card h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 700; margin-bottom: 12px; }
.cta-card > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-bottom: 20px; }
.cta-note { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.12em; }

/* ── 实景截图画廊 ── */
.gallery { padding: 96px 24px; max-width: 1180px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 32px rgba(31, 35, 41, 0.06);
}
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 13px 16px; font-size: 13px; color: var(--text-2); }

/* ── 页脚 ── */
.footer {
  padding: 36px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.footer-sub { margin-top: 8px; color: var(--text-3); opacity: 0.8; }

/* ── 响应式 ── */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-divider, .mock-src { display: none; }
  .auth-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── 动效降级：尊重系统减弱动态设置 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-now { opacity: 1 !important; transform: none !important; }
  .p-h, .p-line, .p-table { opacity: 1; transform: none; }
  .seg { transform: scaleX(1); }
  .ai-mark { background-size: 100% 100%; }
}
