/* ========================================
   资料售卖 H5 端 - 高级感设计系统
   ======================================== */

/* ==================== CSS变量 ==================== */
:root {
    /* 主色系 - 紫罗兰渐变 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8beb;

    /* 辅助色系 */
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --success-color: #10b981;
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --warning-color: #f43f5e;
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* 文字色 */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-white: #ffffff;

    /* 背景色 */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* 阴影 - 多层次 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 动画 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==================== 页面过渡动画 ==================== */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
    animation: pageIn 0.4s var(--ease-out);
    position: relative;
    padding-bottom: 70px;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-wrapper.page-out {
    animation: pageOut 0.25s var(--ease-out) forwards;
}

@keyframes pageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 浮动元素动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 微交互 */
.menu-item, .tab-item, .category-item, .amount-item, .goods-item, .stat-card {
    transition: all 0.25s var(--ease-out);
}

.menu-item:active, .category-item:active, .amount-item:active, .goods-item:active {
    transform: scale(0.98);
}

.btn:active, button:active {
    transform: scale(0.96);
}

/* 卡片悬停效果 */
.goods-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==================== 加载动画 ==================== */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(102, 126, 234, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* 骨架屏动画 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.header-transparent {
    background: transparent;
    box-shadow: none;
}

.header-transparent::after {
    display: none;
}

.header-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-white);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.header-back:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.header-title {
    flex: 1;
    text-align: center;
    color: var(--text-white);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-right {
    width: 36px;
}

/* ==================== 底部导航 ==================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
}

.tab-item.active::before {
    opacity: 1;
}

.tab-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s var(--ease-spring);
}

.tab-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    transition: all 0.3s var(--ease-spring);
}

.tab-item.active .tab-icon {
    transform: translateY(-2px) scale(1.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.tab-item.active .tab-icon svg {
    stroke: var(--primary-color);
}

.tab-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-item.active .tab-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== 搜索框 ==================== */
.search-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    padding: 16px 20px 24px;
    z-index: 99;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    padding: 0 6px 0 18px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s var(--ease-out);
}

.search-input-wrap:focus-within {
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-light);
}

.search-icon {
    font-size: 0;
    color: var(--text-muted);
    margin-right: 10px;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

.search-input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.search-btn:active {
    transform: scale(0.95);
}

/* ==================== 分类导航 ==================== */
.category-nav {
    position: fixed;
    top: 148px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    padding: 14px 20px 18px;
    z-index: 98;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.25s var(--ease-out);
}

.category-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.category-item.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: transparent;
    transform: scale(1.02);
}

/* ==================== 商品列表 ==================== */
.goods-list {
    margin-top: 210px;
    padding: 16px;
    padding-bottom: 80px;
}

.goods-item {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.goods-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.goods-item:hover::before {
    opacity: 1;
}

.goods-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.15);
}

.goods-cover {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-right: 14px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.goods-item:hover .goods-cover img {
    transform: scale(1.05);
}

.goods-cover .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.goods-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goods-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
}

.goods-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goods-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--warning-color);
    letter-spacing: -0.5px;
}

.goods-price::before {
    content: '';
    font-size: 14px;
    font-weight: 600;
    margin-right: 2px;
}

.goods-sales {
    font-size: 11px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: var(--radius-full);
}

.goods-category {
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ==================== 商品卡片 (网格) ==================== */
.goods-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s var(--ease-out);
}

.goods-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.goods-card .goods-cover {
    width: 100%;
    height: 140px;
    margin-right: 0;
    border-radius: 0;
}

.goods-card .goods-info {
    padding: 14px;
}

.goods-card .goods-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* ==================== 底部导航标签 ==================== */
.order-tabs {
    display: flex;
    background: var(--bg-card);
    margin: 60px 16px 0;
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.order-tab.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* ==================== 订单列表 ==================== */
.order-list {
    padding: 16px;
    padding-bottom: 80px;
}

.order-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

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

.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.status-done {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.order-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.order-content:active {
    background: #f8fafc;
}

.order-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-right: 14px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

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

.order-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--warning-color);
}

/* ==================== 个人中心 ==================== */
.mine-header {
    background: var(--primary-gradient);
    padding: 70px 20px 50px;
    position: relative;
    overflow: hidden;
}

.header-bg-decor {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-bg-decor::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mine-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.mine-avatar:active {
    transform: scale(0.95);
}

.mine-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mine-avatar .avatar-icon {
    font-size: 36px;
}

.mine-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.mine-tip {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* 统计信息 */
.mine-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px;
    margin: -35px 16px 16px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-balance-card {
    background: var(--success-gradient);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.stat-balance-card .stat-card-value {
    color: var(--text-white);
}

.stat-balance-card .stat-card-label {
    color: rgba(255, 255, 255, 0.9);
}

/* 功能菜单 */
.mine-menu {
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

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

.menu-item:hover {
    background: #f8fafc;
}

.menu-item:active {
    background: #f1f5f9;
}

.menu-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 0;
}

.menu-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.menu-icon-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.menu-icon-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.35);
}

.menu-icon-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}

.menu-icon-cyan {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.menu-arrow {
    font-size: 20px;
    color: #cbd5e0;
}

/* 退出登录 */
.mine-logout {
    margin: 24px 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--warning-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.mine-logout:active {
    background: #fef2f2;
    transform: scale(0.98);
}

/* ==================== 商品详情页 ==================== */
.detail-page {
    padding-bottom: 80px;
}

.detail-cover {
    margin-top: 56px;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.detail-info {
    background: var(--bg-card);
    padding: 20px;
    margin: 16px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-category {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.detail-sales {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--warning-color);
    letter-spacing: -1px;
}

.detail-desc {
    background: var(--bg-card);
    margin: 0 16px 16px;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.desc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desc-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.purchased-tip {
    margin: 0 16px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    display: flex;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.btn-buy {
    flex: 1;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s var(--ease-out);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-download {
    flex: 1;
    height: 50px;
    background: var(--success-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==================== 右侧悬浮导航 ==================== */
.right-nav {
    position: fixed;
    right: 16px;
    bottom: 80px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.right-nav-item {
    width: 48px;
    height: 48px;
    background: var(--bg-card) !important;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.right-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
    transition: all 0.3s var(--ease-spring);
}

.right-nav-item:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.right-nav-item.home:hover {
    background: var(--primary-gradient) !important;
    border-color: transparent;
}

.right-nav-item.home:hover svg {
    stroke: #fff;
}

.right-nav-item.order:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
    border-color: transparent;
}

.right-nav-item.order:hover svg {
    stroke: #fff;
}

.right-nav-item.mine:hover {
    background: var(--success-gradient) !important;
    border-color: transparent;
}

.right-nav-item.mine:hover svg {
    stroke: #fff;
}

.right-nav-item.top:hover {
    background: var(--primary-gradient) !important;
    border-color: transparent;
}

.right-nav-item.top:hover svg {
    stroke: #fff;
}

.right-nav-item.home {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
}

.right-nav-item.order {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%) !important;
}

.right-nav-item.mine {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%) !important;
}

.right-nav-item.top {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(148, 163, 184, 0.1) 100%) !important;
}

.right-nav-tooltip {
    position: absolute;
    right: 55px;
    background: var(--text-primary);
    color: var(--text-white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
}

.right-nav-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-primary);
}

.right-nav-item:hover .right-nav-tooltip {
    opacity: 1;
    visibility: visible;
}

.right-nav-divider {
    width: 46px;
    height: 1px;
    background: #e2e8f0;
    margin: 2px 0;
}

/* ==================== 空状态 ==================== */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-text {
    font-size: 15px;
    color: var(--text-muted);
}

/* ==================== 没有更多 ==================== */
.no-more {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.no-more::before,
.no-more::after {
    content: '';
    width: 40px;
    height: 1px;
    background: #e2e8f0;
}

/* ==================== 加载中 ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    gap: 12px;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.9);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    backdrop-filter: blur(10px);
    animation: toastIn 0.3s var(--ease-out);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media screen and (min-width: 600px) {
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: var(--radius-xl); margin: 20px; }
}

/* ==================== PC端适配 ==================== */
@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 24px 0;
    }

    .page-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        background: var(--bg-page);
        border-radius: var(--radius-xl);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        min-height: calc(100vh - 48px);
    }

    .tab-bar {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        bottom: 24px;
        opacity: 0.95;
    }

    .header {
        height: 64px;
    }

    .header-title {
        font-size: 20px;
    }

    .search-bar {
        top: 64px;
        padding: 16px 24px 14px;
    }

    .category-nav {
        top: 130px;
        padding: 10px 24px 14px;
        justify-content: center;
        gap: 12px;
    }

    .goods-list {
        margin-top: 180px;
        padding: 24px;
    }

    .goods-item {
        padding: 18px;
    }

    .mine-stats, .mine-menu, .mine-logout {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .right-nav {
        right: calc(50% - 570px);
        bottom: 100px;
    }
}

/* ==================== 渐变边框效果 ==================== */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ==================== 下载页面 ==================== */
.link-page {
    padding-bottom: 80px;
}

.link-info {
    background: var(--bg-card);
    padding: 70px 16px 20px;
    margin-bottom: 16px;
}

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

.link-category {
    font-size: 13px;
    color: var(--primary-color);
}

.link-status {
    background: var(--bg-card);
    padding: 40px 20px;
    margin: 0 16px 16px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.status-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.status-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 8px;
}

.status-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.link-display {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 16px;
}

.link-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-input {
    flex: 1;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
}

.link-empty {
    padding: 30px 0;
    color: var(--text-muted);
}

.link-empty .empty-tip {
    font-size: 14px;
    margin-top: 12px;
}

.link-action {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-copy, .btn-open, .btn-home {
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out);
}

.btn-copy {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-copy:active {
    background: rgba(102, 126, 234, 0.1);
}

.btn-open {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-open:active {
    transform: scale(0.98);
}

.btn-home {
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.link-tips {
    margin: 24px 16px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tips-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 4px;
}

/* ==================== 支付页面 ==================== */
.pay-page {
    padding-bottom: 80px;
}

.pay-info {
    background: var(--bg-card);
    padding: 70px 16px 20px;
    margin-bottom: 16px;
}

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

.pay-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--warning-color);
}

.pay-amount::before {
    content: '¥';
    font-size: 18px;
}

.pay-section {
    background: var(--bg-card);
    margin: 0 16px 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pay-section-title {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
}

.pay-method {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

.pay-method:last-child {
    border-bottom: none;
}

.pay-method:active {
    background: #f8fafc;
}

.pay-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 22px;
}

.pay-method-icon.wechat {
    background: rgba(16, 185, 129, 0.1);
}

.pay-method-icon.alipay {
    background: rgba(59, 130, 246, 0.1);
}

.pay-method-icon.balance {
    background: rgba(102, 126, 234, 0.1);
}

.pay-method-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.pay-method-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.pay-method-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pay-method.active .pay-method-check {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 12px;
}

.pay-btn {
    margin: 24px 16px 0;
    height: 54px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    transition: all 0.3s var(--ease-out);
}

.pay-btn:active {
    transform: scale(0.98);
}

.pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 充值页面 ==================== */
.recharge-page {
    padding-bottom: 80px;
}

.recharge-header {
    background: var(--success-gradient);
    padding: 70px 20px 40px;
    text-align: center;
    color: var(--text-white);
}

.recharge-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.recharge-value {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

.recharge-value::before {
    content: '¥';
    font-size: 24px;
    font-weight: 600;
}

.recharge-section {
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.recharge-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.recharge-option {
    padding: 18px 12px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.recharge-option:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.recharge-option.active {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.08);
}

.recharge-option-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.recharge-option-gift {
    font-size: 11px;
    color: var(--text-muted);
}

.recharge-custom {
    margin-top: 14px;
    padding: 14px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
}

.recharge-custom::before {
    content: '¥';
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.recharge-custom input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
}

/* ==================== 联系客服页面 ==================== */
.contact-page {
    padding-bottom: 80px;
}

.contact-hero {
    background: var(--primary-gradient);
    padding: 80px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-decor {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-hero-decor::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.contact-hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.contact-hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.contact-cards {
    padding: 0 16px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-card:active {
    transform: scale(0.98);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 16px;
}

.contact-card-icon.wechat {
    background: rgba(16, 185, 129, 0.1);
}

.contact-card-icon.phone {
    background: rgba(59, 130, 246, 0.1);
}

.contact-card-icon.time {
    background: rgba(245, 158, 11, 0.1);
}

.contact-card-content {
    flex: 1;
}

.contact-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card-tip {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

.contact-card-action {
    font-size: 20px;
    color: var(--text-muted);
}

.contact-card.copied .contact-card-action {
    color: var(--success-color);
    font-size: 22px;
}

.contact-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 16px 0;
    padding: 18px;
    background: var(--success-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s var(--ease-out);
}

.contact-call-btn:active {
    transform: scale(0.98);
}

.contact-tips {
    margin: 24px 16px 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-tips-icon {
    font-size: 24px;
}

.contact-tips-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-tips-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 充值页面（新设计） ==================== */
.recharge-header {
    background: var(--success-gradient);
}

.balance-hero {
    background: var(--success-gradient);
    padding: 70px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-hero-decor {
    position: absolute;
    top: -50px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.balance-hero-decor::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

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

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.balance-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.balance-symbol {
    font-size: 14px;
    font-weight: 600;
}

.section-title-icon {
    font-size: 24px;
    margin-right: 8px;
}

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

.recharge-section {
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.amount-item {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.amount-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.amount-item.selected {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.08);
}

.amount-item.recommended {
    position: relative;
}

.amount-item-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-item.selected .amount-item-value {
    color: var(--success-color);
}

.amount-item-tag {
    display: inline-block;
    font-size: 10px;
    color: var(--text-white);
    background: var(--success-gradient);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.custom-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.custom-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.custom-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 0 16px;
    transition: all 0.2s;
}

.custom-input-wrap:focus-within {
    border-color: var(--success-color);
    background: var(--bg-card);
}

.custom-prefix {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.custom-input-wrap input {
    flex: 1;
    height: 52px;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

.recharge-action {
    padding: 0 16px;
}

.recharge-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: var(--success-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s var(--ease-out);
}

.recharge-btn:active {
    transform: scale(0.98);
}

.recharge-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 充值成功弹窗 */
.recharge-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.recharge-success-modal.show {
    display: flex;
}

.recharge-success-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    width: 300px;
    animation: modalPop 0.4s var(--ease-spring);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-check {
    width: 80px;
    height: 80px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--text-white);
    animation: successPop 0.5s var(--ease-spring);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

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

.success-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--success-color);
    margin-bottom: 28px;
}

.success-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.success-btn:active {
    transform: scale(0.98);
}

/* ==================== 支付页面（新设计） ==================== */
.pay-card {
    background: var(--bg-card);
    margin: 70px 16px 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pay-card-inner {
    display: flex;
    align-items: center;
    padding: 20px;
}

.pay-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 16px;
}

.pay-card-info {
    flex: 1;
}

.pay-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pay-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.pay-card-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 20px;
}

.pay-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.pay-money-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-money {
    font-size: 28px;
    font-weight: 800;
    color: var(--warning-color);
}

.pay-section {
    background: var(--bg-card);
    margin: 0 16px 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pay-section-title {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
}

.pay-method {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

.pay-method:last-child {
    border-bottom: none;
}

.pay-method:hover {
    background: #f8fafc;
}

.pay-method:active {
    background: #f1f5f9;
}

.pay-method.active .pay-method-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.pay-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 16px;
}

.pay-method-icon.wechat {
    background: rgba(16, 185, 129, 0.1);
}

.pay-method-icon.alipay {
    background: rgba(59, 130, 246, 0.1);
}

.pay-method-icon.balance {
    background: rgba(102, 126, 234, 0.1);
}

.pay-method-info {
    flex: 1;
}

.pay-method-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pay-method-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--success-color);
}

.pay-method-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
}

.pay-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.pay-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    transition: all 0.3s var(--ease-out);
}

.pay-btn:active {
    transform: scale(0.98);
}

.pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pay-btn-text {
    font-weight: 600;
}

.pay-btn-amount {
    font-weight: 800;
}

.pay-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 支付成功弹窗 */
.pay-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pay-success-modal.show {
    display: flex;
}

.pay-success-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    animation: modalPop 0.4s var(--ease-spring);
}

.pay-success-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.pay-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 10px;
}

.pay-success-tip {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== 关于页面 ==================== */
.about-page {
    padding-bottom: 40px;
}

.about-hero {
    background: var(--primary-gradient);
    padding: 80px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero-decor {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.about-hero-decor::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.about-hero-icon {
    font-size: 72px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.about-hero-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.about-hero-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.about-section {
    padding: 0 16px;
    margin-top: 24px;
}

.about-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about-feature {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s var(--ease-out);
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-feature-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-feature-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.about-intro {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.about-intro p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-contact-list {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-contact-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

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

.about-contact-item:hover {
    background: #f8fafc;
}

.about-contact-item:active {
    background: #f1f5f9;
}

.about-contact-icon {
    width: 46px;
    height: 46px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 14px;
}

.about-contact-content {
    flex: 1;
}

.about-contact-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.about-contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-contact-arrow {
    font-size: 22px;
    color: #cbd5e0;
}

.about-links {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
    font-size: 15px;
    color: var(--text-primary);
}

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

.about-link-item:hover {
    background: #f8fafc;
}

.about-link-item:active {
    background: #f1f5f9;
}

.about-link-item span:first-child {
    font-size: 20px;
    margin-right: 12px;
}

.about-link-item span:nth-child(2) {
    flex: 1;
    font-weight: 500;
}

.about-link-item span:last-child {
    font-size: 20px;
    color: #cbd5e0;
}

.about-footer {
    text-align: center;
    padding: 40px 20px 20px;
}

.about-footer-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.about-footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.about-footer-link a {
    font-size: 12px;
    color: var(--primary-color);
}

/* ==================== 账号管理页面 ==================== */
.account-page {
    padding: 70px 16px 40px;
}

.account-user-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.account-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    margin-right: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.account-user-avatar:active {
    transform: scale(0.95);
}

.account-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-user-avatar .avatar-icon {
    font-size: 36px;
}

.account-user-info {
    flex: 1;
}

.account-user-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.account-user-tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.account-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.account-card-title {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.account-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

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

.account-menu-item:hover {
    background: #f8fafc;
}

.account-menu-item:active {
    background: #f1f5f9;
}

.account-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.account-menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.account-menu-arrow {
    font-size: 20px;
    color: #cbd5e0;
}

/* 弹窗样式 */
.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-body .form-input {
    width: 100%;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-body .form-input:focus {
    border-color: var(--primary-color);
}

.modal-body .code-btn {
    height: 48px;
    padding: 0 16px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}

.modal-footer .btn-cancel {
    flex: 1;
    height: 48px;
    background: #f1f5f9;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-footer .btn-cancel:hover {
    background: #e2e8f0;
}

.modal-footer .btn-primary {
    flex: 1;
    height: 48px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 头像预览 */
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid var(--primary-color);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-btn input {
    display: none;
}

/* ==================== PC端适配 ==================== */
@media (min-width: 768px) {
    .contact-cards {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .recharge-section {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .recharge-action {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-call-btn {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-tips {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .pay-card {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .pay-section {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .pay-bottom {
        max-width: 560px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}
