/* templatein9 | build: 2026-08-27T04:30:00Z | v5 */

:root {
  --ink: #1f2333;
  --ink-soft: #6b7280;
  --paper: #ffffff;
  --paper-tint: #f6f4ff;
  --line: #e4e1f5;
  --brand: #4c3ae3;
  --brand-deep: #3423b5;
  --brand-soft: #8b7cf6;
  --accent: #f5a623;
  --radius-card: 14px;
  --radius-tile: 4px;
  --radius-pill: 999px;
  --shadow-soft: 0 6px 20px rgba(31, 35, 51, 0.08);
  --shadow-lift: 0 14px 34px rgba(31, 35, 51, 0.14);
  --ease: all 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p:empty { display: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.96rem; transition: var(--ease); }
.nav-link:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
  transition: var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Intro / hero band ---------- */
.intro-band {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  padding: 72px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.intro-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}
.intro-desc {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 28px;
}
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: var(--ease);
}
.intro-cta:hover { transform: translateY(-2px); }
.intro-media { display: flex; justify-content: center; }
.intro-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
}

/* ---------- Showcase band ---------- */
.showcase-band { background: var(--paper); padding: 72px 0; }
.showcase-head { text-align: center; margin-bottom: 36px; }
.showcase-head h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; }
.showcase-head p { color: var(--ink-soft); margin: 0; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.showcase-tile {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--paper-tint);
  box-shadow: var(--shadow-soft);
}
.showcase-tile:first-child { grid-column: span 2; grid-row: span 2; }
.showcase-tile img { width: 100%; height: 100%; object-fit: cover; }
.showcase-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(31,35,51,0.72), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Stories / posts band ---------- */
.stories-band { background: var(--paper-tint); padding: 72px 0; }
.stories-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.stories-head h2 { font-size: 1.9rem; font-weight: 800; margin: 0; }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--ease);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.story-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--line); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.4; }
.story-excerpt { font-size: 0.9rem; color: var(--ink-soft); margin: 0; flex: 1; }
.story-date { font-size: 0.78rem; color: var(--brand); font-weight: 700; }

/* ---------- Read / article band ---------- */
.read-band { background: var(--paper); padding: 80px 0; }
.read-wrap {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.85;
}
.read-wrap > *:first-child { margin-top: 0; }
.read-wrap { counter-reset: read-section; }
.read-wrap h2 {
  counter-increment: read-section;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 56px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.read-wrap h2::before {
  content: counter(read-section, decimal-leading-zero);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
}
.read-wrap h3 { font-size: 1.4rem; font-weight: 700; margin: 34px 0 14px; scroll-margin-top: 90px; }
.heading-anchor {
  margin-left: 10px;
  font-size: 0.7em;
  font-weight: 400;
  color: var(--brand-soft);
  text-decoration: none;
  opacity: 0;
  transition: var(--ease);
}
.read-wrap h2:hover .heading-anchor,
.read-wrap h3:hover .heading-anchor,
.heading-anchor:focus { opacity: 1; }

/* Auto-generated table of contents (inserted by main.js when the article has 3+ h2 sections) */
.read-toc {
  margin: 8px 0 40px;
  padding: 24px 28px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.read-toc-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.read-toc-title span { text-transform: none; letter-spacing: normal; font-weight: 600; color: var(--ink-soft); }
.toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.toc-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.toc-list a:hover { color: var(--brand); text-decoration: underline; }
.read-wrap p { margin: 0 0 22px; color: var(--ink); }
.read-wrap p:first-of-type {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.7;
}
.read-wrap strong, .read-wrap b { color: var(--ink); font-weight: 800; }
.read-wrap a { color: var(--brand); font-weight: 600; text-decoration-color: var(--brand-soft); }
.read-wrap ul { list-style: none; margin: 0 0 22px; padding: 0; }
.read-wrap ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.read-wrap ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.read-wrap ol { margin: 0 0 22px; padding-left: 24px; }
.read-wrap ol li { margin-bottom: 12px; padding-left: 4px; }
.read-wrap blockquote {
  position: relative;
  margin: 34px 0;
  padding: 22px 28px 22px 60px;
  border-left: 4px solid var(--brand);
  background: var(--paper-tint);
  border-radius: 0 var(--radius-tile) var(--radius-tile) 0;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.read-wrap blockquote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 8px;
  font-style: normal;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--brand-soft);
}
.read-wrap blockquote p:last-child { margin-bottom: 0; }
.read-wrap hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.read-wrap table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}
.read-wrap th, .read-wrap td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.read-wrap th { background: var(--paper-tint); font-weight: 700; }
.read-wrap tr:nth-child(even) td { background: rgba(76, 58, 227, 0.02); }
.read-wrap figure { margin: 30px 0; }
.read-wrap figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
.read-wrap img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin: 10px 0;
}

/* ---------- Detail band (page-special) ---------- */
.detail-band {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  padding: 64px 0;
  text-align: center;
}
.detail-band h1 { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 0 0 30px; }
.app-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  max-width: 640px;
  margin: 0 auto 30px;
  overflow: hidden;
  text-align: left;
}
.app-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.app-card-item {
  padding: 16px 22px;
  background: var(--paper);
}
.app-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.app-card-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 17px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: var(--ease);
}
.detail-cta:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: #1a1730; color: rgba(255,255,255,0.82); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.55); text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--ease);
  z-index: 200;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; text-align: center; }
  .intro-desc { margin-left: auto; margin-right: auto; }
  .intro-media { order: -1; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .stories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    gap: 14px;
  }
  .intro-title { font-size: 2.1rem; }
  .intro-band, .showcase-band, .stories-band, .read-band { padding: 48px 0; }
  .showcase-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .showcase-tile:first-child { grid-column: span 1; grid-row: span 1; }
  .detail-band h1 { font-size: 1.8rem; }
  .app-card-grid { grid-template-columns: 1fr; }

  /* 手机端首屏必须能看到下载按钮：把 CTA 视觉顺序提前到标题之后、
     长描述/展示图（首页）与信息卡片（下载页）之前，仅调整顺序，不改结构 */
  .intro-grid { display: flex; flex-direction: column; align-items: center; }
  .intro-media { order: 3; margin-top: 28px; }
  .intro-image { max-width: 200px; }
  .intro-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .intro-badge { order: 1; }
  .intro-title { order: 2; width: 100%; }
  .intro-cta { order: 3; margin-bottom: 22px; }
  .intro-desc { order: 4; margin-bottom: 0; }

  .detail-band .container { display: flex; flex-direction: column; align-items: center; }
  .detail-band h1 { order: 1; width: 100%; }
  .detail-cta { order: 2; margin: 0 0 26px; }
  .app-card { order: 3; margin-bottom: 0; width: 100%; }
  .read-wrap { font-size: 1rem; }
  .read-wrap p:first-of-type { font-size: 1.1rem; }
  .read-wrap h2 { font-size: 1.5rem; }
  .read-wrap h3 { font-size: 1.2rem; }
  .read-toc { padding: 18px 20px; }
}
