/**
 * 账号管理系统 - 专用样式
 * 设计风格：暗夜霓虹 · 史诗传奇（与主项目一致）
 * 版本：1.2
 */

/* ========== 重置导航栏基础样式 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
    font-size: 28px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
}

.header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    color: #000;
}

.header-btn-outline {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
}

.header-btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航（默认隐藏） */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2f3542;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffd700;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.mobile-nav-actions .header-btn {
    text-align: center;
}

/* ========== 页面整体布局 ========== */
.account-page-wrapper {
    display: flex;
    min-height: calc(100vh - 80px - 100px);
    margin-top: 80px;
}

/* 左侧区域 - Hero 风格 */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="none" stroke="rgba(255,215,0,0.03)" stroke-width="2"/><circle cx="500" cy="500" r="300" fill="none" stroke="rgba(255,215,0,0.03)" stroke-width="2"/><circle cx="500" cy="500" r="200" fill="none" stroke="rgba(255,215,0,0.03)" stroke-width="2"/></svg>') center/cover;
    pointer-events: none;
}

.left-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
}

.left-section h2 {
    font-size: 48px;
    font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.left-section h2:nth-child(2) {
    animation-delay: 0.2s;
}

.left-section .gold-text {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.left-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

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

/* 右侧区域 - 表单容器 */
.right-section {
    flex: 1;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.register-container {
    width: 100%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.register-container:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

/* 切换按钮 */
.switch-buttons {
    margin-bottom: 30px;
}

.button-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.button-row:last-child {
    margin-bottom: 0;
}

.switch-button {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

.switch-button.active {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-color: transparent;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 表单标题 */
.register-container h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    background: rgba(10, 10, 15, 1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:read-only,
.form-group input[readonly] {
    background: rgba(10, 10, 15, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* 手机号输入容器 */
.mobile-input-container {
    display: flex;
    gap: 10px;
}

.mobile-input-container input {
    flex: 1;
}

.mobile-input-container button {
    padding: 0 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mobile-input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 推荐人输入容器 */
.referrer-input-container {
    display: flex;
    gap: 10px;
}

.referrer-input-container input {
    flex: 1;
}

/* 福利说明按钮 - 与主项目风格一致 */
.info-btn {
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

/* 验证码容器 */
.captcha-container label {
    width: auto;
}

.captcha-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input-container input {
    flex: 1;
}

.captcha-input-container img {
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.captcha-input-container img:hover {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-primary-style {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* 提交按钮 */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.copy-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

/* 推广系统中的按钮组 */
.promotion-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.promotion-buttons .btn-primary-style {
    margin-top: 0;
}

.promotion-buttons .info-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
}

/* 了解推荐人福利按钮 - 单独样式加强 */
#promotion-benefits-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#promotion-benefits-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.password-result-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 错误和状态消息 */
.validation-error {
    display: block;
    font-size: 12px;
    color: #ff4757;
    margin-top: 5px;
}

.success-message {
    display: block;
    font-size: 12px;
    color: #2ed573;
    margin-top: 5px;
}

.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.status-message.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    color: #2ed573;
}

.status-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.hidden {
    display: none;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 30px;
    height: 30px;
}

.social-icon:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* QQ 弹窗 */
.qq-popup, .wechat-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    white-space: nowrap;
}

.social-icon:hover .qq-popup,
.social-icon:hover .wechat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.qq-popup {
    display: flex;
    gap: 15px;
    bottom: 100%;
    left: 50%;
}

.qq-popup .qr-container {
    text-align: center;
}

.qq-popup img,
.wechat-popup img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qq-popup p,
.wechat-popup p {
    font-size: 12px;
    color: #ffd700;
    margin: 5px 0;
}

/* Footer */
.account-footer {
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 30px 50px 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
    font-size: 24px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .account-page-wrapper {
        flex-direction: column;
        margin-top: 70px;
    }

    .left-section {
        padding: 60px 20px;
        min-height: 300px;
    }

    .left-section h2 {
        font-size: 36px;
    }

    .right-section {
        padding: 40px 20px;
    }

    .register-container {
        max-width: 450px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 60px;
    }

    .nav {
        display: none;
    }

    .user-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        top: 60px;
    }

    .account-page-wrapper {
        margin-top: 60px;
    }

    .left-section h2 {
        font-size: 28px;
    }

    .left-section p {
        font-size: 16px;
    }

    .register-container {
        padding: 20px;
    }

    .register-container h1 {
        font-size: 24px;
    }

    .button-row {
        gap: 10px;
    }

    .switch-button {
        padding: 10px 15px;
        font-size: 13px;
    }

    .mobile-input-container {
        flex-direction: column;
    }

    .mobile-input-container button {
        padding: 10px;
    }

    .referrer-input-container {
        flex-direction: column;
    }

    .info-btn {
        white-space: normal;
        text-align: center;
    }

    .captcha-input-container {
        flex-direction: column;
    }

    .captcha-input-container img {
        width: 100%;
        height: auto;
    }

    .qq-popup, .wechat-popup {
        display: none;
    }

    .account-footer {
        padding: 20px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}