:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172943;
  background: #f5f7fb;
  line-height: 1.6;
  --blue: #174ce2;
  --navy: #102043;
  --muted: #506078;
  --line: #d7dfea;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: #174ac8; text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid #1671d2; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(32px,4vw,48px); }
h2 { font-size: clamp(23px,2.8vw,30px); }
h3 { font-size: 20px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.topbar,.shop-main,.site-footer { width: min(1160px,100%); margin-inline: auto; padding-inline: clamp(16px,4vw,44px); }
.topbar { min-height: 78px; display: flex; align-items: center; gap: clamp(20px,4vw,60px); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #112548; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.nav-links,.nav-actions,.hero-links,.section-head,.product-details,.selection-row,.site-footer { display: flex; align-items: center; }
.nav-links { gap: 24px; flex-wrap: wrap; }
.nav-links a,.site-footer a { color: #3d4d68; font-size: 14px; font-weight: 600; }
.nav-actions { gap: 8px; margin-inline-start: auto; }
button,.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: #fff; font: inherit; font-weight: 650; padding: 10px 18px; min-height: 43px; cursor: pointer; }
button:not(:disabled):hover,.button:hover { background: #123db6; text-decoration: none; }
button:disabled { cursor: not-allowed; color: #5c6b80; background: #e5eaf2; }
button.secondary,.button.secondary { color: #243a59; background: #fff; border-color: var(--line); }
button.secondary:hover,.button.secondary:hover { background: #edf1f8; }
.small { min-height: 39px; padding: 7px 14px; font-size: 14px; }
.shop-main { padding-block: clamp(20px,4vw,40px) 36px; }
section { scroll-margin-top: 16px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(220px,.7fr); align-items: center; min-height: 304px; padding: clamp(28px,5vw,60px); border-radius: 22px; color: #f1f5ff; background: radial-gradient(ellipse at 98% 80%,#1c4ba0 0,transparent 54%),linear-gradient(117deg,#112449 5%,#193e80 85%); }
.hero::after { content: ''; pointer-events: none; position: absolute; z-index: -1; top: -85%; right: -17%; width: 74%; height: 260%; border: 1px solid #87b6ff36; border-radius: 50%; transform: rotate(-20deg); box-shadow: 0 0 0 28px #88afff0b,0 0 0 62px #88afff08,0 0 0 98px #88afff07; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-label,.eyebrow,.pass-tag,.pass-bottom { font-family: ui-monospace,monospace; letter-spacing: .13em; font-weight: 750; font-size: 11px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; color: #c8e9ff; }
.hero-label span { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #62e3eb; }
.hero h1 { margin-block: 10px 14px; font-size: clamp(32px,5vw,52px); line-height: 1.18; color: white; overflow-wrap: anywhere; }
#home-description,.intro,.product-description,#notice-body { white-space: pre-line; overflow-wrap: anywhere; }
#home-description { color: #e2ebfa; }
.hero-links { gap: 22px; margin-top: 27px; flex-wrap: wrap; }
.hero-links a { color: white; font-weight: 600; }
.hero-links .hero-primary { color: #123562; background: #fff; gap: 20px; }
.hero-links .hero-primary:hover { background: #e6f2ff; }
.pass-art { position: relative; padding-left: 15%; perspective: 700px; }
.pass-card { max-width: 280px; aspect-ratio: 1.7; transform: rotate(-7deg) rotateY(-5deg); margin-inline: auto; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #d4ecff8c; border-radius: 15px; padding: 17px 20px; color: #eff8ff; background: linear-gradient(120deg,#4d78bd,#3261ab 50%,#57a3ce); box-shadow: 12px 22px 40px #091a373a; }
.pass-rule { width: 22%; height: 2px; background: #b7efff; }
.pass-card strong { font-size: clamp(22px,3vw,30px); line-height: 1.15; }
.pass-card strong span { color: #9ffaff; }
.pass-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 8px; }
.pass-bottom b { font-size: 18px; }
.notice { display: flex; align-items: baseline; gap: 15px; padding: 13px 20px; margin-top: 18px; border: 1px solid #c3d4ff; border-radius: 12px; background: #ebf2ff; color: #263f72; }
.notice b { white-space: nowrap; }
.catalog { margin-block: 34px; }
.section-head { justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.eyebrow { color: #3863a8; margin-bottom: 7px; }
.shop-status { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(255px,100%),1fr)); gap: 18px; }
.product,.panel,.empty-state { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product-cover { background: #eef2f8; height: 165px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.no-cover { background: radial-gradient(circle at 80% 75%,#e0f3ff,transparent 55%),linear-gradient(135deg,#e5edff,#f3f6ff); color: #526ca1; }
.no-cover span { font: 650 11px ui-monospace,monospace; letter-spacing: .15em; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-body h3,.product-details,.product-body p { overflow-wrap: anywhere; }
.product-description,.help,.intro,.optional { color: var(--muted); }
.product-details { margin-top: auto; justify-content: space-between; gap: 10px; }
.product-details span,.help,.optional { font-size: 14px; }
.price { font-size: 24px; color: #173da0; font-variant-numeric: tabular-nums; }
.empty-state { grid-column: 1 / -1; padding: 27px; color: var(--muted); text-align: center; }
.panel { min-width: 0; padding: clamp(20px,3vw,32px); }
.panel h2,.panel h3 { margin-bottom: 10px; }
.service-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 18px; align-items: start; }
.support-panel img { display: block; width: min(160px,100%); height: auto; margin-top: 15px; }
.support-wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-wide img { flex-shrink: 0; margin-top: 0; }
#checkout { margin-block: 18px; }
.selection-row { gap: 14px; margin: 15px 0; overflow-wrap: anywhere; }
.selection-row img,.admin-thumb { height: 70px; width: 92px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fb; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
label { display: block; margin-block: 15px; font-weight: 650; }
input,textarea,select { display: block; width: 100%; min-width: 0; padding: 10px 12px; margin-top: 5px; color: #182a44; font: inherit; font-weight: 400; line-height: 1.4; border: 1px solid #bfcada; border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
.check-label { display: flex; align-items: center; gap: 9px; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
input[type=file] { padding: 7px; font-size: 14px; }
input::file-selector-button { border: 0; border-radius: 5px; color: #264d91; background: #edf2ff; padding: 6px 10px; margin-inline-end: 9px; }
.feedback { color: #294c85; font-weight: 600; margin-block: 10px; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.result-box { margin-block: 18px; border-inline-start: 3px solid #86a9ee; background: #f1f5fc; padding: 15px; border-radius: 7px; }
code,pre { font-family: ui-monospace,monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
code { display: block; background: #edf2f7; padding: 12px; border-radius: 8px; margin-block: 10px; }
.site-footer { justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 22px 34px; font-size: 14px; }
.footer-domain { margin-inline-start: 4px; color: var(--muted); }
.admin-main { max-width: 1050px; }
.admin-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.admin-intro h1 { margin-block: 6px; }
.admin-intro form { width: min(100%,350px); }
.admin-main #workspace { display: grid; gap: 18px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 7px 18px; padding-block: 22px 0; }
.admin-nav a { font-size: 14px; font-weight: 650; }
.field-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.admin-products { display: grid; gap: 12px; }
.admin-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.admin-item-head { display: flex; gap: 14px; align-items: center; overflow-wrap: anywhere; }
.admin-item details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.admin-item summary { cursor: pointer; color: #174ac8; font-weight: 650; }
.image-preview { display: block; width: auto; height: auto; max-width: min(240px,100%); max-height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
#orders { margin-top: 15px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th,td { text-align: start; border-bottom: 1px solid var(--line); padding: 8px; overflow-wrap: anywhere; }
#payment-trial button { margin: 8px 6px 0 0; }
.admin-main section p + p { margin-top: 8px; }
@media(max-width:760px) {
  .topbar { flex-wrap: wrap; gap: 8px 14px; }
  .topbar .nav-links { order: 3; width: 100%; justify-content: flex-start; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(155px,.55fr); }
  .pass-art { padding-left: 4%; }
  .pass-card { padding: 13px 15px; }
  .service-grid { grid-template-columns: minmax(0,1fr); }
  .support-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
  .support-panel img { margin: 0; }
}
@media(max-width:540px) {
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 35px; height: 35px; }
  .topbar { min-height: 0; padding-block: 10px; }
  .small { padding: 6px 10px; }
  .hero { display: block; min-height: 0; padding: 27px 22px; }
  .pass-art { display: none; }
  .hero-links { gap: 16px; }
  .section-head,.notice { align-items: flex-start; flex-direction: column; gap: 6px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .support-panel { display: block; }
  .support-panel img { margin: 12px 0 0; }
  .grid { grid-template-columns: 1fr; }
  .catalog { margin-block: 24px; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
}
