/* ==========================================
   Gmpanai 发卡网 - 白色毛玻璃主题
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --accent: #F97316;
    --accent-light: #FB923C;

    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --card: rgba(255,255,255,0.72);
    --card-solid: #FFFFFF;
    --border: rgba(0,0,0,0.06);
    --border-light: rgba(0,0,0,0.03);

    --text: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    --info: #3B82F6;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.25s var(--ease);
    --glass: rgba(255,255,255,0.65);
    --glass-border: rgba(255,255,255,0.40);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageEnter 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

::selection { background: rgba(59,130,246,0.15); color: var(--text); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------- 导航栏 ---------- */
.navbar {
    background: rgba(255,255,255,0.75);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand svg { width: 28px; height: 28px; stroke: var(--primary); }
.navbar-brand img { width: 32px; height: 32px; object-fit: contain; }

.navbar-nav { list-style: none; display: flex; gap: 6px; align-items: center; }
.navbar-nav a {
    padding: 8px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    transition: var(--transition);
}
.navbar-nav a:hover { background: rgba(59,130,246,0.06); color: var(--primary); }
.navbar-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(59,130,246,0.2); }

/* 全局隐藏导航栏 */
.navbar { display: none; }

/* 统一 Hero 导航栏组件 */
.hn-bar {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 30%, #60A5FA 60%, #1E40AF 100%);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(37,99,235,0.18), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.hn-bar::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 500px 300px at 90% 20%, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}
.hn-bar::after {
    content: '';
    position: absolute;
    right: -30px; bottom: -35px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
}
.hn-left {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 12px;
}
.hn-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.hn-name { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: -0.01em; }
.hn-subtitle { font-size: 0.74rem; color: rgba(255,255,255,0.5); line-height: 1.3; margin-top: 1px; }
.hn-links {
    position: relative; z-index: 1;
    display: flex; gap: 4px; align-items: center;
    list-style: none;
}
.hn-links a {
    padding: 7px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem; font-weight: 500;
    border-radius: 100px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.hn-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hn-links a.hn-active { background: rgba(255,255,255,0.18); color: #fff; }
.hn-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.25); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
@media(max-width:640px) {
    .hn-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .hn-left { gap: 10px; }
    .hn-icon { width: 32px; height: 32px; border-radius: 8px; }
    .hn-icon svg { width: 16px; height: 16px; }
    .hn-name { font-size: 0.95rem; }
    .hn-subtitle { font-size: 0.7rem; }
    .hn-links { gap: 2px; }
    .hn-links a { padding: 5px 12px; font-size: 0.78rem; }
}

/* ---------- 公告条 ---------- */
.notice-bar {
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.notice-bar svg { flex-shrink: 0; color: var(--primary); }

/* ---------- 商品列表（横向长条卡片） ---------- */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 40px;
}

.product-card-h {
    display: flex;
    align-items: stretch;
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    position: relative;
}
.product-card-h:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.20);
}

/* 左侧彩色边条 */
.product-card-h-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
    transition: width 0.25s var(--ease);
}
.product-card-h:hover .product-card-h-accent {
    width: 5px;
}

/* 图片区域 */
.product-card-h-img {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.product-card-h-img img {
    width: 100%;
    height: 100%;
    max-height: 90px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease-out);
}
.product-card-h:hover .product-card-h-img img {
    transform: scale(1.04);
}

/* 无图占位符 */
.product-card-h-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* 内容区 */
.product-card-h-body {
    flex: 1;
    padding: 16px 0 16px 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-h-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-h-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.product-card-h-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 右侧箭头 */
.product-card-h-arrow {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.product-card-h:hover .product-card-h-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ---------- 分类标签 ---------- */
.category-tabs { display: flex; gap: 8px; margin: 24px 0 16px; flex-wrap: wrap; }
.category-tab {
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.category-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.category-tab:active { transform: scale(0.96); }

/* ---------- 首页布局 ---------- */
.shop-layout {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}
.shop-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.shop-main { flex: 1; min-width: 0; }

.shop-sidebar-section {
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 16px;
    box-shadow: var(--shadow);
}

.shop-sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding: 0 8px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-sidebar-title svg { color: var(--primary); flex-shrink: 0; }

.shop-cat-nav { display: flex; flex-direction: column; gap: 4px; }
.shop-cat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s var(--ease);
    position: relative;
    gap: 12px;
}

/* 圆点指示器 */
.shop-cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-cat-name { flex: 1; font-weight: 500;}

.shop-cat-item:hover {
    background: rgba(59,130,246,0.06);
    color: var(--text);
    transform: translateX(4px);
}
.shop-cat-item:hover .shop-cat-dot {
    background: var(--primary);
    transform: scale(1.5);
}

/* 激活状态 */
.shop-cat-item.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.04) 100%);
    color: var(--primary);
    font-weight: 700;
}
.shop-cat-item.active .shop-cat-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
    transform: scale(1.5);
}

/* 数量徽章 */
.shop-cat-count {
    font-size: 0.75rem;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}

.shop-steps { display: flex; flex-direction: column; gap: 10px; }
.shop-step { display: flex; align-items: center; gap: 10px; }
.shop-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-step-text { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- 商品网格 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    cursor: pointer;
    will-change: transform;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-img {
    width: 100%;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s var(--ease-out);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body { padding: 14px 16px 16px; }
.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-meta { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.product-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 100px;
}
.product-stock.low { color: var(--warning); background: rgba(245,158,11,0.10); }
.product-stock.out { color: var(--danger); background: rgba(239,68,68,0.10); }

/* ---------- 商品详情 ---------- */
/* ========== 商品详情页 ========== */
/* 
    旧版由于图文剥离或暴力拉伸废弃，
    目前采用双生并立卡片布局结构，全面控制在 product.php 的 inline-style 弹性网格下。
*/

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: rgba(255,255,255,0.70);
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(8px);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
    background: #fff;
}
.form-textarea { resize: vertical; min-height: 100px; }
select.form-input, .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 2px 10px rgba(59,130,246,0.25); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #EA580C; }

.btn-outline {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; display: block; text-align: center; }

.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading::after {
    content: '';
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 支付页 ---------- */
.payment-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.payment-amount { font-size: 2.5rem; font-weight: 700; color: var(--accent); margin: 16px 0; }
.qr-code { max-width: 240px; margin: 24px auto; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.payment-timer { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.payment-timer span { color: var(--danger); font-weight: 600; }

/* ---------- 查询 ---------- */
.query-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 520px;
    margin: 60px auto;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.query-box h2 { font-size: 1.3rem; margin-bottom: 24px; text-align: center; }

/* ---------- 订单结果 ---------- */
.order-result {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    margin: 40px auto;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.order-info-row:last-child { border-bottom: none; }
.order-info-label { color: var(--text-secondary); }
.order-info-value { font-weight: 500; }

.card-content-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    word-break: break-all;
    user-select: all;
    margin-top: 20px;
}

/* ---------- 状态标签 ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.badge-pending { background: rgba(245,158,11,0.12); color: #D97706; }
.badge-paid { background: rgba(59,130,246,0.12); color: #2563EB; }
.badge-completed { background: rgba(16,185,129,0.12); color: #059669; }
.badge-canceled { background: rgba(107,114,128,0.10); color: #6B7280; }
.badge-refunded { background: rgba(236,72,153,0.10); color: #DB2777; }

/* ---------- 页脚 ---------- */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ---------- 空状态 / 404 ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.4; }
.page-404 { text-align: center; padding: 120px 20px; animation: fadeSlideUp 0.5s ease-out; }
.page-404 h1 { font-size: 5rem; color: var(--primary); font-weight: 800; letter-spacing: -2px; }
.page-404 p { color: var(--text-secondary); margin: 16px 0 32px; font-size: 1rem; }

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-card-value { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

/* ---------- 订单卡片 ---------- */
.order-card-link { text-decoration: none; color: inherit; }
.order-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ====== 用户中心 ====== */
/* ========== 用户中心布局 ========== */
.uc-layout {
    display: flex; gap: 24px; max-width: 1400px; margin: 32px auto; padding: 0 20px;
    flex: 1; width: 100%; box-sizing: border-box;
}
.uc-sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.uc-content { flex: 1; min-width: 0; animation: fadeSlideUp 0.4s ease-out; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 用户资料卡片（一体化） --- */
.uc-profile-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px 16px 0;
    text-align: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.uc-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}
.uc-profile-info { margin-bottom: 16px; }
.uc-profile-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.uc-profile-email { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; word-break: break-all; }

/* 余额条 */
.uc-balance-strip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    margin: 0 -16px;
    background: rgba(59,130,246,0.04);
    border-top: 1px solid var(--border);
}
.uc-balance-label { font-size: 0.82rem; color: var(--text-muted); }
.uc-balance-amount { font-size: 1.05rem; font-weight: 700; color: var(--primary); }

/* --- 导航卡片 --- */
.uc-nav-card {
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.uc-nav-title {
    font-size: 0.82rem; font-weight: 700; color: var(--text);
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px;
}
.uc-nav-title svg { color: var(--primary); }
.uc-nav { display: flex; flex-direction: column; gap: 1px; }
.uc-nav-divider { height: 1px; background: var(--border); margin: 6px 8px; }

.uc-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; font-size: 0.88rem;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.2s var(--ease);
    border-radius: 10px;
}
.uc-nav-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); flex-shrink: 0;
    transition: all 0.25s var(--ease);
}
.uc-nav-icon { display: flex; align-items: center; opacity: 0.5; transition: opacity 0.2s; }
.uc-nav-text { flex: 1; }

.uc-nav-item:hover { background: rgba(59,130,246,0.04); color: var(--text); }
.uc-nav-item:hover .uc-nav-dot { background: var(--primary); transform: scale(1.3); }
.uc-nav-item:hover .uc-nav-icon { opacity: 1; }

.uc-nav-item.active {
    background: rgba(59,130,246,0.08); color: var(--primary); font-weight: 600;
}
.uc-nav-item.active .uc-nav-dot {
    background: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); transform: scale(1.2);
}
.uc-nav-item.active .uc-nav-icon { opacity: 1; }

/* --- 统计卡片 --- */
.uc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
    position: relative; overflow: hidden;
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 18px; box-shadow: var(--shadow);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s, transform 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.stat-card-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }

/* --- 工具栏 --- */
.uc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.uc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-search-form { display: flex; gap: 6px; }

/* --- 订单列表 --- */
.uc-order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card-link { text-decoration: none; color: inherit; }
.order-card {
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px 16px 22px; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.order-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: rgba(59,130,246,0.15); }

/* --- 空状态 --- */
.uc-empty {
    text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 0.95rem;
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* --- 余额概览 --- */
.uc-balance-overview {
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; text-align: center; margin-bottom: 24px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.uc-balance-overview::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}
.uc-balance-overview-label { font-size: 0.85rem; color: var(--text-muted); }
.uc-balance-overview-value { font-size: 2rem; font-weight: 700; color: var(--primary); margin-top: 6px; }

/* --- 交易记录列表 --- */
.uc-log-list {
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.uc-log-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.uc-log-item:last-child { border-bottom: none; }
.uc-log-item:hover { background: rgba(59,130,246,0.02); }

/* --- 设置区块 --- */
.uc-section {
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.uc-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.uc-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.uc-info-item { display: flex; flex-direction: column; gap: 4px; }
.uc-info-label { font-size: 0.8rem; color: var(--text-muted); }
.uc-info-value { font-size: 0.95rem; font-weight: 500; }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s var(--ease-out) both; }
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.16s; }
.product-card:nth-child(6) { animation-delay: 0.20s; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .shop-layout, .uc-layout { flex-direction: column; gap: 16px; margin-top: 16px; }
    .shop-sidebar, .uc-sidebar { width: 100%; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
    .uc-stats { grid-template-columns: repeat(3, 1fr); }
    .uc-info-grid { grid-template-columns: 1fr; }
    .uc-toolbar { flex-direction: column; align-items: flex-start; }
    .pd-main { flex-direction: column; gap: 20px; padding: 20px; }
    .pd-gallery { width: 100%; }
    .pd-form-grid { grid-template-columns: 1fr; }
    .pd-order-card { padding: 20px; }
    .navbar .container { height: 56px; }
    .navbar-brand { font-size: 1.15rem; gap: 8px; }
    .navbar-brand svg { width: 22px; height: 22px; }
    .navbar-brand img { width: 26px; height: 26px; }
    .navbar-nav { gap: 4px; }
    .navbar-nav a { padding: 6px 12px; font-size: 0.82rem; white-space: nowrap; }
    .container { padding: 0 14px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-tabs { gap: 6px; }
    .category-tab { padding: 6px 14px; font-size: 0.8rem; }
    .navbar-nav a { padding: 5px 10px; font-size: 0.78rem; }
    .navbar-brand { font-size: 1rem; }
}

/* ---------- 工单系统 ---------- */
.ticket-category-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 100px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    letter-spacing: 0.02em;
}

.ticket-admin-badge {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 100px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #fff;
    letter-spacing: 0.03em;
}

.ticket-chat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-bubble {
    padding: 16px 18px;
    border-radius: 12px;
    transition: box-shadow 0.2s var(--ease);
}

.ticket-bubble:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ticket-bubble-user {
    background: rgba(241,245,249,0.7);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ticket-bubble-admin {
    background: linear-gradient(135deg, rgba(5,150,105,0.06), rgba(52,211,153,0.03));
    border: 1px solid rgba(5,150,105,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ticket-bubble-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-bubble-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ticket-bubble-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-bubble-time {
    font-size: 0.73rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ticket-bubble-body {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text);
    word-break: break-word;
    padding-left: 40px;
}
