:root {
  color-scheme: light;
  --bg: #f5f2eb;
  --bg-deep: #ebe6dc;
  --surface: rgb(255 255 255 / 82%);
  --surface-solid: #fffdfa;
  --surface-soft: #ece8df;
  --ink: #171814;
  --muted: #64635d;
  --line: #d8d2c7;
  --line-strong: #8d867a;
  --accent: #946210;
  --accent-bright: #d3aa50;
  --accent-soft: #f1e6c8;
  --on-accent: #17150f;
  --on-accent-strong: #fffdfa;
  --success: #277a59;
  --danger: #b42318;
  --grid: rgb(34 31 24 / 5%);
  --shadow-sm: 0 10px 30px rgb(40 35 24 / 7%);
  --shadow-md: 0 24px 70px rgb(40 35 24 / 12%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --max: 1180px;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11120f;
  --bg-deep: #0b0c0a;
  --surface: rgb(28 29 25 / 86%);
  --surface-solid: #1b1c18;
  --surface-soft: #24251f;
  --ink: #f4f1e8;
  --muted: #b0ada4;
  --line: #383830;
  --line-strong: #646359;
  --accent: #d3aa50;
  --accent-bright: #e3bd67;
  --accent-soft: #362e1d;
  --on-accent: #17150f;
  --on-accent-strong: #17150f;
  --success: #73c99e;
  --danger: #ff958b;
  --grid: rgb(255 255 255 / 4%);
  --shadow-sm: 0 12px 34px rgb(0 0 0 / 20%);
  --shadow-md: 0 28px 80px rgb(0 0 0 / 34%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -5%, color-mix(in srgb, var(--accent-bright) 10%, transparent), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, select, summary, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent-bright); color: #17150f; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; inset: 10px auto auto 12px; z-index: 100; transform: translateY(-160%); padding: 10px 15px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-weight: 700; transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px) saturate(1.15); }
.nav-shell, .footer-shell { width: min(100%, var(--max)); margin: 0 auto; padding-inline: 24px; }
.nav-shell { min-height: 72px; display: flex; align-items: center; gap: 42px; }
.brand { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 780; letter-spacing: -.04em; white-space: nowrap; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 33px; height: 33px; color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav-links a { position: relative; padding: 25px 0 23px; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 16px; height: 2px; transform: scaleX(0); background: var(--accent-bright); transition: transform .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { flex-shrink: 0; margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.language-select { width: 118px; height: 44px; padding: 0 30px 0 11px; border: 1px solid transparent; border-radius: 999px; background-color: transparent; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.language-select:hover { color: var(--ink); background-color: var(--surface-soft); border-color: var(--line); }
:root[dir="rtl"] .language-select { padding: 0 11px 0 30px; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.icon-button:hover { background: var(--surface-soft); transform: rotate(7deg); }
.icon-button:active { transform: rotate(0) scale(.96); }
.theme-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .theme-icon-moon, :root:not([data-theme="dark"]) .theme-icon-sun { display: none; }

main { overflow: clip; }
.hero { position: relative; isolation: isolate; padding: 96px 24px 92px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(115deg, color-mix(in srgb, var(--bg) 92%, transparent) 0 42%, color-mix(in srgb, var(--bg) 72%, transparent) 67%, transparent 100%); }
.hero-shell { position: relative; z-index: 2; width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); align-items: center; gap: clamp(48px, 7vw, 88px); }
.hero-intro { max-width: 580px; animation: hero-rise .55s ease both; }
.hero-kicker { margin: 0 0 20px; display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-bright) 16%, transparent); }
h1 { margin: 0; font-size: clamp(45px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -.06em; text-wrap: balance; }
:lang(zh-CN) h1, :lang(zh-TW) h1, :lang(ja) h1, :lang(ko) h1 { letter-spacing: -.02em; }
.hero-copy { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.8; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-benefits li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 650; }
.hero-benefits svg, .miniapp-features svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--success); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-miniapp { position: relative; isolation: isolate; min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 28px; padding: 12px; overflow: hidden; border: 1px solid rgb(117 201 158 / 32%); border-radius: 19px; background: radial-gradient(circle at 11% 14%, rgb(120 212 168 / 19%), transparent 9rem), linear-gradient(135deg, #163a2c, #10271f 72%); color: #f6f8f4; box-shadow: 0 16px 38px rgb(16 50 37 / 18%); }
.hero-miniapp::after { content: ""; position: absolute; z-index: -1; width: 130px; height: 130px; inset: auto -60px -86px auto; border: 1px solid rgb(120 212 168 / 20%); border-radius: 50%; box-shadow: 0 0 0 22px rgb(120 212 168 / 4%); }
.hero-miniapp-qr { width: 82px; aspect-ratio: 1; padding: 5px; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgb(0 0 0 / 18%); }
.hero-miniapp-qr img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: contain; }
.hero-miniapp-copy { min-width: 0; text-align: start; }
.hero-miniapp-badge { display: block; margin-bottom: 3px; color: #88dfb5; font-size: 10px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.hero-miniapp-copy strong { display: block; color: #fff; font-size: 15px; line-height: 1.4; letter-spacing: -.01em; }
.hero-miniapp-copy p { margin: 3px 0 0; color: #bdcec5; font-size: 11px; line-height: 1.55; }
.hero-miniapp-link { position: relative; z-index: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; color: #e5f5eb; font-size: 11px; font-weight: 720; line-height: 1.35; text-align: center; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.hero-miniapp-link:hover { border-color: rgb(136 223 181 / 55%); background: rgb(255 255 255 / 8%); transform: translateY(-1px); }
.hero-miniapp-link:active { transform: translateY(0) scale(.98); }
.hero-miniapp-link svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:root[dir="rtl"] .hero-miniapp-link svg { transform: scaleX(-1); }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid color-mix(in srgb, var(--accent-bright) 28%, transparent); border-radius: 50%; pointer-events: none; }
.hero-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 18px var(--accent-bright); }
.hero-orbit-one { width: 430px; height: 430px; inset: -180px -80px auto auto; }
.hero-orbit-one::after { inset: 71% auto auto 2%; }
.hero-orbit-two { width: 240px; height: 240px; inset: auto auto -150px 5%; }
.hero-orbit-two::after { inset: 12% 13% auto auto; }

.upload-panel { position: relative; min-width: 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); backdrop-filter: blur(16px); animation: hero-rise .55s .08s ease both; }
.upload-panel::before { content: ""; position: absolute; inset: -1px 56px auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-bright), transparent); }
.upload-panel-header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 10px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.service-status { display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0; text-transform: none; }
.service-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }
.upload-zone { min-height: 304px; display: grid; place-items: center; padding: 30px; border: 1px dashed var(--line-strong); border-radius: calc(var(--radius-xl) - 10px); background: color-mix(in srgb, var(--surface-solid) 90%, transparent); cursor: pointer; transition: border-color .22s ease, background .22s ease, transform .22s ease; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--accent); background: color-mix(in srgb, var(--surface-solid) 94%, var(--accent-soft)); transform: translateY(-2px); }
.upload-zone:active { transform: translateY(0) scale(.995); }
.upload-zone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload-zone.is-busy { cursor: wait; transform: none; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-default, .upload-progress { display: flex; align-items: center; flex-direction: column; gap: 8px; text-align: center; }
.upload-default strong { margin-top: 3px; font-size: 19px; }
.upload-default > span:nth-child(3), .file-name { color: var(--muted); font-size: 12px; line-height: 1.6; }
.upload-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.upload-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.55; }
.upload-cta { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; margin-top: 11px; padding: 9px 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 750; transition: background .2s ease, color .2s ease; }
.upload-zone:hover .upload-cta { background: var(--accent-bright); color: var(--on-accent); }
.progress-ring { --progress: 0; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-bright) calc(var(--progress) * 1%), var(--surface-soft) 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface-solid); }
.progress-ring span { z-index: 1; font-size: 13px; font-weight: 760; }

.capabilities-section, .miniapp-section, .result-section, .supported-section, .guide-promo, .faq-section { width: min(100%, var(--max)); margin-inline: auto; padding-inline: 24px; }
.capabilities-section { padding-top: 96px; padding-bottom: 96px; }
.section-heading { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, .72fr); justify-content: space-between; align-items: end; gap: 64px; margin-bottom: 38px; }
.section-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 790; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2, .result-header h2 { margin: 0; font-size: clamp(31px, 4vw, 48px); line-height: 1.14; letter-spacing: -.047em; text-wrap: balance; }
.section-heading > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.capabilities-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; min-width: 0; min-height: 244px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-bright) 62%, var(--line)); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.feature-index { position: absolute; inset: 26px 26px auto auto; margin: 0; color: color-mix(in srgb, var(--muted) 46%, transparent); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
:root[dir="rtl"] .feature-index { inset: 26px auto auto 26px; }
.feature-card h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.feature-card > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.process-panel { position: relative; overflow: hidden; padding: 34px 32px; border-radius: var(--radius-lg); background: linear-gradient(150deg, #20211d, #11120f 72%); color: #f5f2e9; box-shadow: var(--shadow-md); }
.process-panel::after { content: ""; position: absolute; width: 220px; height: 220px; inset: auto -92px -110px auto; border: 1px solid rgb(227 189 103 / 24%); border-radius: 50%; box-shadow: 0 0 0 30px rgb(227 189 103 / 4%), 0 0 0 60px rgb(227 189 103 / 3%); }
.process-panel .section-kicker { color: #ddb960; }
.process-panel h3 { position: relative; z-index: 1; max-width: 12ch; margin: 0; font-size: 29px; line-height: 1.22; letter-spacing: -.04em; }
.process-list { position: relative; z-index: 1; margin: 30px 0 26px; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; }
.process-list li + li { margin-top: 21px; }
.process-list li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgb(227 189 103 / 38%); border-radius: 50%; color: #ddb960; font-size: 11px; font-weight: 760; }
.process-list strong { display: block; font-size: 14px; }
.process-list p { margin: 3px 0 0; color: #aaa99f; font-size: 13px; line-height: 1.7; }
.text-link { position: relative; z-index: 1; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: #ddb960; font-size: 13px; font-weight: 720; }
.text-link svg, .guide-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.text-link:hover svg, .guide-link:hover svg { transform: translateX(3px); }
:root[dir="rtl"] .text-link svg, :root[dir="rtl"] .guide-link svg { transform: scaleX(-1); }

.miniapp-section { padding-top: 0; padding-bottom: 96px; }
.miniapp-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 224px; align-items: center; gap: 64px; padding: 52px 58px; border: 1px solid rgb(117 201 158 / 17%); border-radius: var(--radius-xl); background: radial-gradient(circle at 83% 16%, rgb(69 177 118 / 22%), transparent 18rem), linear-gradient(145deg, #14271e, #0d1712 68%); color: #f6f8f4; box-shadow: var(--shadow-md); }
.miniapp-card::before { content: ""; position: absolute; width: 360px; height: 360px; inset: auto auto -255px -110px; border: 1px solid rgb(115 201 158 / 14%); border-radius: 50%; box-shadow: 0 0 0 45px rgb(115 201 158 / 3%), 0 0 0 90px rgb(115 201 158 / 2%); }
.miniapp-copy { position: relative; z-index: 1; min-width: 0; }
.miniapp-copy .section-kicker { color: #78d4a8; }
.miniapp-copy h2 { max-width: 17ch; margin: 0; font-size: clamp(31px, 4.2vw, 48px); line-height: 1.14; letter-spacing: -.048em; text-wrap: balance; }
.miniapp-lead { max-width: 670px; margin: 20px 0 0; color: #b7c6bd; font-size: 15px; line-height: 1.85; }
.miniapp-features { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 27px 0 0; padding: 0; list-style: none; }
.miniapp-features li { display: inline-flex; align-items: center; gap: 7px; color: #eef4ef; font-size: 12px; font-weight: 650; }
.miniapp-features svg { stroke: #78d4a8; }
.miniapp-qr { position: relative; z-index: 1; margin: 0; text-align: center; }
.miniapp-qr-frame { width: 190px; aspect-ratio: 1; margin: 0 auto; padding: 9px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgb(0 0 0 / 25%); }
.miniapp-qr img { display: block; width: 100%; height: 100%; border-radius: 11px; object-fit: contain; }
.miniapp-qr figcaption { margin-top: 13px; color: #b9c8bf; font-size: 12px; }

.result-section { padding-top: 88px; padding-bottom: 96px; }
.result-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.secondary-button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.secondary-button:hover { background: var(--surface-solid); border-color: var(--ink); transform: translateY(-1px); }
.secondary-button:active, .guide-link:active, .guide-cta:active, .guide-back:active { transform: translateY(0) scale(.98); }
.result-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; margin-top: 28px; }
.count-card, .info-card, .metadata-card, .details-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.count-card { padding: 38px; background: linear-gradient(145deg, #23241f, #10110f 74%); color: #f4f1e8; }
.count-card > p:first-child { margin: 0; color: #aaa99f; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.count-card > strong { display: block; margin: 12px 0 16px; color: var(--accent-bright); font-size: clamp(48px, 7vw, 76px); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.06em; }
.count-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.count-meta span { padding: 5px 10px; border: 1px solid rgb(244 241 232 / 20%); border-radius: 999px; color: #d1cec5; font-size: 11px; }
.split-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid rgb(244 241 232 / 16%); border-radius: var(--radius-sm); background: rgb(244 241 232 / 16%); }
.split-counts > div { min-width: 0; padding: 15px; background: #191a17; }
.split-counts span { display: block; color: #98978f; font-size: 11px; letter-spacing: .07em; }
.split-counts strong { display: block; margin-top: 5px; color: #f4f1e8; font-size: clamp(15px, 2vw, 21px); font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.result-note { margin: 20px 0 0; color: #b8b6ae; font-size: 13px; }
.info-card { padding: 32px; }
.card-heading { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; }
.card-heading svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-heading h3 { margin: 0; font-size: 16px; }
dl { margin: 0; }
.info-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.info-card dl div, .metadata-list div { min-width: 0; display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; margin-top: 22px; }
.metadata-card { min-width: 0; padding: 29px 30px; }
.shooting-card { grid-column: 1 / -1; }
.metadata-list-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 38px; }
.details-card { margin-top: 22px; overflow: hidden; }
.details-toggle { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border: 0; background: transparent; font-weight: 650; cursor: pointer; }
.details-toggle:hover { background: var(--surface-soft); }
.details-toggle svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .2s ease; }
.details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.details-toggle-copy { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; text-align: start; }
.details-toggle-copy strong { font-size: 14px; }
.details-toggle-copy small { margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 500; }
.details-content { padding: 2px 24px 26px; border-top: 1px solid var(--line); }
.exif-intro { display: grid; grid-template-columns: 1fr minmax(280px, .8fr); gap: 24px; padding: 20px 0; }
.exif-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.exif-intro .sensitive-note { padding-inline-start: 13px; border-inline-start: 3px solid var(--accent-bright); color: var(--ink); }
.exif-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 18px; border-radius: var(--radius-md); background: var(--surface-soft); }
.exif-search { flex: 1; min-width: 0; }
.exif-search span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.exif-search input { width: min(430px, 100%); min-height: 44px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-solid); color: var(--ink); font-size: 16px; }
.exif-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.compact-button { min-height: 44px; background: var(--surface-solid); font-size: 12px; }
.compact-button:disabled { cursor: not-allowed; opacity: .45; }
.exif-action-status { min-height: 22px; margin: 8px 2px 0; color: var(--success); font-size: 12px; }
.exif-groups { border-top: 1px solid var(--line); }
.exif-group { border-bottom: 1px solid var(--line); }
.exif-group summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 4px; cursor: pointer; }
.exif-group summary strong { font-size: 14px; }
.exif-group summary span { color: var(--muted); font-size: 12px; }
.exif-rows { padding-bottom: 14px; }
.exif-rows div { min-width: 0; display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr); gap: 24px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.exif-rows dt { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.exif-rows dd { color: var(--muted); text-align: start; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.65; }
.exif-empty { margin: 18px 0 2px; color: var(--muted); font-size: 13px; text-align: center; }

.guide-promo { margin-bottom: 92px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.2fr) auto; align-items: center; gap: 36px; padding-top: 40px; padding-bottom: 40px; border: 1px solid color-mix(in srgb, var(--accent-bright) 31%, var(--line)); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--surface-solid) 94%, var(--accent-soft))); box-shadow: var(--shadow-sm); }
.guide-promo h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.18; letter-spacing: -.04em; }
.guide-promo > p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-link, .guide-cta, .guide-back { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 700; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.guide-link { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.guide-link:hover, .guide-back:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent-strong); transform: translateY(-1px); }

.supported-section { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 70px; padding-top: 0; padding-bottom: 92px; }
.supported-heading h2 { margin: 0; font-size: clamp(29px, 3.6vw, 43px); line-height: 1.16; letter-spacing: -.045em; }
.supported-heading > p:last-child { max-width: 540px; margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.brand-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.brand-list a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 650; transition: border-color .2s ease, transform .2s ease; }
.brand-list a:hover { border-color: var(--accent); transform: translateY(-1px); }
.supported-directory-link { display: inline-flex; margin-top: 18px; color: var(--accent); font-size: 13px; font-weight: 750; }

.faq-section { padding-top: 0; padding-bottom: 106px; }
.faq-heading { padding-top: 80px; border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 4px; cursor: pointer; font-size: 16px; font-weight: 720; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.7; transition: transform .2s ease, stroke .2s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); stroke: var(--accent); }
.faq-list details > p { max-width: 820px; margin: -2px 0 0; padding: 0 48px 24px 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
:root[dir="rtl"] .faq-list details > p { padding: 0 4px 24px 48px; }

.guide-page { overflow: visible; }
.guide-article { width: min(790px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 96px; }
.guide-hero { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.guide-hero h1 { max-width: 730px; margin: 0 0 20px; font-size: clamp(38px, 6vw, 62px); text-wrap: balance; }
.guide-lead { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.guide-cta { margin-top: 28px; border-color: var(--ink); background: var(--ink); color: var(--bg); }
.guide-cta:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent-strong); }
.guide-updated { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.guide-article > section { padding: 54px 4px; border-bottom: 1px solid var(--line); }
.guide-article h2 { margin: 0 0 18px; font-size: clamp(25px, 4vw, 35px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.guide-article p, .guide-article li, .guide-definitions dd, .brand-table td { font-size: 16px; line-height: 1.8; }
.guide-article p { margin: 0; }
.guide-article ol, .guide-article ul { margin: 18px 0 0; padding-inline-start: 24px; }
.guide-article li + li { margin-top: 10px; }
.guide-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.guide-definitions > div { padding: 23px; background: var(--surface-solid); }
.guide-definitions dt { color: var(--ink); font-weight: 720; }
.guide-definitions dd { margin-top: 7px; color: var(--muted); text-align: start; }
.brand-table { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.brand-table table { width: 100%; border-collapse: collapse; }
.brand-table th, .brand-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.brand-table tr:last-child th, .brand-table tr:last-child td { border-bottom: 0; }
.brand-table thead th { background: var(--surface-soft); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.brand-table tbody th { width: 150px; font-size: 14px; }
.guide-faq { border-top: 1px solid var(--line); }
.guide-faq details { border-bottom: 1px solid var(--line); }
.guide-faq summary { padding: 18px 0; font-weight: 680; cursor: pointer; }
.guide-faq p { padding: 0 0 20px; color: var(--muted); }
.guide-method { margin-top: 52px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.guide-method h2 { font-size: 21px; }
.guide-method p { color: var(--muted); }
.guide-method a { display: inline-block; margin-top: 16px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

footer { border-top: 1px solid #2d2e29; background: #10110f; color: #f4f1e8; }
.footer-shell { min-height: 194px; display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(280px, .9fr) auto; align-items: center; gap: 50px; padding-block: 38px; }
.footer-about p { max-width: 350px; margin: 13px 0 0; color: #aaa89f; font-size: 13px; }
.footer-brand { color: #f4f1e8; font-size: 17px; }
.footer-brand .brand-mark { width: 29px; height: 29px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; color: #b4b2aa; font-size: 12px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; transition: color .2s ease; }
.footer-links a:hover { color: #e3bd67; }
.footer-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; color: #83827a; font-size: 11px; text-align: end; }
.icp-link { padding: 6px 0; transition: color .2s ease; }
.icp-link:hover { color: #f4f1e8; }

.toast { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / 52%); backdrop-filter: blur(7px); }
.toast > div { width: min(440px, 100%); padding: 29px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-solid); box-shadow: var(--shadow-md); }
.toast strong { color: var(--danger); font-size: 19px; }
.toast p { color: var(--muted); font-size: 14px; }
.toast button { min-height: 44px; padding: 8px 21px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); cursor: pointer; }

.error-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.error-shell { width: min(520px, 100%); text-align: center; }
.error-shell > p:first-child { margin: 0; color: var(--accent); font-size: 14px; font-weight: 750; letter-spacing: .16em; }
.error-shell h1 { margin: 8px 0 10px; }
.error-shell h1 + p { margin: 0 0 28px; color: var(--muted); }
.error-shell .secondary-button { display: inline-flex; align-items: center; }

@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .nav-links { display: none; }
}

@media (max-width: 980px) {
  .hero { padding-top: 72px; }
  .hero-shell { grid-template-columns: 1fr; gap: 46px; }
  .hero-intro { max-width: 760px; text-align: center; margin-inline: auto; }
  .hero-copy { margin-inline: auto; }
  .hero-benefits { justify-content: center; }
  .hero-miniapp { max-width: 580px; margin-inline: auto; }
  .upload-panel { width: min(720px, 100%); margin-inline: auto; }
  .capabilities-layout { grid-template-columns: 1fr; }
  .process-panel h3 { max-width: none; }
  .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .process-list li + li { margin-top: 0; }
  .miniapp-card { gap: 38px; padding: 46px; }
  .guide-promo { grid-template-columns: 1fr auto; }
  .guide-promo > p { grid-column: 1 / -1; grid-row: 2; }
  .guide-link { grid-column: 2; grid-row: 1; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .nav-shell { min-height: 64px; padding-inline: 16px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 29px; height: 29px; }
  .language-select { width: 104px; }
  .hero { padding: 58px 16px 62px; }
  .hero-shell { gap: 36px; }
  .hero-intro { text-align: start; }
  .hero-kicker { margin-bottom: 16px; }
  h1 { font-size: clamp(39px, 12vw, 52px); }
  .hero-copy { margin-top: 18px; font-size: 15px; }
  .hero-benefits { justify-content: flex-start; display: grid; gap: 9px; margin-top: 23px; }
  .hero-miniapp { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; margin-top: 24px; padding: 10px; }
  .hero-miniapp-qr { width: 70px; }
  .hero-miniapp-copy strong { font-size: 14px; }
  .hero-miniapp-copy p { display: none; }
  .hero-miniapp-link { display: none; }
  .hero-orbit-one { width: 280px; height: 280px; inset: -140px -130px auto auto; }
  .upload-panel { padding: 8px; border-radius: 22px; }
  .upload-panel-header { padding: 4px 8px 9px; }
  .upload-zone { min-height: 238px; padding: 24px 14px; border-radius: 15px; }
  .upload-default strong { font-size: 17px; }
  .upload-icon { width: 56px; height: 56px; }
  .capabilities-section, .miniapp-section, .result-section, .supported-section, .guide-promo, .faq-section { padding-inline: 16px; }
  .capabilities-section { padding-top: 66px; padding-bottom: 66px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .section-heading h2, .result-header h2 { font-size: 34px; }
  .section-heading > p { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 24px; }
  .feature-card h3 { margin-top: 20px; }
  .feature-card > p:last-child, .process-list p, .miniapp-lead, .supported-heading > p:last-child, .faq-list details > p { font-size: 15px; }
  .process-panel { padding: 30px 24px; }
  .process-panel h3 { font-size: 27px; }
  .process-list { display: block; }
  .process-list li + li { margin-top: 20px; }
  .miniapp-section { padding-bottom: 66px; }
  .miniapp-card { grid-template-columns: 1fr; gap: 32px; padding: 34px 24px; border-radius: 22px; }
  .miniapp-copy h2 { font-size: 34px; }
  .miniapp-features { display: grid; gap: 10px; }
  .miniapp-qr-frame { width: min(190px, 70vw); }
  .result-section { padding-top: 62px; padding-bottom: 68px; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .count-card { padding: 30px 24px; }
  .info-card dl, .metadata-grid, .metadata-list-wide { grid-template-columns: 1fr; }
  .shooting-card { grid-column: auto; }
  .info-card, .metadata-card { padding: 26px 23px; }
  .split-counts { grid-template-columns: 1fr; }
  .exif-intro { grid-template-columns: 1fr; gap: 14px; }
  .exif-toolbar { align-items: stretch; flex-direction: column; }
  .exif-search input { width: 100%; }
  .exif-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exif-rows div { grid-template-columns: 1fr; gap: 4px; padding: 11px 4px; }
  .exif-rows dd { text-align: start; }
  .guide-promo { margin: 0 16px 66px; width: auto; grid-template-columns: 1fr; gap: 17px; padding: 29px 24px; }
  .guide-promo > p, .guide-link { grid-column: auto; grid-row: auto; }
  .guide-link { justify-self: start; }
  .supported-section { grid-template-columns: 1fr; gap: 28px; padding-bottom: 66px; }
  .brand-list { gap: 8px; }
  .brand-list a { min-height: 40px; padding: 7px 13px; }
  .faq-section { padding-bottom: 76px; }
  .faq-heading { padding-top: 62px; }
  .faq-list summary { min-height: 68px; font-size: 15px; }
  .faq-list details > p { padding-inline-end: 30px; }
  .guide-back { display: none; }
  .guide-article { width: calc(100% - 32px); padding: 48px 0 68px; }
  .guide-hero { padding: 28px 22px; }
  .guide-lead { font-size: 16px; }
  .guide-article > section { padding: 44px 2px; }
  .guide-definitions { grid-template-columns: 1fr; }
  .brand-table tbody th { width: 112px; }
  .footer-shell { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .footer-links { max-width: 320px; }
  .footer-meta { grid-column: auto; align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 390px) {
  .nav-shell { padding-inline: 14px; }
  .brand { max-width: 145px; }
  .language-select { width: 108px; padding-inline-start: 8px; }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 14px; }
}

@media (max-width: 340px) {
  .brand { max-width: 44px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
