﻿/* 
 * 会员中心公用样式表
 * 适用页面：充值、充值记录、消费记录、会员信息、修改密码等会员相关页面
 * 版本：1.0
 * 更新时间：2026-02-25
 */

/* ===================== 全局基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.6;
    /*padding-top: 70px;*/ /* 适配固定导航栏 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================== 顶部导航栏 ===================== */
.top-header {
    background-color: #000;
    color: #ffffff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #0078ff;
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 0;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    display: block;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.auth-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    display: inline-block;
    border: none;
    text-align: center;
}

.register-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #0078ff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 120, 255, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004a99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 255, 0.4);
}

.login-btn {
    color: #0078ff;
    background-color: transparent;
    border: 2px solid #0078ff;
}

.login-btn:hover {
    background-color: rgba(0, 120, 255, 0.1);
    transform: translateY(-2px);
}

/* ===================== 主容器布局 ===================== */
.main-container {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* ===================== 左侧用户面板 ===================== */
.user-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* 用户头像区域 */
.avatar-section {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid #f0f2f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* 金币余额区域 */
.balance-section-sidebar {
    text-align: center;
    margin-bottom: 25px;
}

.balance-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: #0078ff;
    letter-spacing: 1px;
}

/* 签到区域 */
.sign-in-section {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.sign-in-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.sign-in-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0078ff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 255, 0.2);
}

.sign-in-btn:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004a99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 255, 0.3);
}

.signed-tip {
    color: #009966;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    background-color: #f0fdf6;
    border-radius: 8px;
    display: block;
}

/* 左侧导航菜单 */
.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    color: #888;
    font-size: 16px;
}

.nav-link:hover {
    background-color: #f5f8ff;
    color: #0078ff;
}

.nav-link:hover i {
    color: #0078ff;
}

.nav-link.curr {
    background: linear-gradient(135deg, #0078ff 0%, #0056b3 100%);
    color: #fff;
    font-weight: 600;
}

.nav-link.curr i {
    color: #fff;
}

/* ===================== 右侧内容面板 ===================== */
.content-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0078ff 0%, #0056b3 100%);
    border-radius: 2px;
}

/* ===================== 通用表单样式 ===================== */
.form-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    border-radius: 12px;
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.form-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label.required::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 5px;
    font-size: 16px;
}

.form-value {
    color: #333;
    font-size: 15px;
    padding: 8px 0;
}

.form-input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #0078ff;
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.1);
}

/* 密码输入框特殊样式 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0078ff;
}

/* 安全提示 */
.security-tip {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.security-tip i {
    color: #0078ff;
    margin-right: 5px;
}

/* 提交按钮样式 */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    padding: 12px 36px;
    background: linear-gradient(135deg, #0078ff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 255, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004a99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 120, 255, 0.2);
}

/* ===================== 页脚样式 ===================== */
footer {
    background-color: #000;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 5px solid #0078ff;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column {
    padding: 0 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-logo img {
    height: 60px;
    margin-right: 15px;
}

.footer-desc {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #0078ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 120, 255, 0.3);
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #0078ff;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 15px;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #0078ff;
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: #0078ff;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-text {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.6;
}

.contact-text a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #0078ff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 20px 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #0078ff;
}

/* ===================== 辅助样式 ===================== */
.old-frame {
    display: none;
}

/* ===================== 移动端适配 ===================== */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .user-panel {
        position: static;
    }

    .menu-toggle {
        display: flex;
    }

    .auth-buttons {
        gap: 10px;
    }

    .auth-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 40px;
        margin-right: 10px;
    }

    .content-panel {
        padding: 30px 20px;
    }

    .form-card {
        padding: 20px;
        max-width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 20px auto 60px;
    }

    .user-panel {
        padding: 20px;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .balance-amount {
        font-size: 28px;
    }

    .page-title {
        font-size: 24px;
    }

    .form-input {
        height: 40px;
    }
}