/* login.css - 统一设计风格与主页 */

/* 导入与主页相同的变量 */
:root {
    --primary-color: #FF3B30; /* 主题红 */
    --secondary-color: #FFD1DC; /* 淡粉 */
    --accent-color: #6A5ACD; /* 紫色点缀 */
    --text-dark: #2c3e50; /* 深灰文字 */
    --text-light: #555; /* 浅灰文字 */
    --bg-light: #FDFCFA; /* 极浅背景 */
    --bg-card: #FFFFFF; /* 卡片背景 */
    --border-light: #E6E6FA; /* 浅边框/分割线 */
    --gradient-start: #FFD1DC; /* 粉色渐变起始 */
    --gradient-end: #E6E6FA;   /* 淡紫渐变结束 */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* 导入字体，与 register.css 一致 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局移除浏览器默认高光阴影 */
button, input, textarea, select, a, [tabindex] {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button:focus, input:focus, textarea:focus, select:focus, a:focus, [tabindex]:focus {
    outline: none;
}

button:active, input:active, textarea:active, select:active, a:active, [tabindex]:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 多语言支持 */
.zh, .en, .ja, .ru, .fr, .es {
    display: none;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
}
body.chinese .zh { display: inline; }
body.english .en { display: inline; }
body.japanese .ja { display: inline; }
body.russian .ru { display: inline; }
body.french .fr { display: inline; }
body.spanish .es { display: inline; }

/* 页眉 Header */
header {
    background: var(--bg-card);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-soft);
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    padding: 8px;
    background: rgba(255, 182, 193, 0.08);
    border-radius: 24px;
    position: relative;
    border: none;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
    margin: 0 auto 10px auto;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    width: 100%;
    gap: 6px;
}

.selection-indicator {
    position: absolute;
    height: calc(100% - 12px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.25), 0 0 15px rgba(69, 224, 224, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    top: 6px;
    border: none;
    backdrop-filter: blur(8px);
    will-change: transform;
    /* 宽度和位置将通过JavaScript动态设置 */
    width: 0;
    left: 0;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: fit-content;
}

.lang-btn:focus {
    outline: none;
    box-shadow: none;
}

.lang-btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: none;
    z-index: 1;
    position: relative;
}

.lang-btn:hover:not(.active) {
    color: var(--secondary-color);
    transform: translateY(0);
    box-shadow: none;
}

/* 选中指示器的位置和宽度将通过JavaScript动态计算 */

/* Logo 和标题 */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

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

.logo-container img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.1);
}

.logo-container a {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    display: block;
}

.logo-container a:focus {
    outline: none;
}

.logo-container a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 15px;
}

/* 登录容器布局 */
.container {
    max-width: 480px;
    margin: 50px auto;
    padding: 0 20px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-medium);
    border-top: 3px solid var(--primary-color);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* 表单元素样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    background: var(--bg-light);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.15);
}

.form-input:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 忘记密码链接 */
.forgot-password {
    text-align: right;
    margin-top: 8px;
}

.forgot-password a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.forgot-password a:focus {
    outline: none;
    color: var(--primary-color);
}

.forgot-password a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 登录按钮 */
.login-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.2);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.login-btn:hover {
    background-color: #e62e27; /* 稍深的红色 */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 59, 48, 0.3);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.2);
}

.login-btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 消息样式统一 */
.error-message, .success-message, .info-message {
    padding: 12px 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.error-message {
    color: #d63031;
    background-color: rgba(255, 59, 48, 0.08);
    border-left: 3px solid #d63031;
    display: none;
}

.success-message {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.08);
    border-left: 3px solid #27ae60;
    display: none;
}

.info-message {
    color: #0984e3;
    background-color: rgba(9, 132, 227, 0.08);
    border-left: 3px solid #0984e3;
    display: none;
    transition: opacity 0.5s ease;
}

.info-message strong.email-placeholder {
    font-weight: 600;
}

/* 模态框样式 */
.pwd-popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.pwd-popup.show {
    display: flex;
    opacity: 1;
}

.pwd-popup-content {
    background-color: var(--bg-card);
    padding: 30px 35px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pwd-popup.show .pwd-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.close-btn:focus {
    outline: none;
}

.close-btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.pwd-popup h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 页脚样式 */
footer {
    background: #f0f0f0;
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Lottie 动画容器 */
#email-lottie-container {
    margin: 20px auto;
    max-width: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .pwd-popup-content {
        padding: 25px 20px;
    }
    
    .lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 6px;
        background: rgba(255, 182, 193, 0.08);
        border-radius: 24px;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
        margin: 0 15px 10px 15px;
        width: calc(100% - 30px);
        position: relative;
        overflow: visible;
        flex-wrap: nowrap;
        gap: 3px;
    }
    
    .lang-btn {
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 12px;
        background: transparent;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
        min-width: fit-content;
        border-radius: 18px;
        transition: all 0.3s ease;
    }
    
    .selection-indicator {
        position: absolute;
        height: calc(100% - 8px);
        top: 4px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 8px rgba(255, 182, 193, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
        /* 宽度和位置通过JavaScript动态设置 */
        width: 0;
        left: 0;
    }
    
    .lang-btn.active {
        background: transparent;
        color: var(--primary-color);
        font-weight: 600;
    }

    .lang-switch::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 30px auto;
    }
    
    .login-card {
        padding: 25px 15px;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
    }
    
    .logo-container img {
        width: 40px;
    }
    
    .lang-switch {
        margin: 0 10px 10px 10px;
        width: calc(100% - 20px);
        padding: 5px;
        gap: 2px;
        justify-content: space-between;
    }
    
    .lang-btn {
        flex: 0 0 auto;
        padding: 7px 8px;
        font-size: 12px;
        margin: 0;
        text-align: center;
        min-width: fit-content;
        border-radius: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* 在最小屏幕上稍微缩小padding以适应 */
        max-width: calc((100% - 10px) / 6);
    }
    
    .selection-indicator {
        height: calc(100% - 6px);
        top: 3px;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        /* 宽度和位置通过JavaScript动态设置 */
        width: 0;
        left: 0;
    }
    
    .login-btn {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .pwd-popup-content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .close-btn {
        right: 15px;
        top: 15px;
    }
    
    .captcha-input-container {
        max-width: 100%;
        overflow: hidden;
    }
    .captcha-input {
        min-width: 0;
    }
    .refresh-btn {
        flex-shrink: 0;
        max-width: 40px;
        min-width: 36px;
        padding: 8px;
    }
}

/* 添加注册提示样式 */
.register-prompt {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.register-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 5px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.register-prompt a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.register-prompt a:focus {
    outline: none;
    color: var(--accent-color);
}

.register-prompt a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 账户失效提示样式 - 优化设计 */
#account-deactivated-container {
    display: none;
    margin: 12px 0 20px;
}

.account-deactivated-notice {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(255, 59, 48, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 209, 220, 0.4);
    border-left: 3px solid var(--primary-color);
    animation: gentle-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 平滑入场动画 */
@keyframes gentle-appear {
    0% { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 背景图层 */
.account-dormant-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff1f0 0%, #ffd1dc 100%);
    z-index: -1;
}

/* 简化的装饰效果 */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
}

.circle-1 {
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.1) 0%, rgba(255, 59, 48, 0.05) 60%, transparent 80%);
}

/* 内容容器 */
.dormant-content-wrapper {
    position: relative;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    z-index: 10;
}

/* 月亮图标容器 */
.moon-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 月亮图标的光晕效果 */
.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.2) 0%, rgba(255, 59, 48, 0.05) 60%, transparent 80%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* 月亮图标 */
.moon-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 50%, #ffd1dc 100%);
    box-shadow: 
        0 0 12px 1px rgba(255, 59, 48, 0.25),
        inset 8px -8px 0 rgba(255, 209, 220, 0.6);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

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

/* 月亮表面纹理 */
.moon-crater {
    position: absolute;
    background: rgba(255, 245, 245, 0.8);
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.crater-1 {
    width: 8px;
    height: 8px;
    top: 30%;
    left: 25%;
}

.crater-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 60%;
}

.crater-3 {
    width: 4px;
    height: 4px;
    top: 40%;
    left: 50%;
}

/* Z字效果 */
.zzz-container {
    position: absolute;
    top: -2px;
    right: -8px;
    z-index: 5;
}

.z-letter {
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    text-shadow: 0 0 4px rgba(255, 59, 48, 0.3);
    opacity: 0;
}

.z-1 {
    font-size: 16px;
    top: 0;
    right: 0;
    animation: float-z 3s ease-in-out infinite;
}

.z-2 {
    font-size: 13px;
    top: 6px;
    right: 10px;
    animation: float-z 3s ease-in-out infinite 0.5s;
}

.z-3 {
    font-size: 10px;
    top: 12px;
    right: 20px;
    animation: float-z 3s ease-in-out infinite 1s;
}

@keyframes float-z {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-10px, -20px) scale(1); }
}

/* 文本内容 */
.dormant-text-content {
    flex: 1;
    text-align: left;
    color: var(--text-dark);
    z-index: 10;
}

.dormant-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--primary-color);
}

.dormant-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.dormant-suggestion {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-light);
    margin: 0 0 12px;
    font-style: italic;
}

/* 按钮容器 */
.dormant-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
    z-index: 10;
}

/* 主要按钮 */
.contact-support-btn {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF3B30 0%, #e62e27 100%);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
}

.contact-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 59, 48, 0.3);
}

.contact-support-btn:active {
    transform: translateY(-1px);
}

/* 次要按钮 */
.understand-btn {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.understand-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* 图标样式 */
.btn-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* 波纹效果 */
.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    border-radius: inherit;
}

.contact-support-btn:active .btn-ripple,
.understand-btn:active .btn-ripple {
    animation: ripple-effect 0.4s ease-out;
}

@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 多语言支持 */
.understand-btn span {
    display: none;
}

.btn-content span.zh,
.btn-content span.en,
.btn-content span.ja,
.btn-content span.ru,
.btn-content span.fr {
    display: none;
}

body.chinese .btn-content span.zh,
body:not(.chinese):not(.japanese):not(.russian):not(.french) .btn-content span.en,
body.japanese .btn-content span.ja,
body.russian .btn-content span.ru,
body.french .btn-content span.fr {
    display: inline;
}

/* 额外的显示/隐藏动画 */
.fade-in {
    animation: fade-in-animation 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out {
    animation: fade-out-animation 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes fade-in-animation {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out-animation {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* 注意效果 */
.attention-pulse {
    animation: attention 2s cubic-bezier(0.4, 0, 0.6, 1) 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .dormant-content-wrapper {
        padding: 16px 18px;
    }
    
    .dormant-title {
        font-size: 16px;
    }
    
    .dormant-message,
    .dormant-suggestion {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dormant-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 16px 15px;
    }
    
    .moon-icon-container {
        margin-right: 0;
        margin-bottom: 12px;
        width: 50px;
        height: 50px;
    }
    
    .moon-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .dormant-text-content {
        text-align: center;
    }
    
    .dormant-actions {
        justify-content: center;
        margin-top: 12px;
    }
    
    .contact-support-btn,
    .understand-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        flex: 1;
    }
}

/* 页脚内容样式 */
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: auto;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-links a:focus {
    outline: none;
    color: var(--primary-color);
}

.footer-links a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.copyright {
    font-size: 0.85rem;
    color: #aaa;
}

/* 密码输入容器和切换按钮样式 */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.password-toggle-btn:hover {
    opacity: 0.7;
}

.password-toggle-btn:focus {
    outline: none;
}

.password-toggle-btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.password-container .form-input {
    width: 100%;
    padding-right: 40px; /* 为按钮留出空间 */
}

/* 可爱的眼睛动画效果 */
.password-toggle-btn svg {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.password-toggle-btn:active svg {
    transform: scale(0.9);
}

@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* reCAPTCHA验证样式 */
/* 删除所有reCAPTCHA相关样式 */

/* 数学验证码样式 - 清理后的版本 */
.math-captcha {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 123, 146, 0.10);
    border: 1px solid rgba(255, 209, 220, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.captcha-title {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #FF7B92;
    margin-bottom: 15px;
    position: relative;
}

.captcha-title:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #FFD1DC, #FF7B92);
    margin: 8px auto 0;
    border-radius: 2px;
}

.math-expression {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 1px;
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 20px); /* 设置宽度，与输入框容器相同 */
    margin-left: auto;
    margin-right: auto;
}

.captcha-text {
    background: linear-gradient(135deg, #FFD1DC, #ff91a4);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 123, 146, 0.25);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    width: 100%; /* 让验证码文本填充整个容器 */
    display: flex;
    justify-content: center;
}

/* 多语言占位符处理 */
.captcha-input-wrapper {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.captcha-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 20px); /* 与math-expression相同的宽度 */
    margin: 0 auto;
}

.captcha-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #FFD1DC;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    color: #555;
    background: rgba(255, 250, 250, 0.8);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.captcha-input:focus {
    outline: none;
    border-color: #FF7B92;
    box-shadow: 0 0 0 4px rgba(255, 123, 146, 0.15);
    background: #fff;
}

.captcha-input:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.captcha-placeholder {
    position: absolute;
    left: 50px;
    right: 50px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.captcha-input:focus ~ .captcha-placeholder,
.captcha-input:not(:placeholder-shown) ~ .captcha-placeholder {
    opacity: 0;
}

.refresh-btn {
    background: rgba(255, 209, 220, 0.2);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 123, 146, 0.1);
    position: relative;
    overflow: visible;
    
    /* 移除浏览器自带的高光阴影效果 */
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.refresh-btn:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(255, 123, 146, 0.1);
}

.refresh-btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.refresh-btn.animating {
    animation: refresh-rotate 0.5s cubic-bezier(.4,0,.2,1);
    animation-fill-mode: forwards;
}

@keyframes refresh-rotate {
    0% {
        transform: scale(0.92) rotate(0deg);
    }
    60% {
        transform: scale(1.05) rotate(300deg);
    }
    80% {
        transform: scale(1.02) rotate(350deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.refresh-btn .highlight {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: none;
    border-radius: 50%;
    z-index: 2;
}

.refresh-btn.animating .highlight {
    animation: highlight-move 0.5s linear;
}

@keyframes highlight-move {
    0% { left: -60%; opacity: 0; }
    20% { opacity: 0.7; }
    60% { left: 60%; opacity: 0.7; }
    100% { left: 100%; opacity: 0; }
}

.captcha-message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    color: #FF3B30;
    font-weight: 500;
    transition: all 0.3s ease;
}

.captcha-hint {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

/* 验证码动画效果 */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.shake-effect {
    animation: shake 0.3s ease-in-out;
}

/* 验证码canvas元素样式 */
.math-expression canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .math-expression {
        height: 60px;
    }
    
    .captcha-text {
        padding: 12px 20px;
    }
    
    .captcha-input-container {
        max-width: 100%;
        overflow: hidden;
    }
    
    .captcha-input {
        min-width: 0;
    }
    
    .refresh-btn {
        flex-shrink: 0;
        max-width: 40px;
        min-width: 36px;
        padding: 8px;
    }
}











