/* Ember Forge Theme - WPS Office Landing Site */
/* Base: warm stone white, Primary: forged iron, Accent: ember orange, Secondary: steel blue */

:root {
  --ef-base: #fafaf9;
  --ef-surface: #f4f4f5;
  --ef-surface2: #e4e4e7;
  --ef-ink: #18181b;
  --ef-ink2: #27272a;
  --ef-ember: #ea580c;
  --ef-ember-light: #fb923c;
  --ef-ember-dark: #c2410c;
  --ef-steel: #475569;
  --ef-steel-light: #64748b;
  --ef-stone: #78716c;
  --ef-white: #ffffff;
  --ef-border: #d4d4d8;
  --ef-ink-muted: #a1a1aa;
  --ef-green: #15803d;
  --ef-amber: #b45309;
  --ef-teal: #0d9488;
  --ef-violet: #7c3aed;
  --ef-sky: #0284c7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ef-ink2);
  background: var(--ef-base);
  line-height: 1.6;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Navigation */
.ef-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ef-border);
  z-index: 1000;
}

.ef-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ef-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ef-ink);
  text-decoration: none;
}

.ef-brand-mark {
  width: 32px; height: 32px;
  background: var(--ef-ember);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.ef-brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}

.ef-brand-sub {
  font-size: 10px; font-weight: 500; color: var(--ef-stone); letter-spacing: 0.5px;
}

.ef-links {
  display: flex; gap: 4px; align-items: center;
}

.ef-link {
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ef-steel);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.ef-link:hover { color: var(--ef-ink); background: var(--ef-surface2); }

.ef-link.on {
  background: var(--ef-ember);
  color: #fff;
}

.ef-cta {
  display: flex; gap: 8px; align-items: center;
}

.ef-burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--ef-border);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.ef-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ef-ink2);
  border-radius: 1px;
  transition: 0.3s;
}

.ef-mob {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: rgba(250,250,249,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ef-border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
}

.ef-mob.show { display: flex; }

.ef-mob .ef-link { padding: 10px 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-ember { background: var(--ef-ember); color: #fff; }

.btn-ember:hover { background: var(--ef-ember-dark); }

.btn-steel { background: var(--ef-steel); color: #fff; }

.btn-outline { background: transparent; color: var(--ef-ink2); border: 1.5px solid var(--ef-border); }

.btn-outline:hover { border-color: var(--ef-steel); }

.btn-outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }

.btn-outline-w:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.btn-white { background: #fff; color: var(--ef-ink); }

.btn-ghost { background: transparent; color: var(--ef-steel); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sec { padding: 80px 0; }

.sec-surface { background: var(--ef-surface); }

.sec-ink { background: var(--ef-ink); color: #e4e4e7; }

.sec-ink2 { background: var(--ef-ink2); color: #e4e4e7; }

/* Section header */
.sec-hd { text-align: center; margin-bottom: 56px; }

.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}

.ey-ember { color: var(--ef-ember); }

.ey-steel { color: var(--ef-steel-light); }

.ey-white { color: #fb923c; }

.sec-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}

.d-ember { background: var(--ef-ember); }

.d-steel { background: var(--ef-steel-light); }

.d-white { background: #fb923c; }

.sec-title {
  font-size: 32px; font-weight: 800; color: var(--ef-ink);
  margin-bottom: 12px; line-height: 1.25;
}

.sec-title.light { color: #fff; }

.sec-sub { font-size: 17px; color: var(--ef-stone); max-width: 560px; margin: 0 auto; }

.sec-sub.light { color: var(--ef-ink-muted); }

.hl { color: var(--ef-ember); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--ef-ink) 0%, var(--ef-ink2) 50%, #3f3f46 100%);
  color: #fff;
  padding: 140px 0 100px;
}

.hero-inner { display: flex; align-items: center; gap: 60px; }

.hero-text { flex: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(234,88,12,0.15);
  color: var(--ef-ember-light);
  border: 1px solid rgba(234,88,12,0.3);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}

.hero-tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ef-ember); animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }

.hero-p { font-size: 18px; color: #a1a1aa; margin-bottom: 32px; max-width: 520px; }

.hero-btns { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #a1a1aa;
}

.hero-vis { flex: 1; max-width: 520px; }

.hw-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.hw-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hw-dots { display: flex; gap: 6px; }

.hw-dot { width: 10px; height: 10px; border-radius: 50%; }

.hw-dot.r { background: #ef4444; }

.hw-dot.y { background: #eab308; }

.hw-dot.g { background: #22c55e; }

.hw-topbar-title { font-size: 12px; color: #a1a1aa; margin-left: auto; }

.hw-body { padding: 18px; }

.hw-tabs { display: flex; gap: 8px; margin-bottom: 16px; }

.hw-tab {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  color: #a1a1aa; background: transparent; border: 1px solid transparent;
}

.hw-tab.on { background: rgba(234,88,12,0.15); color: var(--ef-ember-light); border-color: rgba(234,88,12,0.3); }

.hw-cards { display: flex; gap: 10px; margin-bottom: 20px; }

.hw-card {
  flex: 1; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 14px;
  text-align: center;
}

.hw-card-label { font-size: 11px; color: #a1a1aa; margin-bottom: 4px; }

.hw-card-val { font-size: 18px; font-weight: 700; }

.cv-ember { color: var(--ef-ember-light); }

.cv-amber { color: #fbbf24; }

.cv-teal { color: #2dd4bf; }

.cv-sky { color: #38bdf8; }

.hw-chart-title { font-size: 12px; color: #a1a1aa; margin-bottom: 12px; }

.hw-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.hw-bar-label { font-size: 11px; color: #a1a1aa; width: 50px; }

.hw-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }

.hw-bar-fill { height: 100%; border-radius: 3px; }

.bf-ember { background: var(--ef-ember); }

.bf-amber { background: #fbbf24; }

.bf-teal { background: #14b8a6; }

.bf-sky { background: #38bdf8; }

.hw-bar-val { font-size: 11px; color: #d4d4d8; width: 28px; text-align: right; }

/* Stats band */
.stats-band { background: var(--ef-ink2); padding: 40px 0; }

.stats-row { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 24px; }

.stat-item { flex: 1; min-width: 140px; }

.stat-num { font-size: 28px; font-weight: 800; margin-bottom: 4px; }

.sn-ember { color: var(--ef-ember-light); }

.sn-amber { color: #fbbf24; }

.sn-sky { color: #38bdf8; }

.sn-teal { color: #2dd4bf; }

.sn-white { color: #fff; }

.stat-lbl { font-size: 13px; color: var(--ef-ink-muted); }

/* Feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feat-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.feat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 14px 14px 0 0;
}

.fc-ember::before { background: var(--ef-ember); }

.fc-amber::before { background: #f59e0b; }

.fc-teal::before { background: #0d9488; }

.fc-violet::before { background: #7c3aed; }

.fc-sky::before { background: #0284c7; }

.fc-steel::before { background: #64748b; }

.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.fi-ember { background: rgba(234,88,12,0.1); color: var(--ef-ember); }

.fi-amber { background: rgba(245,158,11,0.1); color: #d97706; }

.fi-teal { background: rgba(13,148,136,0.1); color: #0f766e; }

.fi-violet { background: rgba(124,58,237,0.1); color: #6d28d9; }

.fi-sky { background: rgba(2,132,199,0.1); color: #0369a1; }

.fi-steel { background: rgba(100,116,139,0.1); color: #475569; }

.feat-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.feat-desc { font-size: 14px; color: var(--ef-stone); line-height: 1.6; }

/* Deep rows */
.deep-row {
  display: flex; align-items: center; gap: 48px;
  margin-top: 64px;
}

.deep-row.flip { flex-direction: row-reverse; }

.deep-info { flex: 1; }

.deep-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}

.dl-ember { color: var(--ef-ember); }

.dl-amber { color: var(--ef-amber); }

.dl-teal { color: var(--ef-teal); }

.dl-steel { color: var(--ef-steel); }

.deep-label-dot { width: 6px; height: 6px; border-radius: 50%; }

.deep-h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }

.deep-p { font-size: 15px; color: var(--ef-stone); margin-bottom: 18px; line-height: 1.7; }

.deep-list { list-style: none; }

.deep-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; font-size: 14px; color: var(--ef-steel);
}

.deep-list-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }

.d-ember { background: var(--ef-ember); }

.d-amber { background: var(--ef-amber); }

.d-teal { background: var(--ef-teal); }

.deep-vis { flex: 1; max-width: 480px; }

.dv-title { font-size: 13px; font-weight: 600; color: var(--ef-stone); margin-bottom: 14px; }

.dv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.dv-bar-lbl { font-size: 12px; color: var(--ef-stone); width: 60px; }

.dv-bar-track { flex: 1; height: 8px; background: var(--ef-surface2); border-radius: 4px; overflow: hidden; }

.dv-bar-fill { height: 100%; border-radius: 4px; }

.dbf-ember { background: var(--ef-ember); }

.dbf-amber { background: var(--ef-amber); }

.dbf-teal { background: var(--ef-teal); }

.dbf-steel { background: var(--ef-steel); }

.dv-bar-val { font-size: 12px; color: var(--ef-steel); width: 32px; text-align: right; }

.dv-stats { display: flex; gap: 16px; margin-top: 20px; }

.dv-stat { flex: 1; }

.dv-stat-num { font-size: 22px; font-weight: 800; }

.cs-ember { color: var(--ef-ember); }

.cs-amber { color: var(--ef-amber); }

.cs-teal { color: var(--ef-teal); }

.dv-stat-lbl { font-size: 12px; color: var(--ef-stone); }

/* Platform cards */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.plat-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.plat-card.featured { border-color: var(--ef-ember); }

.plat-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--ef-ember); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}

.plat-icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--ef-steel); }

.pi-win { color: var(--ef-ember); }

.pi-mac { color: var(--ef-steel); }

.pi-ios { color: var(--ef-steel); }

.pi-and { color: var(--ef-steel); }

.plat-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }

.plat-ver { font-size: 12px; color: var(--ef-stone); margin-bottom: 4px; }

.plat-req { font-size: 12px; color: var(--ef-ink-muted); margin-bottom: 16px; }

.plat-btn { width: 100%; }

/* Reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.rev-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  padding: 28px;
}

.rev-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }

.rev-text { font-size: 15px; color: var(--ef-steel); line-height: 1.7; margin-bottom: 20px; }

.rev-footer { display: flex; align-items: center; gap: 12px; }

.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;
}

.av-ember { background: linear-gradient(135deg, var(--ef-ember), #f97316); }

.av-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.av-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }

.av-steel { background: linear-gradient(135deg, #64748b, #475569); }

.av-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.av-sky { background: linear-gradient(135deg, #38bdf8, #0284c7); }

.rev-name { font-size: 14px; font-weight: 700; }

.rev-role { font-size: 12px; color: var(--ef-ink-muted); }

/* Security */
.sec-items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }

.sec-item-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.sec-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.sii-ember { background: rgba(234,88,12,0.1); color: var(--ef-ember); }

.sii-amber { background: rgba(245,158,11,0.1); color: #d97706; }

.sii-teal { background: rgba(13,148,136,0.1); color: #0f766e; }

.sii-steel { background: rgba(100,116,139,0.1); color: #475569; }

.sec-item-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.sec-item-desc { font-size: 13px; color: var(--ef-stone); line-height: 1.6; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.cmp-table th {
  background: var(--ef-surface2); padding: 14px 16px; text-align: left; font-weight: 700;
  border-bottom: 2px solid var(--ef-border);
}

.cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--ef-border); }

.cmp-table tr:nth-child(even) { background: var(--ef-surface); }

.cmp-hl { color: var(--ef-ember); font-weight: 700; }

.yes { color: var(--ef-green); font-weight: 600; }

.no { color: #ef4444; }

.part { color: var(--ef-amber); }

/* Versions */
.ver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.ver-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}

.ver-card.popular { border-color: var(--ef-ember); box-shadow: 0 4px 20px rgba(234,88,12,0.08); }

.ver-pop-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--ef-ember); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 16px;
  border-radius: 0 0 10px 10px;
}

.ver-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }

.ver-desc { font-size: 13px; color: var(--ef-stone); margin-bottom: 16px; }

.ver-price { margin-bottom: 20px; }

.ver-price-main { font-size: 36px; font-weight: 900; }

.ver-price-main.coral { color: var(--ef-ember); }

.ver-price-cy { font-size: 16px; font-weight: 500; color: var(--ef-stone); }

.ver-price-period { font-size: 13px; color: var(--ef-ink-muted); }

.ver-price-note { font-size: 12px; color: var(--ef-ink-muted); margin-top: 4px; }

.ver-sep { height: 1px; background: var(--ef-border); margin: 16px 0; }

.ver-list { list-style: none; margin-bottom: 24px; }

.ver-list li {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px; font-size: 14px; color: var(--ef-steel);
}

.ver-check { color: var(--ef-green); font-weight: 700; flex-shrink: 0; }

.ver-cta { width: 100%; }

/* FAQ */
.faq-list { list-style: none; max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600; font-size: 15px;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--ef-surface); }

.faq-chevron { width: 20px; height: 20px; color: var(--ef-stone); transition: transform 0.3s; flex-shrink: 0; }

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-item.open .faq-a { max-height: 500px; }

.faq-a-inner { padding: 0 22px 18px; font-size: 14px; color: var(--ef-stone); line-height: 1.7; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--ef-ink) 0%, var(--ef-ink2) 100%);
  padding: 80px 0;
  color: #fff;
}

.cta-inner { text-align: center; }

.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ef-ember-light);
  margin-bottom: 16px; letter-spacing: 1px;
}

.cta-h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }

.cta-p { font-size: 17px; color: #a1a1aa; margin-bottom: 28px; }

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ef-ink); color: #a1a1aa; padding: 48px 0 32px; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #e4e4e7; font-size: 18px; }

.footer-brand-mark {
  width: 28px; height: 28px; background: var(--ef-ember);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}

.footer-right { text-align: right; }

.footer-security { font-size: 12px; color: #71717a; margin-bottom: 6px; }

.footer-note { font-size: 12px; color: #52525b; }

/* Download page */
.dl-hero { background: linear-gradient(135deg, var(--ef-ink) 0%, var(--ef-ink2) 100%); padding: 140px 0 80px; color: #fff; }

.dl-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(234,88,12,0.15); border: 1px solid rgba(234,88,12,0.3);
  color: var(--ef-ember-light); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}

.dl-hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ef-ember); }

.dl-hero-h1 { font-size: 40px; font-weight: 900; margin-bottom: 12px; }

.dl-hero-p { font-size: 17px; color: #a1a1aa; margin-bottom: 28px; }

.dl-main-wrap { max-width: 640px; margin: 0 auto 48px; }

.dl-main-card {
  background: var(--ef-white); border-radius: 16px;
  border: 1px solid var(--ef-border); overflow: hidden;
}

.dl-main-top { height: 4px; background: linear-gradient(90deg, var(--ef-ember), var(--ef-ember-light)); }

.dl-main-head { padding: 28px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ef-border); }

.dl-main-icon { width: 56px; height: 56px; background: var(--ef-surface); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--ef-ember); }

.dl-main-name { font-size: 20px; font-weight: 800; color: var(--ef-ink); }

.dl-main-meta { font-size: 13px; color: var(--ef-stone); }

.dl-main-body { padding: 24px 28px; }

.dl-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }

.dl-spec { text-align: center; }

.dl-spec-label { font-size: 11px; color: var(--ef-ink-muted); margin-bottom: 4px; }

.dl-spec-val { font-size: 14px; font-weight: 700; color: var(--ef-ink); }

.dl-sec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(21,128,61,0.08); color: var(--ef-green);
  padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-bottom: 20px;
}

.dl-main-btns { display: flex; gap: 10px; }

.dl-main-btns .btn { flex: 1; }

.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.op-card {
  background: var(--ef-white); border: 1px solid var(--ef-border);
  border-radius: 14px; padding: 24px;
}

.op-icon { width: 40px; height: 40px; color: var(--ef-steel); margin-bottom: 12px; }

.op-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }

.op-ver { font-size: 12px; color: var(--ef-stone); margin-bottom: 12px; }

.op-steps { list-style: none; margin-bottom: 16px; }

.op-steps li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ef-stone); margin-bottom: 8px;
}

.op-step-n {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ef-surface2); color: var(--ef-steel);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.op-btn { width: 100%; }

/* Guide */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.guide-col-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; margin-bottom: 24px;
}

.guide-col-dot { width: 10px; height: 10px; border-radius: 50%; }

.gcd-ember { background: var(--ef-ember); }

.gcd-steel { background: var(--ef-steel); }

.guide-steps { list-style: none; }

.gstep { display: flex; gap: 16px; margin-bottom: 24px; }

.gstep-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}

.gsn-ember { background: var(--ef-ember); }

.gsn-steel { background: var(--ef-steel); }

.gstep-body { flex: 1; }

.gstep-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.gstep-desc { font-size: 13px; color: var(--ef-stone); line-height: 1.6; }

/* Requirements */
.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.req-card {
  background: var(--ef-white); border: 1px solid var(--ef-border);
  border-radius: 14px; padding: 24px;
}

.req-icon { width: 40px; height: 40px; color: var(--ef-steel); margin-bottom: 12px; }

.req-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

.req-val { font-size: 13px; color: var(--ef-stone); line-height: 1.6; }

/* Version timeline */
.ver-list { max-width: 800px; margin: 0 auto; }

.ver-item { display: flex; gap: 20px; margin-bottom: 24px; }

.ver-dot-col { display: flex; flex-direction: column; align-items: center; }

.ver-dot { width: 14px; height: 14px; border-radius: 50%; }

.vd-ember { background: var(--ef-ember); }

.vd-amber { background: var(--ef-amber); }

.vd-teal { background: var(--ef-teal); }

.vd-steel { background: var(--ef-steel); }

.vd-violet { background: var(--ef-violet); }

.ver-line { width: 2px; flex: 1; background: var(--ef-border); margin-top: 6px; }

.ver-body { flex: 1; background: var(--ef-white); border: 1px solid var(--ef-border); border-radius: 12px; padding: 20px; }

.ver-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

.ver-num { font-size: 16px; font-weight: 800; }

.ver-tag {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}

.vt-stable { background: rgba(21,128,61,0.1); color: var(--ef-green); }

.vt-lts { background: rgba(2,132,199,0.1); color: var(--ef-sky); }

.vt-beta { background: rgba(234,88,12,0.1); color: var(--ef-ember); }

.ver-date { font-size: 12px; color: var(--ef-ink-muted); margin-left: auto; }

.ver-desc { font-size: 14px; color: var(--ef-stone); line-height: 1.7; }

/* Security banner */
.sec-banner {
  background: var(--ef-surface); border: 1px solid var(--ef-border);
  border-radius: 14px; padding: 28px; display: flex; align-items: flex-start; gap: 16px;
}

.sec-banner-icon { width: 48px; height: 48px; color: var(--ef-green); flex-shrink: 0; }

.sec-banner-text { flex: 1; }

.sec-banner-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.sec-banner-desc { font-size: 14px; color: var(--ef-stone); line-height: 1.7; }

/* zh-cn article page */
.art-hero { background: linear-gradient(135deg, var(--ef-ink) 0%, var(--ef-ink2) 100%); padding: 140px 0 80px; color: #fff; }

.art-hero-inner { text-align: center; }

.art-hero-crumb { font-size: 13px; color: #a1a1aa; margin-bottom: 16px; }

.art-hero-h1 { font-size: 38px; font-weight: 900; margin-bottom: 14px; }

.art-hero-sub { font-size: 17px; color: #a1a1aa; max-width: 600px; margin: 0 auto 28px; }

.kw-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }

.kw {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #d4d4d8; padding: 5px 12px; border-radius: 20px; font-size: 12px;
}

.art-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 60px; }

.art-body { font-size: 16px; line-height: 1.8; color: var(--ef-steel); }

.art-body h3 { font-size: 22px; font-weight: 800; color: var(--ef-ink); margin: 40px 0 16px; }

.art-body h4 { font-size: 18px; font-weight: 700; color: var(--ef-ink); margin: 28px 0 10px; }

.art-body p { margin-bottom: 16px; }

.art-body ul { margin-bottom: 16px; padding-left: 20px; }

.art-body li { margin-bottom: 8px; }

.inline-cta {
  background: var(--ef-surface); border: 1px solid var(--ef-border);
  border-radius: 12px; padding: 20px; margin: 24px 0;
  display: flex; align-items: center; gap: 16px;
}

.inline-cta-body { flex: 1; }

.inline-cta-title { font-size: 15px; font-weight: 700; color: var(--ef-ink); margin-bottom: 4px; }

.inline-cta-desc { font-size: 13px; color: var(--ef-stone); }

/* Sidebar */
.sidebar { position: sticky; top: 84px; height: fit-content; }

.sbox { background: var(--ef-white); border: 1px solid var(--ef-border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }

.sbox-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--ef-ink); }

.sdl-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--ef-border);
  text-decoration: none; color: var(--ef-ink2); font-size: 13px;
  margin-bottom: 8px; transition: background 0.2s;
}

.sdl-btn:hover { background: var(--ef-surface); }

.sdl-btn.primary { background: var(--ef-ember); color: #fff; border-color: var(--ef-ember); }

.sdl-btn.primary:hover { background: var(--ef-ember-dark); }

.sdl-btn-icon { width: 24px; height: 24px; flex-shrink: 0; }

.sdl-btn-info { display: flex; flex-direction: column; }

.sdl-btn-name { font-weight: 700; }

.sdl-btn-ver { font-size: 11px; color: var(--ef-stone); }

.stoc { list-style: none; }

.stoc li { margin-bottom: 8px; }

.stoc a { color: var(--ef-steel); text-decoration: none; font-size: 13px; }

.stoc a:hover { color: var(--ef-ember); }

.sstat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sstat-item { text-align: center; }

.sstat-num { font-size: 18px; font-weight: 800; color: var(--ef-ember); }

.sstat-lbl { font-size: 11px; color: var(--ef-stone); }

.side-security { font-size: 12px; color: var(--ef-stone); line-height: 1.6; }

/* Tips grid */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tip-card {
  background: var(--ef-white); border: 1px solid var(--ef-border);
  border-radius: 12px; padding: 20px;
}

.tip-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ef-ember); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-bottom: 10px;
}

.tip-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.tip-desc { font-size: 13px; color: var(--ef-stone); line-height: 1.6; }

/* Article comparison */
.art-cmp-wrap { overflow-x: auto; margin: 20px 0; }

.art-cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.art-cmp-table th { background: var(--ef-surface2); padding: 12px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--ef-border); }

.art-cmp-table td { padding: 10px 14px; border-bottom: 1px solid var(--ef-border); }

.art-cmp-table tr:nth-child(even) { background: var(--ef-surface); }

.art-cmp-hl { color: var(--ef-ember); font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-vis { max-width: 100%; width: 100%; }
  .deep-row, .deep-row.flip { flex-direction: column; gap: 32px; }
  .deep-vis { max-width: 100%; width: 100%; }
  .art-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .ef-links { display: none; }
  .ef-burger { display: flex; }
  .hero-h1 { font-size: 32px; }
  .feat-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .sec-items-grid { grid-template-columns: repeat(2, 1fr); }
  .ver-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-specs { grid-template-columns: repeat(2, 1fr); }
  .op-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 26px; }
  .cta-h2 { font-size: 28px; }
  .dl-hero-h1 { font-size: 28px; }
  .art-hero-h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .plat-grid { grid-template-columns: 1fr; }
  .sec-items-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .sec { padding: 56px 0; }
  .hero-badges { flex-direction: column; gap: 10px; }
  .stats-row { flex-direction: column; gap: 20px; }
  .dl-main-btns { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
}
