* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 响应式字体大小 - 基础设置 */
html {
    font-size: 16px;
}

/* 小屏幕设备（手机） */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/* 中等屏幕设备（平板） */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* 大屏幕设备（桌面） */
@media (min-width: 769px) {
    html {
        font-size: 16px;
    }
}

/* 修复Safari/iOS浏览器的默认样式 */
button, input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* 确保复选框可见 */
input[type="checkbox"] {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 修复Safari输入框的白色边框和默认样式 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

/* 修复iOS Safari的输入框聚焦时的蓝色边框 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 优化移动端触摸反馈 */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

:root {
    /* 高级浅色蓝粉渐变配色方案 */
    --blue-light: #6BB6FF;
    --blue-primary: #4A90E2;
    --blue-dark: #357ABD;
    --pink-light: #FFB3D9;
    --pink-primary: #FF6B9D;
    --pink-dark: #E04A7A;
    --purple-light: #B8A9FF;
    --purple-primary: #9B7FFF;
    --purple-dark: #7B5FD9;
    
    /* 浅色渐变背景 - 高级蓝粉渐变 */
    --gradient-main: linear-gradient(135deg, #E8F4FF 0%, #F0E8FF 25%, #FFE8F5 50%, #E8F0FF 75%, #F5E8FF 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 240, 255, 0.6) 100%);
    --gradient-accent: linear-gradient(135deg, #6BB6FF 0%, #9B7FFF 50%, #FFB3D9 100%);
    --gradient-button: linear-gradient(135deg, #4A90E2 0%, #9B7FFF 50%, #FF6B9D 100%);
    --gradient-button-hover: linear-gradient(135deg, #6BB6FF 0%, #B8A9FF 50%, #FF8FB3 100%);
    --gradient-blue-pink: linear-gradient(135deg, #6BB6FF 0%, #9B7FFF 50%, #FFB3D9 100%);
    --gradient-blue: linear-gradient(135deg, #4A90E2 0%, #6BB6FF 100%);
    --gradient-pink: linear-gradient(135deg, #FF6B9D 0%, #FFB3D9 100%);
    
    /* 文字颜色 - 多样化高级配色 */
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-muted: #8B9BA8;
    --text-accent-blue: #357ABD;
    --text-accent-pink: #E04A7A;
    --text-accent-purple: #7B5FD9;
    --text-white: #FFFFFF;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', 'Segoe UI', Arial, sans-serif;
    background: var(--gradient-main);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    animation: gradientShift 25s ease infinite;
    background-size: 400% 400%;
    position: relative;
    /* 优化动画性能 */
    will-change: background-position;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(107, 182, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(155, 127, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 优化所有动画性能 - 使用GPU加速 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: var(--text-primary);
    padding: 40px 20px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    /* 优化动画性能 */
    will-change: transform, opacity;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    animation: fadeIn 1s ease 0.3s both;
}

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

main {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 60px rgba(255, 107, 157, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    /* 优化动画性能 */
    will-change: transform, opacity;
}

section {
    margin-bottom: 40px;
}

section h2 {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: clamp(1.3em, 4vw, 1.8em);
    font-weight: 700;
    color: var(--text-primary);
}

.intro p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    color: var(--text-secondary);
}

.intro p strong {
    font-size: clamp(1em, 2.8vw, 1.15em);
}

.intro h2 {
    font-size: clamp(1.3em, 4vw, 1.8em);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    color: var(--text-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue-pink);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: 0;
    will-change: left;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.01);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    will-change: transform, box-shadow;
}

.feature-card h3 {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-size: clamp(1.1em, 2.5vw, 1.3em);
    line-height: 1.3;
}

.feature-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    font-size: clamp(0.9em, 2vw, 1em);
}

.actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    padding: 14px 35px;
    margin: 10px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFB3D9 0%, #B8A9FF 50%, #FFB3D9 100%);
    background-size: 200% 100%;
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFC5E8 0%, #C8B9FF 50%, #FFC5E8 100%);
    background-size: 200% 100%;
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 179, 217, 0.4), 0 0 30px rgba(184, 169, 255, 0.3);
    animation: gradientShift 2s ease infinite;
}

.btn-secondary {
    background: linear-gradient(135deg, #FFB3D9 0%, #B8A9FF 50%, #FFB3D9 100%);
    background-size: 200% 100%;
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    animation: gradientShift 3s ease infinite;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFC5E8 0%, #C8B9FF 50%, #FFC5E8 100%);
    background-size: 200% 100%;
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 179, 217, 0.4), 0 0 30px rgba(184, 169, 255, 0.3);
    animation: gradientShift 2s ease infinite;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-accent-blue);
    border: 1px solid rgba(184, 169, 255, 0.4);
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.15);
    font-weight: 600;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2) 0%, rgba(184, 169, 255, 0.2) 50%, rgba(255, 179, 217, 0.2) 100%);
    background-size: 200% 100%;
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 179, 217, 0.25);
    border-color: rgba(184, 169, 255, 0.6);
    color: var(--text-accent-blue);
    animation: gradientShift 2s ease infinite;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2) 0%, rgba(184, 169, 255, 0.2) 50%, rgba(255, 179, 217, 0.2) 100%);
    background-size: 200% 100%;
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 179, 217, 0.25);
    border-color: rgba(184, 169, 255, 0.6);
    color: var(--text-accent-blue);
    animation: gradientShift 2s ease infinite;
}

.btn-block {
    width: 100%;
    margin: 10px 0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* 图标按钮 - 用于点赞、评论等小按钮 */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 20px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    font-weight: 500;
}

.btn-icon:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--text-accent-blue);
    transform: translate3d(0, -2px, 0);
}

/* 点赞按钮特殊样式 */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 20px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    font-weight: 500;
}

.like-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--text-accent-pink);
    transform: translate3d(0, -2px, 0);
}

.like-btn.liked {
    color: var(--text-accent-pink);
    background: rgba(255, 107, 157, 0.15);
}

.like-btn.liked:hover {
    background: rgba(255, 107, 157, 0.25);
}

/* 文本链接按钮 - 用于回复、取消等 */
.btn-link {
    background: none;
    border: none;
    color: var(--text-accent-blue);
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 10px;
    text-decoration: none;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    font-weight: 500;
}

.btn-link:hover {
    color: var(--blue-primary);
    text-decoration: underline;
}

.btn-link.text-muted {
    color: var(--text-muted);
}

.btn-link.text-muted:hover {
    color: var(--text-secondary);
}

/* 按钮组 - 用于并排显示多个按钮 */
.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-group .btn {
    margin: 0;
    flex: 1;
}

/* 按钮禁用状态 */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 模态框样式 - 毛玻璃效果 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: auto;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    margin: auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 60px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.close:hover {
    color: var(--text-accent-pink);
    background: rgba(255, 107, 157, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 关闭按钮 - 统一样式 */
.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    line-height: 1;
    padding: 0;
}

.btn-close:hover {
    color: var(--text-accent-pink);
    background: rgba(255, 107, 157, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 站内信标签样式 */
.message-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.message-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    position: relative;
}

.message-tab:hover {
    color: var(--text-accent-blue);
    background: rgba(74, 144, 226, 0.05);
}

.message-tab.active {
    color: var(--text-white);
    background: var(--gradient-button);
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.agreement-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.3) rgba(74, 144, 226, 0.1);
}

.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-track {
    background: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.3);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.5);
}

.agreement-content {
    margin: 20px 0;
    line-height: 1.8;
}

.agreement-content h3 {
    background: var(--gradient-blue-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
    margin-bottom: 10px;
}

.agreement-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.modal-actions {
    margin-top: 30px;
    text-align: right;
}

/* 认证页面样式 */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 60px rgba(255, 107, 157, 0.2);
    animation: slideUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.auth-container h1 {
    text-align: center;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-accent-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    font-size: 1em;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.2), 
        0 4px 12px rgba(74, 144, 226, 0.15),
        0 0 20px rgba(255, 107, 157, 0.1);
    transform: translate3d(0, -2px, 0);
    background: rgba(255, 255, 255, 1);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.auth-links a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* 动态窗口样式 */
.auth-modal-content {
    max-width: 500px;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-message {
    color: #e74c3c;
    padding: 12px;
    background: rgba(231, 76, 60, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
    border-left: 4px solid #e74c3c;
    animation: shake 0.5s ease;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    color: #27ae60;
    padding: 12px;
    background: rgba(39, 174, 96, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
    border-left: 4px solid #27ae60;
    animation: slideIn 0.5s ease;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

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

/* 用户中心样式 */
.dashboard-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 60px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-title {
    background: var(--gradient-button);
    color: var(--text-white);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.dashboard-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 60px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-accent-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    font-weight: 600;
    border: 1px solid rgba(184, 169, 255, 0.3);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2) 0%, rgba(184, 169, 255, 0.2) 50%, rgba(255, 179, 217, 0.2) 100%);
    background-size: 200% 100%;
    transform: translate3d(0, -2px, 0) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.25);
    color: var(--text-accent-blue);
    animation: gradientShift 2s ease infinite;
}

.nav-btn.active {
    background: linear-gradient(135deg, #FFB3D9 0%, #B8A9FF 50%, #FFB3D9 100%);
    background-size: 200% 100%;
    color: var(--text-white);
    box-shadow: 
        0 5px 15px rgba(255, 179, 217, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 20px rgba(184, 169, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: gradientShift 3s ease infinite;
}

.dashboard-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 35px;
    border-radius: 20px;
    min-height: 500px;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 60px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

.list-container {
    margin-top: 20px;
}

.list-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 18px;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.list-item:hover {
    transform: translate3d(5px, 0, 0);
    border-left-color: var(--blue-primary);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.25);
}

.list-item h3 {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.list-item .meta {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.list-item .content {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 贴吧样式 */
.forum-actions {
    margin-bottom: 25px;
}

.posts-container {
    margin-top: 25px;
}

.post-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    color: var(--text-primary);
}

.post-item:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-name {
    font-weight: bold;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-author-title {
    background: var(--gradient-button);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

/* VIP炫彩效果 */
.vip-title {
    position: relative;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: vipShine 3s ease-in-out infinite;
    background-size: 200% 200%;
}

.vip-title.vip-vip1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    background-color: rgba(255, 215, 0, 0.1);
    -webkit-text-fill-color: #FFD700;
}

.vip-title.vip-vip2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 50%, #C0C0C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
    border: 2px solid rgba(192, 192, 192, 0.5);
    background-color: rgba(192, 192, 192, 0.1);
    -webkit-text-fill-color: #C0C0C0;
}

.vip-title.vip-vip3 {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    border: 2px solid rgba(255, 107, 157, 0.5);
    background-color: rgba(255, 107, 157, 0.1);
    -webkit-text-fill-color: #FF6B9D;
}

.vip-title.vip-vip4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.5);
    background-color: rgba(102, 126, 234, 0.1);
    -webkit-text-fill-color: #667eea;
}

.vip-title.vip-vip5 {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 50%, #FF1493 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.6);
    border: 2px solid rgba(255, 20, 147, 0.6);
    background-color: rgba(255, 20, 147, 0.1);
    -webkit-text-fill-color: #FF1493;
}

.vip-title.vip-svip {
    background: linear-gradient(135deg, #4A90E2 0%, #6BB6FF 20%, #9B7FFF 40%, #FF6B9D 60%, #FFB3D9 80%, #4A90E2 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.6), 0 0 60px rgba(255, 107, 157, 0.4);
    animation: svipGradient 3s ease infinite;
}

/* SVIP动态蓝粉渐变效果 */
.svip-gradient {
    background: linear-gradient(135deg, #4A90E2 0%, #6BB6FF 20%, #9B7FFF 40%, #FF6B9D 60%, #FFB3D9 80%, #4A90E2 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: svipGradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.6), 0 0 60px rgba(255, 107, 157, 0.4);
}

@keyframes svipGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes vipShine {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.3);
    }
}

@keyframes svipShine {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    25% {
        background-position: 25% 50%;
        filter: brightness(1.4) drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
        transform: scale(1.02);
    }
    50% {
        background-position: 50% 50%;
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
        transform: scale(1.05);
    }
    75% {
        background-position: 75% 50%;
        filter: brightness(1.4) drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
        transform: scale(1.02);
    }
}

.post-time {
    color: var(--text-muted);
    font-size: 0.9em;
}

.post-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 12px;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 12px;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.post-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 赞助列表样式 */
.sponsors-container {
    margin-top: 25px;
}

.sponsor-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.sponsor-item:hover {
    transform: translate3d(5px, 0, 0);
    border-left-color: var(--pink-primary);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.25);
}

.sponsor-info {
    flex: 1;
}

.sponsor-name {
    font-weight: bold;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.sponsor-amount {
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4em;
    font-weight: bold;
}

.sponsor-message {
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

/* 快速访问卡片样式 */
.quick-access-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 
        0 4px 16px rgba(74, 144, 226, 0.15), 
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue-pink);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: 0;
    will-change: left;
}

.quick-access-card:hover::before {
    left: 0;
}

.quick-access-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

/* 弹窗样式优化 - 已合并到上方 */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 重复的.close样式已合并到上方 */

/* 加载状态和骨架屏 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    border-top-color: var(--blue-primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin: 8px 0;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 输入验证样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-primary);
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--text-accent-pink);
    background: rgba(255, 107, 157, 0.1);
}

.form-group .error-message {
    color: var(--text-accent-pink);
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
    display: block;
}

/* 主菜单样式 - 右上角半圆界面 */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB3D9 0%, #B8A9FF 50%, #FFB3D9 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(255, 179, 217, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 3s ease infinite;
}

.menu-toggle:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 30px rgba(255, 179, 217, 0.6);
    animation: gradientShift 2s ease infinite;
}

.menu-toggle.active {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #FFC5E8 0%, #C8B9FF 50%, #FFC5E8 100%);
    background-size: 200% 100%;
    animation: gradientShift 2s ease infinite;
}

.main-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 10000;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* 使用GPU加速的transform替代width/height动画 */
    transform: scale(0.8) translate(20px, -20px);
    transform-origin: top right;
    /* 优化动画性能 */
    will-change: transform, opacity;
    transition: transform 0.2s ease-out, 
                opacity 0.2s ease-out;
    backface-visibility: hidden;
}

.main-menu.show {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

/* 菜单打开时，背景半透明毛玻璃遮罩 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.15);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 9999;
    pointer-events: none;
    /* 优化动画性能 */
    will-change: opacity;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.menu-open::after {
    opacity: 1;
}

.menu-content {
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.15);
}

.menu-header h2 {
    margin: 0;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6em;
    font-weight: 700;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.15s ease-out, 
                box-shadow 0.15s ease-out,
                background 0.15s ease-out;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95em;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    min-width: 0;
    text-overflow: ellipsis;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-button);
    transform: scaleY(0);
    transition: transform 0.2s ease-out;
    will-change: transform;
    transform-origin: top;
}

.menu-item:hover {
    background: rgba(74, 144, 226, 0.12);
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.12);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-icon {
    font-size: clamp(1em, 2.5vw, 1.3em);
    width: clamp(24px, 5vw, 28px);
    min-width: clamp(24px, 5vw, 28px);
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.menu-item span:not(.menu-icon) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
    transition: transform 0.15s ease-out;
}

/* 响应式设计 */
/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

img[data-src].loaded,
img[data-src]:not([data-src]) {
    opacity: 1;
    animation: none;
    background: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .main-menu {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 380px;
        height: calc(100vh - 20px);
        max-height: 600px;
        border-radius: 15px;
    }
    
    .main-menu.show {
        transform: scale(1) translate(0, 0);
    }
    
    .menu-content {
        width: 100%;
        max-width: none;
        padding: 20px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 15px;
        margin: 15px 0;
        border-radius: 15px;
    }

    .container {
        padding: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dashboard-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
    }

    .quick-access > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .quick-access-card {
        padding: 15px !important;
        font-size: 0.85em;
    }
    
    .quick-access-card > div:first-child {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .quick-access-card h3 {
        font-size: 1em !important;
        margin-bottom: 8px !important;
    }
    
    .quick-access-card p {
        font-size: 0.8em !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    
    .quick-access-card .btn {
        font-size: 0.85em !important;
        padding: 8px 16px !important;
    }
    
    /* 优化移动端按钮和输入框 */
    button, input, textarea, select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 12px;
    }
    
    /* 修复Safari输入框的白色边框 */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    textarea {
        -webkit-appearance: none;
        appearance: none;
        border: 2px solid rgba(74, 144, 226, 0.3);
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* 优化移动端触摸目标大小 */
    .btn, button, .menu-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* 优化移动端表单布局 */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    /* 优化移动端卡片布局 */
    #userInfoCard,
    #editForm {
        padding: 20px;
        border-radius: 15px;
    }
    
    /* 优化移动端头像显示 */
    #userInfoCard > div:first-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    #userInfoCard img,
    #userInfoCard > div:first-child > div:first-child {
        width: 80px !important;
        height: 80px !important;
        font-size: 2em !important;
    }
    
    /* 优化移动端信息网格 */
    #userInfoCard > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    /* 优化移动端按钮组 */
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* 新通知弹窗样式 - 半透明毛玻璃效果 */
.new-notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    width: 90%;
}

.new-notification-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.new-notification-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
}

.new-notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-button);
    z-index: 1;
}

.new-notification-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

.new-notification-icon {
    font-size: 28px;
    margin-right: 12px;
    line-height: 1;
}

.new-notification-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.new-notification-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.new-notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.new-notification-body {
    padding: 25px;
}

.new-notification-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.new-notification-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.new-notification-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.3);
    justify-content: flex-end;
}

.new-notification-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, 
                opacity 0.2s ease,
                background 0.2s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    font-weight: 500;
}

.new-notification-footer .btn-primary {
    background: var(--gradient-button);
    color: white;
}

.new-notification-footer .btn-primary:hover {
    background: var(--gradient-button-hover);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.new-notification-footer .btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.new-notification-footer .btn-outline:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
}

/* 响应式布局 - 确保小屏幕设备完整显示 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.8em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 16px;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }

    section {
        margin-bottom: 30px;
    }

    section h2 {
        font-size: 1.4em;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
        font-size: 0.9em;
    }
    
    .feature-card h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.85em;
        line-height: 1.5;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        margin: 0;
        padding: 12px 24px;
    }

    /* Toast 在小屏幕上的适配 */
    #toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px);
    }

    .toast {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100%;
    }

    .new-notification-modal {
        width: 95%;
        max-width: none;
    }
    
    .new-notification-header {
        padding: 15px 20px;
    }
    
    .new-notification-title {
        font-size: 16px;
    }
    
    .new-notification-body {
        padding: 20px;
    }
    
    .new-notification-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .new-notification-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    main {
        padding: 15px 10px;
        margin: 5px;
        width: calc(100% - 10px);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 15px;
        font-size: 0.85em;
    }
    
    .feature-card h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 0.8em;
        line-height: 1.4;
    }

    section h2 {
        font-size: clamp(1.1em, 3vw, 1.2em);
    }
    
    .intro p {
        font-size: clamp(0.85em, 2.2vw, 0.95em);
    }
    
    .intro p strong {
        font-size: clamp(0.95em, 2.5vw, 1.05em);
    }
}
