* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", "Segoe Print", "Microsoft YaHei", cursive, sans-serif;
    background: #f5f0e8;
    color: #2c2c2c;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,0,0,.015) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(0,0,0,.015) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
}
a { text-decoration: none; color: inherit; }

/* ===== SKETCH UTILITY ===== */
.sketch-border {
    border: 2px solid #2c2c2c;
    border-radius: 4px;
    position: relative;
    box-shadow: 2px 2px 0 #2c2c2c, -1px -1px 0 rgba(44,44,44,.3);
}
.sketch-border::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(44,44,44,.15);
    border-radius: 6px;
    pointer-events: none;
}
.sketch-divider {
    height: 3px;
    background: repeating-linear-gradient(90deg, #2c2c2c 0, #2c2c2c 20px, transparent 20px, transparent 24px);
    margin: 24px 0;
}

/* ===== SCROLLING NOTICE ===== */
.notice-bar {
    background: #fffdf9;
    border-bottom: 2px solid #2c2c2c;
    padding: 6px 16px;
    overflow: hidden;
    position: relative;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-bar .notice-label {
    display: inline-flex;
    align-items: center;
    background: #2c2c2c;
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
    letter-spacing: 1px;
    border-radius: 6px;
    z-index: 2;
}
.notice-bar .notice-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.notice-bar .notice-text {
    display: inline-flex;
    gap: 48px;
    white-space: nowrap;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    animation: scrollNotice 40s linear infinite;
    will-change: transform;
}
.notice-bar .notice-text span {
    display: inline-block;
}
@keyframes scrollNotice {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== BANNER SLIDER ===== */
.banner-wrap {
    position: relative;
    z-index: 1;
    padding: 16px 16px 0;
    max-width: 1080px;
    margin: 0 auto;
}
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid #2c2c2c;
    box-shadow: 4px 4px 0 #2c2c2c;
    background: #1a1a1a;
}
.banner-slider .banner-track {
    display: flex;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.banner-slider .banner-slide {
    min-width: 100%;
    aspect-ratio: 2.4 / 1;
    position: relative;
    background: #2c2c2c;
}
.banner-slider .banner-slide a,
.banner-slider .banner-slide > img {
    display: block;
    width: 100%;
    height: 100%;
}
.banner-slider .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-slider .banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    z-index: 4;
}
.banner-slider .banner-dots .dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: .25s;
}
.banner-slider .banner-dots .dot.active {
    width: 22px;
    background: #fff;
}
.banner-slider .banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,253,249,.92);
    border: 2px solid #2c2c2c;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    z-index: 5;
    font-family: inherit;
    opacity: 0;
}
.banner-slider:hover .banner-arrow { opacity: 1; }
.banner-slider .banner-arrow:hover { background: #2c2c2c; color: #fff; }
.banner-slider .banner-arrow-prev { left: 10px; }
.banner-slider .banner-arrow-next { right: 10px; }

/* ===== SHOP TOOLBAR ===== */
.shop-toolbar {
    max-width: 560px;
    margin: 0 auto 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.shop-search,
.shop-select {
    padding: 12px 16px;
    border: 2px solid #2c2c2c;
    font-size: 15px;
    font-family: inherit;
    background: #fffdf9;
    box-shadow: 3px 3px 0 #2c2c2c;
    outline: none;
    border-radius: 10px;
    transition: box-shadow .15s, transform .15s;
}
.shop-search {
    flex: 1;
    min-width: 160px;
}
.shop-select {
    min-width: 132px;
    cursor: pointer;
}
.shop-search:focus,
.shop-select:focus {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #2c2c2c;
}

/* ===== SECTION ===== */
.section { position: relative; z-index: 1; padding: 32px 16px 60px; }
.section-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%) rotate(-.5deg);
}
.section-title::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    background: #2c2c2c;
    margin: 6px auto 0;
}
.section-sub {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

/* ===== CATEGORY WRAP ===== */
/* Categories shown as a dropdown select matching the search box style */

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}
.product-card {
    background: #fffdf9;
    border: 2px solid #2c2c2c;
    position: relative;
    transition: all .3s;
    box-shadow: 4px 4px 0 #2c2c2c;
    transform: rotate(var(--rot, 0deg));
}
.product-card:nth-child(odd) { --rot: -.5deg; }
.product-card:nth-child(even) { --rot: .5deg; }
.product-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 6px 6px 0 #2c2c2c;
}
.product-card::before {
    content: '';
    position: absolute;
    top: -4px; right: -4px; bottom: -4px; left: -4px;
    border: 1px dashed rgba(44,44,44,.15);
    border-radius: 2px;
    pointer-events: none;
}
.product-card .card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #2c2c2c;
    background: #ede6d8;
}
.product-card .card-img-plh {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 2px solid #2c2c2c;
    background: #f5f0e8;
}
.product-card .card-body { padding: 18px; position: relative; }
.product-card .card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1.5px solid #2c2c2c;
    padding: 2px 10px;
    margin-bottom: 8px;
    transform: rotate(-1deg);
}
.product-card .card-title {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: .5px;
    line-height: 1.35;
}
.product-card .card-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.product-card .card-price { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card .price-current { font-size: 26px; font-weight: 900; }
.product-card .price-current.price-free { color: #e53e3e; }
.product-card .price-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e53e3e;
    background: #fed7d7;
    border: 1.5px solid #fc8181;
    padding: 2px 8px;
    border-radius: 6px;
}
.product-card .price-original { font-size: 14px; color: #aaa; text-decoration: line-through; text-decoration-thickness: 2px; }
.product-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    padding-top: 10px;
    border-top: 2px dashed #ddd;
    margin-bottom: 14px;
}
.product-card .btn-buy {
    display: block;
    text-align: center;
    padding: 11px;
    background: #2c2c2c;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: .2s;
    position: relative;
}
.product-card .btn-buy::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px dashed rgba(255,255,255,.25);
    pointer-events: none;
}
.product-card .btn-buy:hover {
    background: #fff;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
}
.product-card .btn-buy:hover::after { border-color: rgba(44,44,44,.2); }
.product-card .tag-soldout {
    display: block;
    text-align: center;
    padding: 11px;
    background: #e8e2d8;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: not-allowed;
}

/* ===== BADGE ===== */
.badge { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 700; border: 1.5px solid #2c2c2c; }
.badge-success { background: #2c2c2c; color: #fff; }
.badge-warning { background: #fff; color: #2c2c2c; }
.badge-info { background: #e8e2d8; color: #2c2c2c; }
.badge-secondary { background: #ddd; color: #666; }

/* ===== EMPTY ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* ===== SKETCH DECORATIONS ===== */
.doodle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: .06;
    font-size: 120px;
    font-weight: 900;
    color: #2c2c2c;
    transform: rotate(-5deg);
    user-select: none;
    font-family: "Comic Sans MS", cursive;
}
.doodle-1 { top: 10%; left: 2%; }
.doodle-2 { bottom: 15%; right: 3%; transform: rotate(8deg); }
.doodle-3 { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-3deg); font-size: 200px; opacity: .03; }

/* ===== FOOTER（对齐原版：单行版权） ===== */
.footer {
    text-align: center;
    padding: 28px 16px 36px;
    color: #a0aec0;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-top: 2px solid #2c2c2c;
    background: #fffdf9;
    position: relative;
    z-index: 1;
}
/* 兼容旧类名 */
.site-footer { text-align: center; padding: 28px 16px 36px; color: #a0aec0; font-size: 13px; border-top: 2px solid #2c2c2c; background: #fffdf9; }
.site-footer-inner { max-width: 960px; margin: 0 auto; }
.site-footer-brand,
.site-footer-desc,
.site-footer-nav { display: none; }
.site-footer-copy { margin: 0; }

/* ===== BUY PAGE ===== */
.buy-page { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 16px; }
.buy-card {
    width: 100%; max-width: 500px;
    background: #fffdf9;
    border: 2px solid #2c2c2c;
    box-shadow: 5px 5px 0 #2c2c2c;
    padding: 36px 32px;
    position: relative;
    transform: rotate(-.3deg);
}
.buy-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(44,44,44,.12);
    pointer-events: none;
}
.buy-card h2 { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin-bottom: 4px; }
.buy-card .subtitle { font-size: 14px; color: #888; margin-bottom: 24px; }
.buy-card .product-preview {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px;
    border: 2px dashed #ddd;
    margin-bottom: 24px;
}
.buy-card .product-preview .preview-img { width: 60px; height: 60px; border: 2px solid #2c2c2c; object-fit: cover; flex-shrink: 0; }
.buy-card .product-preview .preview-info .name { font-weight: 900; font-size: 16px; }
.buy-card .product-preview .preview-info .cat { font-size: 12px; color: #888; margin-top: 2px; }
.buy-card .product-preview .preview-price { margin-left: auto; font-size: 24px; font-weight: 900; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select {
    width: 100%; padding: 12px 14px;
    border: 2px solid #2c2c2c;
    font-size: 15px;
    background: #fff;
    outline: none;
    font-family: inherit;
    box-shadow: 2px 2px 0 #2c2c2c;
}
.form-group input:focus { box-shadow: 3px 3px 0 #2c2c2c; }
.form-group .hint { font-size: 12px; color: #aaa; margin-top: 4px; }
.pay-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px; }
.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method label {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px;
    border: 2px solid #2c2c2c;
    cursor: pointer;
    transition: .2s;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    box-shadow: 2px 2px 0 #2c2c2c;
}
.pay-method label .pay-icon { font-size: 28px; }
.pay-method input:checked + label {
    background: #2c2c2c;
    color: #fff;
    box-shadow: 3px 3px 0 #2c2c2c;
    transform: scale(1.02);
}
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin-bottom: 16px; border-top: 2px dashed #ddd; }
.total-row .label { font-size: 14px; color: #888; }
.total-row .amount { font-size: 26px; font-weight: 900; }
.btn-submit {
    width: 100%; padding: 14px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.btn-submit:hover { background: #fff; color: #2c2c2c; border: 2px solid #2c2c2c; padding: 12px; }
.btn-submit:disabled,
.btn-submit:disabled:hover {
  background: #cbd5e0;
  color: #fff;
  border: 2px solid #cbd5e0;
  cursor: not-allowed;
  padding: 14px;
}

/* ===== SUCCESS ===== */
.success-page { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 16px; }
.success-card {
    width: 100%; max-width: 480px;
    background: #fffdf9;
    border: 2px solid #2c2c2c;
    box-shadow: 5px 5px 0 #2c2c2c;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transform: rotate(.3deg);
}
.success-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(44,44,44,.12);
    pointer-events: none;
}
.success-card .icon { font-size: 56px; margin-bottom: 12px; }
.success-card h2 { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.success-card p { color: #888; margin-bottom: 24px; }
.success-card .info-block { text-align: left; border: 2px dashed #ddd; padding: 16px; margin-bottom: 20px; }
.success-card .info-block .label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.success-card .info-block .value { font-size: 14px; margin-bottom: 12px; }
.success-card .info-block .card-value { background: #f5f0e8; border: 2px solid #2c2c2c; padding: 12px; font-family: monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.success-card .btn-back { display: inline-block; padding: 12px 32px; background: #2c2c2c; color: #fff; font-weight: 900; letter-spacing: 1px; transition: .2s; }
.success-card .btn-back:hover { background: #fff; color: #2c2c2c; border: 2px solid #2c2c2c; padding: 10px 30px; }

/* ===== ORDER QUERY ===== */
.query-page { position: relative; z-index: 1; min-height: 100vh; padding: 80px 16px; }
.query-card {
    max-width: 500px; margin: 0 auto;
    background: #fffdf9;
    border: 2px solid #2c2c2c;
    box-shadow: 5px 5px 0 #2c2c2c;
    padding: 32px;
    transform: rotate(-.3deg);
    position: relative;
}
.query-card::before {
    content: '';
    position: absolute; inset: -4px;
    border: 1px dashed rgba(44,44,44,.12);
    pointer-events: none;
}
.query-card h2 { font-size: 20px; font-weight: 900; letter-spacing: 1px; margin-bottom: 16px; text-align: center; }
.query-form { display: flex; gap: 10px; }
.query-form input { flex: 1; padding: 12px 14px; border: 2px solid #2c2c2c; font-size: 14px; font-family: inherit; background: #fff; box-shadow: 2px 2px 0 #2c2c2c; outline: none; }
.query-form input:focus { box-shadow: 3px 3px 0 #2c2c2c; }
.query-form button { padding: 12px 24px; background: #2c2c2c; color: #fff; border: none; font-weight: 900; cursor: pointer; transition: .2s; font-family: inherit; }
.query-form button:hover { background: #fff; color: #2c2c2c; border: 2px solid #2c2c2c; padding: 10px 22px; }
.order-result { margin-top: 20px; }
.order-info { border: 2px dashed #ddd; padding: 16px; }
.order-info .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.order-info .row:last-child { border-bottom: none; }
.order-info .row .label { color: #888; }
.order-info .row .value { font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .banner-slider .banner-arrow { width: 32px; height: 32px; font-size: 14px; opacity: 1; }
    .banner-slider .banner-slide { aspect-ratio: 16 / 9; }
    .shop-toolbar { max-width: 100%; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .buy-card { padding: 24px 18px; }
    .pay-methods { grid-template-columns: 1fr; }
    .doodle { font-size: 60px; }
    .product-card .card-body { padding: 12px; }
    .product-card .card-img, .product-card .card-img-plh { aspect-ratio: 4 / 3; }
    .product-card .card-title { font-size: 14px; }
    .product-card .price-current { font-size: 20px; }
    .product-card .card-desc { font-size: 12px; }
    .product-card .btn-buy, .product-card .tag-soldout { font-size: 12px; padding: 8px; }
}
/* ===== 统一手绘输入框 ===== */
.input-sketch,
.auth-modal .form-group input,
.uc-card .form-group input,
.query-form input,
.buy-card .form-group input,
.register-box .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #2c2c2c;
    border-radius: 10px;
    background: #fffdf9;
    font-family: 'Courier New', 'Microsoft YaHei', monospace;
    font-size: 14px;
    color: #2c2c2c;
    box-shadow: 3px 3px 0 #2c2c2c;
    outline: none;
    transition: all 0.15s ease;
}

.input-sketch:focus,
.auth-modal .form-group input:focus,
.uc-card .form-group input:focus,
.query-form input:focus,
.buy-card .form-group input:focus,
.register-box .form-group input:focus {
    box-shadow: 2px 2px 0 #2c2c2c;
    background: #faf8f4;
}

/* 占位符样式 */
.input-sketch::placeholder,
.auth-modal .form-group input::placeholder,
.uc-card .form-group input::placeholder,
.query-form input::placeholder,
.buy-card .form-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== From 动漫风3完 homepage ===== */
/* ===== 鍏憡寮圭獥 ===== */
        .notice-modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.35);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        .notice-modal {
            position: relative;
            max-width: 460px;
            width: 90%;
            background: #fffdf9;
            border: 3px solid #2c2c2c;
            border-radius: 20px;
            padding: 32px 28px 28px;
            box-shadow: 8px 8px 0 #2c2c2c;
            animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .notice-modal h3 { font-size: 20px; letter-spacing: 2px; margin: 0 0 12px 0; display: flex; align-items: center; gap: 8px; }
        .notice-modal .content { font-size: 15px; line-height: 1.7; color: #2d3748; padding: 8px 0 12px; border-top: 2px dashed #ddd; border-bottom: 2px dashed #ddd; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; }
        .notice-modal .content.notice-html { white-space: normal; }
        .notice-modal .content.notice-html img { max-width: 100%; height: auto; }
        .notice-modal .content.notice-html p { margin: 0 0 0.6em; }
        .notice-modal .footer-note { text-align: right; font-size: 12px; color: #aaa; letter-spacing: 1px; }
        .notice-close {
            position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; background: #fffdf9;
            border: 2.5px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c; font-size: 22px; display: flex; align-items: center;
            justify-content: center; cursor: pointer; transition: all 0.15s ease; color: #2c2c2c; font-weight: 700; padding: 0;
        }
        .notice-close:hover { transform: scale(1.12) rotate(90deg); box-shadow: 2px 2px 0 #2c2c2c; background: #f0ebe4; }
        .notice-close:active { transform: scale(0.92); box-shadow: 1px 1px 0 #2c2c2c; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes popIn { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
        @media (max-width: 480px) { .notice-modal { padding: 24px 18px 20px; } .notice-close { width: 36px; height: 36px; font-size: 18px; top: -10px; right: -10px; } }

        /* ===== 椤堕儴鐢ㄦ埛鏍?===== */
        .user-topbar {
            position: relative;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 20px;
            background: #fffdf9;
            border-bottom: 2px solid #2c2c2c;
            flex-wrap: wrap;
            gap: 10px;
        }
        .user-topbar .brand { font-weight: 700; font-size: 18px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
        .user-topbar .brand-logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; display: block; }
        .user-topbar .brand-text { line-height: 1.2; }
        .user-topbar .user-section { display: flex; align-items: center; gap: 12px; position: relative; }
        .user-topbar .user-avatar {
            width: 36px; height: 36px; border-radius: 50%; border: 2px solid #2c2c2c;
            object-fit: cover; background: #e2e8f0; flex-shrink: 0;
        }
        .user-topbar .user-name { font-weight: 600; font-size: 14px; }
        .user-topbar .user-balance { font-size: 13px; color: #38a169; font-weight: 700; }
        .user-topbar .dropdown-toggle {
            background: none; border: none; font-size: 16px; cursor: pointer;
            color: #4a5568; padding: 0 4px; transition: transform 0.3s;
        }
        .user-topbar .dropdown-toggle.open { transform: rotate(180deg); }
        .user-topbar .dropdown-menu {
            display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
            background: #fffdf9; border: 2px solid #2c2c2c; border-radius: 12px;
            padding: 8px 0; min-width: 160px; box-shadow: 6px 6px 0 #2c2c2c; z-index: 100;
        }
        .user-topbar .dropdown-menu.show { display: block; animation: dropIn 0.2s ease; }
        @keyframes dropIn { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: translateY(0); } }
        .user-topbar .dropdown-menu a {
            display: flex; align-items: center; gap: 10px; padding: 8px 16px;
            color: #2d3748; text-decoration: none; font-size: 14px; font-weight: 500;
            transition: background 0.15s; border: none;
        }
        .user-topbar .dropdown-menu a:hover { background: #f0ebe4; }
        .user-topbar .dropdown-menu .divider { height: 1px; background: #edf2f7; margin: 4px 12px; }
        .user-topbar .dropdown-menu .logout-item { color: #e53e3e; }
        .user-topbar .auth-links { display: flex; gap: 10px; align-items: center; }
        .user-topbar .auth-links a {
            font-size: 14px; color: #4a5568; text-decoration: none; border-bottom: 2px solid transparent;
            transition: border-color 0.2s; font-weight: 600; cursor: pointer;
        }
        .user-topbar .auth-links a:hover { border-color: #2c2c2c; }
        .user-topbar .auth-links a.auth-cta {
            border: 2px solid #2c2c2c;
            border-bottom-color: #2c2c2c;
            padding: 5px 12px;
            border-radius: 999px;
            background: #2c2c2c;
            color: #fff;
            box-shadow: 2px 2px 0 rgba(44,44,44,.25);
        }
        .user-topbar .auth-links a.auth-cta:hover {
            transform: translate(1px,1px);
            box-shadow: 1px 1px 0 rgba(44,44,44,.25);
        }

        /* ===== 婊氬姩鍏憡 - 閫熷害璋冩參 ===== */
        .notice-bar {
            background: #fffdf9;
            border-bottom: 2px solid #2c2c2c;
            padding: 6px 16px;
            overflow: hidden;
            position: relative;
            z-index: 9;
        }
        .notice-inner {
            display: flex;
            align-items: center;
            gap: 12px;
            white-space: nowrap;
            overflow: hidden;
        }
        .notice-label {
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
        }
        .notice-text {
            display: flex;
            gap: 40px;
            animation: scrollNotice 45s linear infinite; /* 鉁?浠?0s鏀逛负45s锛岄€熷害鍙樻參 */
            flex-shrink: 0;
        }
        .notice-text span {
            font-size: 13px;
            color: #4a5568;
        }
        @keyframes scrollNotice {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* ===== 鍝嶅簲寮?===== */
        body { overflow-x: hidden; }
        img, .card-img, .banner-slide img { max-width: 100%; height: auto; }
        @media (max-width: 768px) {
            .product-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
            .section > div:first-of-type { flex-direction: column; align-items: stretch; padding: 0 8px; }
            #searchInput { width: 100%; min-width: auto; }
            #catSelect { width: 100%; min-width: auto; }
            .card-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .card-desc { font-size: 12px; display: none; }
            .btn-buy, .tag-soldout { font-size: 12px; padding: 4px 10px; }
            .card-meta span { font-size: 11px; }
            .price-current { font-size: 15px; }
            .user-topbar { flex-direction: column; align-items: stretch; }
            .user-topbar .user-section { justify-content: flex-end; }
        }
        @media (max-width: 480px) { .banner-slider { min-height: 100px; } .product-grid { gap: 10px; } }

/* ===== Subpage topbars / user center / auth (动漫风) ===== */
.buy-topbar,.page-topbar{
  display:flex;align-items:center;padding:8px 16px;background:#fffdf9;
  border-bottom:2px solid #2c2c2c;position:relative;z-index:10000;gap:12px;flex-wrap:wrap;
}
.buy-topbar .brand,.page-topbar .site-name{font-weight:700;font-size:16px;letter-spacing:1px}
.buy-topbar .back-btn,.page-topbar .back-btn{
  font-weight:700;font-size:14px;border:2px solid #2c2c2c;padding:4px 14px;display:inline-block;
  text-decoration:none;color:#2c2c2c;border-radius:8px;box-shadow:2px 2px 0 #2c2c2c;background:#fffdf9;
}
.buy-topbar .nav-link{font-size:13px;color:#888;text-decoration:underline;margin-left:auto}
.buy-topbar .user-section,.page-topbar .topbar-user{display:flex;align-items:center;gap:8px;margin-left:auto;position:relative}
.buy-topbar .user-avatar,.page-topbar .topbar-user .avatar{
  width:30px;height:30px;border-radius:50%;border:2px solid #2c2c2c;object-fit:cover;background:#e2e8f0;flex-shrink:0;
}
.buy-topbar .user-name,.page-topbar .topbar-user .name{font-weight:600;font-size:13px}
.buy-topbar .user-balance,.page-topbar .topbar-user .balance{font-size:12px;color:#38a169;font-weight:700}
.buy-topbar .dropdown-toggle,.page-topbar .dropdown-toggle{
  background:none;border:none;font-size:14px;cursor:pointer;color:#4a5568;padding:0 2px;transition:transform .3s;
}
.buy-topbar .dropdown-toggle.open,.page-topbar .dropdown-toggle.open{transform:rotate(180deg)}
.buy-topbar .dropdown-menu,.page-topbar .dropdown-menu{
  display:none;position:absolute;top:100%;right:0;margin-top:6px;background:#fffdf9;border:2px solid #2c2c2c;
  border-radius:12px;padding:6px 0;min-width:140px;box-shadow:4px 4px 0 #2c2c2c;z-index:100;
}
.buy-topbar .dropdown-menu.show,.page-topbar .dropdown-menu.show{display:block;animation:dropIn .2s ease}
.buy-topbar .dropdown-menu a,.page-topbar .dropdown-menu a{
  display:flex;align-items:center;gap:8px;padding:6px 14px;color:#2d3748;text-decoration:none;font-size:13px;font-weight:500;
}
.buy-topbar .dropdown-menu a:hover,.page-topbar .dropdown-menu a:hover{background:#f0ebe4}
.buy-topbar .dropdown-menu .divider,.page-topbar .dropdown-menu .divider{height:1px;background:#edf2f7;margin:4px 12px}
.buy-topbar .auth-links,.page-topbar .auth-links{display:flex;gap:8px}
.buy-topbar .auth-links a,.page-topbar .auth-links a{
  font-size:13px;color:#4a5568;text-decoration:none;border-bottom:2px solid transparent;font-weight:600;cursor:pointer;
}
.buy-topbar .auth-links a:hover,.page-topbar .auth-links a:hover{border-color:#2c2c2c}
.page-topbar .links{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:12px}
.page-topbar .links a{color:#888;text-decoration:underline}
.page-topbar .logout-link{
  background:none;border:none;color:#e53e3e;cursor:pointer;text-decoration:underline;padding:0;font:inherit;font-size:12px;
}
.pay-method.balance-method label{border-style:dashed;border-color:#38a169}
.pay-method.balance-method input:checked + label{border-style:solid}
.badge{padding:2px 10px;border-radius:12px;font-size:12px;font-weight:700;border:2px solid #2c2c2c;display:inline-block}
.badge-success{background:#c6f6d5;color:#22543d}
.badge-warning{background:#fefcbf;color:#744210}
.uc-container{max-width:900px;margin:20px auto;padding:0 16px}
.uc-header{
  display:flex;align-items:center;gap:20px;padding:20px;background:#fffdf9;border:3px solid #2c2c2c;
  border-radius:16px;box-shadow:6px 6px 0 #2c2c2c;margin-bottom:20px;flex-wrap:wrap;
}
.uc-header .avatar{width:80px;height:80px;border-radius:50%;border:3px solid #2c2c2c;object-fit:cover;background:#e2e8f0}
.uc-header .info{flex:1}
.uc-header .info .name{font-size:22px;font-weight:700}
.uc-header .info .email{color:#888}
.uc-header .balance{background:#2c2c2c;color:#fff;padding:6px 20px;border-radius:20px;font-weight:700;font-size:18px}
.uc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
.uc-card{background:#fffdf9;border:3px solid #2c2c2c;border-radius:16px;padding:18px 20px;box-shadow:4px 4px 0 #2c2c2c}
.uc-card h3{font-size:16px;margin-bottom:12px;border-bottom:2px dashed #ddd;padding-bottom:8px}
.uc-card .form-group{margin-bottom:10px}
.uc-card .form-group label{display:block;font-size:13px;font-weight:700;text-transform:uppercase}
.uc-card .btn,.auth-box .btn,.quick-amounts .btn{
  padding:8px 20px;border:2px solid #2c2c2c;border-radius:8px;font-weight:700;background:#fffdf9;cursor:pointer;
  box-shadow:3px 3px 0 #2c2c2c;transition:.15s;font-family:inherit;
}
.uc-card .btn:hover,.quick-amounts .btn:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 #2c2c2c}
.uc-card .btn-primary{background:#2c2c2c;color:#fff}
.uc-card .btn-success{border-color:#38a169;color:#38a169}
.quick-amounts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.quick-amounts .btn{padding:6px 16px;font-size:13px}
.quick-amounts .btn.active{background:#c6f6d5;border-color:#38a169}
.message{padding:10px 14px;border-radius:8px;margin-bottom:12px;font-weight:600}
.message.success{background:#c6f6d5;color:#22543d;border:2px solid #68d391}
.message.error{background:#fed7d7;color:#9b2c2c;border:2px solid #fc8181}
.order-item{padding:8px 0;border-bottom:1px solid #edf2f7;display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:14px}
.uc-guest{
  max-width:400px;margin:120px auto;padding:30px;background:#fffdf9;border:3px solid #2c2c2c;border-radius:16px;
  box-shadow:6px 6px 0 #2c2c2c;text-align:center;
}
.uc-guest button{
  padding:10px 30px;background:#2c2c2c;color:#fff;border:2px solid #2c2c2c;border-radius:10px;font-weight:700;cursor:pointer;
}
.uc-pay.pay-methods{display:flex;flex-wrap:wrap;gap:8px;grid-template-columns:none}
.auth-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px 16px;
  background:#f5f0e8;
  background-image:
    radial-gradient(circle at 18% 40%, rgba(0,0,0,.02) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
}
.auth-box{
  max-width:420px;width:100%;background:#fffdf9;border:3px solid #2c2c2c;border-radius:24px;padding:32px 26px 26px;
  box-shadow:8px 8px 0 #2c2c2c;position:relative;
}
.auth-box::before{
  content:'';position:absolute;inset:-6px;border:1px dashed rgba(44,44,44,.18);border-radius:28px;pointer-events:none;
}
.auth-box .brand-mark{
  display:inline-block;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;
  border:2px solid #2c2c2c;padding:3px 10px;border-radius:999px;margin-bottom:14px;transform:rotate(-1deg);
}
.auth-box h2{margin:0 0 6px;font-weight:900;font-size:28px;letter-spacing:.5px}
.auth-box .subtitle{color:#888;margin-bottom:20px;font-size:13px;letter-spacing:.5px}
.auth-box .form-group{margin-bottom:14px}
.auth-box .form-group label{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
.auth-box .form-group input{
  width:100%;padding:12px 14px;border:2px solid #2c2c2c;border-radius:12px;background:#fffdf9;
  font-size:15px;font-family:inherit;box-shadow:3px 3px 0 #2c2c2c;outline:none;transition:.15s;
}
.auth-box .form-group input:focus{transform:translate(1px,1px);box-shadow:2px 2px 0 #2c2c2c}
.auth-box .btn-submit{
  width:100%;margin-top:6px;padding:13px;background:#2c2c2c;color:#fff;border:2px solid #2c2c2c;
  border-radius:12px;font-weight:800;font-size:16px;letter-spacing:1px;cursor:pointer;
  box-shadow:4px 4px 0 rgba(44,44,44,.35);font-family:inherit;transition:.15s;
}
.auth-box .btn-submit:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 rgba(44,44,44,.35)}
.auth-box .code-row{display:flex;gap:8px}
.auth-box .code-row input{flex:1}
.auth-box .code-row button{
  padding:10px 14px;border:2px solid #2c2c2c;border-radius:10px;background:#f7fafc;font-weight:700;cursor:pointer;
  box-shadow:2px 2px 0 #2c2c2c;white-space:nowrap;font-family:inherit;transition:.15s;
}
.auth-box .code-row button:hover{transform:translate(1px,1px);box-shadow:1px 1px 0 #2c2c2c}
.auth-box .code-row button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.auth-switch{text-align:center;margin-top:16px;font-size:13px;color:#666}
.auth-switch a{color:#2c2c2c;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.uc-pay .pay-method label{flex-direction:row;padding:10px 8px;font-size:13px}
@media (max-width:768px){
  .uc-grid{grid-template-columns:1fr}
  .buy-topbar .nav-link{margin-left:0}
}


/* ===== Shop UI dialog / toast ===== */
.shop-toast-wrap{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:100000;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(92vw,420px)}
.shop-toast{background:#fffdf9;color:#2c2c2c;border:2px solid #2c2c2c;box-shadow:4px 4px 0 #2c2c2c;border-radius:12px;padding:10px 16px;font-size:14px;font-weight:700;animation:shopToastIn .25s ease}
.shop-toast.error{background:#fed7d7;border-color:#c53030}
.shop-toast.success{background:#c6f6d5;border-color:#276749}
@keyframes shopToastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.shop-confirm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:100001;display:flex;align-items:center;justify-content:center;padding:16px}
.shop-confirm{background:#fffdf9;border:3px solid #2c2c2c;border-radius:18px;box-shadow:8px 8px 0 #2c2c2c;padding:22px 20px 16px;max-width:380px;width:100%}
.shop-confirm h4{margin:0 0 8px;font-size:18px}
.shop-confirm p{margin:0 0 16px;font-size:14px;line-height:1.6;color:#4a5568}
.shop-confirm .actions{display:flex;gap:10px}
.shop-confirm .actions button{flex:1;padding:10px 12px;border:2px solid #2c2c2c;border-radius:10px;font-weight:800;font-family:inherit;cursor:pointer;box-shadow:3px 3px 0 #2c2c2c}
.shop-confirm .btn-cancel{background:#f0ebe4}
.shop-confirm .btn-ok{background:#2c2c2c;color:#fff}