:root {
  color-scheme: light dark;
  --bg: #f3ebdd;
  --surface: #fffaf2;
  --surface-subtle: #ebe1cf;
  --header-bg: rgba(243, 235, 221, 0.88);
  --ink: #252820;
  --ink-soft: #43473d;
  --muted: #606356;
  --line: #dfd4c1;
  --line-strong: #c9bca5;

  --photo: #e67b4e;
  --photo-ink: #a6461f;
  --photo-soft: rgba(230, 123, 78, 0.14);
  --photo-border: rgba(230, 123, 78, 0.36);

  --file: #0e7c66;
  --file-ink: #0b6654;
  --file-soft: rgba(14, 124, 102, 0.12);
  --file-border: rgba(14, 124, 102, 0.32);

  --shadow-card: 0 1px 2px rgba(37, 40, 32, 0.04), 0 12px 30px rgba(37, 40, 32, 0.06);
  --shadow-elevated: 0 2px 6px rgba(37, 40, 32, 0.05), 0 20px 44px rgba(37, 40, 32, 0.09);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161814;
    --surface: #20231d;
    --surface-subtle: #2a2e26;
    --header-bg: rgba(22, 24, 20, 0.88);
    --ink: #f3ede2;
    --ink-soft: #d2ccc0;
    --muted: #a6a194;
    --line: #32372d;
    --line-strong: #484f41;

    --photo: #e67b4e;
    --photo-ink: #f49b74;
    --photo-soft: rgba(230, 123, 78, 0.18);
    --photo-border: rgba(230, 123, 78, 0.42);

    --file: #0e7c66;
    --file-ink: #44c4a8;
    --file-soft: rgba(14, 124, 102, 0.22);
    --file-border: rgba(68, 196, 168, 0.38);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 30px rgba(0, 0, 0, 0.28);
    --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.32), 0 22px 48px rgba(0, 0, 0, 0.42);
  }
}

/* Bilingual visibility rules */
html[data-lang="en"] [data-l="zh"] {
  display: none !important;
}

html[data-lang="zh"] [data-l="en"] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--file-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  opacity: 0.82;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--file);
  outline-offset: 2px;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.015em;
  font-size: 18px;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 1;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: block;
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 560;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-subtle);
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 650;
}

/* Language Toggle */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

/* App Family Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.app-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-badge.photo {
  background: var(--photo-soft);
  border: 1px solid var(--photo-border);
  color: var(--photo-ink);
}

.app-badge.photo::before {
  background: var(--photo);
}

.app-badge.file {
  background: var(--file-soft);
  border: 1px solid var(--file-border);
  color: var(--file-ink);
}

.app-badge.file::before {
  background: var(--file);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow.accent-file {
  color: var(--file-ink);
}

.eyebrow.accent-photo {
  color: var(--photo-ink);
}

/* Typography */
h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

html[data-lang="zh"] h1 {
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.button:hover {
  opacity: 1;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.button.primary:hover {
  opacity: 0.92;
}

.button.emerald {
  background: var(--file);
  border-color: var(--file);
  color: #fffaf2;
}

.button.emerald:hover {
  opacity: 0.92;
}

/* Landing Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-elevated);
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--file-soft);
  color: var(--file-ink);
  font-weight: 680;
  font-size: 12px;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--file);
}

.meter-stack {
  display: grid;
  gap: 18px;
}

.meter-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.meter-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.meter-stat {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.meter-bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  overflow: hidden;
  margin-bottom: 8px;
}

.meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meter-bar.photo span {
  width: 72%;
  background: var(--photo);
}

.meter-bar.file span {
  width: 64%;
  background: var(--file);
}

.meter-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.hero-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
}

/* Sections & Grids */
.section {
  padding: 40px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.app-card.photo::before {
  background: var(--photo);
}

.app-card.file::before {
  background: var(--file);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-note {
  font-size: 12px;
  font-weight: 620;
  color: var(--muted);
}

.feature-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.feature-list li::marker {
  color: var(--muted);
}

.pillar-kicker {
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--file-ink);
  margin-bottom: 8px;
}

.pillar-kicker.photo {
  color: var(--photo-ink);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 660;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--ink-soft);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Sub-page Document Layout (Support, Privacy, Terms) */
.doc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.doc-header {
  margin-bottom: 28px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.updated-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
}

.summary-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--file);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.summary-callout.warm {
  border-left-color: var(--photo);
}

.summary-callout h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.info-pill {
  font-size: 13px;
  font-weight: 640;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--ink);
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
}

.doc-section + .doc-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

.doc-section h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.doc-section ul {
  margin: 10px 0 14px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.doc-section li + li {
  margin-top: 7px;
}

.app-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mini-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.mini-card .app-badge {
  margin-bottom: 10px;
}

.mini-card p {
  font-size: 14.5px;
}

.support-banner {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-group {
  margin-top: 28px;
}

.faq-group-title {
  font-size: 14px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
}

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  opacity: 1;
}

/* Responsive */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 0 36px;
  }

  .grid-2,
  .grid-3,
  .app-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-bar {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 10px;
  }

  .brand-sub {
    display: none;
  }

  .nav-right {
    display: contents;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    gap: 2px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13.5px;
  }

  .doc-wrap {
    padding: 32px 0 56px;
  }

  .doc-card {
    padding: 22px 18px;
  }

  .card {
    padding: 22px 20px;
  }

  .support-banner {
    padding: 22px 20px;
  }
}
