/* 积分发卡商城 - 主样式 */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --info: #4299e1;
    --dark: #2d3748;
    --gray: #718096;
    --light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 1.8rem;
}

.logo img {
    height: 40px;
}

.search-box form {
    display: flex;
    gap: 0;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    width: 250px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    padding: 10px 20px;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* 分类导航 */
.category-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 15px 0;
}

.category-nav .container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-nav a {
    padding: 8px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-nav a:hover,
.category-nav a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.sub-category-nav {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sub-category-nav .container {
    display: flex;
    gap: 15px;
}

.sub-category-nav a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.sub-category-nav a:hover {
    color: var(--primary);
}

/* 主要内容 */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 300px);
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.products-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.sales {
    color: var(--gray);
    font-size: 13px;
}

.btn-exchange {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-exchange:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 16px;
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state.small {
    padding: 30px 20px;
}

.empty-state.small i {
    font-size: 2.5rem;
}

/* 联系方式浮动按钮 */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.contact-toggle:hover {
    transform: scale(1.1);
}

.contact-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.contact-float:hover .contact-menu,
.contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 30px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item.wechat {
    color: #07c160;
}

.contact-item.qq {
    color: #12b7f5;
}

.contact-item.telegram {
    color: #0088cc;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.wechat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.btn-copy {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #38a169;
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
}

/* 认证页面 */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray);
}

.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: var(--gray);
    margin-bottom: 15px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray) !important;
}

.form-agreement {
    margin-bottom: 20px;
}

.form-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
}

.form-agreement a {
    color: var(--primary);
}

/* 用户中心 */
.user-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.user-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.user-profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}

.user-profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.user-profile-card p {
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.user-points {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 15px;
}

.points-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.points-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-menu {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.user-menu a:hover,
.user-menu a.active {
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

.user-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.user-content h1 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid.small {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

/* 快速操作 */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 40px;
    background: var(--light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 2rem;
}

/* 最近记录 */
.recent-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.1rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.order-list,
.point-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item,
.point-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.order-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-info,
.point-info {
    flex: 1;
}

.order-info h4,
.point-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.order-date,
.point-date {
    font-size: 12px;
    color: var(--gray);
}

.order-points,
.point-value {
    font-weight: 600;
}

.point-value.positive {
    color: var(--success);
}

.point-value.negative {
    color: var(--danger);
}

.point-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.point-icon.recharge {
    background: var(--success);
}

.point-icon.exchange {
    background: var(--warning);
}

/* 充值页面 */
.recharge-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card,
.contact-info {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
}

.info-card h3,
.contact-info h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ul {
    padding-left: 20px;
    color: var(--gray);
}

.info-card li {
    margin-bottom: 8px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item > div {
    flex: 1;
}

.contact-item .label {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

.contact-item .value {
    font-weight: 600;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.recharge-form-section {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
}

.recharge-form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.card-input {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

.btn-large {
    padding: 18px;
    font-size: 1.1rem;
}

/* 购买数量选择器 */
.exchange-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.quantity-label i {
    color: var(--primary);
    margin-right: 6px;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e2e8f0;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quantity-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.quantity-btn.minus:hover {
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

#quantity {
    width: 80px;
    height: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0 8px;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#quantity::placeholder {
    color: #94a3b8;
}

.stock-hint {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.stock-hint i {
    color: var(--success);
    margin-right: 4px;
}

.total-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px dashed #cbd5e1;
    margin-bottom: 15px;
}

.total-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.total-value {
    font-size: 18px;
    color: #e53e3e;
    font-weight: 700;
}

.total-value span {
    font-size: 24px;
}

/* 订单列表 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid #e2e8f0;
}

.order-no {
    font-family: monospace;
    color: var(--gray);
}

.order-date {
    color: var(--gray);
    font-size: 14px;
}

.order-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.order-product img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-product h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.order-status.success {
    color: var(--success);
}

.order-points {
    text-align: right;
}

.order-points .label {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

.order-points .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger);
}

.order-content {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.order-content h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--gray);
}

.content-box {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-warning {
    background: #feebc8;
    color: #744210;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* 设置页面 */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
}

.settings-card h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form input:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

.settings-form small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 12px;
}

/* 商品详情页 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb .current {
    color: var(--dark);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image {
    aspect-ratio: 4/3;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: flex;
    gap: 8px;
}

.meta-item .label {
    color: var(--gray);
}

.meta-item .value {
    font-weight: 600;
}

.meta-item .value.in-stock {
    color: var(--success);
}

.meta-item .value.out-stock {
    color: var(--danger);
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-price-detail .label {
    color: var(--gray);
}

.product-price-detail .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-description p {
    color: var(--gray);
    line-height: 1.8;
}

.btn-exchange-now {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-exchange-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-exchange-now:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.exchange-status {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exchange-status.exchanged {
    background: #c6f6d5;
    color: #22543d;
}

.exchange-status.insufficient {
    background: #fed7d7;
    color: #c53030;
}

.btn-recharge {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--success);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-recharge:hover {
    background: #38a169;
}

.product-content-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.product-content-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--success);
}

.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.exchange-info {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.exchange-info p {
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.btn-cancel {
    background: #e2e8f0;
    color: var(--dark);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 显示移动端底部导航 */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 为底部导航留出空间 */
    .main-content {
        padding-bottom: 70px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .user-dashboard {
        grid-template-columns: 1fr;
    }
    
    .user-sidebar {
        position: static;
    }
    
    .recharge-info {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        flex-direction: row;
        justify-content: center;
    }
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.mobile-tab-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-tab-item.active {
    color: var(--primary);
}

.mobile-tab-item:hover {
    color: var(--primary);
}

/* 移动端下拉菜单 */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 10px;
}

.mobile-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
}

/* 购买积分页面样式 */
.buy-points-container {
    padding: 30px 0;
}

.buy-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.buy-card h2 {
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 1.5rem;
}

.points-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-item {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.package-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.package-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.package-info {
    text-align: center;
    margin-bottom: 15px;
}

.package-points {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.package-price {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: 600;
}

.select-btn {
    padding: 8px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.package-item:hover .select-btn {
    background: var(--primary-dark);
}

.package-item.selected .select-btn {
    background: var(--success);
}

.custom-amount {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
}

.custom-amount h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.price-preview {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.pay-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #42b983 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.pay-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.pay-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.pay-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-amount {
    font-size: 1.4rem;
}

.rate-tip {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

.rate-tip i {
    margin-right: 4px;
}

/* 支付成功页面 */
.success-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #42b983 0%, #2ecc71 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-container h2 {
    margin-bottom: 30px;
    color: var(--dark);
}

.order-info {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--gray);
    font-weight: 500;
}

.info-row .value {
    color: var(--dark);
    font-weight: 600;
}

.card-keys-section {
    margin: 30px 0;
    text-align: left;
}

.card-keys-section h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.card-keys-container {
    margin-bottom: 20px;
}

.card-key-item {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.card-key-content {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--dark);
    word-break: break-all;
}

.copy-btn {
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.export-btn {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.export-btn:hover {
    background: #45a049;
}

.no-cards {
    padding: 30px;
    text-align: center;
    color: var(--gray);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--dark);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* 支付操作按钮 */
.pay-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-direction: column;
}

.btn-wechat-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #07c160 0%, #00b359 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.btn-wechat-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.pay-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    text-align: left;
}

.pay-info p {
    margin: 10px 0;
    font-size: 1rem;
}

/* 充值页面微信支付横幅 */
.wechat-pay-banner {
    background: linear-gradient(135deg, #07c160 0%, #00b359 100%);
    color: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.wechat-pay-banner h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.wechat-pay-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-wechat-pay-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background: white;
    color: #07c160;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-wechat-pay-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .buy-card {
        padding: 20px;
    }
    
    .points-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .package-item {
        padding: 15px;
    }
    
    .package-points {
        font-size: 1.2rem;
    }
    
    .package-price {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .price-preview {
        text-align: left;
    }
    
    .success-container {
        margin: 20px auto;
        padding: 25px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .card-key-item {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pay-actions {
        flex-direction: column;
    }
}
}
