/* ============================================================
   UpscalePix — design system
   Light, clean, AdSense-friendly. Blue primary, teal accent.
   ============================================================ */

:root {
  --ink: #14212e;
  --ink-2: #3c4a59;
  --muted: #6b7a8c;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --line: #e3e9f0;
  --line-strong: #cfd8e2;
  --primary: #1476e5;
  --primary-2: #0d5fbe;
  --primary-soft: #e8f1fd;
  --accent: #0ea47c;
  --accent-soft: #e3f6f0;
  --danger: #d64545;
  --danger-soft: #fdeeee;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 46, 0.05), 0 1px 3px rgba(20, 33, 46, 0.06);
  --shadow-md: 0 6px 16px -6px rgba(20, 33, 46, 0.14), 0 2px 6px rgba(20, 33, 46, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(20, 33, 46, 0.22), 0 8px 16px -8px rgba(20, 33, 46, 0.1);
  --font-ui: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.015em; }

:focus-visible { outline: 3px solid rgba(20, 118, 229, 0.45); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(13, 95, 190, .35); }
.btn-primary:hover { background: var(--primary-2); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0b8c6a; text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; flex: 1; }
.main-nav a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { color: var(--ink); background: var(--paper); text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.main-nav a.fav-link { display: inline-flex; align-items: center; gap: 6px; }
.fav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; color: var(--ink-2); }
.mobile-nav {
  display: none; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 20px 16px; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.mobile-nav a:hover { background: var(--paper); text-decoration: none; }
.mobile-nav a.active { color: var(--primary); background: var(--primary-soft); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(20, 118, 229, 0.10), transparent 60%),
    radial-gradient(900px 380px at 90% 0%, rgba(14, 164, 124, 0.08), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 64px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; max-width: 780px; margin: 0 auto 14px; }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 26px; line-height: 1.6; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Tool card ---------- */
.tool-wrap { margin-top: -34px; padding-bottom: 10px; position: relative; z-index: 5; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 34px);
}
.tool-stage { min-height: 320px; }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-md);
  background: #fbfcfe; padding: 48px 24px; text-align: center; transition: border-color .15s ease, background .15s ease;
}
.dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--primary); }
.dropzone h3 { font-size: 20px; margin-bottom: 6px; }
.dropzone p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.sample-btn { margin-top: 18px; background: transparent; border: none; color: var(--primary); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.sample-btn:hover { background: var(--primary-soft); text-decoration: none; }
.dz-note { font-size: 12.5px !important; color: var(--muted) !important; margin-top: 16px !important; margin-bottom: 0 !important; }

/* settings */
.settings-panel { display: grid; gap: 22px; }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.setting-block { display: flex; flex-direction: column; gap: 8px; }
.setting-label { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  border: none; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
}
.seg button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.model-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.model-card {
  text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px; transition: border-color .12s ease, background .12s ease;
}
.model-card:hover { border-color: var(--primary); }
.model-card.active { border-color: var(--primary); background: var(--primary-soft); }
.model-card .mc-name { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.model-card .mc-desc { font-size: 12px; color: var(--muted); line-height: 1.45; display: block; }
.model-card .mc-badge { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 9px 36px 9px 14px; cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.range-info { font-size: 13px; color: var(--muted); }
.range-info b { color: var(--ink-2); }

.img-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.img-meta-line b { color: var(--ink-2); font-weight: 600; }
.run-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* progress */
.progress-panel { text-align: center; padding: 40px 16px; }
.progress-ring {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  border: 6px solid var(--line); border-top-color: var(--primary);
  animation: upscalepix-spin 1s linear infinite;
}
@keyframes upscalepix-spin { to { transform: rotate(360deg); } }
.progress-status { font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.progress-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.progress-track { max-width: 460px; margin: 0 auto 12px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), #3a8df0); border-radius: 999px; transition: width .25s ease; }
.progress-note { font-size: 12.5px; color: var(--muted); }
.progress-tip { font-size: 13px; color: var(--muted); max-width: 520px; margin: 14px auto 0; }

/* result */
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.result-title { font-size: 17px; font-weight: 700; margin-right: auto; }
.result-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.result-stats b { color: var(--ink-2); font-weight: 600; }
.cmp-wrap { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line); background: repeating-conic-gradient(#f1f4f8 0% 25%, #fff 0% 50%) 50% / 22px 22px; user-select: none; -webkit-user-select: none; touch-action: none; }
.cmp-wrap img { width: 100%; height: auto; display: block; pointer-events: none; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.cmp-after img { width: 100%; height: 100%; object-fit: fill; }
.cmp-wrap.scrollable { overflow: auto; max-height: 74vh; touch-action: auto; }
.cmp-wrap.scrollable img { width: auto; max-width: none; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(20,33,46,.18); cursor: ew-resize; touch-action: none; }
.cmp-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); border: 1px solid var(--line-strong);
}
.cmp-handle svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; color: var(--primary); pointer-events: none; }
.cmp-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.cmp-tag-before { left: 10px; background: rgba(20,33,46,.72); }
.cmp-tag-after { right: 10px; background: rgba(14,164,124,.88); }
.zoom-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.zoom-bar .seg button { font-size: 13px; padding: 6px 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* batch results */
.batch-results { margin-top: 26px; }
.batch-results h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.batch-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.batch-card img { width: 100%; height: 140px; object-fit: cover; cursor: pointer; }
.batch-card .bc-body { padding: 10px 12px; }
.batch-card .bc-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-card .bc-meta { font-size: 11.5px; color: var(--muted); margin: 3px 0 8px; }
.batch-card .bc-actions { display: flex; gap: 6px; }
.batch-card .bc-actions .btn { flex: 1; padding: 7px 8px; font-size: 12.5px; }

/* notice */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-md); padding: 12px 14px; font-size: 13.5px; margin-top: 14px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.notice-info { background: var(--primary-soft); color: var(--primary-2); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 800; margin-bottom: 14px;
}
.step:nth-child(n+10)::before { content: counter(step); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; transition: border-color .12s ease; }
.feature:hover { border-color: var(--line-strong); }
.feature .f-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .f-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 5px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s ease; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.blog-card .bc-cat { font-size: 12px; font-weight: 700; color: var(--primary); }
.blog-card h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--primary); text-decoration: none; }
.blog-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.blog-card .bc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.fav-btn {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; transition: color .12s ease, border-color .12s ease;
}
.fav-btn:hover { border-color: var(--danger); color: var(--danger); }
.fav-btn.on { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.fav-btn svg { width: 17px; height: 17px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #0d5fbe, #1476e5 55%, #1d8aeb); border-radius: var(--radius-lg); color: #fff; text-align: center; padding: 46px 28px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 15.5px; margin: 0 auto 22px; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--primary-2); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f2f7ff; }

/* ---------- Footer ---------- */
.site-footer { background: #101b26; color: #9fb0c1; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 32px; }
.site-footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.site-footer a { color: #9fb0c1; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-about { font-size: 14px; line-height: 1.6; margin: 0 0 16px; max-width: 320px; }
.footer-credit { font-size: 12px; color: #6d7f92; line-height: 1.55; }
.footer-credit a { color: #8fa2b5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 18px 0; font-size: 13px; color: #7c8fa1; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }

/* ---------- Article pages ---------- */
.article-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 42px 0 30px; }
.article-hero .cat { font-size: 12.5px; font-weight: 700; color: var(--primary); text-transform: none; letter-spacing: 0; }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; align-items: center; }
.article-body { padding: 44px 0 60px; }
.article-body .prose { font-family: var(--font-serif); font-size: 17.5px; line-height: 1.8; color: #2a3644; }
.article-body .prose h2 { font-family: var(--font-ui); font-size: 23px; font-weight: 800; margin: 1.6em 0 0.5em; color: var(--ink); }
.article-body .prose h3 { font-family: var(--font-ui); font-size: 18.5px; font-weight: 700; margin: 1.4em 0 0.4em; color: var(--ink); }
.article-body .prose p { margin: 0 0 1.1em; }
.article-body .prose ul, .article-body .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body .prose li { margin-bottom: 0.45em; }
.article-body .prose strong { color: var(--ink); }
.article-body .prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-body .prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; font-style: italic; }
.article-body .prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: #eef2f7; padding: 2px 6px; border-radius: 6px; }
.key-takeaways { background: var(--accent-soft); border: 1px solid #bfe8db; border-radius: var(--radius-md); padding: 18px 20px; margin: 1.6em 0; }
.key-takeaways h4 { margin: 0 0 8px; font-size: 14.5px; color: var(--accent); font-weight: 800; }
.key-takeaways ul { margin: 0; padding-left: 1.2em; color: #0b5c46; font-size: 15px; }
.key-takeaways li { margin-bottom: 4px; }
.article-cta { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; text-align: center; margin: 1.8em 0; }
.article-cta p { font-family: var(--font-ui); font-size: 15px; margin: 0 0 12px; color: var(--ink-2); }
.related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h3 { font-size: 16px; margin-bottom: 14px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface); }
.related-item a { font-weight: 600; font-size: 14.5px; line-height: 1.4; display: block; }
.related-item a:hover { text-decoration: none; color: var(--primary); }
.related-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Content pages (about/privacy/contact) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 26px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 0 0 6px; }
.page-hero p { color: var(--muted); margin: 0; font-size: 15.5px; }
.page-body { padding: 40px 0 64px; }
.prose-plain { max-width: 820px; margin: 0 auto; }
.prose-plain h2 { font-size: 22px; font-weight: 800; margin: 1.6em 0 0.5em; }
.prose-plain h3 { font-size: 17.5px; font-weight: 700; margin: 1.3em 0 0.4em; }
.prose-plain p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin: 0 0 1em; }
.prose-plain ul, .prose-plain ol { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin: 0 0 1em; padding-left: 1.3em; }
.prose-plain li { margin-bottom: 0.35em; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.contact-card svg { width: 26px; height: 26px; color: var(--primary); margin: 0 auto 10px; }
.contact-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.contact-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.contact-card a { font-weight: 600; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.price-card.highlight { border: 2px solid var(--primary); box-shadow: var(--shadow-md); position: relative; }
.price-card .pc-name { font-size: 18px; font-weight: 800; }
.price-card .pc-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .pc-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card .pc-desc { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.price-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.price-card li.off { color: var(--muted); }
.price-card li.off svg { color: var(--line-strong); }
.soon-badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 3px 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .model-cards { grid-template-columns: repeat(2, 1fr); }
  .related-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 58px; }
  .hero-inner { padding: 44px 0 52px; }
  .tool-wrap { margin-top: -24px; }
  .tool-card { padding: 16px; border-radius: 14px; }
  .dropzone { padding: 34px 16px; }
  .model-cards { grid-template-columns: 1fr; }
  .features, .blog-grid, .related-list, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 24px; }
  .cmp-handle::after { width: 32px; height: 32px; }
  .article-body .prose { font-size: 16.5px; }
  .trust-row { gap: 8px 16px; font-size: 13px; }
  .batch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .batch-grid { grid-template-columns: 1fr; }
  .seg button { padding: 8px 12px; font-size: 13.5px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 620px; margin: 0 auto; background: var(--ink); color: #e8eef5;
  border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1; }
.cookie-banner a { color: #7db8ff; text-decoration: underline; }
.cookie-banner .btn { flex: none; }
@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Local preview banner (file://) ---------- */
.local-banner {
  background: #fff7e6;
  color: #7a5b12;
  border-bottom: 1px solid #f0dfb4;
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 16px;
  text-align: center;
}
.local-banner code { background: rgba(122,91,18,.12); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; }
.lang-zh .local-banner { line-height: 1.65; }
