/* LastWords official one-page site — aligned with client uni.scss / App.vue tokens */

:root {
  /* 冷色浅调：灰白基底略带蓝，与 App 冷灰主题一致 */
  /* 底层铺半透明银河图时，veil 与之叠加，勿过曝 */
  --bg-page: #f2f6fa;
  /* 全页背景柔化：当前未使用。若叠冷色 veil，可用例如
   * linear-gradient(180deg, rgba(248,250,253,0.04) 0%, rgba(242,246,250,0.03) 42%, rgba(236,242,249,0.06) 100%), url(...) */
  --bg-muted: #e5edf5;
  --bg-card: #fbfcfe;
  --bg-primary: var(--bg-card);
  --bg-secondary: var(--bg-muted);
  --text-primary: #2c2c2c;
  --text-secondary: #5a6570;
  --text-tertiary: #8b96a3;
  --accent: #4a90e2;
  --accent-hover: #3d7ccc;
  --brand: #4a6b8a;
  /* 顶栏等深色底上：--brand 提亮，仍偏灰蓝品牌色而非主按钮鲜蓝 */
  --brand-header-emphasis: #7aa3d9;
  /* 顶栏 Logo 旁 App 名：再提亮一档，与导航浅色字协调 */
  --brand-header-logo: #b8e4ff;
  --border: #cdd8e4;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1080px;
  --header-h: 64px;
  /* 首屏：偏亮白皮/雾蓝，叠在亮星云上仍可读 */
  --hero-slogan-cn: #fafcfe;
  --hero-slogan-sub: #d8e6f8;
  --hero-strap-text: #c8daf0;
  --hero-body-text: #e8f0fa;
  --hero-brand-name: #d4e6fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 与 body 一致，避免滚到页面尽头时出现异色条 */
  background-color: #0a1220;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    background-attachment: scroll !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  /* 仅铺银河图；若需冷色柔化，改为双层：先 linear-gradient(veil) 再 url(...) */
  background-color: transparent;
  background-image: url("../assets/page-bg-milky-way.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.brand {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* 条带区、页脚为浅色字：产品名保留斜体，字色随父级（避免默认定深品牌色） */
.section.alt .brand,
.site-footer .brand {
  color: inherit;
}

/* Hero：与全页同一底图；不加遮罩时背景最清晰，白字靠 text-shadow 压亮部 */
.hero-cosmic {
  position: relative;
  overflow: hidden;
  color: var(--hero-body-text);
}

.hero-cosmic .wrap {
  position: relative;
  z-index: 1;
}

/* 三语 Slogan：中文主行略轻、字距略开；英日对照与 client/locale 一致 */
.hero-slogan {
  margin-bottom: 1.25rem;
}

.hero-slogan h1.slogan-cn {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--hero-slogan-cn);
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 2px 52px rgba(0, 0, 0, 0.75),
    0 0 3px rgba(0, 0, 0, 0.92);
}

.hero-slogan .slogan-en,
.hero-slogan .slogan-ja {
  margin: 0.15rem 0 0;
  font-size: clamp(0.75rem, 1.65vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.55;
  color: var(--hero-slogan-sub);
  max-width: 36rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.72),
    0 1px 28px rgba(0, 0, 0, 0.65);
}

.hero-slogan .slogan-ja {
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

.hero-strap {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 40rem;
}

.hero-strap-line {
  margin: 0.15rem 0;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--hero-strap-text);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 1px 26px rgba(0, 0, 0, 0.58);
}

.hero-cosmic .hero-brand {
  color: var(--hero-brand-name);
}

.hero-cosmic .tagline {
  color: var(--hero-body-text);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.72),
    0 1px 30px rgba(0, 0, 0, 0.64);
}

.hero-cosmic .hero-lead {
  font-size: 0.98rem;
  line-height: 1.9;
  max-width: 40rem;
  font-weight: 400;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 1px 28px rgba(0, 0, 0, 0.62);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header：冷色蓝灰磨砂，较低不透明度以透出银河；导航字保持深色对比 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(118, 132, 152, 0.52) 0%,
    rgba(106, 122, 142, 0.48) 100%
  );
  backdrop-filter: saturate(112%) blur(14px);
  -webkit-backdrop-filter: saturate(112%) blur(14px);
  border-bottom: 1px solid rgba(150, 168, 192, 0.28);
  box-shadow: 0 2px 16px rgba(15, 28, 48, 0.1);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.logo-mark .brand {
  font-size: 1.125rem;
}

.site-header .logo-mark .brand {
  color: var(--brand-header-logo);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 0 22px rgba(150, 210, 255, 0.48);
}

.nav-anchors {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* 顶栏语言切换：EN / JP / CN，位于「品牌寓意」左侧 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.lang-sep {
  color: rgba(226, 235, 247, 0.45);
  font-size: 0.8125rem;
  user-select: none;
  pointer-events: none;
  padding: 0 1px;
}

.lang-btn {
  margin: 0;
  padding: 6px 5px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c8d8ec;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.is-active {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(140, 190, 255, 0.35);
}

.site-header .lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-anchors a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-header .nav-anchors > a:not(.nav-cta) {
  color: #e2ebf7;
  font-weight: 600;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(0, 0, 0, 0.35);
}

.site-header .nav-anchors > a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-anchors a:hover {
  color: var(--accent);
}

.nav-anchors a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header .nav-anchors a:focus-visible {
  outline-color: var(--accent);
}

@media (max-width: 640px) {
  .nav-anchors {
    gap: 10px;
  }

  .lang-switch {
    margin-right: 0;
  }

  .lang-btn {
    padding: 6px 3px;
    font-size: 0.75rem;
  }

  .lang-sep {
    font-size: 0.6875rem;
  }

  .nav-anchors a:not(.nav-cta) {
    display: none;
  }
}

.nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.35);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.site-header .nav-cta:focus-visible {
  outline: 2px solid rgba(26, 53, 85, 0.45);
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 64px;
}

.hero:not(.hero-cosmic) .tagline {
  color: var(--text-secondary);
}

.hero .tagline {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  max-width: 36em;
}

/* 首屏两段说明：段间距略紧，避免像「两个大段落」 */
.hero .tagline.hero-lead:not(:last-child) {
  margin-bottom: 0.75em;
}

.hero-cosmic .btn-primary {
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow:
    0 4px 24px rgba(74, 144, 226, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.hero-cosmic .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-cosmic .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-cosmic .btn:focus-visible {
  outline-color: #fff;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(74, 144, 226, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(10, 22, 44, 0.55);
  border-block: 1px solid rgba(90, 135, 190, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 条带区内标题与说明：浅色字 + 轻阴影（卡片仍为白底深字） */
.section.alt h2 {
  color: #f4f8fc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.section.alt .lead,
.section.alt .story-lead-soft {
  color: #dfeaf7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.section.alt .story-title-soft {
  color: #f6faff;
}

/* 品牌寓意区：主标题上方的副标，字号介于 pillar 标题与区块 h2 之间 */
.story-kicker {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  max-width: 40em;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: #e2edf8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

.section.alt .story-kicker .brand {
  color: var(--brand-header-emphasis);
  font-weight: 700;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(90, 130, 175, 0.38);
}

.section.alt .download-box h2 {
  color: #f4f8fc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.section.alt .download-box > p,
.section.alt .download-lead {
  color: #e2edf8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.32);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
}

.story-title-soft {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #2a3d52;
}

.story-lead-soft {
  line-height: 1.8;
  color: var(--text-secondary);
}

.section .lead {
  margin: 0 0 40px;
  color: var(--text-secondary);
  max-width: 40em;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 1px 3px rgba(45, 74, 110, 0.08),
    0 8px 24px rgba(10, 24, 48, 0.06);
}

.section.alt .pillar {
  background: var(--bg-card);
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3d5a72;
}

.pillar p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.download-lead {
  line-height: 1.75;
}

/* Showcase */
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.showcase-grid > .showcase-card:first-of-type {
  width: 100%;
  max-width: 420px;
}

.showcase-splashes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 720px;
}

@media (max-width: 768px) {
  .showcase-splashes {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-primary);
}

.showcase-card .label {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}

.showcase-card .visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 100%);
  padding: 32px;
}

.showcase-card.splash-card .visual {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  margin: 0 auto;
}

.showcase-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.placeholder-logo {
  font-size: 3rem;
  font-style: italic;
  color: var(--brand);
  opacity: 0.85;
}

.placeholder-splash-text {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Download */
.download-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.download-box > p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #000;
  color: #fff !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.store-btn:hover {
  opacity: 0.88;
  color: #fff !important;
}

.store-btn svg {
  flex-shrink: 0;
}

/* Footer：深色带 + 浅色字，避免与星点开在一起发虚 */
.site-footer {
  padding: 32px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: #b4c8e0;
  font-size: 0.875rem;
  background: rgba(6, 14, 30, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-footer > p {
  color: #c5d8ee;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-muted);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

