/* Crimson Editorial Theme */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #be123c;
  --accent-light: #fff1f2;
  --accent-hover: #9f1239;
  --dark: #18181b;
  --dark-surface: #27272a;
  --success: #15803d;
  --warning: #d97706;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}

* { 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;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", "STSong", "SimSun", serif;
  line-height: 1.25;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Utilities */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo svg { flex-shrink: 0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover { color: var(--text); background: rgba(0,0,0,0.03); }

.nav-menu a.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover { background: var(--accent-hover); }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* Hero */
.hero {
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero-label::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 52px;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: var(--muted); background: rgba(0,0,0,0.02); }

.hero-stats {
  display: flex;
  gap: 0;
}

.stat-item {
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }

.stat-num {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label { font-size: 13px; color: var(--muted); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.doc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.doc-dot { width: 10px; height: 10px; border-radius: 50%; }

.doc-line {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
}

.doc-line.short { width: 70%; }

/* Sections */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}

.sec-num {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.sec-title { font-size: 36px; letter-spacing: -1px; }

.sec-desc {
  font-size: 17px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 640px;
}

/* Features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feat-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feat-item:hover {
  border-color: #d4d4d8;
  box-shadow: var(--shadow);
}

.feat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 20px;
}

.feat-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.feat-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Deep features */
.deep-features { margin-top: 72px; }

.deep-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.deep-item:first-child { border-top: none; padding-top: 0; }

.deep-item.flip .deep-media { order: 2; }
.deep-item.flip .deep-content { order: 1; }

.deep-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.deep-badge::before {
  content: "";
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.deep-title { font-size: 28px; margin-bottom: 16px; }

.deep-desc { color: var(--muted); margin-bottom: 20px; line-height: 1.8; }

.deep-list { list-style: none; }

.deep-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
}

.deep-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.deep-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

/* Platforms */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plat-item {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s;
}

.plat-item:hover { border-color: #d4d4d8; }

.plat-item.featured {
  border-color: var(--accent);
  position: relative;
}

.plat-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
}

.plat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--muted);
}

.plat-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.plat-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.plat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.plat-btn:hover { background: #ffe4e6; }

.plat-btn.primary {
  color: #fff;
  background: var(--accent);
}

.plat-btn.primary:hover { background: var(--accent-hover); }

/* Reviews */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rev-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
}

.rev-quote-icon {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--accent-light);
}

.rev-text {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}

.rev-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rev-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.rev-name { font-size: 14px; font-weight: 600; }
.rev-role { font-size: 13px; color: var(--muted); }

/* Security */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.sec-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.sec-icon {
  width: 40px; height: 40px;
  color: var(--success);
  margin-bottom: 14px;
}

.sec-item-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.sec-item-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Comparison table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp-table th,
.cmp-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cmp-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg);
}

.cmp-table td:first-child { font-weight: 600; }

.cmp-table tr:hover td { background: var(--bg); }

.cmp-hl { color: var(--accent); font-weight: 700; }

.yes { color: var(--success); font-weight: 700; }
.no { color: #a1a1aa; }

/* Versions */
.ver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ver-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
}

.ver-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.ver-tag {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
}

.ver-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ver-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.ver-price {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1;
}

.ver-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  font-family: system-ui, sans-serif;
}

.ver-list {
  list-style: none;
  margin-bottom: 28px;
}

.ver-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.ver-list li:last-child { border-bottom: none; }

.ver-list .icon { color: var(--success); flex-shrink: 0; }
.ver-list .cross { color: #d4d4d8; flex-shrink: 0; }

.ver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
}

.ver-btn:hover { border-color: var(--muted); }

.ver-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ver-btn.primary:hover { background: var(--accent-hover); }

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 24px;
}

.faq-a-inner {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-a-inner p + p { margin-top: 12px; }

/* Footer */
.site-footer {
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.site-footer p { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-item { grid-template-columns: 1fr; gap: 32px; }
  .deep-item.flip .deep-media { order: 0; }
  .deep-item.flip .deep-content { order: 0; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .ver-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 64px; }
  .hero-title { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-item { padding: 0; border-right: none; width: 48%; }
  .section { padding: 64px 0; }
  .sec-title { font-size: 28px; }
  .feat-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .cmp-table th,
  .cmp-table td { padding: 12px 14px; font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  box-shadow: var(--shadow);
}

.nav-mobile.show { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }
