/* ============================================================
 * 霓虹商城 前台样式（移动端优先 · 深色霓虹风）
 * 主色：霓虹青 #00f0ff / 霓虹紫 #a855f7
 * ============================================================ */

:root {
    --bg: #0b0b14;
    --bg-2: #0f0f1a;
    --card: rgba(255, 255, 255, 0.045);
    --card-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-glow: rgba(0, 240, 255, 0.35);
    --text: #e9ebf5;
    --text-2: #a7abc4;
    --muted: #6d7194;
    --cyan: #00f0ff;
    --purple: #a855f7;
    --pink: #f472b6;
    --danger: #ff5d7a;
    --success: #34d399;
    --warning: #fbbf24;
    --radius: 14px;
    --radius-lg: 18px;
    --grad: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
    --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.35), 0 0 32px rgba(0, 240, 255, 0.12);
    --glow-purple: 0 0 12px rgba(168, 85, 247, 0.4), 0 0 32px rgba(168, 85, 247, 0.15);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(168, 85, 247, 0.14), transparent 60%),
        radial-gradient(1000px 500px at -10% 20%, rgba(0, 240, 255, 0.10), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------------- 布局容器 ---------------- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.page-content {
    padding: 64px 14px 84px;
}
.page-content.no-tab { padding-bottom: 84px; }

/* ---------------- 顶部导航 ---------------- */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: rgba(11, 11, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.nav-back, .nav-action {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--text-2);
    cursor: pointer; border-radius: 10px;
}
.nav-back:active { background: var(--card-strong); }
.nav-title { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.logo-text {
    font-size: 18px; font-weight: 800; letter-spacing: 2px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}

/* ---------------- 底部 Tab 栏 ---------------- */
.tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    background: rgba(13, 13, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
    position: relative;
    transition: color 0.2s;
}
.tab-icon { font-size: 20px; line-height: 1.2; filter: grayscale(0.6); transition: 0.2s; }
.tab-item.active { color: var(--cyan); }
.tab-item.active .tab-icon {
    filter: none;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
}
.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 30%; right: 30%;
    height: 2px;
    background: var(--grad);
    border-radius: 0 0 4px 4px;
    box-shadow: var(--glow-cyan);
}
.cart-badge {
    position: absolute;
    top: 4px; left: 56%;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5d7a, #f472b6);
    color: #fff;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 8px rgba(255, 93, 122, 0.6);
}

/* ---------------- 搜索栏 ---------------- */
.search-bar { margin-bottom: 14px; }
.search-input-wrap {
    display: flex; align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0 14px;
    height: 42px;
    transition: 0.25s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.search-input-wrap:focus-within {
    border-color: var(--border-glow);
    box-shadow: var(--glow-cyan);
}
.search-icon { color: var(--muted); font-size: 14px; margin-right: 8px; }
.search-input {
    flex: 1; border: none; outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    height: 100%;
}
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }

/* ---------------- 分类 pills ---------------- */
.cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: 0 0 auto;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-2);
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.cat-pill.active {
    color: #06121a;
    font-weight: 700;
    background: var(--grad);
    border-color: transparent;
    box-shadow: var(--glow-cyan);
}

/* ---------------- 区块标题 ---------------- */
.section-header { margin: 10px 2px 12px; }
.section-title {
    font-size: 15px; font-weight: 700; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.section-title::before {
    content: '';
    width: 3px; height: 14px;
    border-radius: 2px;
    background: var(--grad);
    box-shadow: var(--glow-cyan);
}

/* ---------------- 商品列表 ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.product-card:active {
    transform: scale(0.97);
    border-color: var(--border-glow);
    box-shadow: var(--glow-cyan);
}
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.03);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--muted);
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px 12px 12px; }
.product-name {
    font-size: 13.5px; font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}
.product-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
.product-price-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}
.product-price {
    font-size: 17px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.product-price .yen { font-size: 12px; margin-right: 1px; }
.product-sold { font-size: 11px; color: var(--muted); }

/* ---------------- 通用组件 ---------------- */
.glass-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 28px;
    border: none; border-radius: 22px;
    background: var(--grad);
    color: #06121a;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
    transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.45; box-shadow: none; }
.btn-block { width: 100%; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 24px;
    border-radius: 22px;
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--cyan);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-ghost:active { background: rgba(0, 240, 255, 0.08); }
.btn-ghost:disabled { opacity: 0.4; }

.btn-mini {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px; padding: 0 14px;
    border-radius: 15px;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    background: var(--card-strong);
    border: 1px solid var(--border);
    color: var(--text-2);
}
.btn-mini-primary {
    background: var(--grad);
    border: none;
    color: #06121a;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.empty-state {
    padding: 60px 0;
    text-align: center;
    color: var(--muted);
}
.empty-icon { font-size: 44px; margin-bottom: 10px; opacity: 0.6; }
.empty-text { font-size: 13.5px; margin-bottom: 18px; }

.load-more {
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}
.skeleton::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.08), transparent);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 8px;
    font-weight: 500;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    height: 46px;
    font-size: 14.5px;
    color: var(--text);
    outline: none;
    transition: 0.2s;
}
.form-textarea {
    height: auto;
    min-height: 84px;
    padding: 12px 14px;
    resize: none;
    line-height: 1.5;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--border-glow);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 240, 255, 0.03);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); font-size: 13.5px; }

/* ---------------- 商品详情 ---------------- */
.detail-swiper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}
.swiper-track {
    display: flex;
    transition: transform 0.3s ease;
}
.swiper-slide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; color: var(--muted);
}
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-counter {
    position: absolute;
    right: 12px; bottom: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    font-size: 11px;
    color: var(--text-2);
}

.detail-price-box {
    padding: 16px;
    margin-bottom: 12px;
}
.price-main {
    font-size: 30px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}
.price-main .yen { font-size: 16px; margin-right: 2px; }
.price-original {
    font-size: 14px; color: var(--muted);
    text-decoration: line-through;
    margin-left: 10px;
}
.price-info {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px;
}
.price-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.price-sold { margin-left: auto; font-size: 12px; color: var(--muted); }

.detail-block {
    padding: 16px;
    margin-bottom: 12px;
}
.goods-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.spec-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { width: 60px; color: var(--muted); flex-shrink: 0; }
.spec-value { flex: 1; color: var(--text-2); display: flex; align-items: center; }
.desc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.desc-content { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; line-height: 1.8; }

.qty-selector {
    display: inline-flex; align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}
.qty-btn {
    width: 34px; height: 30px;
    border: none; background: transparent;
    color: var(--cyan);
    font-size: 16px; cursor: pointer;
}
.qty-btn:active { background: rgba(0, 240, 255, 0.1); }
.qty-value {
    min-width: 36px; text-align: center;
    font-size: 14px; font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    line-height: 30px;
}

.detail-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex; align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 24, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 100;
}
.bar-icon-btn {
    display: flex; flex-direction: column; align-items: center;
    font-size: 10.5px; color: var(--text-2);
    cursor: pointer;
    position: relative;
    min-width: 40px;
}
.bar-icon-btn .icon { font-size: 19px; margin-bottom: 1px; }
.mini-badge {
    position: absolute;
    top: -4px; right: -2px;
    min-width: 15px; height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5d7a, #f472b6);
    color: #fff; font-size: 9.5px;
    display: flex; align-items: center; justify-content: center;
}
.btn-add-cart {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: 1px solid var(--border-glow);
    background: transparent;
    color: var(--cyan);
    font-size: 14.5px; font-weight: 700;
    cursor: pointer;
}
.btn-add-cart:active { background: rgba(0, 240, 255, 0.08); }
.btn-buy-now {
    flex: 1.2;
    height: 44px;
    border: none; border-radius: 22px;
    background: var(--grad);
    color: #06121a;
    font-size: 14.5px; font-weight: 800;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
}
.btn-buy-now:active { transform: scale(0.97); }

/* ---------------- 购物车 ---------------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex; align-items: center;
    gap: 12px;
    padding: 12px;
}
.cart-checkbox {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--muted);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.cart-checkbox.checked {
    border-color: transparent;
    background: var(--grad);
    box-shadow: var(--glow-cyan);
}
.cart-checkbox.checked::after {
    content: '✓';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #06121a; font-size: 12px; font-weight: 800;
}
.cart-img {
    width: 76px; height: 76px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--muted);
    cursor: pointer;
}
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name {
    font-size: 13.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.35;
    margin-bottom: 8px;
}
.cart-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-price {
    font-size: 16px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cart-price .yen { font-size: 11px; }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.cart-qty .qty-btn { width: 26px; height: 24px; font-size: 14px; }
.cart-qty .qty-value { min-width: 30px; line-height: 24px; font-size: 13px; }
.cart-delete {
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}
.cart-delete:active { color: var(--danger); }

.cart-bottom-bar {
    position: fixed;
    bottom: 60px; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex; align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(13, 13, 24, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 99;
}
.cart-select-all {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-2);
    cursor: pointer;
}
.cart-total { flex: 1; text-align: right; }
.total-label { font-size: 12.5px; color: var(--muted); }
.total-price {
    font-size: 19px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.total-price .yen { font-size: 13px; }
.btn-checkout {
    height: 40px; padding: 0 24px;
    border: none; border-radius: 20px;
    background: var(--grad);
    color: #06121a;
    font-size: 14px; font-weight: 800;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
}
.btn-checkout:disabled { opacity: 0.4; box-shadow: none; }

/* ---------------- 确认订单 ---------------- */
.order-summary { padding: 16px; margin-bottom: 12px; }
.summary-title, .remark-title {
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.summary-goods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.summary-goods-row { display: flex; align-items: center; gap: 12px; }
.goods-img {
    width: 60px; height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--muted);
}
.goods-img img { width: 100%; height: 100%; object-fit: cover; }
.goods-meta { flex: 1; min-width: 0; }
.goods-title {
    font-size: 13.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goods-price {
    font-size: 14px; font-weight: 700;
    color: var(--cyan);
    margin-top: 4px;
}
.goods-price .qty { font-size: 12px; color: var(--muted); font-weight: 400; }
.summary-item {
    display: flex; justify-content: space-between;
    font-size: 13.5px;
    padding: 8px 0;
    color: var(--text-2);
}
.summary-item .value { color: var(--text); }
.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 6px; padding-top: 12px;
}
.total-value {
    font-size: 21px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.total-value .yen { font-size: 13px; }

.remark-box { padding: 16px; margin-bottom: 12px; }
.remark-tip { font-size: 12px; color: var(--muted); margin-top: 8px; }

.checkout-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex; align-items: center;
    gap: 14px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 24, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 100;
}
.checkout-info { flex: 1; }
.pay-label { font-size: 11.5px; color: var(--muted); }
.pay-amount {
    font-size: 21px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pay-amount .yen { font-size: 13px; }
.btn-go-pay {
    height: 44px; padding: 0 32px;
    border: none; border-radius: 22px;
    background: var(--grad);
    color: #06121a;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
}
.btn-go-pay:disabled { opacity: 0.45; box-shadow: none; }

/* ---------------- 登录/注册 & 我的 ---------------- */
.auth-hero {
    padding: 64px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-hero .logo-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: var(--glow-purple);
}
.auth-hero .logo-sub { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 1px; }
.auth-card { padding: 24px 20px; margin: -40px 16px 0; position: relative; z-index: 2; }
.auth-tabs {
    display: flex;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.auth-tab {
    flex: 1; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600;
    color: var(--muted);
    background: none; border: none; cursor: pointer;
    position: relative;
}
.auth-tab.active { color: var(--cyan); }
.auth-tab.active::after {
    content: '';
    position: absolute; bottom: -1px; left: 25%; right: 25%;
    height: 2px;
    background: var(--grad);
    box-shadow: var(--glow-cyan);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.btn-auth { margin-top: 8px; }
.auth-switch {
    text-align: center; margin-top: 18px;
    font-size: 13px; color: var(--muted);
}
.auth-switch a { color: var(--cyan); cursor: pointer; font-weight: 600; margin-left: 4px; }
.reg-tip {
    text-align: center; font-size: 12px;
    color: var(--muted);
    margin: 22px 0 40px;
}

.profile-header {
    padding: 72px 20px 30px;
    text-align: center;
}
.profile-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800; color: #06121a;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--glow-purple);
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-nickname { font-size: 18px; font-weight: 700; }
.profile-username { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.profile-menu { padding: 0 16px; }
.menu-group { margin-bottom: 12px; overflow: hidden; }
.menu-item {
    display: flex; align-items: center;
    padding: 15px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--card-strong); }
.menu-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    margin-right: 12px;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
}
.menu-text { flex: 1; font-size: 14px; font-weight: 500; }
.menu-arrow { color: var(--muted); font-size: 15px; }
.btn-logout {
    width: calc(100% - 32px);
    margin: 18px 16px 90px;
    height: 46px;
    border-radius: 23px;
    background: transparent;
    color: var(--danger);
    font-size: 15px; font-weight: 600;
    border: 1px solid rgba(255, 93, 122, 0.4);
    cursor: pointer;
}
.btn-logout:active { background: rgba(255, 93, 122, 0.08); }

/* ---------------- 弹窗 ---------------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(4, 4, 10, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    width: 100%; max-width: 480px;
    background: #14142290;
    background: rgba(20, 20, 34, 0.95);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 22px 20px 40px;
    max-height: 82vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--card-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); font-size: 15px; cursor: pointer;
}
.modal-btn-submit { margin-top: 8px; }

/* ---------------- 我的订单 ---------------- */
.order-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.order-filter-tabs::-webkit-scrollbar { display: none; }
.of-tab {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12.5px;
    color: var(--text-2);
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
}
.of-tab.active {
    color: #06121a;
    font-weight: 700;
    background: var(--grad);
    border-color: transparent;
    box-shadow: var(--glow-cyan);
}

.order-card { padding: 14px 16px; margin-bottom: 12px; }
.order-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.order-no { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.order-status { font-size: 12.5px; font-weight: 700; }
.order-status.s0 { color: var(--warning); }
.order-status.s1 { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.order-status.s2 { color: var(--muted); }
.order-status.s3 { color: var(--danger); }
.order-status.s4 { color: var(--purple); text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }
.order-status.s5 { color: var(--success); }

.order-item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    cursor: pointer;
}
.oi-img {
    width: 46px; height: 46px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--muted);
}
.oi-img img { width: 100%; height: 100%; object-fit: cover; }
.oi-name {
    flex: 1; min-width: 0;
    font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oi-price { font-size: 12.5px; color: var(--text-2); flex-shrink: 0; }

.order-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--border);
}
.order-total { font-size: 13px; color: var(--text-2); }
.order-total b {
    font-size: 16px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.order-ops { display: flex; gap: 8px; }

.express-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.12);
    font-size: 12.5px;
}
.express-box .exp-title { color: var(--purple); font-weight: 700; margin-bottom: 4px; }
.express-box .exp-no {
    font-family: ui-monospace, monospace;
    color: var(--text);
    letter-spacing: 0.5px;
}
.express-box .exp-copy {
    margin-left: 8px;
    color: var(--cyan);
    cursor: pointer;
    font-size: 12px;
}

.order-addr {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------------- Toast / Loading ---------------- */
.toast-container {
    position: fixed;
    top: 70px; left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 13.5px;
    color: var(--text);
    background: rgba(20, 20, 34, 0.92);
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-cyan);
    backdrop-filter: blur(12px);
    animation: toastIn 0.25s ease;
    max-width: 82vw;
}
.toast.error { border-color: rgba(255, 93, 122, 0.5); box-shadow: 0 0 12px rgba(255, 93, 122, 0.35); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(6, 6, 12, 0.45);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1500;
}
.loading-box { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 16px; color: var(--muted); font-size: 13px; }
.spinner {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top-color: var(--cyan);
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.spinner.small { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 工具类 ---------------- */
.text-muted { color: var(--muted); }
.mono { font-family: ui-monospace, monospace; }
