/**
 * 半糖书屋 - 会员中心「书斋雅集」设计系统
 * 设计理念：传统书房优雅 × 现代极简美学
 */

/* ========================================
   扩展 CSS 变量
   ======================================== */
:root {
    /* 书斋专属色彩 */
    --ink-black: #2a1f1a;
    --seal-red: #c45c48;
    --gold-accent: #d4a24c;
    --jade-green: #5a8a72;
    --paper-cream: #f9f5ef;
    --paper-aged: #f0e8dc;

    /* 渐变 */
    --gradient-gold: linear-gradient(135deg, #d4a24c 0%, #c48b4a 50%, #a0522d 100%);
    --gradient-paper: linear-gradient(180deg, #fffcf8 0%, #f9f5ef 100%);
    --gradient-vip: linear-gradient(135deg, #ffd700 0%, #d4a24c 50%, #c48b4a 100%);

    /* 纸张纹理 */
    --texture-paper: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");

    /* 书斋阴影 */
    --shadow-book: 0 4px 20px rgba(42, 31, 26, 0.08), 0 1px 3px rgba(42, 31, 26, 0.05);
    --shadow-book-hover: 0 12px 40px rgba(42, 31, 26, 0.12), 0 4px 12px rgba(42, 31, 26, 0.08);
    --shadow-inset: inset 0 2px 4px rgba(42, 31, 26, 0.06);

    /* 动画曲线 */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elegant: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ========================================
   基础动画定义
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes sealStamp {
    0% { transform: scale(1.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(0.95) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes inkSpread {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes pageFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(-15deg); }
    100% { transform: rotateY(0deg); }
}

@keyframes brushStroke {
    0% { stroke-dashoffset: 100; opacity: 0; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* ========================================
   会员页面容器
   ======================================== */
.member-page,
.auth-page,
.vip-page,
.recharge-page,
.orders-page {
    min-height: calc(100vh - 72px);
    padding: 100px 24px 60px;
    background: var(--gradient-paper);
    background-image: var(--texture-paper);
    position: relative;
}

.member-page::before,
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 162, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--ease-elegant);
}

/* ========================================
   书卷装饰卡片
   ======================================== */
.scroll-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-book);
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.scroll-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.scroll-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--texture-paper);
    pointer-events: none;
    opacity: 0.5;
}

.scroll-card:hover {
    box-shadow: var(--shadow-book-hover);
    transform: translateY(-2px);
}

/* 书卷边角装饰 */
.scroll-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    opacity: 0.15;
}

.scroll-corner--tl { top: 8px; left: 8px; }
.scroll-corner--tr { top: 8px; right: 8px; transform: scaleX(-1); }
.scroll-corner--bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.scroll-corner--br { bottom: 8px; right: 8px; transform: scale(-1); }

.scroll-corner svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-dark);
}

/* ========================================
   印章风格徽章
   ======================================== */
.seal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--seal-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow:
        0 2px 4px rgba(196, 92, 72, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.seal-badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.seal-badge--gold {
    background: var(--gradient-vip);
    box-shadow:
        0 2px 8px rgba(212, 162, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.seal-badge--animated {
    animation: sealStamp 0.5s var(--ease-bounce);
}

/* ========================================
   用户资料卡片
   ======================================== */
.profile-card {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, var(--accent-cream) 0%, var(--paper-cream) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-book);
    transition: transform 0.4s var(--ease-bounce);
}

.avatar-wrapper:hover .avatar {
    transform: scale(1.05);
}

.avatar-vip-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    padding: 4px 10px;
    background: var(--gradient-vip);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(212, 162, 76, 0.4);
    animation: floatSoft 3s ease-in-out infinite;
}

.profile-info {
    flex: 1;
}

.username {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-status {
    font-size: 14px;
    color: var(--text-light);
}

.login-prompt {
    margin-left: auto;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-gold);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 16px rgba(196, 139, 74, 0.3);
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 139, 74, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* ========================================
   资产信息区
   ======================================== */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.asset-card {
    position: relative;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s var(--ease-smooth);
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-smooth);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-book-hover);
}

.asset-card:hover::before {
    transform: scaleX(1);
}

.asset-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cream) 0%, var(--paper-cream) 100%);
    border-radius: 50%;
}

.asset-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.asset-icon--gold i {
    color: var(--gold-accent);
}

.asset-icon--coin i {
    color: var(--primary-color);
}

.asset-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink-black);
    line-height: 1.2;
    margin-bottom: 4px;
}

.asset-label {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   快捷操作入口
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: var(--shadow-book-hover);
}

.action-card:hover::before {
    opacity: 0.05;
}

.action-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cream) 0%, var(--paper-cream) 100%);
    border-radius: 50%;
    transition: all 0.3s var(--ease-bounce);
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-icon i {
    font-size: 26px;
    color: var(--primary-color);
    transition: color 0.3s var(--ease-smooth);
    display: inline-block;
}

.action-card--bookshelf .action-icon i { color: var(--accent-warm); }
.action-card--vip .action-icon i { color: #b8860b; }
.action-card--coin .action-icon i { color: var(--primary-color); }
.action-card--order .action-icon i { color: var(--jade-green); }

.action-title {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.action-desc {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   VIP 权益展示
   ======================================== */
.benefits-section {
    margin-top: 40px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-book);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 24px;
}

.section-title i {
    color: var(--gold-accent);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-warm) 0%, transparent 100%);
    margin-left: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-aged) 100%);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-smooth);
}

.benefit-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
}

.benefit-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.benefit-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* ========================================
   页面标题
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s var(--ease-elegant);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* 装饰性标题 */
.decorated-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.decorated-title::before,
.decorated-title::after {
    content: '◆';
    font-size: 8px;
    color: var(--primary-color);
    opacity: 0.5;
}

/* ========================================
   套餐选择卡片
   ======================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.package-card {
    position: relative;
    padding: 28px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.package-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-book-hover);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-cream) 0%, var(--paper-cream) 100%);
}

.package-card.selected::before {
    opacity: 0.08;
}

.package-card.recommended {
    border-color: var(--gold-accent);
}

.package-card.recommended::after {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -28px;
    padding: 4px 32px;
    background: var(--gradient-vip);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(212, 162, 76, 0.3);
}

.package-name {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.package-duration {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.package-price {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.package-original {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: 4px;
}

/* ========================================
   支付方式选择
   ======================================== */
.payment-section {
    margin-top: 32px;
}

.payment-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-black);
    margin-bottom: 16px;
}

.payment-methods {
    display: flex;
    gap: 16px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.payment-option input {
    display: none;
}

.payment-option i {
    font-size: 24px;
}

.payment-option .bi-wechat { color: #07c160; }
.payment-option .bi-alipay { color: #1677ff; }

.payment-option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-cream) 0%, var(--paper-cream) 100%);
}

/* ========================================
   支付操作区
   ======================================== */
.pay-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-book);
}

.pay-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pay-label {
    font-size: 14px;
    color: var(--text-light);
}

.pay-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--seal-red);
}

.pay-coins {
    font-size: 13px;
    color: var(--text-light);
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--gradient-gold);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(196, 139, 74, 0.35);
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 139, 74, 0.45);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   支付弹窗
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 31, 26, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 400px;
    max-width: 90vw;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-book-hover);
    text-align: center;
    animation: fadeInScale 0.4s var(--ease-bounce);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-cream);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.modal-close:hover {
    background: var(--accent-cream);
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 24px;
}

.qrcode-wrapper {
    display: inline-block;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

#qrcodeContainer {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-tip {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.order-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   订单列表
   ======================================== */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--paper-cream);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.filter-tab:hover {
    background: var(--accent-cream);
}

.filter-tab.active {
    color: var(--white);
    background: var(--gradient-gold);
    box-shadow: 0 2px 8px rgba(196, 139, 74, 0.3);
}

.filter-type select {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.filter-type select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 订单卡片 */
.order-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-smooth);
    animation: fadeInUp 0.4s var(--ease-elegant);
}

.order-card:hover {
    border-color: var(--border-warm);
    box-shadow: var(--shadow-book);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.order-no {
    font-size: 13px;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.order-status {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.status-0 { /* 待支付 */
    color: #d97706;
    background: #fef3c7;
}

.status-1 { /* 已支付 */
    color: #059669;
    background: #d1fae5;
}

.status-2 { /* 已取消 */
    color: #6b7280;
    background: #f3f4f6;
}

.status-3 { /* 已退款 */
    color: #7c3aed;
    background: #ede9fe;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-type {
    font-size: 12px;
    color: var(--text-light);
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.order-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.btn-cancel {
    margin-left: auto;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--seal-red);
    background: #fef2f2;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-cancel:hover {
    background: #fee2e2;
}

/* ========================================
   分页
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.btn-page {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-page:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 72px;
    color: var(--border-color);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--gradient-gold);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 16px rgba(196, 139, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 139, 74, 0.4);
}

.btn-primary i {
    font-size: 16px;
    color: inherit;
}

/* ========================================
   加载状态
   ======================================== */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    font-size: 14px;
    color: var(--text-light);
}

.loading-placeholder::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 40px;
    text-align: center;
    color: var(--seal-red);
    background: #fef2f2;
    border-radius: var(--radius);
}

/* ========================================
   VIP 尊享状态殿堂
   ======================================== */
.vip-sanctuary {
    position: relative;
    margin-top: 40px;
    padding: 40px 32px;
    background: linear-gradient(145deg, #fffcf5 0%, #fef7e8 50%, #fdf2d8 100%);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 24px rgba(212, 162, 76, 0.15),
        0 1px 3px rgba(212, 162, 76, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    animation: sanctuaryReveal 0.8s var(--ease-elegant);
}

@keyframes sanctuaryReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 金色光晕背景 */
.sanctuary-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 162, 76, 0.25) 0%, rgba(212, 162, 76, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* 漂浮粒子 */
.sanctuary-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sanctuary-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ffd700, #d4a24c);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.sanctuary-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.sanctuary-particles span:nth-child(2) { left: 25%; animation-delay: 1.2s; }
.sanctuary-particles span:nth-child(3) { left: 50%; animation-delay: 2.4s; }
.sanctuary-particles span:nth-child(4) { left: 75%; animation-delay: 3.6s; }
.sanctuary-particles span:nth-child(5) { left: 90%; animation-delay: 4.8s; }

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translateX(-10px) scale(1);
    }
    80% {
        opacity: 0.6;
        transform: translateX(10px) scale(0.8);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-5px) scale(0.3);
    }
}

/* 顶部标题区 */
.sanctuary-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 32px;
}

.vip-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    background: linear-gradient(145deg, #ffd700 0%, #d4a24c 50%, #b8860b 100%);
    border-radius: 50%;
    box-shadow:
        0 8px 32px rgba(212, 162, 76, 0.4),
        0 4px 16px rgba(184, 134, 11, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: crownShine 3s ease-in-out infinite;
}

@keyframes crownShine {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(212, 162, 76, 0.4),
            0 4px 16px rgba(184, 134, 11, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 8px 40px rgba(212, 162, 76, 0.6),
            0 4px 20px rgba(184, 134, 11, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
}

.vip-crown i {
    font-size: 32px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sanctuary-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sanctuary-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* 已享权益统计 */
.sanctuary-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.benefit-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 162, 76, 0.15);
    transition: all 0.3s var(--ease-smooth);
}

.benefit-stat:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(212, 162, 76, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 162, 76, 0.12);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff8e8, #fef3d8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(212, 162, 76, 0.15);
}

.stat-icon i {
    font-size: 20px;
    color: var(--gold-accent);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #059669;
}

.stat-status i {
    font-size: 14px;
}

/* 底部续费区 */
.sanctuary-footer {
    position: relative;
    z-index: 1;
    text-align: center;
}

.btn-renew {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(145deg, rgba(212, 162, 76, 0.12) 0%, rgba(212, 162, 76, 0.08) 100%);
    color: var(--gold-accent);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(212, 162, 76, 0.3);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.btn-renew:hover {
    background: linear-gradient(145deg, var(--gold-accent) 0%, #b8860b 100%);
    color: #fff;
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 162, 76, 0.35);
}

.btn-renew i {
    font-size: 18px;
    transition: transform 0.3s var(--ease-smooth);
}

.btn-renew:hover i {
    transform: rotate(180deg);
}

.renew-tip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .member-page,
    .auth-page,
    .vip-page,
    .recharge-page,
    .orders-page {
        padding: 88px 16px 40px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .username {
        justify-content: center;
    }

    .login-prompt {
        margin: 16px 0 0;
    }

    .assets-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }

    .pay-action {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .filter-section {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .order-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-amount {
        align-self: flex-end;
    }

    /* VIP尊享区域移动端适配 */
    .vip-sanctuary {
        padding: 32px 20px;
    }

    .sanctuary-glow {
        width: 280px;
        height: 280px;
    }

    .vip-crown {
        width: 60px;
        height: 60px;
    }

    .vip-crown i {
        font-size: 26px;
    }

    .sanctuary-title {
        font-size: 18px;
    }

    .sanctuary-subtitle {
        font-size: 13px;
    }

    .sanctuary-benefits {
        grid-template-columns: 1fr;
    }

    .benefit-stat {
        padding: 14px 16px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
    }

    .stat-icon i {
        font-size: 18px;
    }

    .btn-renew {
        padding: 12px 32px;
        font-size: 14px;
    }
}
