﻿/* ============ 基础变量 ============ */
:root {
  --bg: #f5f0e6;
  --bg-alt: #efe7d5;
  --paper: #faf6ec;
  --ink: #2c2418;
  --ink-soft: #5a4f3d;
  --ink-faint: #8a7d67;
  --red: #c0392b;
  --red-dark: #922b21;
  --green: #2d5a3d;
  --green-light: #4a7c59;
  --gold: #b8860b;
  --line: rgba(44, 36, 24, 0.12);
  --line-soft: rgba(44, 36, 24, 0.06);
  --shadow: 0 4px 24px rgba(44, 36, 24, 0.08);
  --shadow-hover: 0 8px 32px rgba(44, 36, 24, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
}

/* ============ 重置 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; }

/* ============ 布局 ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 头部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.brand-domain {
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-download {
  padding: 10px 24px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, transform 0.15s;
}
.nav-download:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ============ Hero ============ */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at top right, rgba(192, 57, 43, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(45, 90, 61, 0.05), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(192, 57, 43, 0.08);
  color: var(--red);
  font-size: 0.82rem;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 2px;
}
.hero-sub {
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 4px;
  margin-top: 12px;
}
.hero-desc {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
}
.stat-item span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Hero 手机展示 */
.hero-visual {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
}
.phone-mock {
  width: 220px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
  background: var(--paper);
}
.phone-mock.phone-offset {
  transform: translateY(30px);
}
.phone-screen {
  width: 100%;
  height: auto;
}

/* ============ 通用 Section ============ */
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 3px;
}
.section-title p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink-faint);
}

/* ============ 功能亮点 ============ */
.features {
  background: var(--paper);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
}
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============ 分类 ============ */
.categories {
  background: var(--bg);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--red);
  transition: height 0.3s;
}
.cat-card:hover::before {
  height: 100%;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cat-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
}
.cat-card h3 {
  font-size: 1.15rem;
  margin: 8px 0 6px;
  color: var(--ink);
  font-weight: 700;
}
.cat-card p {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ============ 阅读体验 ============ */
.reading-showcase {
  background: var(--bg-alt);
}
.reading-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.reading-visual {
  display: flex;
  justify-content: center;
}
.reading-img {
  width: 260px;
  border-radius: 28px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}
.reading-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 2px;
}
.reading-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.reading-list li:first-child {
  border-top: 1px solid var(--line);
}
.reading-list strong {
  color: var(--red);
  margin-right: 8px;
  font-weight: 600;
}

/* ============ 截图展示 ============ */
.screenshots {
  background: var(--bg);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.shot-item {
  text-align: center;
}
.shot-item img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.shot-item:hover img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.shot-item figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ============ 下载区 ============ */
.download {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.download h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}
.download p {
  margin-top: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.download-inner {
  max-width: 800px;
}
.download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.dl-card:not([hidden]) {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.dl-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.dl-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.dl-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #d4c9b5;
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #a89d8a;
}
.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #f5f0e6;
}
.footer-links a:not([hidden]) {
  display: block;
  font-size: 0.88rem;
  color: #a89d8a;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--red);
}

/* ============ 404 页面 ============ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.error-inner { max-width: 400px; }
.error-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.error-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1.15rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .phone-mock { width: 160px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-inner { grid-template-columns: 1fr; text-align: center; }
  .reading-list li { text-align: left; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .download-buttons { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  section { padding: 56px 0; }
  .section-title h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item strong { font-size: 1.2rem; }
  .hero-stats { gap: 24px; }
}
