:root {
    --page: #f7f8fc;
    --ink: #171629;
    --muted: #62637a;
    --line: #e5e6ef;
    --accent: #5a3de4;
    --accent-dark: #4127bb;
    --accent-soft: #efecff;
    --surface: #fff;
    --radius: 17px;
    --font: "Inter", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #775bff; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 760; letter-spacing: -.025em; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; inset: 10px auto auto 10px; padding: 10px 16px; background: white; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-size: 1.36rem; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--accent); font-size: 1.02rem; }
.brand-dot { color: var(--accent); }
.header-nav, .header-actions, .footer-links { display: flex; align-items: center; }
.header-nav { gap: 7px; }
.header-nav a { color: var(--muted); font-size: .93rem; padding: 8px 15px; border-radius: 8px; white-space: nowrap; }
.header-nav a:hover, .header-nav a[aria-current] { color: var(--accent-dark); background: var(--accent-soft); }
.header-nav a[aria-current] { font-weight: 700; }
.header-actions { justify-content: flex-end; gap: 12px; }
.header-admin { font-weight: 700; color: var(--accent-dark); font-size: .88rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 41px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: .91rem; font-weight: 700; line-height: 1.25; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button-light { background: #fff; color: var(--ink); border-color: var(--line); }
.button-light:hover { color: var(--accent-dark); border-color: #beb2ff; background: #faf9ff; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { color: white; background: var(--accent-dark); }
.button-white { background: #fff; color: #251951; }
.button-white:hover { background: #ece6ff; color: #28185f; }
.button-glass { border-color: #ffffff58; background: #ffffff12; color: white; }
.button-glass:hover { color: white; background: #ffffff28; }
.button-product { color: var(--accent-dark); background: #f0edff; font-size: .85rem; min-height: 35px; padding: 6px 10px; }
.button-product:hover { color: #fff; background: var(--accent); }
.main-content { flex: 1; padding-block: 29px 68px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 314px; color: #fff; border-radius: 22px; background: #100a30; }
.hero::before { position: absolute; z-index: -1; inset: 0 0 0 35%; content: ""; background: linear-gradient(90deg, #100a30, transparent 31%), url("/assets/hero.webp") center right / cover no-repeat; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(100deg, #1d1544 0, #120b34c7 36%, #100a3000 64%); pointer-events: none; }
.hero-copy { max-width: 610px; padding: 38px 48px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid #ab98fa52; border-radius: 20px; background: #a285f824; color: #eee7ff; font-size: .85rem; font-weight: 650; }
.hero h1 { margin-top: 16px; font-size: clamp(2.4rem, 4.3vw, 3.75rem); line-height: 1.11; letter-spacing: -.07em; }
.hero h1 span { color: #b9a3ff; }
.hero p { color: #ded8fa; margin-top: 15px; max-width: 430px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.hero-actions .button { min-height: 44px; padding-inline: 15px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.benefits > div { display: flex; align-items: center; gap: 13px; padding: 0 23px; }
.benefits > div + div { border-left: 1px solid var(--line); }
.benefit-icon, .page-icon { flex: none; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.08rem; }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: .94rem; }
.benefits small, .filter-panel small { color: var(--muted); font-size: .8rem; }
.catalog-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 33px; scroll-margin-top: 18px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 12px 12px; }
.filter-title { display: flex; align-items: center; gap: 8px; padding: 3px 11px 14px; font-weight: 760; }
.filter-title .bi { color: var(--accent); }
.category-list { display: grid; gap: 4px; }
.category-link { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border-radius: 8px; color: #50516a; font-size: .9rem; white-space: nowrap; }
.category-link:hover, .category-link[aria-current] { color: var(--accent-dark); background: var(--accent-soft); }
.category-link[aria-current] { font-weight: 760; }
.category-link small { display: grid; min-width: 19px; place-items: center; }
.catalog-notice { display: flex; gap: 8px; align-items: flex-start; color: var(--accent-dark); margin-top: 13px; padding: 11px 10px 2px; border-top: 1px solid var(--line); font-size: .85rem; }
.catalog-notice small { display: block; margin-top: 2px; line-height: 1.55; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { font-size: 1.65rem; }
.section-heading p { color: var(--muted); margin-top: 4px; font-size: .86rem; }
.catalog-tools, .admin-search { display: flex; gap: 8px; }
.search-field, .sort-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; min-height: 42px; padding: 0 11px; color: var(--muted); }
.search-field:focus-within, .sort-field:focus-within { border-color: var(--accent); }
.search-field input, .sort-field select { padding: 6px 0; border: 0; background: transparent; outline: 0; color: var(--ink); font: inherit; font-size: .875rem; }
.search-field input { width: 156px; }
.search-field input::placeholder { color: var(--muted); }
.sort-field select { max-width: 138px; padding-right: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-grid[aria-busy="true"] { opacity: .68; }
.product-card, .surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product-card { display: flex; min-width: 0; flex-direction: column; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #c9bdfb; box-shadow: 0 6px 20px #28206e0a; }
.product-card-top, .product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-icon { flex: none; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; font-size: 1.25rem; }
.theme-violet { background: #eee7ff; color: #5b3fce; }
.theme-pink { background: #feeaf3; color: #a92864; }
.theme-green { background: #dff8ef; color: #147154; }
.theme-dark { background: #e9ebf4; color: #343853; }
.theme-blue { background: #e5eefd; color: #2c58a6; }
.theme-orange { background: #fef0df; color: #9e520c; }
.stock, .status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; white-space: nowrap; border-radius: 6px; font-size: .76rem; font-weight: 700; }
.stock-in, .pill-green { background: #e7f7ef; color: #19664c; }
.stock-out { background: #efeff4; color: #54556c; }
.pill-violet { background: var(--accent-soft); color: var(--accent-dark); }
.product-card h3 { margin-top: 13px; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.product-card p { margin-block: 6px 15px; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.product-card-bottom { margin-top: auto; border-top: 1px solid #eeedf4; padding-top: 12px; }
.price { color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: .76em; }
.catalog-empty { background: #fff; border: 1px dashed #d9d4ee; border-radius: var(--radius); grid-column: 1/-1; text-align: center; padding: 46px 18px; }
.catalog-empty > .bi, .empty-list > .bi { font-size: 1.5rem; color: var(--accent); }
.catalog-empty h3 { margin: 10px 0 7px; font-size: 1.15rem; }
.catalog-empty p, .empty-list p { color: var(--muted); margin-bottom: 12px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-brand, .footer-links { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: .84rem; }
.footer-brand .brand { color: var(--ink); font-size: 1.12rem; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
.breadcrumbs { color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; font-size: .88rem; }
.breadcrumbs .bi { font-size: .74rem; }
.breadcrumbs span { color: var(--ink); }
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: 20px; align-items: start; }
.product-info, .checkout, .content-page, .narrow-page, .table-page { padding: 30px; }
.product-identity { display: flex; align-items: center; gap: 15px; }
.product-identity .product-icon { width: 66px; height: 66px; border-radius: 15px; font-size: 1.85rem; }
.eyebrow { color: var(--accent-dark); font-size: .87rem; font-weight: 700; margin-bottom: 3px; }
h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); overflow-wrap: anywhere; }
.checkout h2, .detail-copy h2, .delivery-box h2 { font-size: 1.13rem; margin-bottom: 8px; }
.checkout-price { font-size: 2.25rem; }
.muted, .lead-text, .form-hint, .detail-meta { color: var(--muted); }
.lead-text { margin-top: 14px; font-size: 1.02rem; }
.detail-copy { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-copy p { overflow-wrap: anywhere; }
.detail-meta { margin-top: 24px; font-size: .88rem; }
.narrow-page, .content-page { margin: 12px auto; max-width: 500px; }
.content-page { max-width: 740px; }
.page-icon { margin-bottom: 14px; width: 45px; height: 45px; font-size: 1.2rem; }
.stack-form { display: grid; gap: 7px; margin-top: 20px; }
.stack-form label { font-size: .92rem; font-weight: 700; }
.stack-form > input, .stack-form select, .stack-form textarea { width: 100%; min-width: 0; margin-bottom: 7px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.stack-form input:not([type=checkbox]), .stack-form select { min-height: 43px; }
.stack-form textarea { resize: vertical; }
.stack-form select { display: block; }
.stack-form > .button { margin-top: 4px; min-height: 45px; }
.form-hint { font-size: .86rem; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-label { display: flex; gap: 8px; align-items: center; }
.check-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.after-form { margin-top: 20px; font-size: .92rem; }
.after-form a, .shop-table a:not(.button) { color: var(--accent-dark); font-weight: 700; }
.flash, .info-note { display: flex; gap: 9px; align-items: center; border-radius: 9px; padding: 10px 13px; }
.flash { margin-bottom: 17px; }
.flash-error { background: #fce8ed; color: #80233a; }
.flash-ok { background: #e6f5ed; color: #1d664d; }
.info-note { color: #4b398d; background: #f4f0ff; margin-top: 14px; font-size: .88rem; }
.checkout-return { width: 100%; margin-top: 12px; }
.message-page > .button { margin-top: 17px; }
.content-page details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.content-page details p { color: var(--muted); margin-top: 7px; }
.content-page details summary { cursor: pointer; font-weight: 700; }
.content-page > .button { margin-top: 16px; }
.order-main h1 { margin-top: 8px; }
.order-details { margin: 14px 0; }
.order-details div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.order-details dt { color: var(--muted); font-size: .88rem; }
.order-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code { color: var(--accent-dark); overflow-wrap: anywhere; }
.copy-button { min-height: 30px; margin-left: 5px; padding: 3px 7px; font-size: .78rem; }
.secret-box, .delivery-box { margin-top: 16px; border: 1px solid #e3dcfc; background: #f8f6ff; border-radius: 10px; padding: 13px; }
.secret-box p, .delivery-box p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.delivery-box pre { background: #fff; padding: 12px; border-radius: 7px; margin-block: 8px; color: var(--accent-dark); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-status { position: fixed; z-index: 2; right: 15px; bottom: 15px; padding: 9px 14px; border-radius: 9px; background: #20183d; color: #fff; }
.table-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.table-heading p { margin-top: 4px; }
.admin-nav { display: flex; gap: 7px; margin-bottom: 17px; }
.admin-nav a { padding: 5px 10px; color: var(--muted); border-radius: 6px; font-size: .91rem; }
.admin-nav a[aria-current] { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); }
.admin-search { margin: 10px 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.shop-table { width: 100%; min-width: 550px; border-collapse: collapse; font-size: .9rem; text-align: left; }
.shop-table td, .shop-table th { padding: 10px; border-bottom: 1px solid var(--line); }
.shop-table th { background: #f8f7fc; color: #424158; white-space: nowrap; }
.shop-table small { color: var(--muted); }
.table-page > .button { margin-top: 13px; }
.empty-list { text-align: center; padding: 29px 5px; color: var(--muted); }
@media (max-width: 1040px) {
    .wrap { width: calc(100% - 48px); }
    .catalog-layout { grid-template-columns: 186px minmax(0, 1fr); gap: 16px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { grid-template-columns: 1fr auto; column-gap: 6px; row-gap: 3px; padding-top: 9px; }
    .header-nav { grid-column: 1/-1; grid-row: 2; padding: 4px 0 7px; gap: 6px; }
    .header-nav a { padding: 6px 10px; }
    .header-actions { grid-column: 2; grid-row: 1; }
    .header-actions .button { min-height: 35px; }
    .main-content { padding-block: 16px 39px; }
    .hero { min-height: 279px; border-radius: 16px; }
    .hero::before { inset: 0 0 0 22%; opacity: .53; }
    .hero::after { background: linear-gradient(90deg, #1a123e, #150d38ba 61%, #100a3044); }
    .hero-copy { padding: 23px; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.7rem); }
    .hero p { font-size: .96rem; }
    .catalog-layout { display: block; margin-top: 21px; }
    .filter-panel { padding: 10px 10px 8px; margin-bottom: 16px; }
    .filter-title { padding: 0 2px 7px; font-size: .92rem; }
    .category-list { display: flex; gap: 6px; overflow: auto; padding: 2px 3px 7px; scrollbar-width: thin; }
    .category-link { display: flex; gap: 5px; flex: none; padding: 5px 7px; min-height: 37px; border: 1px solid var(--line); }
    .catalog-notice { margin-top: 4px; padding: 5px 2px 0; }
    .catalog-notice strong, .catalog-notice small { display: inline; margin-right: 5px; }
    .section-heading { flex-wrap: wrap; gap: 9px; }
    .catalog-tools { width: 100%; }
    .search-field { flex: 1; min-width: 0; }
    .search-field input { width: 100%; min-width: 0; }
    .benefits { margin-top: 12px; padding: 11px 0; }
    .benefits > div { gap: 6px; padding: 0 8px; }
    .benefit-icon { width: 29px; height: 29px; font-size: .9rem; border-radius: 7px; }
    .benefits strong { font-size: .85rem; }
    .benefits small { display: none; }
    .product-page { grid-template-columns: 1fr; }
    .product-info, .checkout, .content-page, .narrow-page, .table-page { padding: 20px; }
    .footer-inner { flex-wrap: wrap; gap: 6px; padding-block: 12px; }
}
@media (max-width: 410px) {
    .wrap { width: calc(100% - 24px); }
    .product-grid { gap: 8px; }
    .product-card { padding: 10px; }
    .product-card .price { font-size: 1rem; }
    .product-card-bottom { gap: 4px; }
    .button-product { padding-inline: 5px; font-size: .76rem; }
    .product-icon { width: 38px; height: 38px; }
    .footer-brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

