:root {
  --ink:#101828; --muted:#47556d; --blue:#0056d6; --line:rgba(30,61,117,.10);
  --glass:rgba(255,255,255,.73); --radius:23px; --gutter:clamp(16px,4vw,32px);
  --shadow:0 12px 32px rgba(44,87,160,.09); --speed:220ms;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); background:#edf3ff; line-height:1.55;
}
*,*::before,*::after { box-sizing:border-box }
[hidden],.sprite { display:none !important }
html { scroll-behavior:smooth; scroll-padding-top:calc(84px + env(safe-area-inset-top)) }
body {
  margin:0; min-width:0;
  background:
    radial-gradient(ellipse at 92% 17%,#c7dcfc 0%,transparent 51%),
    radial-gradient(ellipse at 4% 40%,#dedfff 0%,transparent 57%),
    linear-gradient(155deg,#f7f9ff 4%,#eaf2ff 66%,#f5f7fc 100%);
}
a { color:inherit; text-decoration:none }
button,select { font:inherit; color:inherit }
button,summary,select { cursor:pointer }
button { background:none; border:0 }
:focus-visible { outline:3px solid #0055df; outline-offset:3px }
.skip { position:fixed; top:0; left:16px; z-index:20; background:white; padding:10px; transform:translateY(-110%) }
.skip:focus { transform:none }
.shell {
  width:100%; max-width:1264px; margin:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left));
  padding-right:max(var(--gutter),env(safe-area-inset-right));
}
.icon { flex:none; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round }
.topbar { position:sticky; z-index:5; top:0; padding-top:env(safe-area-inset-top); background:rgba(241,246,255,.88); border-bottom:1px solid rgba(255,255,255,.84); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px) }
.nav-wrap { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:65px; gap:12px }
.brand { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:1.24rem; font-weight:820; letter-spacing:-.045em; white-space:nowrap }
.brand-icon,.section-icon {
  display:grid; place-items:center; flex:none; color:white;
  background:linear-gradient(160deg,#67b7fe,#0069f8 84%);
  box-shadow:inset 0 1px 1px #ffffffa6,0 4px 10px #006cfe25;
}
.brand-icon { width:36px; height:36px; border-radius:12px; font-size:25px; line-height:1; font-weight:700; padding-right:1px }
.nav-actions { display:flex; align-items:center; gap:5px }
.locale { position:relative; display:flex; align-items:center; color:#203350 }
.locale .icon { width:18px; height:18px; position:absolute; left:11px; pointer-events:none }
.locale select { min-height:44px; max-width:100%; padding:0 6px 0 34px; background:#ffffff82; border:1px solid #fff; border-radius:50px; font-size:.84rem }
.icon-button { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:14px; color:var(--blue); flex:none; padding:0 }
.icon-button:hover { background:#e5efff }
nav { position:absolute; top:100%; right:var(--gutter); left:var(--gutter); background:#f8faff; box-shadow:var(--shadow); border-radius:16px; padding:8px; display:none; gap:4px }
nav[data-open] { display:grid }
nav a { display:flex; align-items:center; min-height:44px; padding:0 10px; border-radius:10px; white-space:nowrap; font-weight:600; font-size:.9rem }
nav a:hover,nav a[aria-current] { color:var(--blue); background:#eaf2ff }
.hero { display:grid; align-items:center; justify-items:center; text-align:center; padding:25px 0 21px; animation:enter var(--speed) ease-out both }
.hero-copy,.hero-action { min-width:0; width:100% }
.eyebrow { display:inline-flex; border-radius:50px; padding:4px 13px; color:#073bc3; background:#e4eaff; font-size:.82rem; font-weight:650 }
h1,h2,h3,p { margin:0 }
h1 { margin:11px 0 6px; font-size:clamp(27px,7.8vw,37px); line-height:1.16; letter-spacing:-.055em; font-weight:820; text-wrap:balance }
.hero-intro { margin:auto; color:var(--muted); font-size:clamp(14px,3.8vw,18px); max-width:40ch; text-wrap:balance }
.features { display:none; list-style:none; margin:0; padding:0 }
.hero-art { display:block; width:min(78%,330px); height:auto; margin:0 auto -3px }
.primary {
  display:inline-flex; align-items:center; justify-content:center; gap:16px; width:100%; max-width:360px; min-height:50px;
  padding:10px 22px; border-radius:50px; color:#fff; background:linear-gradient(179deg,#2182ef,#0968ed 48%,#0045df);
  box-shadow:inset 0 1px 2px #ffffffa6,0 10px 20px #0b60e035; font-size:1.09rem; font-weight:720;
  transition:transform var(--speed),box-shadow var(--speed);
}
.primary:hover { box-shadow:inset 0 1px 2px #ffffffa6,0 12px 25px #0b60e055 }
.primary:active,.icon-button:active { transform:scale(.98) }
.compatibility { display:flex; align-items:center; justify-content:center; gap:6px; color:var(--muted); font-size:.8rem; margin-top:10px }
.compatibility .icon { width:16px; height:16px }
.glass { border:1px solid rgba(255,255,255,.92); border-radius:var(--radius); background:var(--glass); box-shadow:var(--shadow) }
.quick-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px }
.quick-card { min-width:0; min-height:82px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; padding:8px 4px; border-radius:18px; transition:transform var(--speed),background var(--speed) }
@media (hover:hover) { .quick-card:hover { transform:translateY(-3px); background:#fff9 } }
.tile-icon { width:40px; height:40px; flex:none; display:grid; place-items:center; color:var(--blue); background:linear-gradient(150deg,#edf4ff,#d5e4fd); border-radius:15px }
.tile-icon .icon { width:25px; height:25px }
.quick-copy strong { display:block; font-size:.84rem; line-height:1.25; overflow-wrap:anywhere }
.quick-copy small,.quick-arrow { display:none }
.overview { display:grid; gap:16px }
.panel { padding:15px; min-width:0 }
.panel h2,.tutorial summary { display:flex; align-items:center; gap:9px; font-size:1.1rem; line-height:1.3; font-weight:750 }
.section-icon { width:28px; height:28px; border-radius:50% }
.section-icon .icon { width:17px; height:17px }
.steps { display:grid; list-style:none; padding:0; margin:12px 0 0; gap:6px }
.steps li { display:flex; gap:12px; align-items:center; min-width:0; padding:8px; border-radius:15px; background:#f7faffaa }
.steps h3 { display:flex; gap:8px; align-items:baseline; font-size:.94rem; line-height:1.25 }
.steps p,.empty p { font-size:.84rem; color:var(--muted); margin-top:4px }
.step-number { font-size:1.2rem; font-weight:800; color:#073bc3 }
.empty { display:flex; gap:11px; align-items:center; padding:16px 10px 8px }
.device-status { font-size:.83rem; margin:7px 0; color:var(--muted) }
.device-status:empty { display:none }
.device-status[data-state="success"] { color:#14753c; animation:enter var(--speed) ease-out }
.device-status[data-state="error"] { color:#ad2c28 }
.device-status[data-state="loading"]::before { content:""; display:inline-block; width:12px; height:12px; margin-right:7px; border:2px solid #b8d4f6; border-right-color:#0056d6; border-radius:50%; animation:spin .8s linear infinite }
.device-data { margin:10px 0 0; padding:0 8px; background:#edf3ff90; border-radius:15px; font-size:.84rem }
.device-data > div { display:grid; grid-template-columns:minmax(58px,1fr) minmax(0,2.3fr); align-items:center; gap:8px; min-height:44px; border-bottom:1px solid var(--line) }
.device-data > div:last-child { border-bottom:0 }
.device-data dd { margin:0; min-width:0; display:flex; align-items:center; justify-content:space-between; overflow-wrap:anywhere; user-select:text }
.device-data dt { color:var(--muted); overflow-wrap:anywhere }
.copy .icon { width:17px; height:17px }
.text-button { min-height:44px; padding:4px 8px; color:var(--blue); font-weight:650 }
.faq,.tutorial { margin-top:16px }
.faq h2 { margin-bottom:10px }
details > summary { list-style:none }
summary::-webkit-details-marker { display:none }
.faq details { border-radius:14px; background:#eaf1fd; margin-top:5px }
.faq summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 13px; font-weight:630; font-size:.93rem }
.faq summary .icon,.summary-arrow { width:17px; height:17px; transform:rotate(90deg); transition:transform var(--speed) }
details[open] > summary .icon:last-child { transform:rotate(-90deg) }
.tutorial summary .section-icon .icon { transform:none }
.faq-answer p { padding:0 13px 12px; font-size:.9rem; color:var(--muted) }
.tutorial summary { min-height:44px }
.summary-arrow { margin-left:auto }
.tutorial p,figcaption { color:var(--muted); font-size:.9rem; margin:9px 0 }
.tutorial-images { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)) }
figure { margin:0 }
figure img { display:block; width:100%; max-width:360px; height:auto; border-radius:16px }
.footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px 15px; padding-top:19px; padding-bottom:calc(18px + env(safe-area-inset-bottom)); color:var(--muted); font-size:.83rem }
.footer .brand { color:var(--ink); font-size:1rem }
.footer .brand-icon { width:28px; height:28px; font-size:18px; border-radius:9px }
.footer-links { display:flex; flex-wrap:wrap; gap:0 15px; align-items:center }
.footer-links a,.footer-links summary { display:flex; gap:5px; align-items:center; min-height:44px }
.footer-links .icon { width:16px; height:16px }
#qr-control { position:relative }
#qr-code { position:absolute; bottom:100%; background:white; padding:10px; border-radius:12px; box-shadow:var(--shadow) }
.home-tip,#toast:not(:empty) { position:fixed; z-index:6; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); border-radius:15px; box-shadow:var(--shadow) }
.home-tip { display:flex; align-items:center; gap:8px; bottom:calc(16px + env(safe-area-inset-bottom)); padding:5px 6px 5px 13px; background:#f8fbff; font-size:.88rem }
#toast:not(:empty) { bottom:calc(78px + env(safe-area-inset-bottom)); padding:12px 17px; color:white; background:#182c4d; font-size:.9rem; animation:toast-in var(--speed) ease-out }
@keyframes enter { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:none } }
@keyframes toast-in { from { opacity:0 } to { opacity:1 } }
@keyframes spin { to { transform:rotate(360deg) } }
@media (min-width:760px) {
  .hero { grid-template-columns:minmax(0,1.16fr) minmax(0,1fr); grid-template-rows:auto auto; text-align:left; column-gap:10px; padding:42px 0 23px }
  .hero-copy { align-self:end }
  .hero-intro { margin:0; max-width:49ch }
  h1 { font-size:clamp(32px,4.1vw,55px); margin:13px 0 9px }
  .hero-art { grid-column:2; grid-row:1 / span 2; width:100%; max-width:560px; margin:0 }
  .hero-action { align-self:start; margin-top:20px }
  .compatibility { justify-content:flex-start }
  .features { display:flex; flex-wrap:wrap; gap:6px 13px; margin-top:19px }
  .features li { display:flex; align-items:center; gap:5px; font-size:.84rem; font-weight:630 }
  .features .icon { width:30px; height:30px; padding:6px; border-radius:50%; background:#deebff; color:var(--blue) }
  .quick-links { gap:14px; margin-bottom:20px }
  .quick-card { flex-direction:row; justify-content:flex-start; gap:12px; text-align:left; min-height:88px; padding:12px; border-radius:20px }
  .quick-card .tile-icon { width:48px; height:48px }
  .quick-copy strong { font-size:1rem }
  .quick-copy small { display:block; font-size:.83rem; color:var(--muted); margin-top:3px }
  .quick-arrow { display:block; margin-left:auto; width:17px; height:17px }
  .overview { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:15px }
  .panel { padding:18px }
  .steps { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:18px }
  .steps li { flex-direction:column; text-align:center; justify-content:flex-start; background:none }
  .steps h3 { justify-content:center }
  .faq,.tutorial { margin-top:20px }
}
@media (min-width:1024px) {
  .nav-wrap { min-height:72px }
  nav,nav[data-open] { position:static; display:flex; order:1; gap:8px; padding:0; box-shadow:none; background:none }
  .nav-actions { order:2 }
  .menu-toggle { display:none }
  nav a[aria-current] { background:none; border-radius:0; border-bottom:2px solid #1557ef }
  .hero { padding-top:45px }
  .features { gap:8px 17px }
  .primary { max-width:320px }
  .quick-card { padding:13px 21px }
  .quick-card .tile-icon { width:55px; height:55px; border-radius:19px }
  .panel { padding:19px 22px }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important }
}
.topbar .locale select { width:113px }
@media (max-width:370px) {
  .nav-wrap { gap:6px }
  .topbar .brand { font-size:1.07rem; gap:7px }
  .topbar .brand-icon { width:32px; height:32px }
  .topbar .locale select { width:100px }
}
@media (max-width:759px) {
  #qr-code { position:static; width:max-content }
}

.device-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap }
.device-badge {
  display:inline-flex; align-items:center; gap:4px; margin-left:auto; padding:3px 8px;
  border-radius:999px; background:#e4f6eb; color:#11643b; font-size:.78rem;
  font-weight:700; white-space:nowrap;
}
.device-badge .icon { width:15px; height:15px; stroke-width:2 }
.udid-result {
  min-width:0; margin-top:12px; padding:10px 8px 8px; text-align:center;
  border:1px solid #fff9; border-radius:18px;
  background:linear-gradient(145deg,#eaf4ff,#dfeaff 65%,#e9edff);
}
.udid-result h3 { color:var(--blue); font-size:.88rem; font-weight:700 }
.udid-line {
  container-type:inline-size; min-width:0; display:flex; justify-content:center; align-items:center;
  min-height:40px; margin:3px 0 7px; -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
.udid-line bdi {
  display:block; flex:none; white-space:nowrap; color:#14284a; user-select:text;
  font-family:"PingFang SC","PingFang TC",Hiragino Sans,"Microsoft YaHei",system-ui,sans-serif;
  font-size:11px; font-size:min(26px,calc(135cqi / var(--udid-length)));
  font-weight:700; line-height:1.22;
}
.udid-copy {
  display:flex; width:100%; min-height:48px; align-items:center; justify-content:center; gap:8px;
  padding:6px 12px; color:white; background:linear-gradient(175deg,#0977e7,#0059d8);
  border-radius:13px; font-size:.96rem; font-weight:700;
  transition:transform var(--speed),background var(--speed);
}
.udid-copy:hover { background:#0059d8 }
.udid-copy:active { transform:scale(.98) }
.udid-copy .icon { width:19px; height:19px }
