/* ========== 腕上日词官网公共样式 ========== */
:root {
  --primary: #d63b2f;
  --primary-dark: #b02e23;
  --primary-light: #fdf0ee;
  --text: #232323;
  --text-secondary: #666;
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #eaeaea;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(214, 59, 47, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(214, 59, 47, 0.35);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.95rem; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 18px; border-radius: 999px; font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--text); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { display: inline-block; text-align: center; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "日"; position: absolute; right: -60px; top: -80px;
  font-size: 26rem; font-weight: 900; color: var(--primary-light);
  z-index: 0; line-height: 1; user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1.2; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.82rem; font-weight: 600; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 { font-size: 3rem; line-height: 1.25; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 1.12rem; color: var(--text-secondary); max-width: 460px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 0.98rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(214, 59, 47, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(214, 59, 47, 0.35); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
  font-size: 0.8rem; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
}
.watch-frame {
  width: 240px; height: 240px; border-radius: 50%;
  background: #1a1a1a; padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 3px #333;
  position: relative;
}
.watch-frame::after {
  content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 34px; background: #2a2a2a; border-radius: 4px;
}
.watch-screen { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #000; }
.watch-screen img { width: 100%; height: 100%; object-fit: cover; }
.watch-caption { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-secondary); }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero::before { font-size: 14rem; right: -30px; top: -30px; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-kicker { color: var(--primary); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; margin-bottom: 10px; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); }
@media (max-width: 640px) { .section { padding: 56px 0; } .section-head h2 { font-size: 1.6rem; } }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #f3c7c2; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- 数据统计 ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 28px 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-num small { font-size: 1rem; font-weight: 600; }
.stat-label { margin-top: 6px; color: var(--text-secondary); font-size: 0.9rem; }
.stats-note { text-align: center; margin-top: 28px; color: var(--text-secondary); font-size: 0.92rem; }
.stats-note strong { color: var(--text); }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 截图展示 ---------- */
.shot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.shot-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.shot-watch { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 860px) { .shot-grid { grid-template-columns: 1fr; } }

/* ---------- 下载区 ---------- */
.download-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.download-card, .install-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px;
}
.download-card h3, .install-card h3 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.download-card h3 svg, .install-card h3 svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg); border: 1px dashed var(--border); border-radius: 10px;
  padding: 16px 18px; margin: 18px 0;
}
.file-meta { font-size: 0.88rem; color: var(--text-secondary); }
.file-meta .fname { color: var(--text); font-weight: 600; font-size: 0.95rem; display: block; word-break: break-all; }
.version-tag { display: inline-block; background: #e8f5e9; color: #2e7d32; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.install-card ol { padding-left: 22px; color: var(--text-secondary); font-size: 0.94rem; }
.install-card ol li { margin-bottom: 10px; }
.install-card code { background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 6px; font-size: 0.85em; }
.download-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-secondary); }
@media (max-width: 860px) { .download-wrap { grid-template-columns: 1fr; } }

/* ---------- 设备下载表 ---------- */
.device-section { margin-bottom: 28px; }
.device-section h4 {
  font-size: 1rem; margin-bottom: 14px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.device-section h4::before { content: ""; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.device-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.device-table thead th {
  text-align: left; padding: 12px 14px; background: var(--bg);
  color: var(--text-secondary); font-weight: 600; font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.device-table tbody td {
  padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.device-table tbody tr:last-child td { border-bottom: none; }
.device-table .device-name { font-weight: 600; color: var(--text); }
.device-table .version-tag-cell .version-tag { margin-left: 0; }
.device-table .dl-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-weight: 600; transition: gap 0.2s;
}
.device-table .dl-link:hover { gap: 8px; }
.device-table .status-ok { color: #2e7d32; font-size: 0.85rem; }
@media (max-width: 600px) {
  .device-table thead { display: none; }
  .device-table, .device-table tbody, .device-table tr, .device-table td { display: block; width: 100%; }
  .device-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .device-table td { border-bottom: none; padding: 6px 14px; }
  .device-table td::before {
    content: attr(data-label); font-size: 0.78rem; color: var(--text-secondary);
    display: block; margin-bottom: 2px; font-weight: 600;
  }
}

/* ---------- 介绍页 ---------- */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 14px; }
.page-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
@media (max-width: 640px) { .page-hero h1 { font-size: 1.9rem; } }

.prose-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 44px; margin-bottom: 28px;
}
.prose-card h2 { font-size: 1.4rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.prose-card h2::before { content: ""; width: 5px; height: 22px; background: var(--primary); border-radius: 3px; }
.prose-card h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose-card p, .prose-card li { color: var(--text-secondary); font-size: 0.97rem; }
.prose-card p { margin-bottom: 12px; }
.prose-card ul { padding-left: 22px; }
.prose-card ul li { margin-bottom: 8px; }
.prose-card strong { color: var(--text); }
@media (max-width: 640px) { .prose-card { padding: 28px 22px; } }

.word-card-demo {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0;
}
.wcd-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px 14px; text-align: center; }
.wcd-item .k { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; letter-spacing: 0.08em; }
.wcd-item .v { font-size: 0.95rem; color: var(--text); }
@media (max-width: 700px) { .word-card-demo { grid-template-columns: repeat(2, 1fr); } }

.roadmap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.roadmap-item {
  display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px;
}
.roadmap-item .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 8px; }
.roadmap-item h4 { font-size: 1rem; margin-bottom: 4px; }
.roadmap-item p { font-size: 0.88rem; margin: 0; }
@media (max-width: 700px) { .roadmap-list { grid-template-columns: 1fr; } }

/* ---------- 许可证 / 声明 ---------- */
.license-band {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 36px; display: flex; gap: 24px; align-items: flex-start;
}
.license-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.license-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.license-band h3 { font-size: 1.1rem; margin-bottom: 8px; }
.license-band p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 6px; }
.license-band .ok { color: #2e7d32; }
.license-band .no { color: var(--primary); }
@media (max-width: 640px) { .license-band { flex-direction: column; padding: 26px 22px; } }

/* ---------- 页脚 ---------- */
.footer { background: #1c1c1e; color: #a0a0a5; padding: 56px 0 32px; margin-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; margin-top: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom a { color: #a0a0a5; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 动效 ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
