/* Party 站点专用样式 - 丰富的动画效果 */

/* ============================================
   CSS变量定义
   ============================================ */
:root {
    --primary-black: #212121;
    --primary-white: #FFFFFF;
    --background: #F5F5F5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-tertiary: #9E9E9E;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --banner-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: rgba(255, 255, 255, 0.85);
}

/* 移除深色模式主题，统一使用浅色模式 */

/* ============================================
   基础样式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

img, video, iframe, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-content {
    flex: 1;
    width: 100%;
}

/* ============================================
   全局动画和过渡效果
   ============================================ */

/* 平滑的全局过渡 - 简化动画，更快速响应 */
* {
    transition: background-color 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease,
                box-shadow 0.15s ease,
                transform 0.15s ease,
                opacity 0.15s ease;
}

/* Banner基础样式 */
.banner {
    background: var(--banner-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 60px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.banner-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-separator {
    color: var(--text-tertiary);
    margin: 0 0.5rem;
}

.banner-settings {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.05);
}

[data-theme="dark"] .settings-btn {
    background: rgba(42, 42, 42, 0.5);
    border-color: var(--border-color);
}

[data-theme="dark"] .settings-btn:hover {
    background: rgba(42, 42, 42, 0.8);
    border-color: var(--text-secondary);
}

.settings-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.15s ease;
    z-index: 1001;
}

[data-theme="dark"] .settings-menu {
    background: rgba(42, 42, 42, 0.95);
    border-color: var(--border-color);
}

.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.settings-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer基础样式 */
/* 动画填充区域 - 连接hero和footer */
.hero-to-footer-bridge {
    height: 50px;
    position: relative;
    background: var(--background);
    overflow: hidden;
    margin: 0;
}

.hero-to-footer-bridge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--background) 50%,
        var(--footer-bg) 100%
    );
    animation: bridgeFlow 4s ease-in-out infinite;
}

@keyframes bridgeFlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px var(--shadow);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.footer-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.footer-separator {
    color: var(--text-tertiary);
    margin: 0 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0.25rem 0;
}

/* Banner动画 - 简化 */
.banner:not(.banner-no-animate) {
    animation: bannerSlideDown 0.3s ease-out;
}

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

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) var(--background);
}

[data-theme="dark"] * {
    scrollbar-color: rgba(255, 255, 255, 0.2) var(--background);
}

/* Logo样式 - 移除动画 */
.banner .logo {
    transition: transform 0.3s ease;
}

.banner .logo:hover {
    transform: scale(1.05);
}

/* 法律声明按钮样式 */
.legal-disclaimer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.legal-disclaimer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

[data-theme="dark"] .legal-disclaimer-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .legal-disclaimer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 法律声明弹窗样式 */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.legal-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

[data-theme="dark"] .legal-modal-content {
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .legal-modal-header {
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.legal-modal-title i {
    color: var(--text-secondary);
}

.legal-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: rotate(90deg);
}

[data-theme="dark"] .legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.legal-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-primary);
    line-height: 1.8;
}

.legal-modal-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 0.95rem;
}

.legal-modal-body p:last-child {
    margin-bottom: 0;
}

.legal-modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
}

[data-theme="dark"] .legal-modal-footer {
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-footer .btn {
    min-width: 150px;
}

/* 响应式设计 - 法律声明弹窗 */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .legal-modal-header {
        padding: 1rem 1.5rem;
    }

    .legal-modal-title {
        font-size: 1.25rem;
    }

    .legal-modal-body {
        padding: 1.5rem;
    }

    .legal-modal-body p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .legal-modal-footer {
        padding: 1rem 1.5rem;
    }

    .legal-modal-footer .btn {
        width: 100%;
    }
}

/* 站点标题样式 */
.site-title {
    color: var(--text-primary);
    font-weight: bold;
}

/* 导航链接动画 - 移除上下黑线 */
.nav-link {
    transition: all 0.15s ease;
    display: inline-block;
}

.nav-link:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* 设置按钮旋转动画 */
.settings-btn {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.settings-btn:hover {
    transform: rotate(180deg) scale(1.1);
    animation: settingsWiggle 0.5s ease;
}

@keyframes settingsWiggle {
    0%, 100% { transform: rotate(180deg) scale(1.1); }
    25% { transform: rotate(175deg) scale(1.15); }
    75% { transform: rotate(185deg) scale(1.15); }
}

/* 用户按钮动画 */
.user-btn {
    position: relative;
    overflow: hidden;
}

.user-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    transition: transform 0.15s ease;
}

.user-btn:hover .user-avatar {
    transform: scale(1.02);
}

[data-theme="dark"] .user-btn:hover .user-avatar {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* 用户菜单下拉动画 */
.user-menu-dropdown {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.user-menu-item {
    position: relative;
    overflow: hidden;
}

.user-menu-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.08), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

[data-theme="dark"] .user-menu-item::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.user-menu-item:hover::before {
    left: 100%;
}

.user-menu-item:hover {
    transform: translateX(5px);
    padding-left: 1.25rem;
}

.user-menu-item i {
    transition: transform 0.3s ease;
}

.user-menu-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* 认证页面样式 */
.auth-page-content {
    padding: 4rem 2rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: cardFadeInUp 0.3s ease-out;
    position: relative;
}

/* 移除auth-card::before的光晕效果 */

[data-theme="dark"] .auth-card {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .auth-title {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

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

.auth-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    animation: titleFadeIn 0.8s ease-out 0.2s both;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
    animation: titleUnderline 1s ease-out 0.5s both;
}

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

@keyframes titleUnderline {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input {
    position: relative;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05),
                0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    animation: inputPulse 0.3s ease;
}

[data-theme="dark"] .form-group input:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05),
                0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes inputPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05),
                    0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08),
                    0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

[data-theme="dark"] .form-group input:focus {
    animation: inputPulseDark 0.3s ease;
}

@keyframes inputPulseDark {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05),
                    0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08),
                    0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    animation: alertBar 0.4s ease;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes alertBar {
    from {
        width: 0;
    }
    to {
        width: 4px;
    }
}

.alert i {
    animation: alertIconBounce 0.6s ease;
}

@keyframes alertIconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
}

.btn-primary:hover {
    background: rgba(33, 33, 33, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

[data-theme="dark"] .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--primary-white);
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .btn-secondary {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-white);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-github {
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    width: 100%;
}

.btn-github:hover {
    background: rgba(33, 33, 33, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-github i {
    transition: none;
}

[data-theme="dark"] .btn-github {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

[data-theme="dark"] .btn-github:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-black);
    text-decoration: none;
}

[data-theme="dark"] .auth-footer a {
    color: var(--primary-white);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 首页样式 */
.party-home-content {
    padding: 2rem 1rem;
    animation: contentFadeIn 0.3s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* 背景动画填充整个屏幕 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--background));
    pointer-events: none;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(128, 128, 128, 0.4) 0%, rgba(128, 128, 128, 0.2) 30%, rgba(128, 128, 128, 0.1) 50%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-section::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

@keyframes heroGlow {
    0% {
        transform: translate(-20%, -20%) scale(0.9);
        opacity: 0.6;
    }
    33% {
        transform: translate(20%, -10%) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-10%, 20%) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translate(-20%, -20%) scale(0.9);
        opacity: 0.6;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: heroContentFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: heroTitleFadeIn 0.3s ease-out both;
    position: relative;
    display: inline-block;
}

/* 移除hero-title的before和after（两条黑色线） */

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


.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: heroSubtitleFadeIn 0.3s ease-out 0.1s both;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-user-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    animation: userInfoSlideIn 0.3s ease-out 0.1s both;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 移除hero-user-info::before的光晕效果 */

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

/* userInfoShine动画已删除 */

[data-theme="dark"] .hero-user-info {
    background: rgba(42, 42, 42, 0.7);
}

.user-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.welcome-avatar-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: all 0.15s ease;
    cursor: pointer;
}

.welcome-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-color: var(--text-secondary);
}

[data-theme="dark"] .welcome-avatar:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* avatarFloat和avatarSpin动画已删除 - 简化交互 */

.welcome-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-text p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cr-balance {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cr-balance strong {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.cr-balance i {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 功能特色部分已删除 */

/* 用户菜单样式 */
.user-menu {
    position: relative;
    margin-right: 1rem;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-primary);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.user-avatar-icon {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.15s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.user-menu.active .user-menu-dropdown,
.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

[data-theme="dark"] .user-menu-dropdown {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .user-menu-dropdown {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .user-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.login-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.login-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.register-btn {
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
}

.register-btn:hover {
    background: rgba(33, 33, 33, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .register-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

[data-theme="dark"] .register-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Footer动画 */
.footer:not(.footer-no-animate) {
    animation: footerSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes footerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-container {
    position: relative;
}

.footer-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* footer-logo hover效果已在上面定义，删除重复定义 */

/* logoWiggle动画已删除 */

.footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

[data-theme="dark"] .footer-link::before {
    background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover::before {
    width: 200px;
    height: 200px;
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-link i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.footer-link:hover i {
    transform: scale(1.3) rotate(360deg);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.3) rotate(360deg) translateY(0); }
    50% { transform: scale(1.4) rotate(360deg) translateY(-5px); }
}

.footer-link span {
    transition: transform 0.3s ease;
}

.footer-link:hover span {
    transform: translateX(3px);
}

/* ============================================
   完善的响应式设计 - 支持手机访问
   ============================================ */

@media (max-width: 1200px) {
    .banner-container {
        padding: 1rem 1.5rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    /* 功能特色部分已删除 */
}

@media (max-width: 768px) {
    .banner-container {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 1rem;
    }

    .banner-left {
        width: 100%;
        justify-content: center;
    }

    .banner-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .banner-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-separator {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }


    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .user-welcome {
        flex-direction: column;
        text-align: center;
    }

    .welcome-avatar {
        margin: 0 auto 1rem;
    }

    /* 功能特色部分已删除 */

    .user-menu-dropdown {
        right: auto;
        left: 0;
        min-width: 180px;
    }

    .banner-settings {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .legal-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .legal-modal-header {
        padding: 1rem 1.5rem;
    }

    .legal-modal-title {
        font-size: 1.25rem;
    }

    .legal-modal-body {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .legal-modal-footer {
        padding: 1rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-copyright {
        width: 100%;
    }

    /* 移动端减少动画以提升性能 */
    * {
        animation-duration: 0.3s !important;
    }
}

@media (max-width: 480px) {
    .banner-container {
        padding: 0.75rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-user-info {
        padding: 1.5rem 1rem;
    }

    .welcome-avatar {
        width: 60px;
        height: 60px;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    /* 功能特色部分已删除 */

    .legal-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .legal-modal-body {
        padding: 1rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .legal-disclaimer-btn {
        width: 100%;
        justify-content: center;
    }

    .user-btn {
        padding: 0.4rem 0.75rem;
    }

    .user-name {
        display: none;
    }

    .auth-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* 横屏手机适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   额外的灵动动画效果
   ============================================ */

/* 页面加载时的整体淡入 */
body {
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 认证卡片额外动画 */
.auth-card {
    transform-origin: center;
}

.auth-card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 表单输入框聚焦时的波纹效果 */
.form-group {
    position: relative;
    overflow: hidden;
}

.form-group input:focus ~ label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.05) 0%, transparent 70%);
    animation: inputRipple 0.6s ease-out;
    pointer-events: none;
}

[data-theme="dark"] .form-group input:focus ~ label::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

@keyframes inputRipple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 认证卡片标题样式 */
.auth-title {
    color: var(--text-primary);
}

/* 功能特色部分已删除 */

/* 欢迎文本动画 - 简化 */
.welcome-text h2,
.welcome-text p {
    animation: textSlideIn 0.2s ease-out both;
}

.welcome-text h2 {
    animation-delay: 0.05s;
}

.welcome-text p {
    animation-delay: 0.1s;
}

@keyframes textSlideIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CR余额样式已简化 */

/* 用户菜单项图标弹性进入 */
.user-menu-item {
    animation: menuItemSlideIn 0.3s ease-out both;
}

.user-menu-item:nth-child(1) { animation-delay: 0.05s; }
.user-menu-item:nth-child(2) { animation-delay: 0.1s; }
.user-menu-item:nth-child(3) { animation-delay: 0.15s; }
.user-menu-item:nth-child(4) { animation-delay: 0.2s; }

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

/* 设置菜单项旋转进入 */
.settings-item {
    animation: settingsItemRotateIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes settingsItemRotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Footer链接图标旋转进入 */
.footer-link {
    animation: footerLinkFadeIn 0.6s ease-out both;
}

.footer-link:nth-child(1) { animation-delay: 0.1s; }
.footer-link:nth-child(2) { animation-delay: 0.2s; }
.footer-link:nth-child(3) { animation-delay: 0.3s; }

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

/* 导航链接弹性效果 */
.nav-link {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover {
    animation: navLinkBounce 0.5s ease;
}

@keyframes navLinkBounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 全局加载完成后的统一动画 */
@keyframes globalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 禁用动画的类（用于性能优化） */
.no-animate,
.no-animate * {
    animation: none !important;
    transition: none !important;
}

/* 减少动画（用于低性能设备） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   404错误页面样式
   ============================================ */
.error-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.error-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-black);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

[data-theme="dark"] .error-number {
    color: var(--primary-white);
}

.error-number .number {
    display: inline-block;
    animation: numberFlip 0.8s ease-out both;
}

.error-number .number:nth-child(1) { animation-delay: 0.1s; }
.error-number .number:nth-child(2) { animation-delay: 0.2s; }
.error-number .number:nth-child(3) { animation-delay: 0.3s; }

@keyframes numberFlip {
    from {
        opacity: 0;
        transform: rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: rotateX(0deg);
    }
}

.error-animation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.floating-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 0.5s; }
.floating-icon:nth-child(3) { animation-delay: 1s; }
.floating-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.error-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin-top: 2rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: rgba(33, 33, 33, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .home-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

[data-theme="dark"] .home-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
    opacity: 0.3;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .error-number {
        font-size: 5rem;
        gap: 0.5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .error-animation {
        gap: 1rem;
    }
}

/* ============================================
   仪表板样式
   ============================================ */
.dashboard-content {
    padding: 2rem 1rem;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

[data-theme="dark"] .dashboard-card {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.02);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-black);
    text-align: center;
}

[data-theme="dark"] .balance-amount {
    color: var(--primary-white);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.transactions-list, .bets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item, .bet-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .transaction-item,
[data-theme="dark"] .bet-item {
    background: rgba(255, 255, 255, 0.02);
}

.transaction-info, .bet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-type, .bet-type {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.transaction-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: #4caf50;
}

.transaction-amount.negative {
    color: #f44336;
}

.bet-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.bet-status.status-pending {
    background: #ff9800;
    color: white;
}

.bet-status.status-resolved {
    background: #4caf50;
    color: white;
}

.bet-amount {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bet-payout {
    color: #4caf50;
    font-weight: 600;
    margin-left: 0.5rem;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* ============================================
   个人资料和配置页面样式
   ============================================ */
.profile-content, .settings-content {
    padding: 2rem 1rem;
}

.profile-container, .settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-title, .settings-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.profile-grid, .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.profile-card, .settings-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

[data-theme="dark"] .profile-card,
[data-theme="dark"] .settings-card {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-card:hover, .settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 头像上传样式 */
.avatar-upload-group {
    margin-bottom: 2rem;
}

.avatar-preview-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    display: block;
    transition: all 0.15s ease;
}

.avatar-preview-icon {
    width: 120px;
    height: 120px;
    font-size: 120px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: all 0.15s ease;
}

.avatar-preview:hover,
.avatar-preview-icon:hover {
    border-color: var(--text-secondary);
    transform: scale(1.05);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-upload-btn:hover {
    background: rgba(33, 33, 33, 0.9);
    transform: scale(1.1);
}

[data-theme="dark"] .avatar-upload-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-black);
}

[data-theme="dark"] .avatar-upload-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* 数学验证题样式 */
.math-challenge {
    font-size: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

[data-theme="dark"] .math-challenge {
    background: rgba(255, 255, 255, 0.05);
}

.danger-warning {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 0, 0, 0.05);
    border-left: 4px solid #ff4444;
    border-radius: 4px;
}

[data-theme="dark"] .danger-warning {
    background: rgba(255, 0, 0, 0.1);
    border-left-color: #ff6666;
}

.danger-card {
    border-left: 4px solid #ff4444;
}

[data-theme="dark"] .danger-card {
    border-left-color: #ff6666;
}

/* ============================================
   银行系统样式
   ============================================ */

/* 刷卡动画遮罩 */
.card-swipe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.card-swipe-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-swipe-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.card-swipe-container {
    text-align: center;
    position: relative;
}

.bank-card-swipe {
    width: 420px;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    perspective: 1000px;
    margin: 0 auto 2rem;
    position: relative;
    cursor: grab;
    user-select: none;
    transform: translateY(-120vh) rotateZ(-12deg) scale(0.9);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
    will-change: transform;
}

.bank-card-swipe.entering {
    transform: translateY(0) rotateZ(0deg) scale(1);
    opacity: 1;
}

.bank-card-swipe:active {
    cursor: grabbing;
}

.bank-card-swipe .card-front {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* 刷卡动画中的卡片颜色 */
.bank-card-swipe[data-card-level="normal"] .card-front {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.bank-card-swipe[data-card-level="silver"] .card-front {
    background: linear-gradient(135deg, #E5E7EB 0%, #9CA3AF 100%);
}

.bank-card-swipe[data-card-level="gold"] .card-front {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
}

.bank-card-swipe[data-card-level="black"] .card-front {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.bank-card-swipe[data-card-level="silver"] .card-bank-name,
.bank-card-swipe[data-card-level="gold"] .card-bank-name,
.bank-card-swipe[data-card-level="silver"] .card-number,
.bank-card-swipe[data-card-level="gold"] .card-number,
.bank-card-swipe[data-card-level="silver"] .card-value,
.bank-card-swipe[data-card-level="gold"] .card-value,
.bank-card-swipe[data-card-level="silver"] .card-label,
.bank-card-swipe[data-card-level="gold"] .card-label {
    color: var(--primary-black);
}

.bank-card-swipe[data-card-level="silver"] .card-logo-square,
.bank-card-swipe[data-card-level="gold"] .card-logo-square {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.bank-card-swipe[data-card-level="silver"] .card-logo-img,
.bank-card-swipe[data-card-level="gold"] .card-logo-img {
    filter: none;
}

.bank-card-swipe[data-card-level="silver"] .card-level-badge,
.bank-card-swipe[data-card-level="gold"] .card-level-badge {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-black);
}

.swipe-indicator {
    color: var(--primary-white);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.swipe-indicator.processing {
    opacity: 1;
    transform: translateY(0);
}

.swipe-indicator i {
    animation: swipeArrow 1s ease-in-out infinite;
}

@keyframes swipeArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* 拖动刷卡动画 - 重新设计，简洁美观、科技感 */
.swipe-instruction {
    margin-bottom: 2.5rem;
    color: var(--primary-white);
    position: relative;
    z-index: 10;
}

.swipe-instruction h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.swipe-area {
    width: 600px;
    max-width: 90vw;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.swipe-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: swipeScan 2s ease-in-out infinite;
}

@keyframes swipeScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.swipe-area.swiped {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: swipeSuccess 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swipe-line {
    width: 85%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    position: absolute;
    top: 50%;
    left: 7.5%;
    transform: translateY(-50%);
    animation: swipeLinePulse 1.5s ease-in-out infinite;
}

@keyframes swipeLinePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes swipeSuccess {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.swipe-indicator-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.swipe-status {
    color: var(--primary-white);
    font-size: 1.3rem;
    margin-top: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.swipe-status i {
    font-size: 1.5rem;
    animation: swipeArrow 1s ease-in-out infinite;
}

@keyframes swipeSuccess {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 银行仪表盘 */
.bank-dashboard-content {
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.bank-container {
    max-width: 1400px;
    margin: 0 auto;
}

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bank-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.bank-welcome {
    text-align: right;
}

.bank-welcome p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.bank-time {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* 银行卡样式 */
.bank-card {
    width: 100%;
    max-width: 450px;
    height: 280px;
    min-height: 280px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
}

.current-card-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.card-front {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 280px;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bank-card:hover .card-front {
    transform: rotateY(5deg) rotateX(5deg);
}

/* 卡片等级样式 */
.bank-card[data-card-level="normal"] .card-front {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.bank-card[data-card-level="silver"] .card-front {
    background: linear-gradient(135deg, #E5E7EB 0%, #9CA3AF 100%);
}

.bank-card[data-card-level="gold"] .card-front {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
}

.bank-card[data-card-level="black"] .card-front {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.card-bank-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-white);
    letter-spacing: 1px;
    align-self: flex-start;
    margin-top: 0;
    text-align: left;
    line-height: 1.2;
}

.bank-card[data-card-level="silver"] .card-bank-name,
.bank-card[data-card-level="gold"] .card-bank-name {
    color: var(--primary-black);
}

.card-logo-square {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bank-card[data-card-level="silver"] .card-logo-square,
.bank-card[data-card-level="gold"] .card-logo-square {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.card-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bank-card[data-card-level="silver"] .card-logo-img,
.bank-card[data-card-level="gold"] .card-logo-img {
    filter: none;
}

.bank-card[data-card-level="silver"] .card-logo-square,
.bank-card[data-card-level="gold"] .card-logo-square {
    background: rgba(0, 0, 0, 0.2);
}

/* 卡片中间的色块已删除 */

.card-number {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-white);
    letter-spacing: 1px;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.bank-card[data-card-level="silver"] .card-number,
.bank-card[data-card-level="gold"] .card-number {
    color: var(--primary-black);
}

.card-number-group {
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    min-height: 60px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.card-holder {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bank-card[data-card-level="silver"] .card-label,
.bank-card[data-card-level="gold"] .card-label {
    color: rgba(0, 0, 0, 0.6);
}

.card-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-white);
    letter-spacing: 1px;
}

.bank-card[data-card-level="silver"] .card-value,
.bank-card[data-card-level="gold"] .card-value {
    color: var(--primary-black);
}

.card-level-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--primary-white);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.bank-card[data-card-level="silver"] .card-level-badge,
.bank-card[data-card-level="gold"] .card-level-badge {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-black);
}

/* 卡片上不显示余额，已移除 */

/* 开卡卡片样式 */
.open-card-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.open-card-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.open-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.open-card-content i {
    font-size: 5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.open-card-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.open-card-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    min-width: 250px;
}

.btn-large i {
    margin-right: 0.5rem;
}

/* 账户信息网格 */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.bank-account-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .bank-account-card {
    background: rgba(42, 42, 42, 0.8);
}

.bank-account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.account-card-header i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.account-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.account-balance {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.account-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.level-badge.level-normal {
    background: #6B7280;
    color: white;
}

.level-badge.level-silver {
    background: linear-gradient(135deg, #E5E7EB 0%, #9CA3AF 100%);
    color: #1F2937;
}

.level-badge.level-gold {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: #1F2937;
}

.level-badge.level-black {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    color: white;
}

/* 卡片等级系统 */
.card-levels-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card-level-item {
    position: relative;
    transition: transform 0.2s ease;
}

.card-level-item:hover {
    transform: translateY(-5px);
}

.card-level-item.current .level-card-preview {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    border: 3px solid #3B82F6;
}

.card-level-item.locked .level-card-preview {
    opacity: 0.5;
    filter: grayscale(100%);
}

.level-card-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.level-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.level-card-header i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.level-card-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.level-card-threshold {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.level-status {
    margin-top: 1rem;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.current-badge {
    background: #3B82F6;
    color: white;
}

.unlocked-badge {
    background: #10B981;
    color: white;
}

.locked-badge {
    background: #6B7280;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bank-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .bank-welcome {
        text-align: center;
    }
    
    .bank-card {
        max-width: 100%;
        height: 220px;
    }
    
    .card-number {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .card-levels-grid {
        grid-template-columns: 1fr;
    }
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.settings-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-value {
    color: var(--text-primary);
    font-weight: 600;
}

.danger-card {
    border-color: #f44336;
}

.danger-warning {
    color: #f44336;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f44336;
}

[data-theme="dark"] .danger-warning {
    background: rgba(244, 67, 54, 0.2);
}

.btn-danger {
    background: #f44336;
    color: white;
    border: 2px solid #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    color: #f44336;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    color: #4caf50;
}

/* 开卡动画 */
.card-opened-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-opened-overlay.active {
    opacity: 1;
    display: flex;
}

.card-opened-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card-drop-animation {
    width: 420px;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    perspective: 1000px;
    margin-bottom: 3rem;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.card-drop-animation .card-front {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* 开卡动画中的卡片颜色 */
.card-drop-animation[data-card-level="normal"] .card-front {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.card-drop-animation[data-card-level="silver"] .card-front {
    background: linear-gradient(135deg, #E5E7EB 0%, #9CA3AF 100%);
}

.card-drop-animation[data-card-level="gold"] .card-front {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
}

.card-drop-animation[data-card-level="black"] .card-front {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.card-drop-animation[data-card-level="silver"] .card-bank-name,
.card-drop-animation[data-card-level="gold"] .card-bank-name,
.card-drop-animation[data-card-level="silver"] .card-number,
.card-drop-animation[data-card-level="gold"] .card-number,
.card-drop-animation[data-card-level="silver"] .card-value,
.card-drop-animation[data-card-level="gold"] .card-value {
    color: var(--primary-black);
}

.card-drop-animation[data-card-level="silver"] .card-logo-square,
.card-drop-animation[data-card-level="gold"] .card-logo-square {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.card-drop-animation[data-card-level="silver"] .card-logo-img,
.card-drop-animation[data-card-level="gold"] .card-logo-img {
    filter: none;
}

.card-drop-animation.dropping {
    animation: cardDrop 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes cardDrop {
    0% {
        transform: translateY(-100vh) rotateZ(-15deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(20vh) rotateZ(5deg) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
        opacity: 1;
    }
}

.card-opened-modal {
    display: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}

.card-opened-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: modalPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.card-opened-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.card-opened-modal .modal-header {
    margin-bottom: 2rem;
}

.card-opened-modal .modal-header .success-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.card-opened-modal .modal-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.card-opened-modal .modal-body {
    margin: 2rem 0;
}

.card-info-display {
    text-align: left;
}

.card-opened-modal .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.card-opened-modal .info-row .info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.card-opened-modal .info-row .info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.card-opened-modal .info-row .info-value.level-normal {
    color: #6B7280;
}

.card-opened-modal .info-row .info-value.level-silver {
    color: #9CA3AF;
}

.card-opened-modal .info-row .info-value.level-gold {
    color: #F59E0B;
}

.card-opened-modal .info-row .info-value.level-black {
    color: #111827;
}

.card-opened-modal .modal-footer {
    margin-top: 2rem;
}

/* 账户删除确认模态框 */
.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-account-modal.active {
    display: flex;
    opacity: 1;
}

.delete-account-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.delete-account-modal-header {
    margin-bottom: 2rem;
}

.delete-account-modal-header .warning-icon {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.delete-account-modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.delete-account-modal-body {
    margin: 2rem 0;
    text-align: left;
}

.delete-account-warning {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #f44336;
}

.delete-slider-container {
    margin: 2rem 0;
}

.delete-slider-label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
}

.delete-slider-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 30px;
    border: 2px solid #ddd;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 1;
}

.delete-slider-bg .slider-start-text,
.delete-slider-bg .slider-end-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.delete-slider-bg .slider-end-text {
    color: #f44336;
}

.delete-slider {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    z-index: 2;
    cursor: pointer;
}

.delete-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: 3px solid #fff;
}

.delete-slider::-webkit-slider-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.delete-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.delete-slider::-moz-range-thumb {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-radius: 50%;
    cursor: grab;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.delete-slider::-moz-range-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.delete-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.delete-slider.complete {
    background: transparent;
}

.delete-slider.complete::-webkit-slider-thumb {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-slider.complete::-moz-range-thumb {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.2) 0%, rgba(76, 175, 80, 0.3) 100%);
    width: 0%;
    border-radius: 30px;
    transition: width 0.15s ease, background 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.delete-slider.complete ~ .delete-slider-track {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
}

.delete-slider-thumb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.delete-slider-thumb {
    position: absolute;
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    transition: left 0.15s ease, background 0.3s ease, transform 0.2s ease;
}

.delete-slider-thumb i {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
}

.delete-slider.complete ~ .delete-slider-thumb-wrapper .delete-slider-thumb {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-account-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .profile-grid, .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-title, .settings-title {
        font-size: 2rem;
    }
    
    .card-opened-modal .modal-content,
    .delete-account-modal-content {
        padding: 1.5rem;
    }
    
    .swipe-area {
        width: 90%;
        max-width: 500px;
    }
    
    .bank-card-swipe {
        width: 90%;
        max-width: 400px;
    }
}

