/* Psylib — 感通产品站共用样式 */

:root {
  --ink: #1a1a18;
  --ink-soft: #4a4a46;
  --quiet: #86867e;
  --line: #e6e5df;
  --line-soft: #f0efea;
  --paper: #ffffff;
  --bg: #fafaf7;
  --wash: #f4f4ef;

  --accent: #2f6f5e;
  --accent-soft: #e8f2ee;
  --accent-line: #c5ddd4;

  --amber: #a86a20;
  --amber-soft: #fbf1e2;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 24, 0.04), 0 2px 8px rgba(26, 26, 24, 0.03);
  --shadow-md: 0 2px 4px rgba(26, 26, 24, 0.04), 0 8px 24px rgba(26, 26, 24, 0.06);
  --shadow-lg: 0 4px 8px rgba(26, 26, 24, 0.04), 0 16px 48px rgba(26, 26, 24, 0.08);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── 顶栏 ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--quiet);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }

@media (max-width: 760px) {
  .nav { display: none; }
  .brand-sub { display: none; }
}

/* ── 备案条 ── */
.notice-bar {
  background: var(--amber-soft);
  border-bottom: 1px solid #f0dfc4;
  padding: 9px 0;
  font-size: 12.5px;
  color: #7d4f12;
}
.notice-bar .wrap { display: flex; align-items: center; gap: 8px; }
.notice-bar strong { font-weight: 600; }
.notice-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #c9881f; flex-shrink: 0;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #275c4d; box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-sm); }

/* ── Hero ── */
.hero {
  padding: 84px 0 72px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .pill {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

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

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: contain;
}
.hero-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(26, 26, 24, 0.88);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  backdrop-filter: blur(8px);
}
.hero-tag b { font-weight: 600; }

@media (max-width: 940px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ── 区块 ── */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 44px; max-width: 660px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.24;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; }

/* ── 特性网格 ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  background: var(--paper);
  padding: 30px 26px;
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--ink-soft); line-height: 1.68; }

/* ── 产品卡片 ── */
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.product-visual {
  background: var(--wash);
  padding: 36px;
  display: grid;
  place-items: center;
  position: relative;
}
.product-visual img { width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: contain; }

.badge-new {
  position: absolute;
  top: 20px; left: 20px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-body { padding: 40px 42px; display: flex; flex-direction: column; }
.product-sku {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--quiet);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.product-body h3 { font-size: 27px; font-weight: 600; letter-spacing: -0.028em; margin-bottom: 6px; }
.product-tagline { font-size: 15px; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.product-body > p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 22px; }

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.spec-cell { background: var(--paper); padding: 13px 15px; }
.spec-cell dt { font-size: 11.5px; color: var(--quiet); margin-bottom: 3px; }
.spec-cell dd { font-size: 14px; font-weight: 500; font-family: var(--mono); }

.product-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .product-card { grid-template-columns: 1fr; }
  .product-body { padding: 30px 26px; }
  .product-visual { padding: 28px; }
}

/* ── 场景 / 价值 ── */
.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.scenario {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.scenario-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.scenario h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.scenario p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ── 规格表 ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  padding: 13px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table th {
  width: 30%;
  background: var(--wash);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.spec-table td { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

/* ── 图库 ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.gallery figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.gallery img { aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }
.gallery figcaption { font-size: 12.5px; color: var(--quiet); }

/* ── 图文交替 ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.split-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.split-body h2 { font-size: 27px; font-weight: 600; letter-spacing: -0.028em; margin-bottom: 14px; }
.split-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.78; margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.check-list li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.check-list svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

/* ── 指引卡 ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step { background: var(--paper); padding: 26px 24px; }
.step-n {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.66; }

/* ── CTA ── */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cta h2 { font-size: 27px; font-weight: 600; letter-spacing: -0.026em; margin-bottom: 12px; }
.cta p { font-size: 15px; color: rgba(255,255,255,0.68); line-height: 1.72; max-width: 42em; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #f0efea; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.22); color: #fff; }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,0.5); }

@media (max-width: 780px) {
  .cta { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ── 产品册卡片 ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.catalog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.catalog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent-line); }
.catalog-thumb {
  aspect-ratio: 4/3;
  background: var(--wash);
  display: grid;
  place-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.catalog-thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-info { padding: 20px 22px 22px; }
.catalog-info .cat {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.catalog-info h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.015em; }
.catalog-info p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }
.catalog-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 4px 10px;
  border-radius: 100px; font-size: 11.5px; font-weight: 500;
}
.status-live { background: var(--accent-soft); color: var(--accent); }
.status-soon { background: var(--wash); color: var(--quiet); }

/* ── 占位卡 ── */
.placeholder-card {
  background: var(--wash);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
}
.placeholder-card .ph-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--quiet);
  margin-bottom: 14px;
}
.placeholder-card h3 { font-size: 15px; font-weight: 500; color: var(--quiet); margin-bottom: 5px; }
.placeholder-card p { font-size: 13px; color: #a8a8a0; }

/* ── 页脚 ── */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13.5px; color: var(--quiet); line-height: 1.75; max-width: 30em; margin-top: 12px; }
.footer h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer li a, .footer li span { font-size: 13.5px; color: var(--quiet); }
.footer li a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--quiet);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
}

/* ── 进场动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
/* 未开放的按钮：不可点击，视觉上明确区别于可用按钮 */
.btn.is-pending {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════════
   首页单屏布局：Hero 铺满一屏，无滚动
   ══════════════════════════════════════════════ */

.hero-full {
  min-height: calc(100vh - 64px - 74px);
  display: flex;
  align-items: center;
  padding: 56px 0;
}
.hero-full .hero-inner { width: 100%; }
.hero-full .hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.hero-full .hero-lead { max-width: 32em; }

/* 顶部导航内的「联系我们」指向 #contact（Hero 底部），确保锚点有效 */
.hero-full { scroll-margin-top: 64px; }

@media (max-height: 760px) {
  .hero-full { min-height: 0; padding: 40px 0; }
  .hero-full .hero-visual { max-width: 380px; }
}
@media (max-width: 900px) {
  .hero-full { min-height: 0; padding: 44px 0; }
}

/* 首页页脚极简化，只留一行 */
body.home .footer { padding: 20px 0; }
body.home .footer-grid { display: none; }
