:root {
    --brand: #f43f5e;
    --brand-2: #f97316;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --card: #ffffff;
    --good: #16a34a;
    --bad: #dc2626;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
    --page-bg: linear-gradient(180deg, #fff5f7 0%, #fff8fa 42%, #ffffff 100%);
    --hero-bg: linear-gradient(160deg, #ff4b79 0%, #ff5d68 55%, #ff7a54 100%);
    --quick-icon-bg: linear-gradient(135deg, #fff1f2, #ffedd5);
    --focus-ring: rgba(244, 63, 94, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
body.theme-clean {
    --brand: #0891b2;
    --brand-2: #10b981;
    --ink: #0f172a;
    --page-bg: linear-gradient(180deg, #e9fbff 0%, #f1fff8 46%, #ffffff 100%);
    --hero-bg: linear-gradient(155deg, #0891b2 0%, #0fbaa2 52%, #10b981 100%);
    --quick-icon-bg: linear-gradient(135deg, #ecfeff, #dcfce7);
    --focus-ring: rgba(8, 145, 178, .1);
}
body.theme-dark {
    --brand: #7c3aed;
    --brand-2: #06b6d4;
    --ink: #111827;
    --muted: #64748b;
    --page-bg: linear-gradient(180deg, #101827 0%, #172033 44%, #f8fafc 44%, #ffffff 100%);
    --hero-bg: linear-gradient(155deg, #111827 0%, #5b21b6 54%, #0891b2 100%);
    --quick-icon-bg: linear-gradient(135deg, #ede9fe, #cffafe);
    --focus-ring: rgba(124, 58, 237, .12);
}
body.theme-gold {
    --brand: #b45309;
    --brand-2: #f59e0b;
    --ink: #18181b;
    --page-bg: linear-gradient(180deg, #fff7ed 0%, #fffaf0 48%, #ffffff 100%);
    --hero-bg: linear-gradient(155deg, #18181b 0%, #b45309 58%, #f59e0b 100%);
    --quick-icon-bg: linear-gradient(135deg, #fffbeb, #fef3c7);
    --focus-ring: rgba(180, 83, 9, .12);
}
button, input, select, textarea { font: inherit; max-width: 100%; }
button { cursor: pointer; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }

.app-shell { max-width: 1220px; margin: 0 auto; padding: 14px 14px 104px; }
.page { min-height: auto; }
.hidden { display: none !important; }
.card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.btn {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
    text-align: center;
}
.btn-main { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: #f1f5f9; color: #334155; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.full-btn { width: 100%; margin-top: 16px; }
.text-btn {
    border: 0;
    background: transparent;
    color: var(--brand);
    padding: 8px 0 0;
    font-weight: 900;
}
.input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0 13px;
    outline: none;
    color: var(--ink);
    font-weight: 760;
    min-width: 0;
}
textarea.input { padding: 12px 13px; line-height: 1.7; resize: vertical; }
.input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.muted { color: var(--muted); }
.line-1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-2.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.toast {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: min(92vw, 560px);
    border-radius: 8px;
    background: rgba(15, 23, 42, .95);
    color: #fff;
    padding: 12px 18px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background: var(--hero-bg);
    border: 0;
    box-shadow: 0 18px 42px rgba(244, 63, 94, .24);
}
.hero-pill {
    display: inline-flex;
    max-width: calc(100% - 92px);
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 54px;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 1000;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .18s ease; }
.brand-logo.has-logo { background: #fff; color: var(--brand); }
.brand-logo img.loaded { opacity: 1; }
.brand-logo.has-logo span { display: none; }
.hero h1 { margin: 0; color: #fff; font-size: 42px; line-height: 1.05; letter-spacing: 0; }
.hero p { margin: 8px 0 0; color: rgba(255,255,255,.92); font-size: 17px; font-weight: 900; }
.home-avatar {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 5px solid rgba(255,255,255,.96);
    box-shadow: 0 14px 28px rgba(15,23,42,.16);
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 28px;
    font-weight: 1000;
}
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice {
    margin-top: 12px;
    padding: 13px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
}
.notice strong { margin-left: auto; color: var(--brand); }
.banner {
    height: 280px;
    margin-top: 18px;
    overflow: hidden;
    position: relative;
    background: #dbe4ef;
    padding: 0;
    border: 0;
    line-height: 0;
}
.banner-media,
.banner img { width: 100%; height: 100%; }
.banner-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.banner img {
    object-fit: cover;
    display: block;
}
.banner-image,
.banner-image.loaded {
    background: #dbe4ef;
    animation: none;
}
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .38), rgba(15, 23, 42, .02));
}
.banner-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .46);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
}
.banner-nav span {
    font-size: 26px;
    line-height: 1;
    margin-top: -2px;
}
.banner-nav.prev { left: 14px; }
.banner-nav.next { right: 14px; }
.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.banner-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255,255,255,.48);
}
.banner-dot.active {
    width: 22px;
    background: #fff;
}
.banner-copy {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 1;
    color: #fff;
}
.banner-copy strong { font-size: 34px; display: block; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.quick-card {
    position: relative;
    overflow: hidden;
    padding: 18px 12px;
    text-align: center;
    border: 0;
    min-height: 108px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 30px rgba(146, 64, 14, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(15, 23, 42, .14); }
.quick-icon {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 12px;
    background: var(--quick-icon-bg);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.quick-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.quick-card strong { display: block; font-size: 22px; }
.quick-card span { color: var(--muted); font-weight: 800; display: block; margin-top: 6px; }

.section-head {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.products-head { align-items: center; }
.section-head h2 { margin: 0; font-size: 30px; display: flex; align-items: center; line-height: 1.15; }
.section-head p { margin: 6px 0 0; }
.section-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    flex: 0 0 34px;
}
.section-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.section-select { max-width: 180px; align-self: center; }
.buy-head {
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,245,247,.94));
    border: 1px solid rgba(226,232,240,.88);
    box-shadow: 0 14px 38px rgba(15,23,42,.06);
}
.buy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.buy-title h2 {
    margin: 0;
    display: flex;
    align-items: center;
}
.buy-title p {
    margin: 4px 0 0;
}
.toolbar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 2px; }
.tabs::-webkit-scrollbar, .sidebar nav::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb, .sidebar nav::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.chip {
    border: 0;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 16px;
    background: #fff;
    color: #475569;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
#categoryTabs .chip {
    min-height: 42px;
    padding: 0 18px;
    font-size: 15px;
}
#subcategoryTabs,
#filterSubs {
    padding-top: 6px;
}
#subcategoryTabs .chip,
#filterSubs .chip {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 13px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}
#subcategoryTabs .chip.active,
#filterSubs .chip.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.tabs-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 4px 0 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.product-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    min-height: 220px;
    align-content: start;
}
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.table-wrap .pager,
.card > .pager {
    padding: 0 14px 16px;
}
.pager .btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}
.pager-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.pager-dot {
    color: #94a3b8;
    font-weight: 900;
}
.product-card {
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.product-img { aspect-ratio: 1 / 1; margin: 9px; border-radius: 8px; overflow: hidden; background: #e2e8f0; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.lazy-img { opacity: 1; transition: opacity .22s ease; background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 90%); background-size: 220% 100%; animation: imagePulse 1.2s ease-in-out infinite; }
.lazy-img.loaded { opacity: 1; animation: none; background: transparent; }
@keyframes imagePulse {
    0% { background-position: 0 0; }
    100% { background-position: -220% 0; }
}
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 8px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 1000;
}
.badge-code { position: absolute; left: 9px; top: 9px; background: rgba(255,255,255,.94); color: var(--brand); }
.badge-pay { position: absolute; right: 9px; bottom: 9px; background: #ecfdf5; color: #047857; }
.product-body { padding: 4px 14px 15px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--muted); font-weight: 900; }
.product-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-title { min-height: 42px; margin: 0; font-size: 15px; line-height: 1.4; }
.tag { display: inline-flex; margin: 0 5px 6px 0; padding: 4px 8px; border-radius: 8px; background: #fff1f2; color: var(--brand); font-size: 11px; font-weight: 900; }
.tag-row { height: 30px; overflow: hidden; }
.price-label { font-size: 12px; font-weight: 900; }
.price-row { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; }
.price { color: var(--brand); font-size: 25px; font-weight: 1000; }
.price-panel { margin-top: 16px; padding: 16px; border: 1px solid #fed7aa; border-radius: 8px; background: linear-gradient(135deg,#fff1f2,#fff7ed); }
.empty-state { grid-column: 1 / -1; padding: 42px 24px; text-align: center; border-style: dashed; box-shadow: none; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p { margin: 8px 0 0; }
#productList:empty::before {
    content: "商品加载中...";
    grid-column: 1 / -1;
    min-height: 168px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-weight: 900;
}

.detail-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; align-items: stretch; }
.detail-media {
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    background: #e2e8f0;
}
.detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.detail-info { padding: 26px; }
.detail-title { margin: 14px 0 0; font-size: 28px; line-height: 1.28; }
.detail-actions { margin-top: 16px; }
.detail-actions .btn {
    width: 100%;
}
.share-panel {
    width: min(430px, 100%);
}
.share-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 46%, #f8fafc 100%);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(15,23,42,.10);
}
.share-card.is-saving {
    box-shadow: none;
}
.share-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.share-brand strong {
    font-size: 18px;
    color: var(--ink);
}
.share-brand span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 1000;
}
.share-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}
.share-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.share-info {
    display: grid;
    gap: 6px;
}
.share-info h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}
.share-info p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}
.share-price {
    color: var(--brand);
    font-size: 28px;
    font-weight: 1000;
}
.share-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px dashed #cbd5e1;
}
.share-qr img {
    width: 168px;
    height: 168px;
}
.share-qr span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.share-actions {
    margin-top: 14px;
}
.detail-panel { padding: 18px; margin-top: 16px; }
.badge-soft { background: #fff1f2; color: var(--brand); }
.detail-price { font-size: 38px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.info-box { background: #f8fafc; border-radius: 8px; padding: 13px; }
.info-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.info-box strong { display: block; margin-top: 4px; }
.detail-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-tab { border: 0; background: transparent; padding: 16px 0; font-weight: 1000; color: var(--muted); }
.detail-tab.active { color: var(--brand); border-bottom: 2px solid var(--brand); }
.detail-content { white-space: pre-line; line-height: 1.9; font-size: 16px; }
.detail-content, .info-box, .product-title { overflow-wrap: anywhere; }
.detail-content img { width: 100%; border-radius: 8px; margin-top: 14px; }
.detail-content video { width: 100%; border-radius: 8px; margin-top: 14px; background: #0f172a; }
.detail-content iframe { width: 100%; min-height: 320px; border: 0; border-radius: 8px; margin-top: 14px; background: #0f172a; }
.rich-content { white-space: normal; }
.rich-content p { margin: 0 0 12px; }
.rich-content a { color: var(--brand); font-weight: 900; text-decoration: underline; }
.detail-gallery { display: grid; gap: 12px; margin-top: 12px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; white-space: normal; }
.flow-steps.vertical { grid-template-columns: 1fr; }
.flow-step {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.flow-step span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 1000;
    margin-bottom: 10px;
}
.flow-step strong { display: block; font-size: 16px; }
.flow-step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.page-top {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 18px;
    position: sticky;
    top: 10px;
    z-index: 20;
    backdrop-filter: blur(18px);
}
.brand-lockup.compact { gap: 10px; font-weight: 1000; }
.brand-lockup.compact .brand-logo { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.page-narrow { min-height: auto; }
.inner-hero {
    border-radius: 18px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 42px rgba(15,23,42,.14);
}
.inner-hero h1 { margin: 14px 0 0; font-size: 38px; line-height: 1.1; letter-spacing: 0; }
.inner-hero p { margin: 12px 0 0; max-width: 720px; font-size: 16px; font-weight: 800; color: rgba(255,255,255,.9); }
.inner-hero .hero-pill { max-width: 100%; margin: 0; background: rgba(255,255,255,.18); }
.content-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 16px; }
.panel-block { padding: 20px; }
.panel-block h2 { margin: 0 0 12px; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; }
.verify-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.verify-card { padding: 18px; margin-top: 14px; box-shadow: none; }
.verify-card h3 { margin: 0 0 8px; }
.verify-card.good { border-color: #bbf7d0; }
.verify-card.good h3 { color: #16a34a; }
.verify-card.bad { border-color: #fecaca; }
.verify-card.bad h3 { color: #dc2626; }
.about-article { margin-top: 16px; }
.about-timeline { display: grid; gap: 12px; margin-top: 16px; }
.about-post {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}
.about-post-cover {
    display: block;
    min-height: 126px;
    background: #e2e8f0;
    overflow: hidden;
}
.about-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.about-post-body {
    display: block;
    padding: 14px 16px;
    color: inherit;
}
.about-post-date { color: var(--brand); font-size: 12px; font-weight: 1000; }
.about-post h2 { margin: 4px 0 8px; font-size: 19px; line-height: 1.3; }
.about-post p { margin: 0; line-height: 1.6; }
.about-post-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 1000;
}
.about-detail {
    padding: 22px;
}
.about-detail-head h1 {
    margin: 6px 0 10px;
    font-size: 32px;
    line-height: 1.18;
}
.about-detail-cover {
    margin: 16px 0 18px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}
.about-detail-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.loading-card { padding: 28px; font-weight: 900; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.modal-panel {
    width: min(680px, 100%);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 22px;
}
.modal-head { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; }
.notice-panel { box-shadow: 0 28px 80px rgba(15,23,42,.28); }
.modal-actions { margin-top: 16px; }
.site-footer { padding-top: 0; }
.footer-card { padding: 16px; text-align: center; color: #64748b; font-weight: 800; }
.footer-card a { color: inherit; text-decoration: none; }
.footer-card a:hover { color: var(--brand); }
.footer-split { color: #cbd5e1; margin: 0 6px; }
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 900;
    width: min(560px, calc(100% - 24px));
    height: 70px;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(226,232,240,.92);
    box-shadow: 0 18px 50px rgba(15,23,42,.18);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.nav-btn { border: 0; background: transparent; color: #64748b; font-weight: 1000; display: grid; place-items: center; height: 100%; text-align: center; }
.nav-btn.active { color: var(--brand); }
.nav-buy { margin-top: -24px; height: 58px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 28px rgba(244,63,94,.28); }
.nav-buy.active { color: #fff; text-shadow: 0 1px 1px rgba(15,23,42,.24); }
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 104px;
    z-index: 920;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top span {
    font-size: 24px;
    line-height: 1;
    font-weight: 1000;
}

.console-body {
    background: #f5f7fb;
    color: #111827;
}
.console-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #111827;
    color: #fff;
    padding: 18px 14px;
    overflow-y: auto;
}
.sidebar h1 { margin: 0; padding: 4px 8px 0; font-size: 22px; letter-spacing: 0; }
.sidebar p { margin: 6px 8px 18px; color: #9ca3af; font-size: 13px; line-height: 1.5; font-weight: 800; }
.sidebar nav { display: grid; gap: 6px; }
.side-btn {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    text-align: left;
    padding: 0 12px;
    background: transparent;
    color: #d1d5db;
    font-weight: 900;
}
.side-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(244, 63, 94, .22);
}
.console-main {
    padding: 18px 22px 40px;
    min-width: 0;
}
.console-top {
    min-height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    position: sticky;
    top: 12px;
    z-index: 20;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
}
.console-top strong { display: block; font-size: 18px; }
.console-section { margin-top: 18px; }
.console-section > .card,
.admin-grid > .card {
    box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}
.console-section h2,
.admin-grid h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.25;
}
.console-card {
    padding: 18px;
}
.console-wide {
    max-width: 980px;
}
.console-narrow {
    max-width: 760px;
}
.console-card-head {
    margin-bottom: 14px;
}
.console-card-head h2 {
    margin-bottom: 4px;
}
.console-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}
.console-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.form-stack { display: grid; gap: 12px; }
.admin-grid {
    display: grid;
    grid-template-columns: minmax(430px, 500px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.table-wrap {
    overflow-x: auto;
    min-width: 0;
    padding: 0 !important;
}
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.table tr:hover td { background: #fcfdff; }
.thumb { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: #e2e8f0; }
.actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.mini { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.preview-row { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-item { width: 112px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.preview-item.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 63, 94, .08); }
.preview-item img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.update-stats {
    margin-top: 6px;
}
.update-stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    display: grid;
    gap: 6px;
}
.update-stat strong {
    font-size: 20px;
    line-height: 1.2;
}
.update-note {
    padding: 14px;
    box-shadow: none;
}
.update-note strong {
    display: block;
    margin-bottom: 6px;
}
.update-note p {
    margin: 0;
    line-height: 1.7;
}
.auth-query {
    display: grid;
    gap: 10px;
}
.auth-query-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}
.auth-result {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.auth-result strong {
    margin: 0;
}
.auth-result span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 800;
}
.auth-result.ok {
    border-color: #bbf7d0;
    background: #ecfdf5;
}
.auth-result.bad {
    border-color: #fecaca;
    background: #fff7f7;
}
.license-site-card {
    display: grid;
    gap: 10px;
}
.license-site-url {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    font-weight: 900;
}
.update-message {
    min-width: 320px;
    white-space: normal;
    line-height: 1.6;
    color: #475569;
}
.update-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}
.update-status.ok,
.text-good {
    color: #15803d;
}
.update-status.ok {
    background: #ecfdf5;
}
.update-status.bad,
.text-bad {
    color: #b91c1c;
}
.update-status.bad {
    background: #fef2f2;
}
.wang-editor-wrap {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}
.wang-toolbar {
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.wang-area {
    min-height: 320px;
}
.wang-area .w-e-text-container {
    min-height: 320px !important;
}
.rich-editor {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}
.rich-area {
    min-height: 220px;
    padding: 14px;
    outline: none;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.rich-area:empty::before {
    content: "在这里直接编辑内容，可插入链接、图片和视频";
    color: #94a3b8;
    font-weight: 800;
}
.rich-area h2 { margin: 8px 0 10px; font-size: 22px; }
.rich-area p { margin: 0 0 10px; }
.rich-area ul,
.rich-area ol { padding-left: 22px; }
.rich-area img,
.rich-area video,
.rich-area iframe { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 26px; }
.login-card h1 { margin: 0; font-size: 28px; }

.rich-content img,
.rich-content video,
.rich-content iframe {
    max-width: 100%;
}

.detail-text {
    overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .console-layout { grid-template-columns: 1fr; }
    .sidebar { position: sticky; top: 0; z-index: 30; height: auto; padding: 12px 14px; overflow: hidden; }
    .sidebar h1 { font-size: 20px; }
    .sidebar p { margin-bottom: 12px; }
    .sidebar nav { display: flex; gap: 8px; overflow-x: auto; }
    .side-btn { white-space: nowrap; width: auto; min-width: max-content; }
}
@media (max-width: 760px) {
    .app-shell { padding: 0 10px 94px; }
    .card { border-radius: 8px; }
    .hero { padding: 16px 14px 18px; border-radius: 0 0 24px 24px; margin: 0 -10px; min-height: 0; }
    .hero-pill { max-width: calc(100% - 86px); min-height: 30px; margin-left: 2px; margin-bottom: 10px; padding: 0 11px; font-size: 12px; }
    .topbar { align-items: flex-start; gap: 12px; }
    .brand-lockup { gap: 10px; }
    .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 8px; font-size: 20px; }
    .hero h1 { font-size: 31px; }
    .hero p { font-size: 15px; color: rgba(255,255,255,.92); }
    .home-avatar { width: 76px; height: 76px; flex-basis: 76px; border-radius: 20px; border-width: 4px; }
    .hero-actions { display: none; }
    .banner { height: clamp(150px, 42vw, 190px); border-radius: 18px; margin-top: 16px; }
    .banner-copy { left: 18px; bottom: 18px; }
    .banner-copy strong { font-size: 24px; }
    .banner-nav { width: 36px; height: 36px; margin-top: -18px; }
    .banner-nav.prev { left: 10px; }
    .banner-nav.next { right: 10px; }
    .banner-dots { bottom: 12px; }
    .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .quick-card { min-height: 88px; padding: 12px 7px; border-radius: 14px; }
    .quick-icon { width: 34px; height: 34px; border-radius: 10px; }
    .quick-icon svg { width: 19px; height: 19px; stroke-width: 2.3; }
    .quick-card strong { font-size: 18px; }
    .quick-card span { display: none; }
    .section-head { display: block; }
    .products-head { display: grid; grid-template-columns: minmax(0, 1fr) 136px; align-items: center; gap: 8px; }
    .section-head h2 { font-size: 24px; display: flex; align-items: center; line-height: 1.15; }
    .section-icon { width: 30px; height: 30px; margin-right: 7px; flex: 0 0 30px; }
    .section-icon svg { width: 16px; height: 16px; }
    .section-head p { font-size: 13px; line-height: 1.55; }
    .section-select { max-width: none; min-height: 44px; padding: 0 10px; }
    .toolbar { grid-template-columns: 88px minmax(0, 1fr) 92px !important; gap: 8px; align-items: stretch; }
    .toolbar .input { grid-column: auto; min-height: 46px; }
    .toolbar .btn { width: 100%; padding: 0 12px; }
    .tabs { gap: 8px; padding: 10px 0 2px; }
    #categoryTabs .chip { min-height: 40px; padding: 0 15px; font-size: 14px; }
    #subcategoryTabs .chip, #filterSubs .chip { min-height: 32px; padding: 0 12px; font-size: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-img { margin: 7px; border-radius: 8px; }
    .product-body { padding: 2px 10px 12px; }
    .product-title { font-size: 14px; }
    .product-meta { display: block; line-height: 1.5; }
    .product-meta span { display: block; }
    .badge { max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .badge-pay { left: 9px; right: auto; }
    .price-row { align-items: center; gap: 8px; }
    .price { font-size: 21px; }
    .detail-layout { grid-template-columns: 1fr; align-items: start; }
    .detail-media { aspect-ratio: 1 / 1; height: auto; min-height: 0; max-height: none; margin: 8px; border-radius: 8px; overflow: hidden; width: auto; }
    .detail-info { padding: 16px; }
    .grid-2, .grid-3, .info-grid { grid-template-columns: 1fr; }
    .flow-steps, .content-grid { grid-template-columns: 1fr; }
    .page-top { top: 0; margin: 0 -10px 12px; border-radius: 0 0 12px 12px; min-height: 62px; }
    .page-top .btn { min-height: 38px; padding: 0 12px; }
    .inner-hero { border-radius: 14px; padding: 22px 18px; }
    .inner-hero h1 { font-size: 29px; }
    .inner-hero p { font-size: 14px; }
    .panel-block { padding: 16px; }
    .about-post { grid-template-columns: 108px minmax(0, 1fr); }
    .about-post-cover { min-height: 100px; }
    .about-post-body { padding: 12px; }
    .about-post h2 { font-size: 17px; }
    .about-detail { padding: 16px; }
    .about-detail-head h1 { font-size: 26px; }
    .verify-box { grid-template-columns: 1fr; }
    .detail-title { font-size: 22px; }
    .detail-panel { padding: 14px; }
    .detail-tabs { gap: 16px; }
    .console-main { padding: 12px; }
    .console-top { display: block; top: 8px; }
    .console-top .actions { justify-content: flex-start; margin-top: 10px; }
    .sidebar { padding: 12px; }
    .sidebar p { display: none; }
    .side-btn { min-height: 38px; border-radius: 8px; padding: 0 12px; }
    .console-card { padding: 14px; }
    .console-tools { grid-template-columns: 1fr; padding: 12px; }
    .form-actions { grid-template-columns: 1fr; }
    .table { min-width: 620px; }
    .table th, .table td { padding: 10px 7px; }
    .actions { justify-content: flex-start; }
    .auth-query-row { grid-template-columns: 1fr; }
    .update-message { min-width: 240px; }
    .wang-area, .wang-area .w-e-text-container { min-height: 260px !important; }
    .bottom-nav { height: 64px; bottom: 10px; border-radius: 8px; }
    .bottom-nav { display: grid; }
    .back-to-top { right: 14px; bottom: 88px; width: 42px; height: 42px; }
    .nav-btn { font-size: 13px; }
    .nav-buy { height: 52px; border-radius: 8px; }
    .modal { padding: 10px; align-items: center; }
    .modal-panel { border-radius: 8px; padding: 18px; }
    .modal-head h2 { font-size: 22px; }
    .footer-card { margin: 0 10px; line-height: 1.7; }
}

@media (max-width: 430px) {
    .app-shell { padding-left: 10px; padding-right: 10px; }
    .hero { padding: 14px 12px 16px; }
    .brand-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 8px; font-size: 18px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 13px; }
    .banner { height: 166px; }
    .banner-copy strong { font-size: 20px; }
    .banner-nav { width: 32px; height: 32px; margin-top: -16px; }
    .banner-nav span { font-size: 22px; }
    .banner-dot.active { width: 18px; }
    .quick-grid { gap: 8px; }
    .quick-card { min-height: 82px; padding: 10px 5px; }
    .quick-card strong { font-size: 16px; }
    .about-post { grid-template-columns: 1fr; }
    .about-post-cover { min-height: 160px; }
    .products-head { grid-template-columns: minmax(0, 1fr) 124px; }
    .section-head h2 { font-size: 23px; }
    .section-select { font-size: 13px; }
    .toolbar { grid-template-columns: 1fr 1.5fr 1fr !important; gap: 7px; }
    .toolbar .btn { min-height: 44px; padding: 0 8px; }
    .toolbar .input { min-height: 44px; padding: 0 10px; font-size: 13px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-img { aspect-ratio: 1 / 1; margin: 6px; }
    .product-body { padding: 2px 8px 10px; }
    .product-title { min-height: 38px; font-size: 13px; }
    .tag-row { display: none; }
    .price { font-size: 18px; }
    .price-label { font-size: 11px; }
    .price-row { margin-top: 8px; }
    .price-row .btn { min-width: 72px; }
    .bottom-nav { width: calc(100% - 16px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .nav-btn { font-size: 12px; padding: 0 2px; }
    .login-card { padding: 20px; }
    .toast { width: calc(100% - 24px); border-radius: 8px; text-align: center; }
    .modal-panel { max-height: 86vh; }
    .preview-item { width: calc(50% - 5px); }
    .preview-item img { height: 96px; }
}
