/* ============================================================
   design.css — 首页设计语言包 (deep-space / cold blue)
   把 index.html 的视觉原子带到所有内页：
   纯色深空背景 · 冷蓝光晕 + 点阵 · eyebrow 发光点 · 渐变标题
   发光按钮/链接 · 圆角发光卡片 · Windows 11 窗口容器
   依赖：site.css（变量 + 组件）、fonts（Outfit/Inter/DM Mono）
   加载顺序：site.css → design.css → chrome.css
   ============================================================ */

/* ---------- 1. 基础：纯色深空背景（首页是纯 #08090d，不是渐变） ---------- */
html { overflow-x: hidden; }
body {
  padding: 0;
  background: var(--ambient);
}

/* ---------- 2. 全站氛围层：冷蓝光晕 + 点阵纹理 ---------- */
main { position: relative; isolation: isolate; }
main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -300px;
  width: min(1100px, 130vw);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47,125,224,.20), rgba(47,125,224,.06) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
main::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 620px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 620px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- 3. eyebrow：等宽字 + 发光圆点 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- 4. 渐变标题（首页 hero 标志性的白→灰蓝渐变） ---------- */
.page-hero h1,
.hero-copy h1,
.archive-page h1 {
  background: linear-gradient(180deg, #ffffff 20%, #b9c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.035em;
}

/* ---------- 5. 发光按钮 ---------- */
.button {
  gap: 9px;
  border-radius: 11px;
  font-size: 15px;
  box-shadow: 0 8px 26px rgba(47,125,224,.28), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(47,125,224,.42), inset 0 1px 0 rgba(255,255,255,.28);
}
.button:active { transform: translateY(0); }
.button-secondary,
.button-light {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  border-color: var(--line-strong);
}
.button-secondary:hover,
.button-light:hover {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* ---------- 6. 发光圆角卡片（统一全站卡片视觉） ---------- */
.page-hero > div,
.about-statement,
.principle-list article,
.contact-primary,
.contact-secondary article,
.release,
.legal-index,
.legal-content,
.support-note,
.company-facts > div,
.feature-item,
.price-card,
.hero-metrics > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: 0 18px 44px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.page-hero > div:hover,
.about-statement:hover,
.principle-list article:hover,
.contact-primary:hover,
.contact-secondary article:hover,
.release:hover,
.feature-item:hover,
.hero-metrics > div:hover {
  transform: translateY(-4px);
  border-color: rgba(47,125,224,.45);
  box-shadow: 0 24px 54px rgba(0,0,0,.45), 0 0 0 1px rgba(47,125,224,.12), 0 0 40px rgba(47,125,224,.1);
}
.feature-item:nth-child(3),
.feature-item:nth-child(5) { background: linear-gradient(180deg, var(--surface-soft), var(--surface)); }

/* ---------- 7. 视觉焦点：价格卡 / 下载带 的顶部冷蓝辉光 ---------- */
.price-card { position: relative; overflow: hidden; }
.price-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(47,125,224,.22), transparent 70%);
  pointer-events: none;
}
.download-band {
  position: relative;
  overflow: hidden;
}
.download-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(47,125,224,.2), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

/* ---------- 8. product preview 区：Windows 11 窗口容器辉光 ---------- */
.preview-section img,
.hero-screenshot,
.hero-visual img,
.preview-main,
.preview-stack img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(47,125,224,.05), 0 0 60px rgba(47,125,224,.1);
}

/* ---------- 9. 分隔条 / 段落标题的精致化 ---------- */
.usage-strip,
.trust-strip {
  border-top: 1px solid var(--border, var(--line));
  border-bottom: 1px solid var(--border, var(--line));
  background: rgba(255,255,255,.015);
}

/* ---------- 11. Windows 11 窗口控件（与首页 device 同源） ---------- */
.device__ctrls { margin-left: auto; display: flex; align-self: stretch; }
.wc-btn { position: relative; width: 46px; display: grid; place-items: center; color: #c7ccd6; transition: background .15s, color .15s; }
.wc-btn:hover { background: rgba(255,255,255,.09); }
.wc-btn--close:hover { background: #e81123; color: #fff; }
.wc-btn--min::before { content: ""; width: 11px; height: 1px; background: currentColor; transform: translateY(3px); }
.wc-btn--max::before { content: ""; width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 1px; }
.wc-btn--close::before, .wc-btn--close::after { content: ""; position: absolute; width: 11px; height: 1px; background: currentColor; }
.wc-btn--close::before { transform: rotate(45deg); }
.wc-btn--close::after { transform: rotate(-45deg); }

/* 产品页窗口容器：升级为首页 device 的发光玻璃质感 */
.hero-product-frame {
  position: relative;
  border-color: var(--line-strong);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(47,125,224,.06), 0 0 90px rgba(47,125,224,.13);
}
.hero-product-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.2), rgba(255,255,255,0) 35%, rgba(47,125,224,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.window-titlebar { height: 42px; }
.window-control { display: none; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 640px) {
  main::before { top: -220px; height: 560px; }
  main::after { height: 560px; }
  .page-hero > div { padding: 28px; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .page-hero > div, .feature-item, .release { transition: none; }
}

/* Shared interior layout: the same quiet hierarchy as the home page. */
.page-hero {
  width: min(calc(100% - 40px), 1100px);
  padding: clamp(80px, 10vw, 130px) 0 clamp(56px, 7vw, 90px);
  text-align: center;
}
.page-hero > div {
  max-width: 900px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.page-hero > div:hover { transform: none; border-color: transparent; box-shadow: none; }
.page-hero h1 {
  max-width: 15em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.12;
}
.page-hero p:not(.eyebrow) { margin: 24px auto 0; color: var(--muted); line-height: 1.75; }
.about-layout { gap: 18px; align-items: stretch; }
.about-statement { align-self: stretch; padding: clamp(28px, 3.5vw, 44px); }
.about-statement h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.principle-list { padding: 0; gap: 18px; border: 0; background: none; }
.principle-list article { min-height: 0; padding: 28px; }
.principle-list h3 { margin-top: 20px; }
.principle-list p { font-size: 1rem; }
.company-facts { background: linear-gradient(160deg, var(--surface-soft), var(--surface)); }
.company-facts > div { border: 0; border-radius: 0; background: none; box-shadow: none; }
.contact-secondary { background: linear-gradient(180deg, var(--surface-soft), var(--surface)); }
.contact-secondary article { border: 0; border-radius: 0; background: none; box-shadow: none; }
.contact-secondary article:hover { transform: none; box-shadow: none; }
.instrument-hero h1, .product-hero h1, .article-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 20%, #b9c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.instrument-hero .eyebrow { padding: 0; min-height: 0; border: 0; background: none; }
.usage-panel, .plan-row, .blog-card, .related-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.blog-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 0; }
.blog-card { display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 54px rgba(0,0,0,.4); }
.blog-card:nth-child(3n), .blog-featured { background: linear-gradient(180deg, var(--surface-soft), var(--surface)); }
.blog-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; }
.blog-featured > div { padding: clamp(28px, 4vw, 48px); }
.blog-image { background: #0d111a; }
.blog-image img { padding: 0; aspect-ratio: 16 / 10; object-fit: cover; opacity: .9; }
.blog-featured .blog-image img { height: 100%; min-height: 280px; }
.blog-card > div { padding: 26px; }
.blog-card h2 { margin-top: 12px; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.35; }
.blog-featured h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.blog-card > div > p:not(.blog-category) { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.blog-category { color: var(--accent-dark); }
.blog-meta { font-size: .8rem; }
.article-page { padding-top: clamp(65px, 8vw, 110px); }
.article-hero .blog-category { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); color: var(--accent-dark); }
.article-hero .blog-category::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.article-content blockquote, .article-content .feature-card { background: linear-gradient(160deg, var(--surface-soft), var(--surface)); border-color: var(--line); }
.article-content .related-card { padding: 20px; text-decoration: none; }
.article-content .related-card h3 { margin-top: 10px; }
.article-content .related-card p { font-size: .95rem; }
@media (max-width: 900px) {
  .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body:has(.gc-actionbar) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .page-hero { padding: 72px 0 56px; }
  .page-hero > div { padding: 0; }
  .about-layout { gap: 18px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list article:first-child { grid-column: auto; }
  .company-facts { width: calc(100% - 40px); padding: 28px; gap: 22px; }
  .company-facts h2 { font-size: 1.7rem; }
  .blog-list { grid-template-columns: 1fr; }
  .blog-featured { display: flex; grid-column: auto; }
  .blog-featured .blog-image img { min-height: 0; }
  .blog-featured h2 { font-size: 1.5rem; }
  .article-page { width: calc(100% - 40px); padding-top: 64px; }
  .article-hero { width: 100%; }
  .article-hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .article-content .related-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card { transition: none; }
}

/* Keep the archive scannable when several stories share the same cover. */
.blog-card:not(.blog-featured) .blog-image { display: none; }
.blog-card:not(.blog-featured) > div { display: flex; flex-direction: column; flex: 1; min-height: 245px; }
.blog-card:not(.blog-featured) .blog-meta { margin-top: auto; padding-top: 22px; }
.blog-featured .blog-image { padding: 22px; display: grid; align-items: center; }
.blog-featured .blog-image img { height: auto; min-height: 0; border: 1px solid var(--line-strong); border-radius: 10px; object-fit: contain; box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.article-hero { display: block; width: min(760px, calc(100% - 178px - clamp(40px, 7vw, 88px))); max-width: none; margin: 0 max(0px, calc((100% - 1026px) / 2)) 0 auto; padding: 0 0 40px; }
.article-hero h1 { max-width: 18ch; margin: 0; }
.article-hero > p:not(.blog-category) { margin-top: 22px; }
.article-hero .blog-meta { margin-top: 26px; }
@media (max-width: 760px) {
  .article-hero { width: 100%; margin: 0; padding-bottom: 30px; }
  .blog-card:not(.blog-featured) > div { min-height: 0; }
}
@media (max-width: 640px) {
  .window-titlebar { padding-left: 12px; padding-right: 0; }
  .window-brand { min-width: 0; gap: 7px; font-size: .8rem; white-space: nowrap; }
  .window-brand img { width: 22px; height: 22px; }
  .device__ctrls .wc-btn { width: 34px; }
  .article-toc { scrollbar-color: var(--line-strong) transparent; }
}
body:has(.article-page) .article-hero {
  display: block;
  width: min(760px, calc(100% - 178px - clamp(40px, 7vw, 88px)));
  max-width: none;
  margin: 0 max(0px, calc((100% - 1026px) / 2)) 0 auto;
  padding: 0 0 40px;
}
@media (max-width: 760px) {
  body:has(.article-page) .article-hero { width: 100%; margin: 0; padding-bottom: 30px; }
}
