/**
 * Shadowrocket Japanese Wabi-Sabi Minimalist Theme (日式侘寂极简)
 * 米白底色 · 细线条火箭插画 · 竖排文字装饰 · 克制的配色
 */

:root {
  --bg-body: #f8f6f0;
  --bg-alt: #f1ede4;
  --bg-card: #ffffff;
  --bg-surface: #fdfcf9;
  --bg-dark: #1f1e1c;

  --text-main: #232220;
  --text-sub: #46433e;
  --text-dim: #757067;
  --text-muted: #9e978c;
  --text-inv: #f8f6f0;

  --border-line: #e4dfd5;
  --border-subtle: #ece7de;
  --border-focus: #232220;

  --seal-vermilion: #b53e32; /* 雅致朱印点缀 */
  --tea-accent: #8b7d6b;     /* 禅意茶色微调 */

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-wabi: 0 4px 20px rgba(35, 34, 32, 0.04);
  --shadow-float: 0 16px 40px -8px rgba(35, 34, 32, 0.08);

  --font-serif-jp: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --trans: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.75;
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 10px 18px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus {
  top: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* 日式竖排文字装饰 (Vertical Japanese Ornament) */
.vertical-ornament {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
  font-family: var(--font-serif-jp);
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.75;
  user-select: none;
  border-left: 1px solid var(--border-line);
  padding-left: 12px;
  line-height: 1.4;
}

/* 侘寂印章点缀 */
.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--seal-vermilion);
  color: var(--seal-vermilion);
  font-family: var(--font-serif-jp);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
  line-height: 1.1;
  font-weight: 700;
}

/* 按钮设计 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--trans);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-body);
  border-color: var(--text-main);
}
.btn-primary:hover {
  background: #3e3b37;
  border-color: #3e3b37;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 34, 32, 0.12);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-line);
}
.btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(35, 34, 32, 0.03);
}

/* 顶部徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 22px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal-vermilion);
}

/* 渐变标题微调：茶墨色过渡 */
.grad-text {
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

/* 顶部导航 site-header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}
.brand-icon-wabi {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  transition: var(--trans);
  letter-spacing: 0.3px;
}
.site-nav a:hover,
.site-nav a.is-on {
  color: var(--text-main);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-line);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-main);
  position: relative;
  transition: var(--trans);
}
.nav-toggle span::before {
  content: "";
  position: absolute;
  top: -5px;
}
.nav-toggle span::after {
  content: "";
  position: absolute;
  top: 5px;
}

.nav-toggle.open span {
  background: transparent;
}
.nav-toggle.open span::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 通用章节规范 */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border-line);
}
.section-alt {
  background-color: var(--bg-alt);
}

.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}
.sec-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}
.sec-head p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Hero 主视觉 (左文右图双栏) */
.hero-sec {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}

.hero-left h1 {
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-left .lead {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 34px;
}
.hero-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}
.hero-checklist-item svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-main);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-platforms-hint {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-platforms-hint svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 右侧客户端模拟窗口 (纯 CSS/SVG mock-window) */
.mock-window-wrap {
  position: relative;
}

.mock-window {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.mock-titlebar {
  background: #fdfcf9;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-traffic-lights {
  display: flex;
  gap: 6px;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  background: #ffffff;
}
.mock-win-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.mock-body {
  padding: 24px;
}

.mock-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 18px;
}

.mock-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mock-pill-active {
  background: var(--text-main);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.mock-ping {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.mock-chart {
  width: 100%;
  height: 56px;
  margin-top: 14px;
}

.mock-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.mock-node-item.active {
  border-color: var(--text-main);
  font-weight: 700;
}

/* 浮动数据卡片 */
.float-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-wabi);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.float-card-1 {
  top: -18px;
  right: -16px;
}
.float-card-2 {
  bottom: -18px;
  left: -16px;
}
.float-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}
.float-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* 平台入口带 platform-strip */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}
.platform-card:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-wabi);
}
.platform-card svg {
  width: 28px;
  height: 28px;
  fill: var(--text-main);
  margin-bottom: 16px;
}
.platform-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.platform-card .req {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.platform-card .ver {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-line);
}

/* 数据速览 stats-band */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

/* 六大能力 feature-grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 32px 26px;
  transition: var(--trans);
}
.feature-card:hover {
  border-color: var(--text-main);
  box-shadow: var(--shadow-wabi);
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
}
.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-main);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* 工作原理 tech-grid */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 36px 32px;
}
.tech-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}
.tech-item {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.tech-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.tech-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.tech-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* 用户评价 review-grid */
.review-score-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.score-big {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
}
.star-row {
  display: flex;
  gap: 3px;
  color: var(--text-main);
}
.star-row svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.avatar.a1 { background: #3c424a; }
.avatar.a2 { background: #4e564d; }
.avatar.a3 { background: #7a5e4b; }
.avatar.a4 { background: #5d536b; }

.user-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}
.user-info span {
  font-size: 12px;
  color: var(--text-dim);
}
.review-card p {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}
.review-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* 认证背书 trust-grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
}
.trust-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-main);
}
.trust-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.trust-card p {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* 对比表 cmp-table */
.cmp-table-wrap {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  background: var(--bg-card);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.cmp-table th,
.cmp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
}
.cmp-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-main);
}
.cmp-table th.hl,
.cmp-table td.hl {
  background: #f4f0e7;
  font-weight: 700;
  color: var(--text-main);
}
.cmp-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: right;
}

/* FAQ faq-list */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--trans);
}
.faq-item.open {
  border-color: var(--text-main);
}
.faq-item button {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}
.faq-item .ans {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}
.faq-item.open .ans {
  display: block;
}

/* CTA 横幅 cta-band (克制茶墨深色背景 + 大标题) */
.cta-sec {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 84px 0;
  text-align: center;
  position: relative;
}
.cta-sec h2 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: #ffffff;
}
.cta-sec p {
  font-size: 16px;
  color: #aba59c;
  max-width: 620px;
  margin: 0 auto 34px;
}
.cta-sec .btn-primary {
  background: #f8f6f0;
  color: #1f1e1c;
  border-color: #f8f6f0;
}
.cta-sec .btn-primary:hover {
  background: #eae5dc;
  border-color: #eae5dc;
}
.cta-sec .btn-secondary {
  background: transparent;
  color: #f8f6f0;
  border-color: #5c5750;
}
.cta-sec .btn-secondary:hover {
  border-color: #f8f6f0;
  background: rgba(255, 255, 255, 0.05);
}

/* 页脚 site-footer */
.site-footer {
  background: #f1ede4;
  border-top: 1px solid var(--border-line);
  padding: 68px 0 32px;
  font-size: 13.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.foot-grid h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}
.foot-grid a {
  display: block;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: var(--trans);
}
.foot-grid a:hover {
  color: var(--text-main);
}
.footer-seo {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.85;
}
.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .vertical-ornament { display: none; }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-line);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow-wabi);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-checklist { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .hero-left h1 { font-size: 32px; }
  .cta-sec h2 { font-size: 28px; }
}
