/* PlainBytes Redactor — 官网（与内容规划一致：专业、克制、可信） */

:root {
  --bg: #141416;
  --bg-elevated: #1c1c20;
  --text: #f3f3f4;
  --text-muted: #a1a1aa;
  --accent: #9b2335;
  --accent-hover: #b32d42;
  --ms-store: #0078d4;
  --ms-store-hover: #106ebe;
  --stroke: rgba(255, 255, 255, 0.08);
  --maxw: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: #e4e4e7;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-main a {
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
}

.nav-main a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-store {
  background: var(--ms-store);
  color: #fff;
}

.btn-store:hover {
  background: var(--ms-store-hover);
  color: #fff;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--stroke);
}

.hero--centered .hero-inner {
  text-align: center;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #e4e4e7;
}

.hero .lead {
  margin: 0 auto 24px;
  max-width: 50em;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
}

.hero-badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.12);
  color: #dbeafe;
  border: 1px solid rgba(0, 120, 212, 0.35);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.hero-video {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 9;
}

.hero-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--stroke);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
}

.section-intro {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 48em;
}

.section-title--center,
.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-everything .section-intro--center {
  margin-bottom: 16px;
}

.everything-split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr);
  gap: 32px 40px;
  align-items: start;
  margin-top: 8px;
}

.everything-visual {
  margin: 0;
  position: sticky;
  top: 88px;
}

.everything-visual__shell {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  min-height: 260px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.everything-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  max-width: 38rem;
}

.checklist--split {
  margin: 0;
  max-width: none;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 1.65em;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: left;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 0.85rem;
  color: #4ade80;
}

/* Trust tags */
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(155, 35, 53, 0.15);
  color: #e8e8ea;
  border: 1px solid rgba(155, 35, 53, 0.35);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pillar {
  padding: 22px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Highlights list */
.highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.highlights li {
  padding: 6px 0;
  padding-left: 1.2em;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.positioning-line {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Workflow grid */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.workflow-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.workflow-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.workflow-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Roadmap */
.roadmap-list {
  display: grid;
  gap: 16px;
}

.roadmap-item {
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.roadmap-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #fafafa;
}

.roadmap-item ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.important-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--stroke);
  margin-top: 0;
}

.footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.88rem;
}

.footer-inline a {
  color: var(--text-muted);
}

.footer-inline a:hover {
  color: var(--text);
}

.footer-inline-sep {
  color: var(--text-muted);
  user-select: none;
}

.copyright {
  font-size: inherit;
  color: var(--text-muted);
  text-align: center;
}

/* Index: privacy + copyright on one line */
.site-footer > .container.footer-inline .copyright {
  padding: 0;
  border: none;
}

/* Subpages: copyright block only */
.site-footer > .container.copyright {
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

/* Subpages */
.page-hero {
  padding: 48px 0 32px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.page-body {
  padding-bottom: 48px;
  max-width: 720px;
}

.page-body p {
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.legal-effective {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-doc {
  padding-bottom: 48px;
}

.legal-doc > p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-doc > p {
  margin: 0 0 1rem;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.legal-doc h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e4e4e7;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-doc li {
  margin: 0.35em 0;
}

.legal-doc a {
  color: #93c5fd;
}

.legal-doc a:hover {
  color: #bfdbfe;
}

.legal-sep {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 2rem 0;
}

.legal-short {
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 3px solid rgba(0, 120, 212, 0.55);
  background: rgba(0, 120, 212, 0.08);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .everything-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .everything-visual {
    position: static;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nav-main {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
