:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --bg-subtle: #f8fafc;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 20px;
    padding: 0 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.85; }

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-icon svg {
    display: block;
}

.logo-shimmer {
    position: relative;
}

.shimmer-overlay {
    animation: shimmerMove 2.5s ease-in-out infinite;
}

@keyframes shimmerMove {
    0% { transform: translateX(-30%) translateY(-30%); }
    100% { transform: translateX(30%) translateY(30%); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.logo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

.logo-title-shimmer {
    background: linear-gradient(90deg, 
        #312e81 0%, 
        #4f46e5 25%, 
        #6366f1 50%, 
        #4f46e5 75%, 
        #312e81 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 150% center; }
    100% { background-position: 0% center; }
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.logo-subtitle-shimmer {
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #818cf8 30%, 
        #a5b4fc 50%, 
        #818cf8 70%, 
        #6366f1 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleShimmer 3s ease-in-out infinite;
}

@keyframes subtitleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 125% center; }
    100% { background-position: 0% center; }
}

.nav { display: flex; gap: 0; align-items: center; flex-shrink: 0; margin: 0 -2px; }

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
    background: rgba(99,102,241,0.06);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.has-mega > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.has-mega > .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.has-mega > .nav-link .arrow {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-top: -3px;
    opacity: 0.45;
    transition: transform 0.25s ease;
}

.has-mega:hover > .nav-link .arrow {
    transform: rotate(-135deg) scaleY(-1);
    margin-top: 3px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 520px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mega-grid-5col {
    grid-template-columns: repeat(5, 1fr);
}

.mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.mega-item:hover {
    background: rgba(99,102,241,0.06);
    transform: translateY(-2px);
}

.mega-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(79,70,229,0.05));
    border-radius: 10px;
    color: var(--primary);
    transition: var(--transition);
}

.mega-item:hover .mega-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

.mega-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

.mega-desc {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.3;
}

.mega-item:hover .mega-name {
    color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.action-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.action-btn:hover { background: var(--bg); color: var(--text); }

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: transparent;
    gap: 6px;
}

.btn-vip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
    color: white;
}

.user-dropdown { position: relative; }

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.user-avatar:hover { background: var(--bg); }

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar span { font-size: 14px; color: var(--text); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    height: 32px;
    line-height: 1;
}

.btn-sm { padding: 4px 12px; font-size: 12px; height: 28px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); color: white; }

.btn-primary.is-download-glow {
    position: relative;
    overflow: hidden;
}

.btn-primary.is-download-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary.is-download-glow:hover::before {
    opacity: 1;
}

.btn-primary.is-download-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}

.btn-outline {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
    border-color: transparent;
}

.btn-outline:hover { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; border-color: transparent; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }

.btn-outline.is-fav-btn {
    transition: all 0.3s ease;
}

.btn-outline.is-fav-btn:hover {
    background: rgba(239,68,68,0.08);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-1px);
}

.btn-outline.is-fav-btn.is-faved {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline.is-vip-glow:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.1));
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 4px 16px rgba(245,158,11,0.15);
}

.btn-vip {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-vip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-vip:hover::before {
    opacity: 1;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79,70,229,0.45);
    color: white;
}

.btn-vip span, .btn-vip svg {
    position: relative;
    z-index: 1;
}

.main { flex: 1; }

.hero-section {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #1e1b4b;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,27,75,0.88) 0%, rgba(49,46,129,0.72) 40%, rgba(67,56,202,0.45) 70%, rgba(99,102,241,0.2) 100%);
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active { background: white; width: 28px; border-radius: 5px; }

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-body {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 0;
}

.hero-slogan h1 {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-slogan p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto;
}

.hero-search-input {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.hero-search-input:focus-within {
    box-shadow: 0 6px 32px rgba(79,70,229,0.3);
    transform: translateY(-1px);
}

.hero-search-input svg {
    color: #9ca3af;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hero-search-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
    color: #1f2937;
}

.hero-search-input input::placeholder { color: #9ca3af; }

.hero-search-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: scale(1.03);
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.hero-tags-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.hero-tags a {
    padding: 4px 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.hero-tags a:hover {
    background: rgba(99,102,241,0.3);
    border-color: rgba(99,102,241,0.4);
    color: white;
    transform: translateY(-1px);
}

.announcement-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.announcement-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}

.announcement-list { display: inline-flex; gap: 24px; }
.announcement-list-multi { display: block; position: relative; overflow: hidden; height: 22px; }

.announcement-item { font-size: 14px; color: var(--text-secondary); }
.announcement-item-multi { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; transition: all 0.5s ease; white-space: nowrap; }
.announcement-item-multi.active { transform: translateY(0); opacity: 1; }
.announcement-item-multi.exit { transform: translateY(-100%); opacity: 0; }

.section { padding: 60px 0; }
.section-bg { background: var(--bg-card); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title { font-size: 24px; font-weight: 700; }

.section-more { font-size: 14px; color: var(--text-secondary); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
}

.product-card:active {
    transform: translateY(-1px) scale(0.99);
}

.product-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.product-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    z-index: 0;
}

.product-thumb-bg.is-physical {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.product-thumb img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
/* 商城列表真实封面：4:3 框 + cover 铺满 */
.product-thumb--real,
.res-cover.res-cover--real {
    aspect-ratio: 4 / 3;
    background: #eef2ff;
}
.product-thumb--real img,
.res-cover--real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}
.res-cover--real .product-thumb-bg,
.product-thumb--real .product-thumb-bg {
    display: none;
}
.product-thumb img[src$=".svg"],
.product-thumb img[src*=".svg?"] {
    object-fit: contain;
    padding: 16px;
}

.product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    z-index: 1;
}

.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-card:hover .product-thumb img[src$=".svg"] { transform: scale(1.08); }

.product-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.tag-virtual { background: #7c3aed; }
.tag-physical { background: #f59e0b; }

.tag-delivery-auto { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tag-delivery-logistics { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.tag-delivery-service { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.tag-delivery-member { background: linear-gradient(135deg, #eab308, #facc15); color: #1a1a2e; }
.tag-delivery-encrypt { background: linear-gradient(135deg, #8b5cf6, #a855f7); color: #fff; }

.product-info {
    padding: 14px 16px 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a {
    color: var(--text);
    transition: color 0.3s ease;
}

.product-name a:hover { color: var(--primary); }

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.product-sales {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

a.plugin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

a.plugin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
    border-color: var(--primary-light);
}

a.plugin-card:active {
    transform: translateY(-1px) scale(0.99);
}

.plugin-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.plugin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.plugin-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text);
}

a.plugin-card:hover .plugin-name {
    color: var(--primary);
}

.plugin-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}

.plugin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.plugin-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.plugin-downloads {
    font-size: 11px;
    color: #999;
}

@media (max-width: 992px) {
    .plugin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .plugin-grid {
        grid-template-columns: 1fr;
    }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
}

.course-card:active {
    transform: translateY(-1px) scale(0.99);
}

.course-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.course-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    z-index: 0;
}

.course-thumb-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    z-index: 1;
}

.course-thumb img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.course-card:hover .course-thumb img { transform: scale(1.05); }

.course-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.tag-free { background: #10b981; color: white; }
.tag-pay { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }

.course-info {
    padding: 14px 16px 16px;
}

.course-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.course-name a {
    color: var(--text);
    transition: color 0.3s ease;
}

.course-name a:hover { color: var(--primary); }

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.course-students {
    font-size: 11px;
    color: #999;
}

.course-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 资源分享中心 - 全新品牌风格 ===== */
.resource-hero {
    position: relative;
    padding: 48px 0 40px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 70%, #0f0f1a 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
}

.resource-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.08) 0%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 4px);
    pointer-events: none;
}

.resource-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.04), transparent);
    transform: rotate(25deg);
    animation: resourceGlowMove 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes resourceGlowMove {
    0% { transform: rotate(25deg) translateX(-30%) translateY(-20%); }
    50% { transform: rotate(25deg) translateX(30%) translateY(20%); }
    100% { transform: rotate(25deg) translateX(-30%) translateY(-20%); }
}

.resource-hero-content {
    position: relative;
    z-index: 1;
}

.resource-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(99,102,241,0.3);
    background: linear-gradient(90deg, #e0e7ff 0%, #a5b4fc 30%, #c7d2fe 60%, #e0e7ff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: resourceTitleShimmer 3s ease-in-out infinite;
}

@keyframes resourceTitleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 150% center; }
    100% { background-position: 0% center; }
}

.resource-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.resource-hero-slogan {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.resource-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.resource-hero-stats span {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.resource-hero-stats span:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.resource-hero-stats span .stat-detail {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,15,26,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.resource-hero-stats span:hover .stat-detail {
    display: block;
}

/* 分类导航栏 */
.resource-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.resource-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.res-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.res-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.res-cat.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.res-cat-icon {
    font-size: 16px;
    line-height: 1;
}

.res-cat-count {
    font-size: 11px;
    opacity: 0.75;
    margin-left: 2px;
}

.res-cat.active .res-cat-count {
    opacity: 0.95;
}

.resource-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.resource-list-meta strong {
    color: var(--text);
}

.resource-list-meta-sort {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.resource-list-meta-sort a {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.resource-list-meta-sort a.active,
.resource-list-meta-sort a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.resource-pagination .page-nav {
    min-width: 72px;
}

.resource-pagination .page-ellipsis {
    padding: 0 6px;
    color: var(--text-tertiary);
}

.resource-filters {
    display: flex;
    gap: 6px;
}

.res-filter {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.res-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.res-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 资源卡片网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

/* 资源卡片 */
.res-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.res-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(99,102,241,0.1);
}

/* 封面 - 4种分类不同风格（强区分度） */
.res-cover {
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 默认（兜底） */
.res-cover-default {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* ===== 1. 软件工具：科技蓝紫 + 电路网格 + 工具图标 ===== */
.res-cover-tool {
    background: linear-gradient(135deg, #0c1f3f 0%, #1a3a6b 40%, #2563eb 100%);
}

.res-cover-tool::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(59,130,246,0.25) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(99,102,241,0.15) 0%, transparent 50%),
        repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px),
        repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px);
}

.res-cover-tool::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #3b82f6);
}

/* ===== 2. 源码资源：代码编辑器深色 + 代码行 + 绿点 ===== */
.res-cover-code {
    background: linear-gradient(135deg, #0a0e14 0%, #141a24 50%, #1a2235 100%);
}

.res-cover-code::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(99,102,241,0.05) 16px, rgba(99,102,241,0.05) 17px),
        repeating-linear-gradient(0deg, transparent, transparent 16px, rgba(99,102,241,0.05) 16px, rgba(99,102,241,0.05) 17px);
}

.res-cover-code::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 16px 0 0 0 #f59e0b, 32px 0 0 0 #ef4444;
}

/* ===== 3. 素材模板：高级浅紫渐变 + 设计感纹理 ===== */
.res-cover-template {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 40%, #a855f7 70%, #d946ef 100%);
}

.res-cover-template::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255,255,255,0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(217,70,239,0.2) 0%, transparent 45%),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 13px);
}

.res-cover-template::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #d946ef, #a855f7);
}

/* ===== 4. 文档教程：纸张质感 + 书本风格 ===== */
.res-cover-doc {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 30%, #fde68a 100%);
}

.res-cover-doc::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(0,0,0,0.05) 22px, rgba(0,0,0,0.05) 23px);
}

.res-cover-doc::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(217,119,6,0.15);
}

.res-cover-icon {
    position: relative;
    z-index: 1;
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.res-cover-doc .res-cover-icon {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* 原创标识角标 */
.res-origin-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* 价格角标 */
.res-price-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.res-price-badge.is-free {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.res-price-badge.is-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.res-price-badge.is-sold-out {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
}

.res-price-badge.is-course-free {
    background: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
    background-size: 200% 200%;
    animation: freeGlow 2s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(34,197,94,0.35);
}

@keyframes freeGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 实物商品封面专属质感 */
.res-cover-physical {
    background: linear-gradient(135deg, #d4a574, #c4956a, #b8845a);
}

.res-cover-physical::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0,0,0,0.08) 0%, transparent 40%);
    z-index: 0;
}

.res-cover-physical::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #f5d6b8, #d4a574);
    z-index: 1;
}

.res-cover-physical-shadow {
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* 已售罄卡片状态 */
.res-card.is-sold-out {
    opacity: 0.85;
}

.res-card.is-sold-out .res-body {
    filter: grayscale(0.3);
}

.res-btn-download.is-disabled {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(156,163,175,0.08);
}

.res-btn-download.is-disabled:hover {
    background: rgba(156,163,175,0.08);
    color: #9ca3af;
}

/* 卡片内容区 */
.res-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.res-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 星级评分 */
.res-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.res-rating .star {
    font-size: 14px;
    line-height: 1;
}

.res-rating .star-on {
    color: #f59e0b;
}

.res-rating .star-off {
    color: var(--border);
}

.res-rating-num {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* 元信息 */
.res-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 标签 */
.res-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.res-tag {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
    min-width: 52px;
    text-align: center;
}

.res-tag.tag-original {
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.15);
}

.res-tag.tag-commercial {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.15);
}

.res-tag.tag-beginner {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.15);
}

/* 价格行 */
.res-price-row {
    margin-top: auto;
}

.res-price-tag {
    font-size: 14px;
    font-weight: 700;
}

.res-price-tag.is-free {
    color: #22c55e;
}

.res-price-tag.is-paid {
    color: var(--primary);
}

/* 卡片底部双按钮 */
.res-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.res-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}

.res-btn-preview {
    color: var(--primary);
    border-right: 1px solid var(--border);
}

.res-btn-preview:hover {
    background: var(--primary);
    color: #fff;
}

.res-btn-download {
    color: var(--text-secondary);
}

.res-btn-download:hover {
    background: var(--primary);
    color: #fff;
}

.res-btn-download.is-free-btn {
    color: #22c55e;
}

.res-btn-download.is-free-btn:hover {
    background: #22c55e;
    color: #fff;
}

.res-btn-download.is-paid-btn {
    color: var(--primary);
}

.res-btn-download.is-paid-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* 收藏按钮 */
.res-fav-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.res-fav-btn:hover {
    background: rgba(239,68,68,0.6);
    color: #fff;
    transform: scale(1.1);
}

.res-fav-btn.is-faved {
    background: rgba(239,68,68,0.7);
    color: #fff;
}

/* 权限等级标签 */
.res-level-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99,102,241,0.08);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.12);
    margin-left: 6px;
}

/* ===== 评论区 ===== */
.res-comment-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-form-input {
    flex: 1;
}

.comment-form-input textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    resize: vertical;
    min-height: 52px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-form-input textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.comment-tool {
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    color: var(--text-secondary);
    font-size: 13px;
}

.comment-tool:hover {
    background: var(--bg);
}

.comment-submit {
    margin-left: auto;
    padding: 6px 20px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comment-level {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.comment-level.level-star { background: rgba(99,102,241,0.1); color: var(--primary); }
.comment-level.level-xuan { background: rgba(59,130,246,0.1); color: #3b82f6; }
.comment-level.level-yao { background: rgba(245,158,11,0.1); color: #f59e0b; }
.comment-level.level-qiong { background: rgba(168,85,247,0.1); color: #a855f7; }

.comment-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
}

.comment-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-action {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
}

.comment-action:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.comment-form-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    padding-left: 2px;
}

/* ===== 积分/签到/权限提示条 ===== */
.res-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.info-bar-item:hover {
    border-color: rgba(99,102,241,0.15);
    transform: translateY(-1px);
}

.info-bar-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.info-bar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.info-bar-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.info-bar-btn {
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.info-bar-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.info-bar-btn.is-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
}

.info-bar-btn.is-vip:hover {
    opacity: 0.9;
}

/* ===== 权限等级说明 ===== */
.res-level-guide {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.level-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.level-guide-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.level-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.level-guide-card.level-star {
    background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent);
    border-color: rgba(99,102,241,0.12);
}

.level-guide-card.level-star:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}

.level-guide-card.level-xuan {
    background: linear-gradient(180deg, rgba(59,130,246,0.04), transparent);
    border-color: rgba(59,130,246,0.12);
}

.level-guide-card.level-xuan:hover {
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 4px 16px rgba(59,130,246,0.08);
}

.level-guide-card.level-yao {
    background: linear-gradient(180deg, rgba(245,158,11,0.04), transparent);
    border-color: rgba(245,158,11,0.12);
}

.level-guide-card.level-yao:hover {
    border-color: rgba(245,158,11,0.3);
    box-shadow: 0 4px 16px rgba(245,158,11,0.08);
}

.level-guide-card.level-qiong {
    background: linear-gradient(180deg, rgba(168,85,247,0.04), transparent);
    border-color: rgba(168,85,247,0.12);
}

.level-guide-card.level-qiong:hover {
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 4px 16px rgba(168,85,247,0.08);
}

.level-guide-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.level-guide-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.level-guide-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1200px) {
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
    .res-info-bar { grid-template-columns: repeat(2, 1fr); }
    .level-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .resource-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .resource-grid { grid-template-columns: 1fr; }
    .resource-hero-title { font-size: 22px; }
    .resource-hero-stats { gap: 12px; }
    .resource-hero-stats span { font-size: 12px; padding: 4px 12px; }
    .res-info-bar { grid-template-columns: 1fr; }
    .level-guide-grid { grid-template-columns: 1fr; }
    .comment-form { flex-direction: column; }
}

.shop-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 70%, #0f0f1a 100%);
    padding: 48px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(99, 102, 241, 0.5), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 90% 70%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 60% 90%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 80% 15%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 40% 45%, rgba(99, 102, 241, 0.35), transparent),
        radial-gradient(1px 1px at 15% 55%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 85% 85%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 55% 30%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(99, 102, 241, 0.35), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 45% 75%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 95% 25%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 5% 95%, rgba(99, 102, 241, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 65% 65%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 35% 5%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(139, 92, 246, 0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.shop-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.shop-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.shop-hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    min-width: 140px;
    backdrop-filter: blur(4px);
}

.hero-stat-icon {
    font-size: 22px;
    line-height: 1;
}

.hero-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

@media (max-width: 768px) {
    .shop-hero { padding: 32px 0; }
    .shop-hero-title { font-size: 24px; }
    .shop-hero-desc { font-size: 13px; margin-bottom: 20px; }
    .shop-hero-stats { gap: 12px; }
    .hero-stat-item { padding: 10px 14px; min-width: auto; flex: 1; }
    .hero-stat-value { font-size: 15px; }
    .hero-stat-label { font-size: 10px; }
}

.shop-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    position: relative;
}

.shop-banner-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.shop-banner-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}

.shop-banner-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shop-banner-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.shop-section {
    margin: 24px 0 8px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-header .section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.section-more {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-more:hover {
    color: var(--primary);
}

.hot-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -4px;
}

.hot-track {
    display: flex;
    gap: 12px;
    padding: 0 4px;
    min-width: min-content;
}

.hot-card {
    flex: 0 0 auto;
    width: 170px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.hot-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.hot-card-thumb img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hot-card-info {
    display: block;
    padding: 10px 12px 12px;
}

.hot-card-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-card-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .hot-card {
        width: 140px;
    }
    .hot-card-name { font-size: 12px; }
    .hot-card-price { font-size: 13px; }
}

.eco-nav {
    display: flex;
    gap: 10px;
    padding: 24px 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.eco-nav-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 110px;
}

.eco-nav-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-2px);
}

.eco-nav-item.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.eco-nav-icon {
    font-size: 24px;
    line-height: 1;
}

.eco-nav-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.eco-nav-desc {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
}

.eco-nav-item.active .eco-nav-label {
    color: var(--primary);
}

.eco-subnav {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    flex-wrap: wrap;
}

.subnav-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subnav-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
}

.subnav-item.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .eco-nav {
        gap: 8px;
        padding: 16px 0 8px;
    }
    .eco-nav-item {
        padding: 10px 14px;
        min-width: 80px;
    }
    .eco-nav-icon { font-size: 20px; }
    .eco-nav-label { font-size: 12px; }
    .eco-nav-desc { display: none; }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-member-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.filter-member-btn:hover {
    border-color: rgba(234, 179, 8, 0.3);
    color: #eab308;
    background: rgba(234, 179, 8, 0.06);
}

.filter-member-btn.active {
    background: linear-gradient(135deg, #eab308, #facc15);
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 600;
}

.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.shop-sorts { display: flex; gap: 4px; }

.sort-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sort-btn:hover, .sort-btn.active { color: var(--primary); background: rgba(99,102,241,0.06); }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-icon svg {
    animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.empty-state p { font-size: 16px; margin-bottom: 20px; }

.plugin-detail-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.resource-detail-icon { font-size: 80px; text-align: center; }

.cart-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-col-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-col-product img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-col-product h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

.cart-item-type { font-size: 12px; color: var(--text-secondary); }

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}

.cart-total { font-size: 16px; }
.cart-total strong { font-size: 24px; color: var(--primary); }

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 32px 0;
}

.checkout-items {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.checkout-items h3 { margin-bottom: 20px; }

.checkout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 15px; margin-bottom: 4px; }
.checkout-item-info span { font-size: 13px; color: var(--text-secondary); }

.checkout-item-total { font-size: 16px; font-weight: 600; }

.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 88px;
}

.checkout-summary h3 { margin-bottom: 20px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    color: var(--text);
}

.total-price { font-size: 24px; font-weight: 700; color: var(--primary); }

.summary-pay { margin: 20px 0; }
.summary-pay h4 { font-size: 14px; margin-bottom: 12px; }

.pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.pay-option:hover { border-color: var(--primary); }

.order-tabs {
    display: flex;
    gap: 6px;
    padding: 20px 0 12px;
    flex-wrap: wrap;
}

.tab-btn {
    position: relative;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: top;
}

.tab-badge.warn { background: #f59e0b; }
.tab-badge.success { background: #10b981; }
.tab-badge.muted { background: #9ca3af; }

.order-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.filter-btn:hover { color: var(--primary); background: rgba(99,102,241,0.04); }
.filter-btn.active {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.15);
    font-weight: 600;
}

.filter-search { display: flex; gap: 8px; align-items: center; }

.search-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: var(--transition);
    max-width: 300px;
}

.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.search-btn {
    padding: 8px 18px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover { opacity: 0.9; }

.search-clear {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: underline;
}

.order-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.order-card-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.order-no-label { font-size: 13px; color: var(--text-tertiary); flex-shrink: 0; }
.order-no-value { font-size: 13px; font-weight: 600; color: var(--text); font-family: monospace; }

.order-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.order-copy-btn:hover { opacity: 1; }

.order-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.order-time { font-size: 12px; color: var(--text-tertiary); }

.order-status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.order-status-tag.status-pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.order-status-tag.status-paid { background: rgba(59,130,246,0.1); color: #3b82f6; }
.order-status-tag.status-done { background: rgba(16,185,129,0.1); color: #10b981; }
.order-status-tag.status-canceled { background: rgba(156,163,175,0.1); color: #9ca3af; }

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.order-card-body:hover { background: rgba(99,102,241,0.02); }

.order-product-info {
    display: flex;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.order-product-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.order-product-img img { width: 100%; height: 100%; object-fit: cover; }

.order-product-letter { font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.8); }

.order-product-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.order-product-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99,102,241,0.06);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.order-price-info {
    flex-shrink: 0;
    text-align: right;
    min-width: 100px;
}

.order-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.order-price-label { font-size: 12px; color: var(--text-tertiary); }
.order-price-value { font-size: 13px; color: var(--text); font-weight: 500; }

.order-price-row.discount .order-price-value { color: #ef4444; font-size: 12px; }

.order-price-row.total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.order-price-row.total .order-price-label { font-size: 13px; font-weight: 600; color: var(--text); }
.order-price-amount { font-size: 18px; font-weight: 700; color: var(--primary); }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.order-footer-left { font-size: 12px; }
.order-pay-tip { color: var(--text-tertiary); }

.order-footer-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-btn {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.order-btn.primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
}

.order-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }

.order-btn.outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.order-btn.outline:hover { background: rgba(99,102,241,0.04); }

.order-btn.ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.order-btn.ghost:hover { background: rgba(239,68,68,0.04); color: #ef4444; border-color: #ef4444; }

.batch-delete-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 16px;
}
.batch-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.batch-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.batch-count {
    font-size: 12px;
    color: var(--text-tertiary);
    flex: 1;
}
.order-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .order-card-right {
        width: 100%;
        justify-content: space-between;
    }
    .order-card-body {
        flex-direction: column;
        gap: 12px;
    }
    .order-product-info {
        width: 100%;
    }
    .order-price-info {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    .order-price-row {
        min-width: auto;
    }
    .order-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .order-footer-right {
        justify-content: flex-end;
    }
    .order-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .order-btn svg {
        width: 12px;
        height: 12px;
    }
    .order-product-img {
        width: 52px;
        height: 52px;
    }
    .order-product-letter {
        font-size: 18px;
    }
    .order-product-name {
        font-size: 14px;
    }
    .order-price-amount {
        font-size: 16px;
    }
    .order-filter-bar {
        flex-direction: column;
        gap: 8px;
    }
    .filter-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    .filter-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
    .filter-search form {
        flex-wrap: wrap;
    }
    .filter-search .search-input {
        flex: 1;
        min-width: 120px;
    }
    .order-tabs {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .tab-btn {
        font-size: 13px;
        padding: 8px 14px;
        white-space: nowrap;
    }
    .tab-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    .empty-hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .order-card-header {
        padding: 10px 12px;
    }
    .order-card-body {
        padding: 10px 12px;
    }
    .order-card-footer {
        padding: 10px 12px;
    }
    .order-no-value {
        font-size: 12px;
    }
    .order-time {
        font-size: 11px;
    }
    .order-status-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    .order-product-img {
        width: 44px;
        height: 44px;
    }
    .order-product-letter {
        font-size: 16px;
    }
    .order-product-name {
        font-size: 13px;
    }
    .order-price-amount {
        font-size: 14px;
    }
    .order-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    .order-btn svg {
        width: 11px;
        height: 11px;
    }
    .empty-hot-grid {
        grid-template-columns: 1fr;
    }
}

.empty-state.enhanced {
    padding: 60px 20px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 15px;
    border-radius: 12px;
}

.empty-hot {
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-hot-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.empty-hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.empty-hot-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.empty-hot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.empty-hot-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.empty-hot-img img { width: 100%; height: 100%; object-fit: cover; }
.empty-hot-letter { font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.8); }

.empty-hot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.empty-hot-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 40px;
}

.page-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }

.page-info { font-size: 14px; color: var(--text-tertiary); }

.order-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
    border-bottom: 1px solid var(--border);
}

.detail-status-icon { font-size: 36px; flex-shrink: 0; }

.detail-status-info { flex: 1; }

.detail-status-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.detail-status-desc { font-size: 14px; color: var(--text-tertiary); }

.detail-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.detail-info-label {
    font-size: 13px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    min-width: 70px;
}

.detail-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.detail-copy-btn {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.detail-copy-btn:hover { background: rgba(99,102,241,0.1); }

.detail-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.detail-product-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-product-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-product-info { flex: 1; }

.detail-product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.detail-product-price { font-size: 14px; color: var(--text-secondary); }

.detail-fee-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.detail-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-fee-row.discount { color: #ef4444; }

.detail-fee-row.total {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
}

.detail-fee-total { font-size: 20px; color: var(--primary); }

.detail-address {
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.detail-address-user {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.detail-address-detail { font-size: 13px; color: var(--text-secondary); }

.detail-deliver {
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.detail-deliver-content { font-size: 14px; color: var(--text); line-height: 1.6; }
.detail-deliver-tracking { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.detail-course-resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.resource-label {
    font-size: 13px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    min-width: 70px;
}

.resource-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: monospace;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.resource-value.link {
    font-family: inherit;
    font-weight: 500;
    color: var(--primary);
    text-decoration: underline;
}

.detail-actions {
    display: flex;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.page-breadcrumb {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.page-breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 8px; }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 30%, #f0f4ff 60%, #f5f3ff 100%);
}

.auth-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    animation: authFloat 8s ease-in-out infinite;
}

.auth-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    animation: authFloat 10s ease-in-out infinite reverse;
}

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.auth-container { width: 100%; max-width: 420px; position: relative; z-index: 1; }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(99,102,241,0.08), 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    animation: authBar 3s linear infinite;
}

@keyframes authBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.auth-brand-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-slogan {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.auth-header { text-align: center; margin-bottom: 20px; }

.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 13px; }

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label { font-size: 14px; font-weight: 500; }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

textarea.form-input { resize: vertical; min-height: 80px; }

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .form-input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.password-wrap:hover .password-toggle {
    opacity: 1;
}

.password-toggle:hover {
    color: var(--primary);
    opacity: 1;
    background: rgba(99,102,241,0.06);
}

.eye-icon { display: block; }

.code-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.code-wrap .code-input {
    flex: 1;
    min-width: 0;
}

.code-btn {
    flex-shrink: 0;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.code-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.code-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.field-error {
    font-size: 12px;
    color: #dc2626;
    min-height: 16px;
    line-height: 1.4;
    margin-top: 2px;
}

.form-input.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.form-input.is-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.remember-hint {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-left: 2px;
}

.security-domain {
    font-weight: 600;
    color: var(--primary);
}

.btn-block:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-secondary);
    box-shadow: none;
}

.btn-block:disabled:hover {
    transform: none;
    box-shadow: none;
}

.form-options {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-security {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.7;
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== 个人中心 - 全新样式 ===== */

.member-page { padding: 32px 0; }

.member-page > .container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.member-sidebar { position: sticky; top: 88px; }

/* 侧边栏用户卡片 */
.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.member-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.member-level-badge {
    position: absolute;
    bottom: -2px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    border: 2px solid var(--bg-card);
    font-weight: 600;
}

.member-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-level {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
}

/* 侧边栏会员快捷入口 */
.member-sidebar-vip-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-sidebar-vip-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-sidebar-vip-btn:hover::before {
    opacity: 1;
}

.member-sidebar-vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79,70,229,0.35);
    color: #fff;
}

.member-sidebar-vip-btn.level-vip1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.member-sidebar-vip-btn.level-vip2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.member-sidebar-vip-btn.level-vip3 { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.member-sidebar-vip-btn.level-vip4 { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.msv-icon { font-size: 16px; flex-shrink: 0; }
.msv-text { flex: 1; text-align: left; }
.msv-arrow { font-size: 14px; opacity: 0.7; transition: transform 0.3s ease; }
.member-sidebar-vip-btn:hover .msv-arrow { transform: translateX(3px); opacity: 1; }

/* 会员信息卡片 */
.member-vip-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.member-vip-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #6366f1);
    background-size: 200% 200%;
    animation: vipBgShift 6s ease infinite;
    border-radius: var(--radius);
}

@keyframes vipBgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.member-vip-card.level-vip1 .member-vip-bg { background: linear-gradient(135deg, #6366f1, #818cf8, #6366f1); background-size: 200% 200%; }
.member-vip-card.level-vip2 .member-vip-bg { background: linear-gradient(135deg, #7c3aed, #a78bfa, #7c3aed); background-size: 200% 200%; }
.member-vip-card.level-vip3 .member-vip-bg { background: linear-gradient(135deg, #4f46e5, #6366f1, #4f46e5); background-size: 200% 200%; }
.member-vip-card.level-vip4 .member-vip-bg { background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899); background-size: 200% 200%; }

.member-vip-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 16px;
}

.member-vip-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.member-vip-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    font-size: 24px;
}

.vip-icon-shine {
    animation: vipIconPulse 2s ease-in-out infinite;
}

@keyframes vipIconPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.vip-icon-muted { opacity: 0.6; }

.member-vip-info {
    flex: 1;
    min-width: 0;
}

.member-vip-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.vip-name-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.vip-name-text-muted { opacity: 0.7; }

.vip-name-badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
}

.vip-name-badge-muted { background: rgba(255,255,255,0.1); }

.member-vip-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.vip-meta-item {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.vip-meta-item strong { color: #fff; }

.vip-meta-dot {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.member-vip-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-progress-bar {
    flex: 1;
    max-width: 160px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.vip-progress-fill {
    height: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.vip-progress-text {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.member-vip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.member-vip-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #fff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.member-vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: #4f46e5;
}

.member-vip-link {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.member-vip-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* 侧边栏导航 */
.member-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.member-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.member-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.member-nav .nav-link.active {
    color: var(--primary);
    background: rgba(99,102,241,0.08);
    font-weight: 600;
    border-left-color: var(--primary);
}

.member-nav .nav-link.sub {
    padding-left: 44px;
    font-size: 13px;
    border-left-color: transparent;
}

.member-nav .nav-link.sub.active {
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text { flex: 1; }

.nav-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 50px;
    font-weight: 600;
    line-height: 1.6;
}

/* 导航分组 */
.nav-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.nav-group-title:hover { color: var(--text); }

.nav-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
    margin-left: auto;
    color: var(--text-tertiary);
}

.nav-arrow.open { transform: rotate(180deg); }

.nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-sub.open { max-height: 300px; }

.nav-sub .nav-link { border-bottom: 1px solid var(--border); }

.nav-sub .nav-link:last-child { border-bottom: none; }

.member-content { min-height: 400px; }

/* 顶部用户信息区 */
.member-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.profile-level-tag {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 10px;
    padding: 1px 10px;
    border-radius: 50px;
    white-space: nowrap;
    border: 2px solid var(--bg-card);
    font-weight: 600;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.profile-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 24px;
}

.meta-item {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.meta-item:hover { color: var(--primary); }

.meta-item strong {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.meta-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    margin: 0 10px;
}

/* ===== 星级战力展示（自适应标签版） ===== */
.profile-combat {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.03));
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    line-height: 1.2;
    max-width: 100%;
}

.profile-combat:hover {
    border-color: rgba(99,102,241,0.2);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
}

.pc-summary {
    display: inline;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.pc-badge {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.3px;
}

.pc-stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}

.pc-star {
    font-size: 13px;
    color: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pc-star.active {
    color: #f59e0b;
    text-shadow: 0 0 6px rgba(245,158,11,0.4);
}

.pc-score {
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    vertical-align: middle;
}

.pc-divider {
    color: rgba(0,0,0,0.12);
    font-size: 13px;
    font-weight: 300;
    margin: 0 3px;
    vertical-align: middle;
}

.pc-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    vertical-align: middle;
}

.pc-item:hover {
    color: var(--text);
}

.profile-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.profile-id {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    background: rgba(99,102,241,0.08);
    padding: 2px 10px;
    border-radius: 4px;
}

.profile-id-divider {
    color: var(--border);
    font-size: 12px;
}

.profile-dev-level {
    display: inline-flex;
    align-items: center;
}

.profile-qr-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-qr-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.06);
    transform: translateY(-1px);
}

.profile-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-edit-btn {
    padding: 8px 22px;
    height: 38px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.profile-edit-btn:hover {
    background: var(--primary);
    color: #fff;
}

.stat-icon-coupon { background: rgba(234,179,8,0.1); }
.stat-icon-todo { background: rgba(59,130,246,0.1); }

.stat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-badge-warn {
    background: #f59e0b;
    font-size: 10px;
    padding: 0 8px;
    height: 18px;
}

.platform-news-scroll {
    overflow: hidden;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.platform-news-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: newsScroll 30s linear infinite;
}

@keyframes newsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.platform-news-item {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 0 4px;
    -webkit-font-smoothing: antialiased;
}

.platform-news-divider {
    color: var(--border);
    font-size: 12px;
    padding: 0 12px;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.journey-item {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.journey-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: rgba(99,102,241,0.2);
}

.journey-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.journey-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.journey-label {
    font-size: 12px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dev-level-section {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius);
}

.dev-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dev-level-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.dev-level-badge {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99,102,241,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.dev-level-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dev-level-bar {
    width: 100%;
    height: 8px;
    background: rgba(99,102,241,0.12);
    border-radius: 4px;
    overflow: hidden;
}

.dev-level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.dev-level-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    border-radius: 4px;
}

.dev-level-points {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.medal-section {
    margin-top: 24px;
}

.medal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.medal-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.medal-section-more {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    transition: opacity 0.2s;
}

.medal-section-more:hover {
    opacity: 0.8;
}

.medal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(255,165,0,0.08));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radius);
    cursor: default;
    transition: all 0.25s ease;
}

.medal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,215,0,0.15);
    border-color: rgba(255,215,0,0.4);
}

.medal-icon {
    font-size: 26px;
    line-height: 1;
}

.medal-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

.medal-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 640px) {
    .medal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.medals-page {
    padding: 0;
}

.medals-hero {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.medals-hero-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.medals-hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
}

.medals-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.medals-hero p strong {
    color: #6366f1;
    font-size: 18px;
}

.medals-hero-bar {
    max-width: 300px;
    height: 8px;
    background: rgba(99,102,241,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.medals-hero-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.medal-series {
    margin-bottom: 32px;
}

.medal-series-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.medal-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.medal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 14px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.medal-card.is-earned {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,165,0,0.06));
    border: 1px solid rgba(255,215,0,0.25);
}

.medal-card.is-earned::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,215,0,0.05) 100%);
    pointer-events: none;
}

.medal-card.is-earned:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.15);
    border-color: rgba(255,215,0,0.4);
}

.medal-card.is-locked {
    background: var(--bg);
    border: 1px solid var(--border);
    opacity: 0.55;
    filter: grayscale(0.6);
}

.medal-card.is-locked:hover {
    opacity: 0.75;
    border-color: var(--text-secondary);
}

.medal-card-icon {
    font-size: 32px;
    line-height: 1;
}

.medal-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.medal-card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.medal-card-time {
    font-size: 10px;
    color: rgba(255,215,0,0.6);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .medal-series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.qr-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 340px;
    max-width: 90vw;
    overflow: hidden;
    animation: qrModalIn 0.3s ease;
}

@keyframes qrModalIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.qr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.qr-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: var(--primary);
    color: #fff;
}

.qr-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.qr-code-wrap {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.qr-code-wrap canvas {
    display: block;
    width: 180px;
    height: 180px;
}

.qr-info {
    text-align: center;
}

.qr-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.qr-id {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.qr-desc {
    font-size: 12px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.qr-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.qr-tip {
    font-size: 12px;
    color: var(--text-tertiary);
    -webkit-font-smoothing: antialiased;
}

/* 数据卡片区 */
.member-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    transition: all 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: rgba(99,102,241,0.25);
}

.stat-card:active {
    transform: translateY(-1px);
}

.stat-icon {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-balance { background: rgba(99,102,241,0.1); }
.stat-icon-order { background: rgba(139,92,246,0.1); color: #7c3aed; }
.stat-icon-course { background: rgba(16,185,129,0.1); }
.stat-icon-points { background: rgba(234,179,8,0.1); }
.stat-icon-fav { background: rgba(239,68,68,0.1); }
.stat-icon-auth { background: rgba(139,92,246,0.1); }

.stat-body { flex: 1; min-width: 0; overflow: hidden; }

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-hover-tip {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
    opacity: 0;
    transition: opacity 0.25s ease;
    max-width: 50%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card:hover .stat-hover-tip { opacity: 1; }

.member-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.member-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.member-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.member-tab {
    padding: 8px 18px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.member-tab:hover {
    color: var(--text);
    background: rgba(99,102,241,0.04);
}

.member-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
    font-weight: 600;
}

.member-tab-content {
    display: none;
    height: 280px;
    overflow-y: auto;
}

.member-tab-content.active {
    display: block;
}

.member-tab-content::-webkit-scrollbar {
    width: 4px;
}

.member-tab-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: background 0.2s ease;
    text-decoration: none;
}

.notice-item:hover {
    background: rgba(99,102,241,0.04);
}

.notice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.notice-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99,102,241,0.08);
    padding: 1px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-time {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.notice-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    transition: background 0.2s ease;
}

.notice-more:hover {
    background: rgba(99,102,241,0.04);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 { margin-bottom: 0; }

.section-more {
    font-size: 13px;
    color: var(--primary);
    transition: opacity 0.2s ease;
}

.section-more:hover { opacity: 0.8; }

/* 通知列表 */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.notification-item:last-child { border-bottom: none; }

.notification-item.unread .notification-dot {
    background: var(--primary);
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.notification-item.unread .notification-content p {
    font-weight: 500;
}

.my-course-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-course-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.my-course-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.my-course-thumb {
    width: 160px;
    min-height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.my-course-thumb-bg {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.my-course-thumb-icon {
    font-size: 36px;
    opacity: 0.8;
}
.my-course-thumb-letter {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.my-course-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.my-course-status.pending {
    background: rgba(251,191,36,0.85);
    color: #fff;
}
.my-course-status.learning {
    background: rgba(59,130,246,0.85);
    color: #fff;
}
.my-course-status.done {
    background: rgba(16,185,129,0.85);
    color: #fff;
}

.my-course-last {
    color: var(--text-tertiary);
    font-size: 12px;
}

.member-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.member-section-header h3 {
    margin: 0;
}

.course-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border);
}
.course-filter-tabs .filter-tab {
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.course-filter-tabs .filter-tab:hover {
    color: var(--text);
    background: rgba(99,102,241,0.06);
}
.course-filter-tabs .filter-tab.active {
    color: #fff;
    background: var(--primary);
}

.my-course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.my-course-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.my-course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.my-course-progress {
    margin: 4px 0;
}

.my-course-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.my-course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.my-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.my-course-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.fav-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
}
.fav-card:active {
    transform: translateY(-1px) scale(0.99);
}
.fav-thumb {
    display: block;
    position: relative;
    text-decoration: none;
}
.fav-thumb-bg {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.fav-thumb-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}
.fav-thumb-letter {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 0;
}
.fav-thumb-bg img ~ .fav-thumb-letter {
    display: none;
}
.fav-type-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    z-index: 2;
}
.fav-info {
    padding: 12px 14px 14px;
}
.fav-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 39px;
}
.fav-name a {
    color: var(--text);
    text-decoration: none;
}
.fav-name a:hover {
    color: var(--primary);
}
.fav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.fav-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.fav-unfav-btn {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.fav-unfav-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.04);
}

@media (max-width: 992px) {
    .fav-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .fav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .fav-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .my-course-card {
        flex-direction: column;
    }
    .my-course-thumb {
        width: 100%;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 { margin-bottom: 0; }

.detail-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.detail-section .course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .detail-section .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .member-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .member-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .detail-section .course-grid {
        grid-template-columns: 1fr;
    }
    .member-stats { grid-template-columns: 1fr; }
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    transition: all 0.25s ease;
    background: var(--bg-card);
    box-sizing: border-box;
}

.quick-action:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.quick-action:active {
    transform: translateY(0);
}

.qa-icon { font-size: 16px; }
.qa-text { font-weight: 500; }

/* ===== 钱包 - 安全提示 ===== */
.wallet-safety-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.safety-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== 钱包 - 资金仪表盘 ===== */
.wallet-balance-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.2);
}

.balance-main {
    position: relative;
    z-index: 1;
}

.balance-info {
    margin-bottom: 20px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.balance-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.balance-sub {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.balance-sub-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: help;
}

.sub-label {
    font-size: 12px;
    opacity: 0.6;
    font-weight: 500;
}

.sub-value {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.95;
}

.balance-sub-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.balance-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.balance-btn-primary {
    background: #fff;
    color: var(--primary);
    border: none;
}

.balance-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

.balance-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.balance-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
    color: #fff;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* ===== 钱包 - 交易记录区域 ===== */
.wallet-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.wallet-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.wallet-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.wallet-filters {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 3px;
    border-radius: 8px;
}

.filter-btn {
    padding: 6px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text);
    background: rgba(99,102,241,0.06);
}

.filter-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

/* ===== 钱包 - 交易列表 ===== */
.wallet-log-list {
    display: flex;
    flex-direction: column;
}

.wallet-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.wallet-log-item:last-child {
    border-bottom: none;
}

.wallet-log-item:hover {
    background: rgba(99,102,241,0.02);
}

.log-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.log-icon-recharge {
    background: rgba(16,185,129,0.1);
}

.log-icon-consume {
    background: rgba(99,102,241,0.1);
}

.log-icon-refund {
    background: rgba(245,158,11,0.1);
}

.log-icon-withdraw {
    background: rgba(239,68,68,0.1);
}

.log-icon-reward {
    background: rgba(168,85,247,0.1);
}

.log-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.log-remark {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.log-type-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 50px;
    background: var(--bg);
    color: var(--text-secondary);
}

.log-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 16px;
}

.log-amount {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.log-amount.positive {
    color: #10b981;
}

.log-amount.negative {
    color: #ef4444;
}

.log-balance-after {
    font-size: 11px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* ===== 钱包 - 空状态 ===== */
.wallet-empty {
    text-align: center;
    padding: 60px 20px;
}

.wallet-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.wallet-empty-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.wallet-empty-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.wallet-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wallet-empty-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.25);
}

/* ===== 钱包 - 分页 ===== */
.wallet-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

/* ===== 钱包 - 响应式 ===== */
@media (max-width: 768px) {
    .wallet-balance-card {
        padding: 20px;
    }
    .balance-amount {
        font-size: 32px;
    }
    .balance-sub {
        flex-wrap: wrap;
        gap: 12px;
    }
    .balance-sub-divider {
        display: none;
    }
    .balance-actions {
        flex-direction: column;
    }
    .balance-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    .wallet-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wallet-filters {
        overflow-x: auto;
        width: 100%;
    }
    .wallet-log-item {
        padding: 14px 16px;
    }
    .log-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .log-remark {
        font-size: 13px;
    }
    .log-right {
        margin-left: 10px;
    }
    .log-amount {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .wallet-balance-card {
        padding: 16px;
    }
    .balance-amount {
        font-size: 28px;
    }
    .balance-sub-item .sub-value {
        font-size: 14px;
    }
    .wallet-section-header {
        padding: 16px;
    }
    .wallet-section-header h3 {
        font-size: 16px;
    }
    .filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    .wallet-empty {
        padding: 40px 16px;
    }
}

/* ===== 充值页面 ===== */
.recharge-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius);
    color: #fff;
    margin-bottom: 20px;
}

.recharge-balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recharge-balance-label {
    font-size: 13px;
    opacity: 0.7;
}

.recharge-balance-amount {
    font-size: 28px;
    font-weight: 800;
}

.recharge-back-link {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.recharge-back-link:hover {
    color: #fff;
}

.recharge-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--bg);
    border-radius: 10px;
    padding: 3px;
}

.recharge-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recharge-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.recharge-tab:hover:not(.active) {
    color: var(--text);
}

.recharge-tab-icon {
    font-size: 18px;
}

.recharge-tab-content {
    display: none;
}

.recharge-tab-content.active {
    display: block;
}

.recharge-section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.recharge-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.recharge-amount-btn {
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.recharge-amount-btn:hover {
    border-color: var(--primary-light);
    background: rgba(99,102,241,0.04);
}

.recharge-amount-btn.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    color: var(--primary);
}

.recharge-custom-btn {
    color: var(--primary);
    border-style: dashed;
}

.recharge-custom-wrap {
    margin-bottom: 16px;
}

.recharge-custom-input-group {
    position: relative;
}

.recharge-custom-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    pointer-events: none;
}

.recharge-custom-input {
    padding-left: 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.recharge-pay-info {
    margin-bottom: 20px;
}

.recharge-pay-methods {
    display: flex;
    gap: 12px;
}

.pay-method-option {
    cursor: pointer;
    flex: 1;
}

.pay-method-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.pay-method-option.active .pay-method-box {
    border-color: var(--primary);
    background: rgba(99,102,241,0.04);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.pay-method-option:hover .pay-method-box {
    border-color: var(--primary-light);
}

.pay-method-icon {
    font-size: 22px;
    line-height: 1;
}

.pay-method-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pay-method-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 2px 10px;
    border-radius: 50px;
}

.recharge-submit-btn {
    width: 100%;
    padding: 14px !important;
    font-size: 16px !important;
    margin-bottom: 20px;
}

.recharge-activity {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(245,158,11,0.02));
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 10px;
}

.recharge-activity-title {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 4px;
}

.recharge-activity-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.recharge-card-section {
    padding: 20px 0;
}

.recharge-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.recharge-card-input-group {
    margin-bottom: 16px;
}

.recharge-card-input {
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    font-family: 'Courier New', monospace !important;
}

@media (max-width: 576px) {
    .recharge-balance-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .recharge-balance-amount {
        font-size: 24px;
    }
    .recharge-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recharge-tab {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ===== 积分页面 ===== */
.points-hero-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: #fff;
    transition: all 0.3s ease;
}

.points-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.2);
}

.points-hero-main {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.points-hero-left {
    flex: 1;
}

.points-hero-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.points-hero-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(199,210,254,0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.points-hero-unit {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.8;
    -webkit-font-smoothing: antialiased;
}

.points-hero-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.points-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

.points-level-name {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.95;
    -webkit-font-smoothing: antialiased;
}

.points-hero-progress {
    max-width: 400px;
}

.points-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 6px;
}

.points-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #818cf8);
    border-radius: 50px;
    transition: width 0.6s ease;
}

.points-progress-info {
    font-size: 13px;
    opacity: 0.8;
    -webkit-font-smoothing: antialiased;
}

.points-progress-info strong {
    opacity: 1;
    font-weight: 700;
}

.points-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.points-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 20px;
}

.points-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.points-stat-value {
    font-size: 22px;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
}

.points-stat-value.earn {
    color: #34d399;
}

.points-stat-value.spend {
    color: #f87171;
}

.points-stat-label {
    font-size: 12px;
    opacity: 0.7;
    -webkit-font-smoothing: antialiased;
}

.points-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

.points-hero-actions {
    display: flex;
    gap: 8px;
}

.points-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.points-action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.points-action-btn.done {
    background: rgba(52,211,153,0.2);
    border-color: rgba(52,211,153,0.3);
}

.points-hero-tip {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    font-size: 13px;
    opacity: 0.75;
}

.points-tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.points-task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
}

.points-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}

.points-task-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.points-task-icon {
    font-size: 20px;
    line-height: 1;
}

.points-task-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    -webkit-font-smoothing: antialiased;
}

.points-task-points {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99,102,241,0.06);
    padding: 2px 10px;
    border-radius: 50px;
    -webkit-font-smoothing: antialiased;
}

.points-task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.points-task-footer {
    display: flex;
    align-items: center;
}

.points-task-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.points-task-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.points-task-done {
    font-size: 13px;
    color: #10b981;
    font-weight: 600;
}

.points-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.points-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.points-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--text);
}

.points-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.points-empty {
    text-align: center;
    padding: 48px 20px;
}

.points-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.points-empty-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.points-empty-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.points-empty-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.points-log-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.points-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.points-log-item:last-child {
    border-bottom: none;
}

.points-log-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.points-log-icon {
    font-size: 20px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.points-log-icon.earn {
    background: rgba(52,211,153,0.1);
}

.points-log-icon.spend {
    background: rgba(248,113,113,0.1);
}

.points-log-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.points-log-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.points-log-time {
    font-size: 12px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.points-log-amount {
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
}

.points-log-amount.earn {
    color: #10b981;
}

.points-log-amount.spend {
    color: #ef4444;
}

.points-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.points-shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.points-shop-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.points-shop-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.points-shop-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    -webkit-font-smoothing: antialiased;
}

.points-shop-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

.points-shop-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

.points-shop-tag.hot {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.points-shop-tag.unlimited {
    color: #10b981;
    background: rgba(16,185,129,0.1);
}

.points-shop-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.points-shop-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.points-shop-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.points-shop-card:not(.disabled) .points-shop-btn {
    display: block;
}

.points-shop-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.points-task-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.points-task-tag.tag-daily {
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
}

.points-task-tag.tag-new {
    color: #10b981;
    background: rgba(16,185,129,0.1);
}

.points-task-tag.tag-invite {
    color: #6366f1;
    background: rgba(99,102,241,0.1);
}

.points-task-card.task-done {
    background: rgba(16,185,129,0.03);
    border-color: rgba(16,185,129,0.15);
}

.points-task-card.task-done .points-task-btn {
    background: #10b981;
}

.points-task-card.task-done .points-task-btn:hover {
    background: #059669;
}

.points-lottery-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius);
    padding: 24px 28px;
    color: #fff;
    gap: 20px;
}

.points-lottery-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.points-lottery-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.points-lottery-text {
    flex: 1;
}

.points-lottery-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    -webkit-font-smoothing: antialiased;
}

.points-lottery-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
}

.points-lottery-prizes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lottery-prize-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.points-lottery-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.points-lottery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.points-lottery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239,68,68,0.3);
}

.lottery-btn-icon {
    font-size: 20px;
}

.points-lottery-count {
    font-size: 13px;
    opacity: 0.8;
    min-height: 20px;
}

.lottery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 12px;
    box-sizing: border-box;
}

.lottery-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    margin: auto;
    box-sizing: border-box;
}

.lottery-modal--wheel {
    max-width: min(400px, 94vw);
    overflow: hidden;
    position: relative;
}

.lottery-result-panel {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    text-align: center;
    box-sizing: border-box;
}

.lottery-result-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
}

.lottery-result-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.lottery-result-prize {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.lottery-result-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 280px;
}

.lottery-result-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.lottery-result-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.points-my-id-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.points-my-id-label {
    color: rgba(255, 255, 255, 0.75);
}

.points-my-id-code {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.points-my-id-copy,
.transfer-id-copy {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.points-my-id-copy:hover,
.transfer-id-copy:hover {
    background: rgba(255, 255, 255, 0.22);
}

.transfer-id-note {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.lottery-modal--transfer {
    max-width: min(440px, 94vw);
    text-align: left;
}

.lottery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lottery-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.lottery-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lottery-close-btn:hover {
    background: var(--border);
    color: var(--text);
}

.lottery-wheel-wrap {
    position: relative;
    width: min(320px, 78vw);
    height: min(320px, 78vw);
    margin: 0 auto 16px;
    flex-shrink: 0;
}

.lottery-wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(99,102,241,0.28);
    transform: rotate(0deg);
    will-change: transform;
}

.lottery-wheel-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

.lottery-pointer {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    line-height: 1;
    color: #ef4444;
    z-index: 12;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.lottery-modal-footer {
    padding-top: 4px;
}

.lottery-spin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.lottery-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.lottery-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lottery-buff-tip {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.1));
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 12px;
}

.lottery-records-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 12px;
}

.lottery-records-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.lottery-records-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lottery-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg);
}

.lottery-record-item.hit {
    background: rgba(34,197,94,0.04);
}

.lottery-record-item.miss {
    background: rgba(148,163,184,0.04);
}

.lottery-record-prize {
    font-weight: 600;
    color: var(--text);
}

.lottery-record-item.miss .lottery-record-prize {
    color: var(--text-secondary);
}

.lottery-record-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.fortune-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.fortune-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fortune-level {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    -webkit-font-smoothing: antialiased;
}

.fortune-daji { color: #f59e0b; text-shadow: 0 0 20px rgba(245,158,11,0.3); }
.fortune-zhongji { color: #10b981; text-shadow: 0 0 20px rgba(16,185,129,0.3); }
.fortune-xiaoji { color: #3b82f6; text-shadow: 0 0 20px rgba(59,130,246,0.2); }
.fortune-ji { color: var(--text); }
.fortune-moji { color: #8b5cf6; }
.fortune-xiong { color: #ef4444; }

.fortune-text {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.fortune-points {
    font-size: 20px;
    font-weight: 800;
    color: #10b981;
    -webkit-font-smoothing: antialiased;
}

.fortune-buff {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    background: rgba(245,158,11,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    -webkit-font-smoothing: antialiased;
}

.fortune-done {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    -webkit-font-smoothing: antialiased;
}

.fortune-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.fortune-idle-icon {
    font-size: 48px;
    animation: fortune-bounce 2s ease-in-out infinite;
}

@keyframes fortune-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fortune-idle-text {
    font-size: 14px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.fortune-draw-btn {
    padding: 12px 36px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.fortune-draw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}

.fortune-draw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wish-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.wish-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.wish-intro-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.wish-intro-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
}

.wish-intro-desc {
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.wish-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wish-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wish-type-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
    transform: translateY(-2px);
}

.wish-type-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wish-type-icon {
    font-size: 28px;
}

.wish-type-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.wish-type-cost {
    font-size: 11px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.wish-result {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.wish-success {
    background: rgba(16,185,129,0.1);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}

.wish-count {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
    .wish-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vault-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.vault-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.vault-intro-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.vault-intro-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
}

.vault-intro-desc {
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.vault-rates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.vault-rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vault-rate-item:hover {
    border-color: var(--primary);
}

.vault-rate-item.active {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.08);
}

.vault-rate-days {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.vault-rate-pct {
    font-size: 18px;
    font-weight: 800;
    color: #f59e0b;
    -webkit-font-smoothing: antialiased;
}

.vault-deposit-form {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.vault-deposit-input-wrap {
    flex: 1;
    position: relative;
}

.vault-deposit-input {
    width: 100%;
    padding: 10px 60px 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-secondary);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.vault-deposit-input:focus {
    border-color: var(--primary);
}

.vault-deposit-input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.vault-deposit-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-deposit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.vault-deposit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vault-estimate {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    -webkit-font-smoothing: antialiased;
}

.vault-estimate strong {
    color: #10b981;
    font-size: 16px;
}

.vault-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
}

.vault-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 8px;
}

.vault-item.completed {
    opacity: 0.6;
}

.vault-item-info {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
}

.vault-item-points {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-item-interest {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-item-days {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-item-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vault-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.vault-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.vault-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-withdraw-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-withdraw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16,185,129,0.3);
}

.vault-item-status {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.vault-history {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .vault-rates {
        grid-template-columns: repeat(3, 1fr);
    }
    .vault-deposit-form {
        flex-direction: column;
    }
}

.repair-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.repair-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.repair-intro-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.repair-intro-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
}

.repair-intro-desc {
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.repair-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.repair-cards-count {
    font-size: 14px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.repair-cards-count strong {
    color: #f59e0b;
    font-size: 18px;
}

.repair-cards-hint {
    font-size: 12px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.repair-form {
    display: flex;
    gap: 10px;
}

.repair-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-secondary);
    outline: none;
    transition: border-color 0.2s ease;
}

.repair-input:focus {
    border-color: var(--primary);
}

.repair-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.repair-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.repair-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.repair-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.repair-success {
    background: rgba(16,185,129,0.1);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}

.repair-error {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}

@media (max-width: 600px) {
    .repair-form {
        flex-direction: column;
    }
}

.blindbox-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.blindbox-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.blindbox-intro-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.blindbox-intro-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
}

.blindbox-intro-desc {
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.blindbox-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.blindbox-item {
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.blindbox-item:hover {
    transform: translateY(-3px);
}

.blindbox-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.blindbox-box::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 70%);
}

.blindbox-box.normal {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.blindbox-box.advanced {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 16px rgba(245,158,11,0.25);
}

.blindbox-box.limited {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 4px 16px rgba(236,72,153,0.25);
}

.blindbox-box-icon {
    font-size: 36px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.blindbox-box-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
}

.blindbox-cost {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.blindbox-result {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    animation: blindboxPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes blindboxPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.blindbox-win {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(59,130,246,0.12));
    border: 1px solid rgba(16,185,129,0.25);
}

.blindbox-lose {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
}

.blindbox-result-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.blindbox-result-confetti {
    font-size: 28px;
    margin-top: 6px;
    animation: blindboxBounce 0.6s ease infinite alternate;
}

@keyframes blindboxBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@media (max-width: 600px) {
    .blindbox-list {
        grid-template-columns: 1fr;
    }
    .blindbox-box {
        height: 90px;
        flex-direction: row;
        gap: 10px;
    }
    .blindbox-box-icon {
        font-size: 28px;
        margin-bottom: 0;
    }
}

.points-transfer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: #fff;
    gap: 16px;
}

.points-transfer-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.points-transfer-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.points-transfer-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
    -webkit-font-smoothing: antialiased;
}

.points-transfer-desc {
    font-size: 13px;
    opacity: 0.8;
    -webkit-font-smoothing: antialiased;
}

.points-transfer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.points-transfer-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.points-transfer-history {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.points-transfer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.transfer-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.transfer-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.transfer-list {
    padding: 8px 0;
}

.transfer-empty {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
}

.transfer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    transition: background 0.2s ease;
}

.transfer-item:hover {
    background: var(--bg-secondary);
}

.transfer-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transfer-item-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.transfer-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transfer-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.transfer-item-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.transfer-item-points {
    font-size: 15px;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
}

.transfer-item-points.earn {
    color: #10b981;
}

.transfer-item-points.spend {
    color: #ef4444;
}

.transfer-form {
    padding: 8px 0;
}

.transfer-form-group {
    margin-bottom: 16px;
}

.transfer-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    -webkit-font-smoothing: antialiased;
}

.transfer-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.transfer-input:focus {
    border-color: var(--primary);
}

.transfer-form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    -webkit-font-smoothing: antialiased;
}

.transfer-remark-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.transfer-remark-chip {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    max-width: 100%;
    text-align: left;
}

.transfer-remark-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.transfer-remark-chip.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.transfer-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.transfer-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.transfer-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .points-hero-main {
        flex-direction: column;
        gap: 20px;
    }
    .points-hero-right {
        align-items: stretch;
    }
    .points-hero-stats {
        justify-content: center;
    }
    .points-hero-actions {
        flex-wrap: wrap;
    }
    .points-tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .points-shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .points-hero-number {
        font-size: 36px;
    }
    .points-tasks-grid {
        grid-template-columns: 1fr;
    }
    .points-shop-grid {
        grid-template-columns: 1fr;
    }
    .points-hero-actions {
        flex-direction: column;
    }
    .points-action-btn {
        justify-content: center;
    }
}

/* ===== 提现页面 ===== */
.withdraw-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius);
    color: #fff;
    margin-bottom: 16px;
}

.withdraw-balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.withdraw-balance-label {
    font-size: 13px;
    opacity: 0.7;
}

.withdraw-balance-amount {
    font-size: 28px;
    font-weight: 800;
}

.withdraw-back-link {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.withdraw-back-link:hover {
    color: #fff;
}

.withdraw-zero-fee {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #059669;
    margin-bottom: 24px;
}

.zero-fee-icon {
    font-size: 16px;
}

.withdraw-zero-fee strong {
    font-weight: 700;
}

.withdraw-channel-group {
    display: flex;
    gap: 12px;
}

.channel-option {
    cursor: pointer;
    flex: 1;
}

.channel-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.channel-option.active .channel-box {
    border-color: var(--primary);
    background: rgba(99,102,241,0.04);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.channel-option:hover .channel-box {
    border-color: var(--primary-light);
}

.channel-icon {
    font-size: 24px;
    line-height: 1;
}

.channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.withdraw-amount-wrap {
    position: relative;
}

.withdraw-amount-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    pointer-events: none;
}

.withdraw-amount-input {
    padding-left: 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.withdraw-quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-amount {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-amount:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.withdraw-submit-btn {
    width: 100%;
    padding: 14px !important;
    font-size: 16px !important;
}

@media (max-width: 576px) {
    .withdraw-balance-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .withdraw-balance-amount {
        font-size: 24px;
    }
    .withdraw-channel-group {
        flex-direction: column;
    }
}

.signin-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signin-skin-themed .signin-header-card {
    background: var(--skin-header-bg, var(--bg-card));
    border-color: color-mix(in srgb, var(--skin-primary, var(--border)) 35%, var(--border));
}

.signin-skin-themed .signin-btn {
    background: var(--skin-btn-bg, linear-gradient(135deg, var(--primary), #7c3aed));
}

.signin-skin-themed .signin-status-reward strong {
    color: var(--skin-primary, var(--primary));
}

.signin-skin-tip {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 14px;
}

.signin-skin-toast {
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 10px;
    color: #047857;
    margin-bottom: 14px;
}

.signin-skin-toast span {
    margin-right: 10px;
}

.signin-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.signin-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signin-big-icon {
    font-size: 48px;
    display: block;
    line-height: 1;
}

.signin-status-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.signin-status-reward {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.signin-status-reward strong {
    color: var(--primary);
    font-weight: 700;
}

.signin-status-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.signin-status-meta strong {
    color: var(--text);
    font-weight: 600;
}

.signin-divider {
    color: var(--border);
    margin: 0 8px;
}

.signin-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.signin-btn:active {
    transform: translateY(0);
}

.signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.signin-done-tag {
    padding: 8px 24px;
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}

.signin-continuous-bar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.signin-continuous-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.signin-continuous-hint {
    color: var(--primary);
    font-weight: 500;
}

.signin-progress-track {
    position: relative;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: visible;
}

.signin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.signin-progress-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg);
    transition: all 0.3s ease;
}

.signin-progress-milestone.reached .milestone-dot {
    background: #22c55e;
    border-color: rgba(34,197,94,0.2);
    box-shadow: 0 0 8px rgba(34,197,94,0.3);
}

.milestone-label {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-top: 14px;
}

.signin-progress-milestone.reached .milestone-label {
    color: #22c55e;
    font-weight: 600;
}

.signin-level-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.signin-level-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.1));
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    flex-shrink: 0;
}

.level-icon {
    font-size: 16px;
}

.signin-level-next {
    font-size: 13px;
    color: var(--text-secondary);
}

.signin-level-next strong {
    color: var(--text);
    font-weight: 600;
}

.signin-calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.signin-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.signin-calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.signin-calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cal-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cal-nav-month {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    min-width: 120px;
    text-align: center;
}

.signin-calendar {
    user-select: none;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    min-height: 48px;
}

.cal-day.empty {
    background: none;
}

.cal-day.today {
    border: 2px solid var(--primary);
    background: rgba(99,102,241,0.04);
}

.cal-day.signed {
    background: rgba(34,197,94,0.08);
}

.cal-day.future {
    opacity: 0.4;
}

.cal-day.can-repair {
    cursor: pointer;
}

.cal-day.can-repair:hover {
    background: rgba(99,102,241,0.08);
    border-color: var(--primary);
}

.cal-day-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.cal-day.signed .cal-day-num {
    color: #22c55e;
}

.cal-day.today .cal-day-num {
    color: var(--primary);
}

.cal-day-status {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.signed-mark {
    color: #22c55e;
    font-size: 12px;
}

.today-mark {
    color: var(--primary);
    font-size: 10px;
    background: rgba(99,102,241,0.1);
    padding: 1px 4px;
    border-radius: 4px;
}

.repair-btn {
    color: var(--primary);
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(99,102,241,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.repair-btn:hover {
    background: var(--primary);
    color: #fff;
}

.signin-rewards-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.signin-rewards-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: all 0.2s ease;
}

.reward-item.claimed {
    background: rgba(34,197,94,0.04);
    border: 1px solid rgba(34,197,94,0.1);
}

.reward-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.reward-item.claimed .reward-icon {
    background: rgba(34,197,94,0.08);
}

.reward-info {
    flex: 1;
    min-width: 0;
}

.reward-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.reward-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.reward-points {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.reward-item.claimed .reward-points {
    color: #22c55e;
}

.claimed-tag {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(34,197,94,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.repair-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.repair-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 360px;
    max-width: 90vw;
}

.repair-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.repair-modal-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.repair-close {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.repair-close:hover {
    background: var(--border);
    color: var(--text);
}

.repair-modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.repair-modal-body p strong {
    color: var(--text);
}

.repair-options {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.repair-options .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
}

.repair-options .btn-outline {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.repair-options .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.signin-buff-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.signin-buff-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.1));
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: var(--radius-sm);
}

.signin-buff-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.signin-buff-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.signin-buff-name {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.1));
    padding: 2px 10px;
    border-radius: 10px;
}

.signin-buff-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.signin-buff-effect {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
    background: rgba(16,185,129,0.08);
    padding: 2px 10px;
    border-radius: 10px;
}

.signin-boost-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.signin-boost-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-sm);
}

.signin-boost-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.signin-boost-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.signin-boost-name {
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    padding: 2px 10px;
    border-radius: 10px;
}

.signin-boost-expire {
    font-size: 12px;
    color: var(--text-tertiary);
}

.signin-task-hint {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(99,102,241,0.06));
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #6366f1;
    font-weight: 500;
}

.signin-repair-cards-badge {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    transition: all 0.2s ease;
}

.signin-repair-cards-badge:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.repair-card-icon {
    font-size: 18px;
}

.repair-card-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.repair-card-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.pending-tag {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    cursor: help;
}

.signin-shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.signin-shop-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-item:hover {
    background: rgba(99,102,241,0.04);
    border-color: var(--primary);
}

.shop-item-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.shop-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.shop-item-cost {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.shop-item-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.shop-item-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.signin-skin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.signin-skin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.signin-skin-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.signin-skin-current {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.skin-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.skin-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.skin-item.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.skin-preview {
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.skin-preview-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.8;
}

.skin-preview-bar {
    width: 40px;
    height: 6px;
    border-radius: 3px;
    opacity: 0.6;
}

.skin-preview-days {
    display: flex;
    gap: 3px;
    position: absolute;
    bottom: 6px;
    right: 8px;
}

.skin-preview-days span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.5;
}

.skin-info {
    flex: 1;
    min-width: 0;
}

.skin-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.skin-icon {
    font-size: 16px;
}

.skin-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.skin-action {
    text-align: right;
}

.skin-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.skin-status.active-tag {
    background: rgba(16,185,129,0.08);
    color: #10b981;
}

.skin-status.switch-tag {
    background: rgba(99,102,241,0.08);
    color: var(--primary);
}

.skin-item.locked {
    opacity: 0.72;
}

.skin-item.locked .skin-preview::after {
    content: '🔒';
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 14px;
}

.skin-status.unlock-tag {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.skin-status.lock-tag {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.skin-status.buy-tag {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
}

.signin-share-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.signin-share-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signin-share-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-sm);
}

.signin-share-info {
    flex: 1;
    min-width: 0;
}

.signin-share-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.signin-share-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.signin-share-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.signin-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.signin-rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.signin-rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.signin-rank-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.signin-rank-month {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.signin-rank-myrank {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: var(--radius-sm);
}

.signin-rank-myrank strong {
    color: var(--primary);
    font-size: 16px;
}

.signin-rank-total {
    font-size: 12px;
    color: var(--text-tertiary);
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: all 0.2s ease;
}

.rank-item:hover {
    background: rgba(99,102,241,0.03);
}

.rank-item.is-me {
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
}

.rank-num {
    width: 28px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1px;
}

.rank-stats {
    font-size: 12px;
    color: var(--text-tertiary);
}

.rank-divider {
    margin: 0 4px;
    color: var(--border);
}

.rank-badge {
    flex-shrink: 0;
}

.rank-level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.rank-level.level-1 {
    background: rgba(156,163,175,0.08);
    color: #9ca3af;
}

.rank-level.level-2 {
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
}

.rank-level.level-3 {
    background: rgba(139,92,246,0.08);
    color: #8b5cf6;
}

.rank-level.level-4 {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
}

.notification-list { display: flex; flex-direction: column; }

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: rgba(99,102,241,0.03); }

.notification-content p { font-size: 14px; margin-bottom: 4px; }

.notification-time { font-size: 12px; color: var(--text-secondary); }

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

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.ticket-item:hover { border-color: var(--primary); }

.ticket-info h4 { font-size: 15px; margin-bottom: 4px; color: var(--text); }

.ticket-time { font-size: 12px; color: var(--text-secondary); }

.ticket-status { font-size: 13px; font-weight: 600; }
.ticket-status.status-pending { color: #f59e0b; }
.ticket-status.status-processing { color: var(--primary); }
.ticket-status.status-resolved { color: #10b981; }
.ticket-status.status-closed { color: var(--text-secondary); }

.ticket-detail-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.ticket-detail-header h3 { font-size: 18px; margin-bottom: 0; }

.ticket-detail-body { padding: 24px; }

.ticket-detail-body p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }

.ticket-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.learn-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.learn-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.learn-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.learn-back-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.learn-back-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.learn-topbar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.learn-topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.learn-topbar-progress {
    font-size: 11px;
    color: var(--text-secondary);
}

.learn-toggle-sidebar {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.learn-toggle-sidebar:hover {
    background: var(--bg);
    color: var(--primary);
}

.learn-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - 56px);
    margin-top: 56px;
}

.learn-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    max-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
}

.learn-sidebar.collapsed {
    display: none;
}

.learn-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.learn-sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.learn-sidebar-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.learn-chapter { border-bottom: 1px solid var(--border); }

.learn-chapter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
}

.learn-chapter-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 1px 8px;
    border-radius: 8px;
}

.learn-lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.learn-lesson:hover { background: var(--bg); }
.learn-lesson.active {
    background: rgba(99,102,241,0.06);
    color: var(--primary);
    border-left-color: var(--primary);
}

.learn-lesson.learned {
    color: var(--text-secondary);
}

.learn-lesson-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.lesson-index {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.learn-lesson.active .lesson-index {
    color: var(--primary);
}

.learn-lesson-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.learn-lesson-duration {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.learn-main {
    padding: 32px 40px;
    overflow-y: auto;
    max-width: 960px;
}

.learn-content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.learn-content-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.learn-duration-badge {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 6px;
    flex-shrink: 0;
}

.learn-content-body {
    min-height: 300px;
}

.learn-video {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f1a;
    position: relative;
}

.learn-video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #0f0f1a;
}

.learn-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.learn-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    z-index: 0;
}

.learn-video-play-icon {
    font-size: 48px;
    opacity: 0.3;
}

.learn-video-no-video {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learn-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.learn-text-inner {
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.learn-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.learn-footer-left {
    display: flex;
    gap: 8px;
}

.learn-footer-right {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .learn-layout {
        grid-template-columns: 1fr;
    }
    .learn-sidebar {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        z-index: 99;
    }
    .learn-sidebar.collapsed {
        display: block;
    }
    .learn-main {
        padding: 20px;
    }
    .learn-content-header h2 {
        font-size: 18px;
    }
    .learn-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .learn-footer-right {
        justify-content: center;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 { font-size: 20px; margin-bottom: 0; }

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal-product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.modal-product-thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.modal-product-thumb .product-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: var(--radius-sm);
    z-index: 0;
}

.modal-product-thumb .product-thumb-bg.is-physical {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.modal-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
}

.modal-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1;
}

.modal-product-info {
    flex: 1;
    min-width: 0;
}

.modal-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-product-spec {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-product-qty {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

.modal-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-brand-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(99, 102, 241, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(139, 92, 246, 0.6), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(99, 102, 241, 0.7), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(168, 85, 247, 0.5), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(99, 102, 241, 0.6), transparent),
        radial-gradient(2px 2px at 50% 40%, rgba(139, 92, 246, 0.7), transparent),
        radial-gradient(2px 2px at 70% 90%, rgba(99, 102, 241, 0.5), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 30% 50%, rgba(99, 102, 241, 0.7), transparent),
        radial-gradient(2px 2px at 45% 85%, rgba(139, 92, 246, 0.5), transparent),
        radial-gradient(2px 2px at 75% 35%, rgba(99, 102, 241, 0.6), transparent),
        radial-gradient(2px 2px at 15% 15%, rgba(168, 85, 247, 0.7), transparent),
        radial-gradient(2px 2px at 55% 60%, rgba(99, 102, 241, 0.5), transparent),
        radial-gradient(2px 2px at 85% 75%, rgba(139, 92, 246, 0.6), transparent),
        radial-gradient(2px 2px at 25% 45%, rgba(99, 102, 241, 0.7), transparent),
        radial-gradient(2px 2px at 65% 15%, rgba(168, 85, 247, 0.5), transparent),
        radial-gradient(2px 2px at 35% 90%, rgba(99, 102, 241, 0.6), transparent),
        radial-gradient(2px 2px at 95% 55%, rgba(139, 92, 246, 0.7), transparent),
        radial-gradient(2px 2px at 5% 25%, rgba(99, 102, 241, 0.5), transparent),
        radial-gradient(2px 2px at 48% 10%, rgba(168, 85, 247, 0.6), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
}

.footer-col p { font-size: 14px; line-height: 1.8; }

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* ===== 品牌第一列专属样式 ===== */
.footer-col-brand {
    padding-right: 20px;
}

.footer-brand-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 14px !important;
    padding-bottom: 0 !important;
    letter-spacing: 0 !important;
}

.footer-brand-title::after {
    display: none !important;
}

.footer-brand-en {
    font-size: 13px;
    font-weight: 400;
    color: var(--primary-light);
    margin-left: 6px;
    letter-spacing: 1px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.9;
    color: #94a3b8;
    margin-bottom: 18px;
}

.footer-brand-slogan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 2px;
    padding: 7px 16px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.footer-brand-slogan:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.footer-slogan-icon {
    color: var(--primary-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand-slogan:hover .footer-slogan-icon {
    transform: rotate(-15deg) scale(1.1);
}

/* ===== 联系系列样式 ===== */
.footer-contact-item {
    margin-bottom: 10px !important;
}

.footer-contact-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-item a {
    display: inline-block !important;
    padding: 0 !important;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary-light) !important;
    padding-left: 0 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
}

.footer-icp {
    margin-top: 6px !important;
    font-size: 12px !important;
}

.footer-icp a {
    color: #475569 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.footer-by {
    font-size: 12px !important;
    margin-top: 6px !important;
    color: #475569 !important;
    letter-spacing: 1px;
}

.text-muted { color: var(--text-secondary); font-size: 14px; }
.mb-20 { margin-bottom: 20px; }

@media (max-width: 768px) {
    .nav { display: none; }
    .member-page > .container {
        grid-template-columns: 1fr;
    }
    .member-sidebar { display: none; }
    .member-vip-inner { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
    .member-vip-left { flex-wrap: wrap; }
    .member-vip-right { width: 100%; justify-content: flex-end; }
    .member-vip-progress { flex: 1; min-width: 120px; }
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .member-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .profile-header-left {
        flex-wrap: wrap;
    }
    .profile-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .meta-divider { display: none; }
    .meta-item { margin-right: 12px; }
    .stat-hover-tip { display: none; }
    .checkout-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .learn-page { grid-template-columns: 1fr; }
    .learn-sidebar { display: none; }
    .hero-section { height: 320px; }
    .hero-slogan h1 { font-size: 28px; }
    .hero-slogan p { font-size: 13px; margin-bottom: 18px; }
    .hero-search { max-width: 100%; }
    .hero-search-input input { font-size: 13px; padding: 10px 14px; }
    .hero-search-btn { padding: 8px 20px; font-size: 13px; }
    .cart-header, .cart-item { grid-template-columns: 2fr 1fr; }
    .cart-col-price, .cart-col-total { display: none; }
}

.search-page { padding: 40px 0; min-height: 60vh; }

.search-header { margin-bottom: 32px; }

.search-form-input {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
}

.search-form-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.search-form-input svg { color: #9ca3af; flex-shrink: 0; }

.search-form-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    background: transparent;
    color: var(--text);
}

.search-form-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-btn:hover { background: var(--primary-dark); }

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.search-tab {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: var(--transition);
}

.search-tab:hover { background: var(--bg); color: var(--text); }

.search-tab.active {
    background: var(--primary);
    color: white;
}

.gem-section {
    padding: 40px 0 10px;
    background: var(--bg);
}

.gem-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 -8px;
}

.gem-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    position: relative;
    perspective: 800px;
}

.gem-shape {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px 14px 26px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, hsl(var(--gem-hue), var(--gem-sat), calc(var(--gem-lit) + 8%)), hsl(var(--gem-hue), var(--gem-sat), var(--gem-lit)));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px hsla(var(--gem-hue), var(--gem-sat), calc(var(--gem-lit) - 10%), 0.15);
    border: 2px solid hsl(var(--gem-hue), var(--gem-sat), calc(var(--gem-lit) - 12%));
}

.gem-shape::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.08), transparent);
    z-index: 0;
    pointer-events: none;
}

.gem-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.gem-label {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.gem-desc {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.gem-glow {
    position: absolute;
    inset: -4px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: hsla(var(--gem-hue), var(--gem-sat), var(--gem-lit), 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.gem-card:hover .gem-shape {
    transform: translateY(-2px);
    border-color: hsl(var(--gem-hue), var(--gem-sat), calc(var(--gem-lit) - 20%));
    box-shadow: 0 8px 28px hsla(var(--gem-hue), var(--gem-sat), var(--gem-lit), 0.25);
}

.gem-card:hover .gem-glow {
    opacity: 1;
}

.gem-card:hover .gem-label {
    color: #ffffff;
}

.gem-card:hover .gem-desc {
    color: rgba(255, 255, 255, 0.85);
}

.gem-card:active .gem-shape {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 992px) {
    .gem-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    .gem-card {
        flex: 0 0 calc(33.333% - 16px);
        margin: 8px;
    }
    .gem-shape {
        padding: 26px 12px 22px;
    }
    .gem-label {
        font-size: 16px;
    }
    .gem-desc {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .gem-card {
        flex: 0 0 calc(50% - 16px);
        margin: 8px;
    }
    .gem-shape {
        padding: 22px 10px 18px;
    }
    .gem-label {
        font-size: 15px;
    }
    .gem-desc {
        font-size: 9px;
    }
}

.search-meta {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.search-empty {
    text-align: center;
    padding: 80px 20px;
}

.search-empty p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.search-empty span { font-size: 14px; color: #94a3b8; }

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.search-result-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.search-result-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.search-result-info { flex: 1; }

.search-result-source {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.source-shop { background: #dbeafe; color: #1d4ed8; }
.source-course { background: #dcfce7; color: #15803d; }
.source-resource { background: #fef3c7; color: #b45309; }
.source-plugin { background: #f3e8ff; color: #7c3aed; }

.search-result-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.search-result-title a { color: var(--text); }
.search-result-title a:hover { color: var(--primary); }

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-result-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.search-result-sales { font-size: 13px; color: var(--text-secondary); }

/* ===== 最新发布综合区 ===== */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.latest-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.latest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--tag-h), var(--tag-s), var(--tag-l)), hsl(calc(var(--tag-h) + 30), var(--tag-s), calc(var(--tag-l) + 10%)));
    opacity: 0.8;
}

.latest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, hsla(var(--tag-h), var(--tag-s), var(--tag-l), 0.03), transparent 60%);
    pointer-events: none;
}

.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px hsla(var(--tag-h), var(--tag-s), var(--tag-l), 0.15), 0 4px 12px hsla(var(--tag-h), var(--tag-s), var(--tag-l), 0.08);
    border-color: hsl(var(--tag-h), var(--tag-s), calc(var(--tag-l) - 6%));
}

.latest-card:hover::after {
    opacity: 1;
}

.latest-card:active {
    transform: translateY(-1px) scale(0.99);
}

.latest-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: hsl(var(--tag-h), var(--tag-s), var(--tag-l));
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.latest-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.latest-card:hover .latest-title {
    color: hsl(var(--tag-h), var(--tag-s), calc(var(--tag-l) - 10%));
}

.latest-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.latest-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.latest-price {
    font-size: 15px;
    font-weight: 700;
    color: hsl(var(--tag-h), var(--tag-s), calc(var(--tag-l) - 6%));
}

.latest-price.is-free {
    color: #10b981;
}

.latest-time {
    font-size: 11px;
    color: #999;
}

@media (max-width: 992px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-grid {
        grid-template-columns: 1fr;
    }
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matrix-card:hover::before {
    opacity: 1;
}

.matrix-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
    border-color: var(--primary-light);
}

.matrix-card:active {
    transform: translateY(-1px) scale(0.99);
}

.matrix-icon {
    font-size: 36px;
    margin-bottom: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.matrix-card:hover .matrix-icon {
    transform: scale(1.15);
}

.matrix-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.matrix-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.matrix-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.matrix-status.is-ready {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.matrix-status.is-dev {
    background: rgba(250, 204, 21, 0.12);
    color: #eab308;
}

.matrix-status.is-soon {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

@media (max-width: 992px) {
    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .matrix-grid {
        grid-template-columns: 1fr;
    }
}

.resource-hero--matrix .resource-hero-content {
    text-align: center;
}

.matrix-zone-hero-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
}

.matrix-breadcrumb a:hover {
    color: #fff !important;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-zone-count {
    font-size: 13px;
    color: var(--text-muted);
}

.vip-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    position: relative;
    overflow: hidden;
}

.vip-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: vipHeroGlow 8s ease-in-out infinite alternate;
}

@keyframes vipHeroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, -2%); }
}

.vip-hero-content {
    position: relative;
    z-index: 1;
}

.vip-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.vip-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.vip-section {
    padding: 40px 0 80px;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.vip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 8px 16px rgba(99, 102, 241, 0.08);
    border-color: hsl(var(--vip-h, 260), var(--vip-s, 65%), var(--vip-l, 55%));
}

.vip-card:active {
    transform: translateY(-2px) scale(0.99);
}

.vip-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.vip-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.vip-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.vip-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.vip-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.vip-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.vip-price {
    font-size: 36px;
    font-weight: 800;
    color: hsl(var(--vip-h, 260), var(--vip-s, 65%), var(--vip-l, 55%));
    line-height: 1;
}

.vip-original {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 8px;
}

.vip-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.vip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.vip-feature {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-feature::before {
    content: '✓';
    color: hsl(var(--vip-h, 260), var(--vip-s, 65%), var(--vip-l, 55%));
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.vip-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--vip-h, 260), var(--vip-s, 65%), var(--vip-l, 55%)), hsl(var(--vip-h, 260), calc(var(--vip-s, 65%) - 10%), calc(var(--vip-l, 55%) - 8%)));
    text-decoration: none;
    transition: all 0.3s ease;
}

.vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(var(--vip-h, 260), var(--vip-s, 65%), var(--vip-l, 55%), 0.4);
}

.vip-btn:active {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .vip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vip-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .vip-grid {
        grid-template-columns: 1fr;
    }
    .vip-hero {
        padding: 40px 0 30px;
    }
    .vip-hero-title {
        font-size: 24px;
    }
    .vip-card {
        padding: 24px 20px;
    }
}

.vip-period-section {
    margin-top: 50px;
    text-align: center;
}

.vip-period-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.vip-period-divider::before,
.vip-period-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.vip-period-divider-text {
    font-size: 15px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.vip-period-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vip-period-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    background: var(--bg-card);
    user-select: none;
}

.vip-period-tab:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.vip-period-tab.is-active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.vip-period-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.vip-period-tab.is-active .vip-period-label {
    color: var(--primary);
}

.vip-period-tag {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 2px 10px;
    border-radius: 10px;
    line-height: 1.4;
}

.vip-period-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

@media (max-width: 576px) {
    .vip-period-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .vip-period-tab {
        padding: 12px 20px;
        flex: 1;
        min-width: 80px;
    }
}

/* ===== 官方最新动态 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
    border-color: var(--primary-light);
}

.news-card:active {
    transform: translateY(-1px) scale(0.99);
}

.news-category {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    background: var(--primary);
}

.news-category[data-category="版本发布"] {
    background: #10b981;
}

.news-category[data-category="更新公告"] {
    background: #7c3aed;
}

.news-category[data-category="功能更新"] {
    background: #3b82f6;
}

.news-category[data-category="新品预告"] {
    background: #f59e0b;
}

.news-category[data-category="新品发布会"] {
    background: #ef4444;
}

.news-category[data-category="平台公告"] {
    background: #06b6d4;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-time {
    font-size: 12px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-card {
        padding: 18px 20px 16px;
    }
}

/* ===== 平台数据 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.06);
    border-color: var(--primary-light);
}

.stats-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    color: var(--primary);
}

.stats-card:nth-child(1) .stats-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.05));
    color: #6366f1;
}

.stats-card:nth-child(2) .stats-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.stats-card:nth-child(3) .stats-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.05));
    color: #a855f7;
}

.stats-card:nth-child(4) .stats-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.05));
    color: #7c3aed;
}

.stats-card:hover .stats-icon {
    transform: scale(1.12);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
}

.stats-body {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.stats-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.stats-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stats-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.stats-slogan {
    text-align: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.stats-slogan-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stats-card {
        padding: 24px 16px 20px;
    }
    .stats-number {
        font-size: 28px;
    }
    .stats-slogan-text {
        font-size: 15px;
    }
}

/* ===== 下单确认页 ===== */
.checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    padding: 32px 0;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.checkout-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-product-thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.checkout-product-thumb .product-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: var(--radius-sm);
    z-index: 0;
}

.checkout-product-thumb .product-thumb-bg.is-physical {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.checkout-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
}

.checkout-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
}

.checkout-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.checkout-product-spec {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.checkout-product-tag {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.checkout-product-price {
    text-align: right;
    flex-shrink: 0;
}

.checkout-price-unit {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.checkout-price-qty {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 2px 0;
}

.checkout-price-subtotal {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.info-field {
    margin-bottom: 16px;
}

.info-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.info-field-label .required {
    color: #ef4444;
}

.info-field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.info-field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.info-field-textarea {
    resize: vertical;
    min-height: 60px;
}

.info-field-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.address-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.address-option:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.address-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.address-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--primary);
}

.address-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address-option-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.address-option-phone {
    font-size: 13px;
    color: var(--text-secondary);
}

.address-option-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.address-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-divider::before,
.address-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.address-divider span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.address-row {
    display: flex;
    gap: 12px;
}

.address-row-region {
    gap: 8px;
}

.flex-1 {
    flex: 1;
}

.region-select {
    appearance: auto;
    cursor: pointer;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.discount-vip {
    color: #7c3aed;
    font-weight: 500;
}

.discount-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.discount-total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option input[type="radio"] {
    accent-color: var(--primary);
}

.payment-icon {
    font-size: 22px;
    line-height: 1;
}

.payment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.payment-balance {
    font-size: 13px;
    color: var(--text-secondary);
}

.payment-balance-warn {
    font-size: 12px;
    color: #ef4444;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.payment-recharge-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 16px;
    background: #fefce8;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #a16207;
}

.payment-recharge-hint .btn-outline {
    font-size: 12px;
    padding: 4px 12px;
    border-color: #eab308;
    color: #a16207;
}

.payment-recharge-hint .btn-outline:hover {
    background: #eab308;
    color: white;
}

.discount-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.discount-amount {
    color: #10b981;
    font-weight: 600;
}

.checkout-coupon-section,
.checkout-points-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.checkout-section-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coupon-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.coupon-option:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.coupon-option input[type="radio"] {
    accent-color: var(--primary);
}

.coupon-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coupon-option-name {
    font-weight: 500;
    color: var(--text);
}

.coupon-option-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.coupon-option-min {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.points-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points-slider {
    width: 100%;
    accent-color: var(--primary);
    height: 6px;
    border-radius: 3px;
}

.points-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.points-info strong {
    color: var(--text);
}

.sidebar-security {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.checkout-sidebar {
    position: sticky;
    top: 88px;
}

.checkout-sidebar-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.checkout-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-vip {
    color: #7c3aed;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

.sidebar-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

@media (max-width: 992px) {
    .checkout-wrap {
        grid-template-columns: 1fr;
    }
    .checkout-sidebar {
        position: static;
    }
    .address-row {
        flex-direction: column;
        gap: 0;
    }
    .address-row-region {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .checkout-card {
        padding: 16px;
    }
    .checkout-product {
        flex-wrap: wrap;
    }
    .checkout-product-price {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .checkout-price-qty {
        margin: 0;
    }
    .address-row-region {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== 商品详情页 ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
}

.detail-gallery-col {
    position: sticky;
    top: 88px;
    align-self: start;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    aspect-ratio: 1;
}
.detail-gallery-main.is-real-cover {
    aspect-ratio: 1 / 1;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
}

.detail-gallery-main .res-price-badge {
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 6px;
    top: 12px;
    right: 12px;
}

.detail-cover-texture {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.gallery-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide .product-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    z-index: 0;
}

.gallery-slide .product-thumb-bg.is-physical {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.gallery-slide img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-slide.is-real-cover .product-thumb-bg {
    display: none;
}
.gallery-slide.is-real-cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-gallery-main:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.gallery-thumb .product-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    z-index: 0;
    border-radius: var(--radius-sm);
}

.gallery-thumb .product-thumb-bg.is-physical {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.gallery-thumb img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    z-index: 1;
}

.gallery-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1;
}

.detail-images-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.detail-image-item {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detail-image-item img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    background: #f1f5f9;
    image-rendering: auto;
}
.detail-image-item img[src$=".svg"],
.detail-image-item img[src*=".svg?"] {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    padding: 20px;
}
.detail-image-caption {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.detail-image-fallback {
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius);
}
.detail-image-fallback span {
    font-size: 32px;
}
.detail-image-fallback p {
    font-size: 13px;
    margin: 0;
}

.detail-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-rating-row .rating-stars {
    display: flex;
    gap: 1px;
}

.detail-rating-row .star {
    font-size: 14px;
}

.detail-rating-row .star-on { color: #f59e0b; }
.detail-rating-row .star-off { color: var(--border); }

.rating-score {
    font-size: 15px;
    font-weight: 700;
    color: #f59e0b;
}

.rating-divider {
    color: var(--border);
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.detail-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tag-type {
    background: rgba(99,102,241,0.08);
    color: var(--primary);
}

.detail-price-area {
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: var(--radius);
    padding: 20px;
}

.detail-price-extras {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.price-extra-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.price-extra-tag.coming-soon small {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-left: 2px;
}

.detail-purchase-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.detail-price-current {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.detail-price-original {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.detail-price-discount {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.detail-vip-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(99,102,241,0.1);
    flex-wrap: wrap;
}

.vip-price-label {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124,58,237,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.vip-price-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.vip-price-item.vip-current {
    background: rgba(124,58,237,0.1);
    box-shadow: 0 0 0 1px rgba(124,58,237,0.2);
}

.vip-price-item strong {
    color: #7c3aed;
    font-weight: 700;
}

.vip-price-item .vip-free {
    color: #10b981;
    font-weight: 700;
}

.vip-level-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
}

.vip-level-1 { background: #6366f1; }
.vip-level-2 { background: #7c3aed; }
.vip-level-3 { background: #9333ea; }
.vip-level-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.vip-current-tag {
    font-size: 10px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124,58,237,0.15);
    padding: 1px 5px;
    border-radius: 3px;
}

.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specs-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.specs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.spec-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.spec-option:hover {
    border-color: var(--primary-light);
}

.spec-option.selected {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

.spec-option input { display: none; }

.spec-option-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.spec-option-price {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.detail-stock {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-stock strong {
    color: var(--text);
    font-weight: 600;
}

.detail-level-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.detail-level-lock .level-lock-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.detail-level-lock .level-lock-text {
    flex: 1;
    font-size: 14px;
    color: #92400e;
}

.detail-level-lock .level-lock-text strong {
    color: #dc2626;
    font-weight: 700;
}

.detail-level-lock .level-lock-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s;
}

.detail-level-lock .level-lock-btn:hover {
    transform: scale(1.05);
}

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.detail-action-icons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.detail-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 52px;
    padding: 8px 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #64748b;
}

.detail-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.detail-icon-btn:active {
    transform: translateY(0);
}

.detail-icon-svg {
    flex-shrink: 0;
}

.detail-icon-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.detail-fav-btn.is-active {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
    color: #e11d48;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.15);
}

.detail-fav-btn.is-active .detail-icon-svg {
    fill: #e11d48;
    stroke: #e11d48;
}

.detail-share-btn:hover {
    color: #2563eb;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
}

.detail-buy-secondary,
.detail-buy-primary {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.detail-buy-secondary {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.detail-buy-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* 分享面板（屏幕居中，非贴底） */
.share-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    transition: opacity 0.26s ease;
}

.share-sheet-overlay.share-sheet-show {
    opacity: 1;
}

.share-sheet {
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px 22px 22px;
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.share-sheet-show .share-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.share-sheet-handle {
    display: none;
}

.share-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.share-sheet-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.share-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.share-sheet-preview {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
}

.share-preview-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.share-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-preview-img {
    position: relative;
}

.share-preview-ph {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
}

.share-preview-ph.show {
    display: flex;
}

.share-preview-img img {
    display: block;
}

.share-preview-info {
    min-width: 0;
    flex: 1;
}

.share-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-preview-price {
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
    margin-top: 4px;
}

.share-preview-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-sheet-channels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}

.share-channel:hover {
    background: #f8fafc;
}

.share-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.share-ch-link { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.share-ch-text { background: linear-gradient(135deg, #64748b, #475569); }
.share-ch-wechat { background: linear-gradient(135deg, #22c55e, #16a34a); font-size: 16px; }
.share-ch-qq { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }

.share-channel-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-sheet-wechat-tip {
    display: none;
    text-align: center;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #bbf7d0;
}

.share-sheet-wechat-tip.is-visible {
    display: block;
}

.share-tip-title {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 6px;
}

.share-tip-desc {
    font-size: 12px;
    color: #15803d;
    margin: 0 0 10px;
    line-height: 1.5;
}

.share-qr {
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.share-sheet-url {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-url-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-secondary);
}

.share-url-copy {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 640px) {
    .detail-actions {
        flex-wrap: wrap;
    }
    .detail-action-icons {
        width: 100%;
        justify-content: center;
    }
    .detail-buy-secondary,
    .detail-buy-primary {
        flex: 1 1 calc(50% - 6px);
    }
}

.share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.detail-service-bar {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    cursor: default;
    transition: all 0.3s ease;
}

.service-item-link {
    cursor: pointer;
}

.service-item:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.service-item:hover .service-text {
    color: var(--primary);
}

.service-icon {
    font-size: 18px;
    line-height: 1;
}

.service-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .detail-service-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .service-item {
        flex: none;
        min-width: calc(50% - 6px);
    }
}

.detail-tabs {
    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.detail-tabs .tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow-x: auto;
}

.detail-tabs .tab-btn {
    padding: 14px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.detail-tabs .tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

.detail-tabs .tab-btn:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.detail-tabs .tab-btn.active {
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.detail-tabs .tab-btn.active::after {
    width: 70%;
}

.detail-tabs .tab-panel {
    display: none;
    padding: 24px;
}

.detail-tabs .tab-panel.active {
    display: block;
}

.license-detail-notice {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 48%, #f8fafc 100%);
    border: 1px solid #a5b4fc;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.license-detail-notice-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.license-detail-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.license-detail-notice-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #312e81;
}

.license-detail-notice-sub {
    margin: 0;
    font-size: 12px;
    color: #6366f1;
}

.license-detail-notice-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: decimal;
}

.license-detail-notice-list li {
    font-size: 13px;
    color: #4338ca;
    line-height: 1.75;
    margin-bottom: 6px;
}

.license-detail-notice-list li:last-child {
    margin-bottom: 0;
}

.detail-desc {
    min-height: 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
    border-radius: var(--radius-lg);
    padding: 20px 16px 28px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.info-card {
    padding: 14px 18px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.info-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 2px 12px rgba(99,102,241,0.08);
    background: rgba(99,102,241,0.02);
}

.info-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.desc-rich {
    line-height: 1.9;
    font-size: 14px;
    color: var(--text);
}

.desc-rich p {
    margin-bottom: 12px;
}

.desc-rich ul, .desc-rich ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.desc-rich li {
    margin-bottom: 6px;
    line-height: 1.8;
}

.desc-rich li::marker {
    color: var(--primary);
}

.desc-rich img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.desc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px;
    color: var(--text-secondary);
}

.desc-empty-icon {
    font-size: 40px;
}

.desc-section {
    margin-bottom: 28px;
}

.desc-section:last-child {
    margin-bottom: 0;
}

.desc-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.desc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 640px) {
    .desc-list {
        grid-template-columns: 1fr;
    }
}

.desc-list-item {
    position: relative;
    padding: 10px 14px 10px 32px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.desc-list-item::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.params-table table {
    width: 100%;
    border-collapse: collapse;
}

.params-table tr {
    border-bottom: 1px solid var(--border);
}

.params-table tr:last-child {
    border-bottom: none;
}

.params-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.param-name {
    width: 140px;
    color: var(--text-secondary);
    background: var(--bg);
    font-weight: 500;
}

.param-value {
    color: var(--text);
}

.param-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99,102,241,0.08);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
}

.reviews-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.reviews-header-right {
    margin-left: auto;
}

.reviews-all-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.reviews-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.reviews-score {
    font-size: 36px;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.reviews-stars {
    display: flex;
    gap: 2px;
}

.reviews-stars .star {
    font-size: 16px;
}

.reviews-stars .star-on { color: #f59e0b; }
.reviews-stars .star-off { color: var(--border); }

.reviews-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.reviews-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.review-filter:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.review-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-count {
    font-size: 12px;
    opacity: 0.8;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.review-body {
    flex: 1;
    min-width: 0;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.review-stars .star {
    font-size: 13px;
}

.review-stars .star-on { color: #f59e0b; }
.review-stars .star-off { color: var(--border); }

.review-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.review-images img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.review-images img:hover {
    opacity: 0.8;
}

/* ===== 会员中心增强样式 ===== */

/* 导航栏图标统一 */
.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 导航分组标题图标 */
.nav-group-title .nav-icon {
    font-size: 15px;
    opacity: 0.8;
}

/* 导航链接 hover 增强 */
.member-nav .nav-link {
    position: relative;
}

.member-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width 0.3s ease;
}

.member-nav .nav-link:hover::after {
    width: 100%;
}

.member-nav .nav-link.active::after {
    width: 100%;
}

/* 数据卡片 hover 增强 */
.stat-card {
    position: relative;
    overflow: hidden;
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    box-sizing: border-box;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a855f7, #d946ef);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.3);
}

.stat-card:active {
    transform: translateY(-1px);
}

/* 数据卡片图标 hover 动效 */
.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-3deg);
}

.stat-icon {
    transition: all 0.3s ease;
}

/* 快捷操作按钮 hover 增强 */
.quick-action {
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.quick-action:hover::before {
    opacity: 1;
}

.quick-action:hover .qa-icon,
.quick-action:hover .qa-text {
    position: relative;
    z-index: 1;
    color: #fff;
}

.quick-action:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.quick-action:active {
    transform: translateY(0);
}

/* 会员等级徽章 */
.member-level-badge {
    position: absolute;
    bottom: -2px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    border: 2px solid var(--bg-card);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    transition: all 0.3s ease;
}

.member-level-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99,102,241,0.5);
}

/* 顶部用户区等级标签 */
.profile-level-tag {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 10px;
    padding: 1px 10px;
    border-radius: 50px;
    white-space: nowrap;
    border: 2px solid var(--bg-card);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-level-tag:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(99,102,241,0.5);
}

/* 编辑资料按钮增强 */
.profile-edit-btn {
    padding: 8px 22px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.profile-edit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.profile-edit-btn:hover::before {
    opacity: 1;
}

.profile-edit-btn:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.profile-edit-btn:active {
    transform: translateY(0);
}

/* 会员等级徽章 - 等级颜色 */
.member-level-badge.level-vip1,
.profile-level-tag.level-vip1 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.member-level-badge.level-vip2,
.profile-level-tag.level-vip2 {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 2px 12px rgba(139,92,246,0.4);
}

.member-level-badge.level-vip3,
.profile-level-tag.level-vip3 {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    box-shadow: 0 2px 12px rgba(168,85,247,0.4);
}

.member-level-badge.level-vip4,
.profile-level-tag.level-vip4 {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    box-shadow: 0 2px 12px rgba(124,58,237,0.4);
    animation: levelGlow 2s ease-in-out infinite;
}

@keyframes levelGlow {
    0%, 100% { box-shadow: 0 2px 12px rgba(124,58,237,0.4); }
    50% { box-shadow: 0 2px 24px rgba(124,58,237,0.7), 0 0 40px rgba(168,85,247,0.2); }
}

/* 会员等级徽章 - 悬停提示 */
.member-level-badge[title]:hover::after,
.profile-level-tag[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--bg-card);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    font-weight: 500;
}

/* 个人简介引导文案 */
.profile-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.profile-desc:hover {
    color: var(--text);
}

/* 通知小红点增强 */
.nav-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 50px;
    font-weight: 600;
    line-height: 1.6;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .member-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .member-stats {
        grid-template-columns: 1fr;
    }
    .member-profile-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .profile-header-left {
        flex-direction: column;
        text-align: center;
    }
    .profile-meta {
        justify-content: center;
    }
}
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.review-img-placeholder {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.review-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-del-btn {
    font-size: 12px;
    color: #ef4444;
    cursor: pointer;
    margin-left: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.review-del-btn:hover { opacity: 1; }

.review-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px;
    color: var(--text-secondary);
}

.review-empty-icon {
    font-size: 40px;
}

.review-form {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.review-form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.review-form-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 24px;
    cursor: pointer;
}

.review-form-stars .star {
    transition: transform 0.15s ease;
}

.review-form-stars .star:hover {
    transform: scale(1.2);
}

.review-form-stars-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: 10px;
}

#reviewFormStars .star-on { color: #f59e0b; }
#reviewFormStars .star-off { color: #d0d0d0; }

.review-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.review-quick-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.review-quick-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(122, 90, 248, 0.06);
}

.review-quick-tag.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.review-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.review-form-textarea:focus {
    border-color: var(--primary);
}

.review-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.review-form-counter {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-form-submit {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
}

.review-form-submit:hover {
    background: var(--primary-dark);
}

.review-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-form-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.review-form-msg-error {
    display: block;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.review-form-msg-success {
    display: block;
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
}

.review-form-images {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-form-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
    flex-shrink: 0;
}

.review-form-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(122, 90, 248, 0.04);
}

.review-upload-icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-tertiary);
}

.review-upload-text {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.review-form-upload-btn:hover .review-upload-icon,
.review-form-upload-btn:hover .review-upload-text {
    color: var(--primary);
}

.review-form-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 100%;
}

/* 兼容未包 review-preview-item 的旧写法，避免预览图撑满整页 */
.review-form-preview > img,
.review-form-preview .review-preview-img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: block;
}

.review-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.review-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    display: none;
}

.review-preview-item:hover .review-preview-remove {
    display: block;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.after-sale-intro {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(122, 90, 248, 0.06);
    border: 1px solid rgba(122, 90, 248, 0.15);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.after-sale-intro p {
    margin: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(99,102,241,0.1);
    transform: translateY(-2px);
}

.service-card-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.service-card-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.service-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detail-related {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.detail-related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.chapter-notice {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-sm);
}

.chapter-notice-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.chapter-notice-icon {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 640px) {
    .chapter-notice {
        flex-direction: column;
        gap: 8px;
    }
}

.course-chapters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.chapter-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.chapter-hidden {
    display: none;
}

.chapter-hidden.show {
    display: block;
}

.chapter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    margin-top: 8px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
}

.chapter-toggle:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.03);
}

.chapter-toggle-text {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.chapter-toggle-icon {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.chapter-toggle-icon.rotated {
    transform: rotate(180deg);
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.chapter-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.chapter-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 10px;
}

.lesson-list {
    padding: 4px 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    transition: background 0.2s ease;
}

.lesson-item:hover {
    background: rgba(99, 102, 241, 0.03);
}

.lesson-name {
    font-size: 13px;
    color: var(--text);
}

.lesson-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lesson-name a:hover {
    color: var(--primary);
}

.lesson-duration {
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.lesson-trial {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    z-index: 1;
}

/* ===== 关于我们 ===== */
.about-hero {
    position: relative;
    padding: 80px 0 64px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 70%, #3730a3 100%);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(165,180,252,0.08) 0%, transparent 50%);
    animation: aboutBgPulse 6s ease-in-out infinite alternate;
}

.about-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.about-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(165, 180, 252, 0.3);
    animation: aboutParticleFloat var(--duration, 5s) ease-in-out infinite alternate;
}

@keyframes aboutParticleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
    100% { transform: translateY(-10px) scale(0.9); opacity: 0.2; }
}

@keyframes aboutBgPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.08); opacity: 1; }
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: 1px;
}

.about-hero-slogan {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.about-hero-stat {
    text-align: center;
    position: relative;
    cursor: default;
}

.about-hero-stat::after {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(30, 27, 75, 0.95);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    border: 1px solid rgba(165, 180, 252, 0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.about-hero-stat:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.about-hero-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #a5b4fc;
    margin-bottom: 4px;
    line-height: 1;
}

.about-hero-label {
    font-size: 14px;
    opacity: 0.8;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 28px 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(99,102,241,0.12), 0 4px 12px rgba(99,102,241,0.06);
    border-color: var(--primary-light);
}

.about-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.about-card:hover .about-card-icon {
    transform: scale(1.12);
}

.about-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.about-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.8;
}

.about-card-sub {
    font-size: 13px;
    color: var(--primary);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.85;
}

.about-values {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.about-value-tag {
    position: relative;
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99,102,241,0.08);
    border-radius: 20px;
    cursor: default;
    transition: all 0.25s ease;
}

.about-value-tag:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.about-value-tag::after {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 240px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.about-value-tag:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.about-story {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 48px;
    transition: all 0.3s ease;
}

.about-story:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(99,102,241,0.06);
}

.about-story-header {
    text-align: center;
    margin-bottom: 28px;
}

.about-story-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.about-story-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.about-story-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.about-story-icon {
    font-size: 56px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.about-story-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0 0 16px;
}

.about-story-text p:last-child {
    margin-bottom: 0;
}

.about-platform {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}

.about-platform h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.about-platform-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 32px;
}

.about-platform-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.about-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.about-platform-card::after {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 260px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.about-platform-card:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.about-platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(99,102,241,0.08);
}

.about-platform-icon {
    font-size: 28px;
    line-height: 1;
}

.about-platform-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.about-platform-desc-small {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.3;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.about-stats-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: visible;
}

.about-stats-card::after {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.about-stats-card:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.about-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-stats-card:hover::before {
    opacity: 1;
}

.about-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.12), 0 4px 12px rgba(99,102,241,0.06);
    border-color: var(--primary-light);
}

.about-stats-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
    color: var(--primary);
}

.about-stats-card:hover .about-stats-icon {
    transform: scale(1.12);
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.12));
}

.about-stats-body {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}

.about-stats-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.about-stats-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.about-stats-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.about-contact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}

.about-contact h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.about-contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 32px;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

.about-contact-card-static {
    cursor: default;
}

.about-contact-action-muted {
    opacity: 0.55;
}

.about-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px 24px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.about-contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(99,102,241,0.1);
}

.about-contact-icon {
    font-size: 32px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.about-contact-card:hover .about-contact-icon {
    transform: scale(1.15);
}

.about-contact-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.about-contact-value {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-contact-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.about-contact-card:hover .about-contact-action {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .about-hero { padding: 60px 0 48px; }
    .about-hero h1 { font-size: 32px; }
    .about-hero-slogan { font-size: 16px; }
    .about-hero-stats { gap: 32px; }
    .about-hero-num { font-size: 28px; }
    .about-mission { grid-template-columns: repeat(2, 1fr); }
    .about-platform-grid { grid-template-columns: repeat(3, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .about-story-body { flex-direction: column; align-items: center; text-align: center; }
    .about-story-icon { font-size: 48px; }
}

@media (max-width: 576px) {
    .about-hero { padding: 48px 0 36px; }
    .about-hero h1 { font-size: 26px; }
    .about-hero-slogan { font-size: 14px; margin-bottom: 28px; }
    .about-hero-stats { gap: 20px; flex-direction: column; }
    .about-mission { grid-template-columns: 1fr; }
    .about-card { padding: 28px 20px 24px; }
    .about-story { padding: 24px; }
    .about-platform { padding: 24px; }
    .about-platform-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about-stats-card { padding: 20px 12px 16px; }
    .about-stats-num { font-size: 26px; }
    .about-contact { padding: 24px; }
    .about-contact-grid { grid-template-columns: 1fr; }
}

/* ===== 协议勾选框 ===== */
.agreement-checkbox {
    margin-top: -4px;
}

.agreement-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: default;
}

.agreement-checkbox .checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-right: 2px;
}

.agree-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.agree-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.agreement-checkbox .field-error {
    margin-top: 2px;
    padding-left: 22px;
}

#agreeCheck.is-error {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== 协议页面 ===== */
.agreement-page {
    min-height: calc(100vh - 64px);
    background: var(--bg);
}

.agreement-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    position: relative;
    overflow: hidden;
}

.agreement-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: agreementGlow 8s ease-in-out infinite alternate;
}

@keyframes agreementGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, -2%); }
}

.agreement-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.agreement-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.agreement-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.agreement-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 40px;
}

.agreement-toc h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.agreement-toc ol {
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
}

.agreement-toc ol li {
    font-size: 14px;
    line-height: 2;
}

.agreement-toc ol li a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.agreement-toc ol li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.agreement-content section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.agreement-content section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.agreement-content section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
}

.agreement-content section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 12px;
}

.agreement-content section p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.agreement-content section p strong {
    color: var(--text);
    font-weight: 600;
}

.agreement-contact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 16px 0;
}

.agreement-contact p {
    margin-bottom: 6px !important;
    font-size: 14px;
    color: var(--text) !important;
}

.agreement-contact p:last-child {
    margin-bottom: 0 !important;
}

.agreement-footer-note {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.agreement-footer-note p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.agreement-footer-note p:last-child {
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .agreement-hero {
        padding: 40px 0 28px;
    }
    .agreement-hero h1 {
        font-size: 24px;
    }
    .agreement-content {
        padding: 24px 16px 40px;
    }
    .agreement-toc {
        padding: 20px;
    }
    .agreement-toc ol {
        grid-template-columns: 1fr;
    }
    .agreement-content section h2 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .agreement-hero h1 {
        font-size: 20px;
    }
    .agreement-content section p {
        font-size: 13px;
    }
}

/* ===== 个人资料 - 三标签页 ===== */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.profile-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.profile-tab:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.profile-tab.active {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.profile-tab.active::after {
    width: 80%;
}

.tab-icon {
    font-size: 16px;
    line-height: 1;
}

.profile-tab-content {
    display: none;
    padding: 28px;
    border-top: none;
}

.profile-tab-content.active {
    display: block;
}

/* 头像上传 */
.avatar-upload-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avatar-upload-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    width: fit-content;
}

.avatar-upload-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.avatar-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.avatar-upload-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 字数统计 */
.input-count-wrap {
    position: relative;
}

.input-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    color: #9ca3af;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.textarea-count {
    bottom: 14px;
}

/* 字段提示 */
.field-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
    line-height: 1.4;
}

/* 邮箱显示 */
.email-display-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.email-display-wrap .form-input {
    flex: 1;
    min-width: 0;
}

.email-modify-btn {
    flex-shrink: 0;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.email-modify-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.email-modify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-secondary);
}

/* 安全分区 */
.security-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.security-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.security-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), #a855f7);
    border-radius: 2px;
    flex-shrink: 0;
}

/* 密码强度 */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    min-height: 20px;
}

.ps-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
}

.ps-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ps-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
}

/* 隐私设置占位 */
.privacy-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.privacy-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.privacy-placeholder h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.privacy-placeholder > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.privacy-preview {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
    opacity: 0.6;
}

.privacy-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.privacy-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.privacy-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.privacy-item-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99,102,241,0.1);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Toast 提示 */
.profile-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.profile-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.profile-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* 响应式 */
@media (max-width: 640px) {
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .profile-tab {
        padding: 14px 18px;
        font-size: 13px;
    }
    .profile-tab-content {
        padding: 20px 16px;
    }
    .avatar-upload-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .email-display-wrap {
        flex-direction: column;
    }
    .email-modify-btn {
        padding: 10px;
        width: 100%;
    }
}

/* ===== API密钥管理 ===== */

.api-keys-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.api-keys-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.api-keys-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.api-key-create-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.api-key-create-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.api-keys-empty {
    text-align: center;
    padding: 60px 20px;
}

.api-keys-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.api-keys-empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.api-keys-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-key-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.api-key-item:hover {
    border-color: var(--primary-light);
}

.api-key-left {
    flex: 1;
    min-width: 0;
}

.api-key-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.api-key-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.api-key-status {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.api-key-status.is-active {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.api-key-status.is-disabled {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.api-key-label {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.api-key-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: var(--bg-card);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text);
    word-break: break-all;
}

.api-key-code.secret {
    -webkit-text-security: disc;
    text-security: disc;
}

.api-key-copy-btn {
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.api-key-copy-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.api-key-toggle-btn {
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.api-key-toggle-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.api-key-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.api-key-meta-dot {
    font-size: 10px;
    color: var(--border);
}

.api-key-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.api-key-action-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.api-key-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.api-key-action-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.06);
}

.api-key-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-result code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--bg);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    word-break: break-all;
    flex: 1;
}

.form-tip-warn {
    color: #ef4444 !important;
    font-weight: 600;
}

/* ===== 登录设备管理 ===== */

.devices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.device-item:hover {
    border-color: var(--primary-light);
}

.device-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    font-size: 22px;
}

.device-info {
    flex: 1;
    min-width: 0;
}

.device-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.device-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.device-badge {
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.device-badge.current {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.device-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.device-meta-dot {
    font-size: 10px;
    color: var(--border);
}

.device-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.device-action {
    flex-shrink: 0;
}

.device-remove-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-remove-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.06);
}

/* ===== 登录日志 ===== */

.login-logs-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.login-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.login-logs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.login-logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.login-logs-table tr:last-child td {
    border-bottom: none;
}

.login-logs-table tr:hover td {
    background: rgba(99,102,241,0.02);
}

.log-time {
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.log-ip {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.log-region {
    color: var(--text-secondary);
}

.log-device {
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-status-badge {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.log-status-badge.success {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.log-status-badge.fail {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

/* ===== 账号安全 ===== */

.security-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.security-card:hover {
    border-color: var(--primary-light);
}

.security-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.security-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    font-size: 22px;
}

.security-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.security-card-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.security-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.security-card-status {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.security-card-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.security-card-btn {
    padding: 6px 18px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.security-card-btn:hover {
    background: var(--primary);
    color: #fff;
}

.security-tips {
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(124,58,237,0.04));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 8px;
}

.security-tips h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.security-tips li:last-child {
    margin-bottom: 0;
}

.security-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== 页面通用 ===== */

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 弹窗通用 ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-sm {
    max-width: 420px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 20px;
}

/* ===== 表单通用 ===== */

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-input-group {
    display: flex;
    gap: 8px;
}

.form-input-group .form-input {
    flex: 1;
}

.form-code-btn {
    padding: 10px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.form-code-btn:hover {
    background: var(--primary);
    color: #fff;
}

.form-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-tip {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== 分页 ===== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 立即购买弹窗 ===== */
.buy-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 600px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 24px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: all 0.25s ease;
}

.buy-modal-show .buy-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.buy-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.buy-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.buy-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-right: 40px;
}

.buy-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.buy-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
}

.buy-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-product-placeholder {
    font-size: 32px;
}

.buy-product-info {
    flex: 1;
    min-width: 0;
}

.buy-product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buy-product-spec {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.buy-product-qty {
    font-size: 14px;
    color: var(--text-tertiary);
}

.buy-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    text-align: right;
}

.buy-modal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buy-section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.buy-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.buy-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.buy-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.buy-input::placeholder {
    color: var(--text-tertiary);
}

.buy-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.buy-input-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.1) !important;
}

.buy-field-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 18px;
    line-height: 1.4;
}

.buy-payments {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buy-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.buy-pay-option:hover {
    background: var(--bg);
}

.buy-pay-option.selected {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
}

.buy-pay-option-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg);
}

.buy-pay-option-disabled:hover {
    background: var(--bg);
}

.buy-pay-option-disabled.selected {
    border-color: var(--border);
    background: var(--bg);
}

.buy-pay-balance-amount {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 2px;
}

.buy-pay-option input[type="radio"] {
    display: none;
}

.buy-pay-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.buy-pay-option.selected .buy-pay-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.buy-pay-option.selected .buy-pay-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.buy-pay-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.buy-pay-wechat {
    background: #07c160;
}

.buy-pay-alipay {
    background: #1677ff;
}

.buy-pay-balance {
    background: #f59e0b;
    font-size: 16px;
}

.buy-pay-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.buy-pay-option.selected .buy-pay-name {
    color: var(--primary);
    font-weight: 600;
}

.buy-modal-footer {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buy-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buy-total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.buy-total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.buy-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #d1d5db;
    cursor: not-allowed;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-submit-btn.buy-submit-active {
    background: var(--primary);
    cursor: pointer;
}

.buy-submit-btn.buy-submit-active:hover {
    background: var(--primary-dark);
}

.buy-submit-btn:disabled {
    opacity: 1;
}

.buy-submit-btn[title]:disabled {
    position: relative;
}

.buy-submit-btn[title]:disabled::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.buy-submit-btn[title]:disabled:hover::after {
    opacity: 1;
}

.buy-submit-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

.buy-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: buy-spin 0.6s linear infinite;
}

@keyframes buy-spin {
    to { transform: rotate(360deg); }
}

.buy-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    vertical-align: middle;
    box-sizing: border-box;
}

.buy-success-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.buy-success-btn-secondary {
    background: rgba(122, 90, 248, 0.1);
    color: var(--primary);
    margin-left: 12px;
}

.buy-success-btn-secondary:hover {
    background: rgba(122, 90, 248, 0.18);
}

@media (max-width: 640px) {
    .buy-modal {
        padding: 24px 16px 20px;
        max-width: calc(100vw - 20px);
    }
    .buy-product-card {
        flex-wrap: wrap;
    }
    .buy-product-price {
        width: 100%;
        text-align: left;
    }
    .buy-addr-row {
        flex-direction: column;
    }
}

/* ===== 地址输入 ===== */
.buy-textarea {
    height: auto;
    min-height: 56px;
    padding: 12px 16px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.buy-addr-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
    padding-left: 2px;
}

.buy-addr-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.buy-addr-row {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.buy-addr-row select.buy-input {
    appearance: auto;
    cursor: pointer;
    padding-right: 8px;
}

/* ===== 优惠券选择 ===== */
.buy-coupon-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s ease;
    user-select: none;
}

.buy-coupon-select:hover {
    border-color: var(--primary);
}

.buy-coupon-select span {
    font-size: 14px;
    color: var(--text);
}

.buy-coupon-arrow {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.buy-coupon-list.show + .buy-coupon-select .buy-coupon-arrow,
.buy-coupon-select:has(+ .buy-coupon-list.show) .buy-coupon-arrow {
    transform: rotate(180deg);
}

.buy-coupon-list {
    display: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.buy-coupon-list.show {
    display: block;
}

.buy-coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.buy-coupon-item:last-child {
    border-bottom: none;
}

.buy-coupon-item:hover {
    background: var(--bg);
}

.buy-coupon-item-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buy-coupon-item-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.buy-coupon-item-min {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.buy-coupon-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== 积分抵扣 ===== */
.buy-points-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buy-points-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.buy-points-label strong {
    color: var(--primary);
    font-weight: 700;
}

.buy-points-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-points-slider {
    flex: 1;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.buy-points-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.buy-points-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.buy-points-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

/* ===== 积分兑换优惠券 ===== */
.buy-coupon-exchange {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-top: 1px dashed var(--border);
    margin-top: 4px;
}

.buy-coupon-exchange:hover {
    background: var(--bg);
}

.buy-coupon-exchange-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.buy-coupon-exchange-text {
    flex: 1;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.buy-coupon-exchange .buy-coupon-arrow {
    font-size: 14px;
    color: var(--primary);
}

.exchange-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.exchange-loading,
.exchange-empty {
    padding: 32px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.exchange-coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: var(--bg-card);
}

.exchange-coupon-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}

.exchange-coupon-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exchange-coupon-item.disabled:hover {
    border-color: var(--border);
    box-shadow: none;
}

.exchange-coupon-info {
    flex: 1;
    min-width: 0;
}

.exchange-coupon-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.exchange-coupon-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exchange-coupon-cost {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}

.exchange-coupon-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.exchange-coupon-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

.exchange-coupon-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #ef4444;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== 在线客服聊天 ===== */

.chat-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    height: 560px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: chatSlideIn 0.25s ease;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.chat-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-modal-icon {
    font-size: 22px;
}

.chat-modal-title {
    font-size: 15px;
    font-weight: 700;
}

.chat-modal-status {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 1px;
}

.chat-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}

.chat-modal-close:hover {
    background: rgba(255,255,255,0.35);
}

.chat-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f5f7fb;
}

.chat-loading {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    padding: 40px 0;
}

.chat-empty {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chat-empty-icon {
    font-size: 40px;
}

.chat-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.chat-login-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.chat-login-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: chatMsgIn 0.2s ease;
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-admin {
    align-self: flex-start;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
}

.chat-msg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-msg-avatar-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.chat-msg-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: calc(100% - 40px);
}

.chat-msg-user .chat-msg-content {
    align-items: flex-end;
}

.chat-msg-admin .chat-msg-content {
    align-items: flex-start;
}

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-msg-user .chat-msg-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg-admin .chat-msg-bubble {
    background: #fff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chat-msg-time {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 0 4px;
}

.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-img-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.chat-img-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chat-msg-bubble .chat-msg-image,
.chat-msg-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.4;
    max-height: 80px;
    background: var(--bg);
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 侧边栏开发者等级美化 ===== */
.member-dev-level {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.member-dev-level:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}

.mdl-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.mdl-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.mdl-name {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 会员首页顶部开发者等级美化 ===== */
.profile-dev-level {
    display: inline-flex;
    align-items: center;
}

.pdl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
    padding: 3px 12px 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(99,102,241,0.15);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.pdl-icon {
    font-size: 12px;
    line-height: 1;
}

.pdl-lv {
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

.pdl-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pdl-badge:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(139,92,246,0.1));
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.12);
}

/* ===== 开发者等级进度区域美化 ===== */
.dev-level-section {
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.02));
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.dev-level-section:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 16px rgba(99,102,241,0.06);
}

.dev-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dev-level-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    padding: 5px 16px 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.dev-level-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.dev-level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.dev-level-badge:hover::before {
    opacity: 1;
}

.dev-level-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-level-bar {
    height: 8px;
    background: rgba(99,102,241,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.dev-level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dev-level-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: devLevelShine 2s ease-in-out infinite;
}

@keyframes devLevelShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dev-level-points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.dev-level-points span:first-child {
    font-weight: 600;
    color: var(--primary);
}

.dev-level-points span:last-child {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* 等级颜色 - 低等级 */
.dev-level-badge.level-low {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

/* 等级颜色 - 中等级 */
.dev-level-badge.level-mid {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* 等级颜色 - 高等级 */
.dev-level-badge.level-high {
    background: linear-gradient(135deg, #a855f7, #c084fc);
}

/* 等级颜色 - 顶级 */
.dev-level-badge.level-top {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: levelGoldShine 2s ease-in-out infinite;
}

@keyframes levelGoldShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}