/* 会员中心页面样式 */

/* 用户信息 */
.user-profile {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: #495057;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.user-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(194, 35, 39, 0.2);
    border-color: rgba(194, 35, 39, 0.4);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.user-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(194, 35, 39, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    z-index: 0;
}

.avatar {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #c22327, #9a1a1e);
    border-radius: 50%;
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.avatar:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(194, 35, 39, 0.4);
}

.user-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.user-info h2 {
    font-size: 30px;
    margin: 0 0 20px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(194, 35, 39, 0.4);
    color: #c22327;
}

.vip-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #495057;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    animation: vipPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

@keyframes vipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.vip-status span {
    color: #6c757d;
    font-weight: 600;
    font-size: 15px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.balance-label {
    font-size: 18px;
    color: #6c757d;
    font-weight: 600;
}

.balance-amount {
    font-size: 24px;
    font-weight: 900;
    color: #c22327;
    text-shadow: 0 4px 12px rgba(194, 35, 39, 0.4);
}

.recharge-link {
    display: inline-block;
    background: linear-gradient(135deg, #c22327, #9a1a1e);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(194, 35, 39, 0.3);
    border: 2px solid rgba(194, 35, 39, 0.3);
}

.recharge-link:hover {
    background: linear-gradient(135deg, #9a1a1e, #7c161a);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 35, 39, 0.4);
    border-color: rgba(194, 35, 39, 0.6);
}

.user-actions .logout-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
}

.user-actions .logout-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(108, 117, 125, 0.3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-actions .logout-link:hover {
    color: #ff4757;
    text-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.user-actions .logout-link:hover::after {
    transform: scaleX(1);
    background: #ff4757;
}

/* 会员功能导航 */
.member-nav {
    margin-bottom: 40px;
    position: relative;
}

.member-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(194, 35, 39, 0.2);
    overflow: hidden;
}

.member-nav ul li {
    flex: 1;
    text-align: center;
    position: relative;
}

.member-nav ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c22327, #9a1a1e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.member-nav ul li.active::before {
    transform: scaleX(1);
}

.member-nav ul li a {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.member-nav ul li a:hover {
    color: #c22327;
    background: rgba(194, 35, 39, 0.1);
}

.member-nav ul li.active a {
    color: #c22327;
    background: rgba(194, 35, 39, 0.15);
    text-shadow: 0 2px 8px rgba(194, 35, 39, 0.3);
}

/* 会员区域 */
.member-section {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(194, 35, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.member-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.member-section.active {
    display: block;
}

.member-section.active::before {
    left: 100%;
    animation: sectionShine 3s ease-in-out infinite;
}

@keyframes sectionShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.section-header {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(194, 35, 39, 0.3);
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 28px;
    color: #c22327;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(194, 35, 39, 0.4);
}

.section-header h3 {
    font-size: 22px;
    color: #495057;
    margin: 30px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 登录/注册表单 */
.login-register-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(194, 35, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.login-register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}


.login-register-container a{
    color: #c42427;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.tab-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.tabs {
    display: flex;
    margin-bottom: 40px;
    border-bottom: 2px solid rgb(170, 30, 33);
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 20px 15px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: rgba(106, 106, 106);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px #ff3532;
}

.tab-btn.active {
    color: #913236;
    text-shadow: none;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: rgba(108, 117, 125, 0.9);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-group label {
    display: block;
    width: 100px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    white-space: nowrap;
}

.form-group input {
    width: 50%;
    padding: 18px 20px;
    border: 2px solid rgba(194, 35, 39, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    color: #495057;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group input::placeholder {
    color: rgba(73, 80, 87, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input:focus {
    border-color: #c22327;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(194, 35, 39, 0.3);
    transform: translateY(-2px);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: nowrap;
}

.captcha-image {
    height: 55px;
    width: 30%;
    border: 2px solid rgba(194, 35, 39, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.captcha-image:hover {
    border-color: #c22327;
    box-shadow: 0 6px 18px rgba(194, 35, 39, 0.3);
    transform: scale(1.05);
}

.captcha-refresh {
    color: #6c757d;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    background: transparent;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.captcha-refresh:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    text-transform: none;
    letter-spacing: normal;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
    accent-color: #00d4ff;
    transform: scale(1.3);
}

.submit-btn {
    width: 40%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #c22327, #9a1a1e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(194, 35, 39, 0.3);
    border: 2px solid rgba(194, 35, 39, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: block;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #9a1a1e, #7c161a);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(194, 35, 39, 0.4);
    border-color: rgba(194, 35, 39, 0.6);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-2px);
}

.message-container {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: none;
    font-weight: 600;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.message-container.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.message-container.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 阅读历史 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.history-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.history-item:hover::before {
    width: 8px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.history-item .cover {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.history-item .cover img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.history-item:hover .cover img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

.history-item .info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.history-item .info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: 700;
    transition: color 0.3s ease;
}

.history-item:hover .info h3 {
    color: #00d4ff;
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.history-item .info p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.history-item .info .time {
    font-size: 13px;
    color: rgba(0, 212, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 订单表格 */
.orders-table {
    overflow-x: auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.8);
}

.orders-table th,
.orders-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.orders-table th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 2;
}

.orders-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

/* 购买记录 */
.purchases-list {
    position: relative;
    z-index: 1;
}

.purchase-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchase-item {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.purchase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

.purchase-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.purchase-item h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #00d4ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.purchase-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-item p span:last-child {
    color: #ffffff;
    font-weight: 700;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

.empty-state p {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .user-info h2 {
        font-size: 26px;
    }
    
    .vip-status {
        justify-content: center;
    }
    
    .user-balance {
        justify-content: center;
    }
    
    .member-nav ul {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .member-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .member-nav ul li:last-child {
        border-bottom: none;
    }
    
    .member-nav ul li a {
        text-align: center;
        border-radius: 0;
        padding: 20px 15px;
    }
    
    .member-nav ul li:first-child a {
        border-radius: 15px 15px 0 0;
    }
    
    .member-nav ul li:last-child a {
        border-radius: 0 0 15px 15px;
    }
    
    .user-profile,
    .login-register-container,
    .member-section {
        padding: 30px 20px;
    }
    
    .history-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .history-item .cover {
        text-align: center;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 15px 10px;
        font-size: 13px;
        letter-spacing: 0;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .user-profile,
    .login-register-container,
    .member-section {
        padding: 25px 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 15px 15px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 18px 15px;
        font-size: 16px;
    }
    
    .avatar img {
        width: 100px;
        height: 100px;
    }
    
    .purchase-item p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}