/* ==========通用START========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    user-select: none;
    scroll-behavior: smooth;
}

body {
    background-color: aliceblue;
    transition: all 0.3s ease;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-button {
    display: none;
}
/* ==========通用END========== */



/* ==========封面START========== */
#cover {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    z-index: 101;
    overflow: hidden;
    transition: background 0.5s ease;
}

#cover main {
    position: fixed;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100vh;
    z-index: 102;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.cover {
    width: 52vw;
    height: 100vh;
    position: absolute;
    top: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
}

#leftCover {
    left: 0;
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d8e0 100%);
    transform-origin: left center;
}

#rightCover {
    right: 0;
    background: linear-gradient(135deg, #3d4f5f 0%, #2c3e50 100%);
    transform-origin: right center;
}

#topCover {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 103;
    text-align: center;
    cursor: pointer;
    padding: 2rem 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#topCover:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.02);
}

#topCover h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6274 50%, #2c3e50 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

#topCover h3 {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #6c7a89;
    opacity: 0.8;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 封面 - 暗夜模式 */
body[style*="rgb(47, 66, 86)"] #cover,
body[style*="#2f4256"] #cover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}

body[style*="rgb(47, 66, 86)"] #leftCover,
body[style*="#2f4256"] #leftCover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

body[style*="rgb(47, 66, 86)"] #rightCover,
body[style*="#2f4256"] #rightCover {
    background: linear-gradient(135deg, #1a252f 0%, #0d1418 100%);
}

body[style*="rgb(47, 66, 86)"] .cover,
body[style*="#2f4256"] .cover {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

body[style*="rgb(47, 66, 86)"] #topCover,
body[style*="#2f4256"] #topCover {
    background: rgba(0, 0, 0, 0.2);
}

body[style*="rgb(47, 66, 86)"] #topCover:hover,
body[style*="#2f4256"] #topCover:hover {
    background: rgba(0, 0, 0, 0.3);
}

body[style*="rgb(47, 66, 86)"] #topCover h1,
body[style*="#2f4256"] #topCover h1 {
    background: linear-gradient(135deg, #ecf0f1 0%, #a8c6d8 50%, #ecf0f1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[style*="rgb(47, 66, 86)"] #topCover h3,
body[style*="#2f4256"] #topCover h3 {
    color: #a8b5c4;
}

/* ==========封面END========== */



/* ==========顶部导航栏START========== */
#nav {
    position: fixed;
    top: -15vh;
    left: calc(50vw - min(90vw, 1000px) / 2);
    width: min(90vw, 1000px);
    height: 8vh;
    max-height: min(8vh, calc(100vw / 10));
    z-index: 51;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4vh;
    box-shadow: rgba(1, 1, 1, 0.1) .5px .5px 3px 0.5px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

#nav>ul {
    width: min(90vw, 1000px);
    height: 8vh;
    max-height: min(8vh, calc(100vw / 10));
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
}

#nav>ul li {
    width: min(9vw, 90px);
    height: min(8vw, 80px);
    margin: min(0.5vw, 5px) 0;
    font-size: calc(min(8vw, 80px) / 2);
    line-height: min(8vw, 80px);
    align-self: center;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    flex-grow: 1;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

#nav>ul li:hover {
    cursor: pointer;
    transform: scale(.95);
    transition: all 0.3s ease;
}

#nav>ul li:first-of-type {
    flex-grow: 12;
    border: 0px;
    color: rgb(61, 61, 61);
}

#navLang:hover ~ .notLang{
    /* flex-grow: 0;
    opacity: 0;
    width: 0; */
    transition: all 1s linear;
}

/* #navLang:hover{
    flex-grow: 9;
} */
.notLang{
    font-family: "楷体";
}
/* ==========顶部导航栏END========== */



/* ==========主内容框架START========== */
#main {
    opacity: 0;
    margin-top: 12vh;
    min-height: 88vh;
    display: flex;
    transition: all 1s ease;
    flex-direction: column;
    padding: 4vh calc(50vw - min(92vw, 1200px) / 2) 0;
}

#content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.gameType {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 420px;
    max-height: 560px;
}

.gameType:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.gameTypeBGScreen {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    cursor: pointer;
}

.gameType:hover .gameTypeBGScreen {
    background: linear-gradient(145deg, #f8fbff, #eef4fc);
}

.gameTypeMain {
    flex: 1;
    min-height: 55%;
    position: relative;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gameTypeMain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.gameTypeFooter {
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gameTypeTitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.gameTypeExplanation {
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 120px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.gameTypeExplanation::-webkit-scrollbar {
    width: 4px;
}

.gameTypeExplanation::-webkit-scrollbar-track {
    background: transparent;
}

.gameTypeExplanation::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.gameTypeExplanation > li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    list-style: none;
}

.gameTypeExplanation > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

/* 各游戏独特的顶部渐变色 */
#klotski .gameTypeMain {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

#game2048 .gameTypeMain {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
}

#labyrinth .gameTypeMain {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 50%, #34d399 100%);
}

#minesweaping .gameTypeMain {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 50%, #f472b6 100%);
}

/* 深色主题适配 */
body[style*="rgb(47, 66, 86)"] .gameType,
body[style*="#2f4256"] .gameType {
    background: linear-gradient(145deg, #3d5a73, #2a4560);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

body[style*="rgb(47, 66, 86)"] .gameTypeFooter,
body[style*="#2f4256"] .gameTypeFooter {
    background: rgba(255, 255, 255, 0.05);
}

body[style*="rgb(47, 66, 86)"] .gameTypeTitle,
body[style*="#2f4256"] .gameTypeTitle {
    color: #f1f5f9;
}

body[style*="rgb(47, 66, 86)"] .gameTypeExplanation > li,
body[style*="#2f4256"] .gameTypeExplanation > li {
    color: #94a3b8;
}

body[style*="rgb(47, 66, 86)"] .gameType:hover .gameTypeBGScreen,
body[style*="#2f4256"] .gameType:hover .gameTypeBGScreen {
    background: linear-gradient(145deg, #4a6b85, #35546d);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
        max-width: 480px;
    }
    
    .gameType {
        border-radius: 20px;
        min-height: 380px;
        max-height: 520px;
    }
    
    .gameTypeTitle {
        font-size: 1.5rem;
    }
    
    .gameTypeExplanation > li {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    #content {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .gameType {
        min-height: 420px;
        max-height: 560px;
    }
}

@media (min-width: 1201px) {
    #content {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 3rem;
    }
    
    .gameType {
        min-height: 450px;
        max-height: 600px;
    }
}
/* ==========主内容框架END========== */



/* ==========主内容KLOTSKI_START========== */
/* #klotski {

} */
/* ==========主内容KLOTSKI_END========== */



/* ==========页脚START========== */
#footer {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(121, 121, 121, 0.5);
    margin-top: 5vh;
    display: none;
}
/* ==========页脚END========== */


/* ==========遮罩START========== */
#screenBlock {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
#screenBlockMainArea {
    width: 90vw;
    max-width: 600px;
    height: 90vw;
    max-height: 600px;
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 1.5px 1.5px 10px rgba(255, 255, 255, 0.75);
    overflow: hidden;
}
/* ==========遮罩END========== */

/* ==========设置START========== */
#setting{
    display: none;
    opacity: 0;
    position: fixed;
    top: 18vh;
    left: 50vw;
    width: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4vh;
    box-shadow: rgba(1, 1, 1, 0.1) .5px .5px 3px 0.5px;
}
#mainSetting{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}
.settingPhone{
    padding: 1vh;
    aspect-ratio: auto;
    max-height: 88vh;
}

/* 手机端布局：导航在上，内容在下 */
.settingPhone #mainSetting {
    flex-direction: column !important;
    height: 100%;
    max-height: 88vh;
}

.settingPhone #settingNav {
    width: calc(100% - 64px) !important;
    height: auto !important;
    min-height: 50px;
    max-height: 70px;
    margin: 0 32px !important;
    padding: 0.5rem !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex !important;
    overflow-x: hidden;
    overflow-y: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    order: -1;
}

.settingPhone #settingNav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
    width: 100% !important;
    height: auto !important;
    padding: 0;
    margin: 0;
}

.settingPhone #settingNav ul li {
    height: auto !important;
    line-height: normal !important;
    padding: 0.6rem 0.5rem !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 8px;
    white-space: nowrap;
    flex: 1 !important;
    text-align: center;
    font-size: 1.275rem !important;
    margin: 0 !important;
}

.settingPhone #settingMain {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(88vh - 60px);
    -webkit-overflow-scrolling: touch;
}

.settingComputer{
    aspect-ratio: 16 / 9;
    /* width: min(90vw, 600px); */
}
.settingComputer #settingNav{
    padding: 2vh;
    height: 100%;
    width: 20%;
    overflow: hidden;
    box-sizing: border-box;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.settingComputer #settingMain{
    height: 100%;
    width: 80%;
    /* float: left; */
}
.settingComputer #settingNav ul{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: left;
}
.settingComputer #settingNav ul li{
    height: 8vh;
    line-height: 8vh;
    font-size: 150%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    margin: 0.5vh 0;
    position: relative;
    overflow: hidden;
}

.settingComputer #settingNav ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.settingComputer #settingNav ul li:hover::before {
    left: 100%;
}

.settingClass:hover {
    background-color: rgba(135, 206, 250, 0.1);
    transform: translateX(5px);
    color: #4a90e2;
    box-shadow: 0 2px 8px rgba(135, 206, 250, 0.3);
}

/* 侧边导航活跃状态 */
.settingClass.active {
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.15), rgba(100, 149, 237, 0.1));
    color: #2c5282;
    font-weight: bold;
    border-left: 4px solid #4a90e2;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.4);
}

/* ==========设置-账号START========== */
#accountPart {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    gap: 2rem;
    overflow-y: auto;
}

/* 用户资料卡片 */
.user-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

#headSculpture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientRotate 6s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-profile-card:hover .avatar-ring {
    opacity: 1;
}

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

.profile-info {
    flex: 1;
}

.profile-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-desc {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    line-height: 1.5;
}

/* 账户操作区域 */
.account-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 欢迎屏幕 */
.welcome-screen {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: fadeIn 0.6s ease;
}

.welcome-content {
    max-width: 400px;
    margin: 0 auto;
}

.welcome-title {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    margin: 0 0 3rem 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 按钮样式 */
.primary-btn, .secondary-btn, .submit-btn, .cancel-btn, .dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 按钮样式 */
.primary-btn, .secondary-btn, .submit-btn, .cancel-btn, .dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 按钮点击动画 */
.primary-btn:active,
.secondary-btn:active,
.submit-btn:active,
.cancel-btn:active,
.dashboard-btn:active {
    transform: translateY(0) scale(0.98);
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.secondary-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    width: 100%;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.cancel-btn {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
    width: 100%;
}

.cancel-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* 表单样式 */
.accountShowInfo {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.4s ease;
}

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

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

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.form-header p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 用户仪表盘 */
.user-dashboard {
    display: none;
    background: linear-gradient(135deg, rgba(67, 206, 162, 0.1) 0%, rgba(24, 90, 157, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(67, 206, 162, 0.2);
    animation: fadeIn 0.6s ease;
}

.dashboard-header {
    margin-bottom: 2.5rem;
}

.greeting-title {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.user-highlight {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-subtitle {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.logout-btn {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d4572a;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 87, 42, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #c53030;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.3);
}

.btn-icon {
    font-style: normal;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon,
.secondary-btn:hover .btn-icon,
.submit-btn:hover .btn-icon {
    transform: translateX(2px);
}

/* 表单输入框增强动画 */
.form-group:hover .form-input:not(:focus) {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* 加载状态动画 */
@keyframes buttonLoading {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.submit-btn:disabled {
    background: linear-gradient(270deg, #667eea, #764ba2, #667eea);
    background-size: 200% 200%;
    animation: buttonLoading 2s ease-in-out infinite;
    cursor: not-allowed;
}

/* 卡片悬浮增强 */
.user-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.2);
}

/* 头像悬浮效果 */
.profile-avatar:hover #headSculpture {
    transform: scale(1.05);
}

/* 表单标签动画 */
.form-group label {
    transition: all 0.3s ease;
}

.form-group:hover label {
    color: #667eea;
    transform: translateY(-1px);
}

/* 按钮涟漪效果 */
.primary-btn:before,
.submit-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.primary-btn:hover:before,
.submit-btn:hover:before {
    width: 300px;
    height: 300px;
}

/* 增强动画时间曲线 */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 表单验证状态 */
.form-input.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
    animation: shake 0.4s ease-in-out;
}

.form-input.success {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.05);
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(-2px);
    }
    10%, 30%, 50%, 70% {
        transform: translateX(2px);
    }
    90%, 100% {
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    #accountPart {
        padding: 1rem;
        gap: 1rem;
    }
    
    .user-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .welcome-screen {
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .accountShowInfo {
        padding: 2rem 1.5rem;
    }
}

/* ==========设置-账号END========== */

/* ==========设置-通用内容样式START========== */
.settingContent {
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.settingSection {
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.settingSection h2 {
    margin: 0 0 2rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.settingItem {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.settingItem:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 左右布局容器 */
.settingRow {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.settingRow .settingItem {
    flex: 1;
    margin-bottom: 0;
    height: fit-content;
}

.settingItem h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settingItem h3:before {
    content: '●';
    color: #667eea;
    font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

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

/* 主题设置样式 */
.themeOptions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.themeOption {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.themeOption:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.themeOption:hover:before {
    left: 100%;
}

.themeOption:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.themeOption.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.themeOption.active:after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.themePreview {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.themeOption:hover .themePreview {
    transform: scale(1.1);
}

.light-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-preview {
    background: linear-gradient(135deg, #343a40 0%, #495057 50%, #6c757d 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.themeOption span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ========================================
   炫酷光标设置样式 - 仅PC端可见
   ======================================== */

/* 仅PC端显示 */
.cursorSettingBlock.pc-only {
    display: block;
}

@media (max-width: 1024px), (hover: none) {
    .cursorSettingBlock.pc-only {
        display: none !important;
    }
}

.cursor-setting-desc {
    color: rgba(102, 126, 234, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cursorOptions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cursorOptionItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cursorOptionItem:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.cursor-option-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cursor-option-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 10px;
}

.cursor-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cursor-option-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.cursor-option-subtitle {
    font-size: 0.8rem;
    color: rgba(100, 100, 100, 0.8);
}

/* Toggle开关样式 */
.cursor-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.cursor-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cursor-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(150, 150, 150, 0.4);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cursor-toggle input:checked + .cursor-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.cursor-toggle input:checked + .cursor-toggle-slider:before {
    transform: translateX(24px);
}

.cursor-toggle input:disabled + .cursor-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 光标预览区域 */
.cursor-preview-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.cursor-preview-box {
    width: 100%;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(50, 50, 80, 0.9));
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cursor-preview-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cursor-preview-area {
    height: 120px;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1), transparent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 预览元素样式 */
.preview-cursor-core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    box-shadow: 
        0 0 10px rgba(167, 139, 250, 0.8),
        0 0 20px rgba(129, 140, 248, 0.5);
    position: absolute;
    z-index: 3;
    animation: previewCorePulse 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.preview-cursor-core.hidden {
    opacity: 0;
}

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

.preview-cursor-ring {
    width: 44px;
    height: 44px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: 
        linear-gradient(rgba(30, 30, 50, 1), rgba(30, 30, 50, 1)) padding-box,
        linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c) border-box;
    position: absolute;
    z-index: 2;
    animation: previewRingRotate 3s linear infinite;
    transition: opacity 0.3s ease;
}

.preview-cursor-ring.hidden {
    opacity: 0;
}

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

.preview-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.preview-particles.hidden {
    opacity: 0;
}

.preview-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: previewParticleFloat 2s ease-in-out infinite;
}

@keyframes previewParticleFloat {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* 深色主题适配 */
body[style*="rgb(47, 66, 86)"] .cursor-option-title,
body[style*="#2f4256"] .cursor-option-title {
    color: #e9ecef;
}

body[style*="rgb(47, 66, 86)"] .cursor-option-subtitle,
body[style*="#2f4256"] .cursor-option-subtitle {
    color: rgba(200, 200, 200, 0.7);
}

body[style*="rgb(47, 66, 86)"] .cursorOptionItem,
body[style*="#2f4256"] .cursorOptionItem {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .cursorOptionItem:hover,
body[style*="#2f4256"] .cursorOptionItem:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

body[style*="rgb(47, 66, 86)"] .cursor-setting-desc,
body[style*="#2f4256"] .cursor-setting-desc {
    color: rgba(167, 139, 250, 0.9);
}

/* 语言设置样式 */
.languageOptions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.languageOption {
    padding: 1.5rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.languageOption:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.languageOption:not(.disabled):hover:before {
    left: 100%;
}

.languageOption:not(.disabled):hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.languageOption.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.languageOption.active:after {
    content: '●';
    color: #667eea;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.languageOption.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.05);
    position: relative;
}

.languageOption.disabled:after {
    content: '🔒';
    color: #999;
    font-size: 1.2rem;
}

.languageOption span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.workInProgress {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.workInProgress:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255, 193, 7, 0.1) 25%, 
        rgba(255, 193, 7, 0.1) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(255, 193, 7, 0.1) 75%);
    background-size: 20px 20px;
    animation: construction 2s linear infinite;
}

@keyframes construction {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.workInProgress p {
    margin: 0;
    color: #f57c00;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* 数据管理样式 */
.dataActions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.dataButton {
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #333;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.dataButton:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.dataButton:hover:before {
    left: 100%;
}

.dataButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.dataButton.danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 78, 80, 0.1) 100%);
    color: #d32f2f;
}

.dataButton.danger:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 78, 80, 0.2) 100%);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
}

.storageInfo {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(79, 172, 254, 0.2);
    backdrop-filter: blur(10px);
}

.storageInfo p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storageInfo span {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 关于信息样式 */
.aboutInfo {
    background: linear-gradient(135deg, rgba(67, 206, 162, 0.1) 0%, rgba(24, 90, 157, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(67, 206, 162, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.aboutInfo p {
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(67, 206, 162, 0.1);
}

.aboutInfo p:last-child {
    border-bottom: none;
}

.aboutInfo p:first-child {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settingContent {
        padding: 1rem;
    }
    
    .settingSection {
        max-width: 100%;
    }
    
    .settingSection h2 {
        font-size: 2rem;
    }
    
    .settingItem {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .settingRow {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .settingRow .settingItem {
        margin-bottom: 0;
    }
    
    .themeOptions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .languageOptions,
    .dataActions {
        max-width: 100%;
    }
    
    .themeOption {
        min-width: auto;
    }
}

/* 主页导航与设置 - 深浅主题适配 & 移动端兼容调整 */
:root {
    --nav-light-bg: rgba(255,255,255,0.9);
    --nav-dark-bg: rgba(18,24,30,0.88);
    --nav-light-color: #1a1a2e;
    --nav-dark-color: #e6eef8;
    --setting-light-bg: rgba(255,255,255,0.8);
    --setting-dark-bg: rgba(18,24,30,0.9);
}

/* 默认（亮色）下的样式 */
#nav {
    background-color: var(--nav-light-bg);
    color: var(--nav-light-color);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#setting {
    background-color: var(--setting-light-bg);
    color: var(--nav-light-color);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}


/* 现有项目中可能通过 body style 控制深色主题，兼容那种写法 */
body[style*="rgb(47, 66, 86)"],
body[style*="#2f4256"] {
    --nav-bg: var(--nav-dark-bg);
    --nav-color: var(--nav-dark-color);
}

body[style*="rgb(47, 66, 86)"] #nav,
body[style*="#2f4256"] #nav {
    background-color: var(--nav-dark-bg);
    color: var(--nav-dark-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

body[style*="rgb(47, 66, 86)"] #nav>ul li,
body[style*="#2f4256"] #nav>ul li {
    border-left-color: rgba(255, 255, 255, 0.08);
    color: var(--nav-dark-color);
}

body[style*="rgb(47, 66, 86)"] #nav>ul li:first-of-type,
body[style*="#2f4256"] #nav>ul li:first-of-type {
    color: #f0f4f8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body[style*="rgb(47, 66, 86)"] #setting,
body[style*="#2f4256"] #setting {
    background-color: var(--setting-dark-bg);
    color: var(--nav-dark-color);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* 暗黑模式下设置面板内部元素颜色 */
body[style*="rgb(47, 66, 86)"] .settingItem,
body[style*="#2f4256"] .settingItem {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .settingItem h3,
body[style*="#2f4256"] .settingItem h3 {
    color: #e6eef8;
}

body[style*="rgb(47, 66, 86)"] .settingSection h2,
body[style*="#2f4256"] .settingSection h2 {
    background: linear-gradient(135deg, #8fa3ea 0%, #a47bc2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom-color: rgba(143, 163, 234, 0.3);
}

body[style*="rgb(47, 66, 86)"] .themeOption,
body[style*="#2f4256"] .themeOption {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body[style*="rgb(47, 66, 86)"] .themeOption span,
body[style*="#2f4256"] .themeOption span {
    color: #e6eef8;
}

body[style*="rgb(47, 66, 86)"] .languageOption,
body[style*="#2f4256"] .languageOption {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body[style*="rgb(47, 66, 86)"] .languageOption span,
body[style*="#2f4256"] .languageOption span {
    color: #e6eef8;
}

body[style*="rgb(47, 66, 86)"] #settingNav,
body[style*="#2f4256"] #settingNav {
    background: rgba(0, 0, 0, 0.2);
    border-left-color: rgba(255, 255, 255, 0.08);
}

body[style*="rgb(47, 66, 86)"] #settingNav ul li,
body[style*="#2f4256"] #settingNav ul li {
    color: rgba(230, 238, 248, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body[style*="rgb(47, 66, 86)"] #settingNav ul li:hover,
body[style*="#2f4256"] #settingNav ul li:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #e6eef8;
}

body[style*="rgb(47, 66, 86)"] #settingNav ul li.active,
body[style*="#2f4256"] #settingNav ul li.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, transparent 100%);
    color: #e6eef8;
    border-left-color: #667eea;
}

/* 暗黑模式下手机端导航样式 */
body[style*="rgb(47, 66, 86)"] .settingPhone #settingNav,
body[style*="#2f4256"] .settingPhone #settingNav {
    background: rgba(18, 24, 30, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    margin: 0 32px !important;
    width: calc(100% - 64px) !important;
}

body[style*="rgb(47, 66, 86)"] .settingPhone #settingNav ul,
body[style*="#2f4256"] .settingPhone #settingNav ul {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
}

body[style*="rgb(47, 66, 86)"] .settingPhone #settingNav ul li,
body[style*="#2f4256"] .settingPhone #settingNav ul li {
    color: rgba(230, 238, 248, 0.8);
    flex: 1 !important;
    text-align: center;
    font-size: 1.275rem !important;
}

body[style*="rgb(47, 66, 86)"] .settingPhone #settingNav ul li.active,
body[style*="#2f4256"] .settingPhone #settingNav ul li.active {
    background: rgba(102, 126, 234, 0.25);
    color: #e6eef8;
}

/* 暗黑模式下设置内容区域样式 */
body[style*="rgb(47, 66, 86)"] .settingContent,
body[style*="#2f4256"] .settingContent {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

body[style*="rgb(47, 66, 86)"] .settingClass:hover,
body[style*="#2f4256"] .settingClass:hover {
    background-color: rgba(102, 126, 234, 0.15);
    color: #8fa3ea;
}

body[style*="rgb(47, 66, 86)"] .settingClass.active,
body[style*="#2f4256"] .settingClass.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
    color: #c4d4f8;
}

/* 暗黑模式下进度面板样式 */
body[style*="rgb(47, 66, 86)"] .progress-profile-card,
body[style*="#2f4256"] .progress-profile-card {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(40, 50, 70, 0.9) 30%,
        rgba(40, 50, 70, 0.95) 70%,
        rgba(102, 126, 234, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .filter-controls,
body[style*="#2f4256"] .filter-controls {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(40, 50, 70, 0.95) 30%,
        rgba(40, 50, 70, 0.95) 70%,
        rgba(102, 126, 234, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .filter-header h3,
body[style*="#2f4256"] .filter-header h3 {
    color: #c4d4f8;
}

body[style*="rgb(47, 66, 86)"] .filter-header p,
body[style*="#2f4256"] .filter-header p {
    color: rgba(230, 238, 248, 0.7);
}

body[style*="rgb(47, 66, 86)"] .filter-group label,
body[style*="#2f4256"] .filter-group label {
    color: #c4d4f8;
}

body[style*="rgb(47, 66, 86)"] .stat-card,
body[style*="#2f4256"] .stat-card {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.12) 0%, 
        rgba(40, 50, 70, 0.9) 30%,
        rgba(40, 50, 70, 0.9) 70%,
        rgba(102, 126, 234, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .stat-header h4,
body[style*="#2f4256"] .stat-header h4 {
    color: #c4d4f8;
}

body[style*="rgb(47, 66, 86)"] .stat-content p,
body[style*="#2f4256"] .stat-content p {
    color: rgba(230, 238, 248, 0.7);
}

body[style*="rgb(47, 66, 86)"] .table-wrapper,
body[style*="#2f4256"] .table-wrapper {
    background: rgba(40, 50, 70, 0.8);
}

body[style*="rgb(47, 66, 86)"] .progress-table th,
body[style*="#2f4256"] .progress-table th {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.2) 0%, 
        rgba(40, 50, 70, 0.95) 100%);
    color: #c4d4f8;
}

body[style*="rgb(47, 66, 86)"] .progress-table td,
body[style*="#2f4256"] .progress-table td {
    color: rgba(230, 238, 248, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body[style*="rgb(47, 66, 86)"] .progress-table tr:hover,
body[style*="#2f4256"] .progress-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

body[style*="rgb(47, 66, 86)"] .table-controls span,
body[style*="#2f4256"] .table-controls span {
    color: rgba(230, 238, 248, 0.7);
}

body[style*="rgb(47, 66, 86)"] .pagination-info,
body[style*="#2f4256"] .pagination-info {
    color: rgba(230, 238, 248, 0.7);
}

body[style*="rgb(47, 66, 86)"] .page-btn,
body[style*="#2f4256"] .page-btn {
    background: rgba(40, 50, 70, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    color: #c4d4f8;
}

body[style*="rgb(47, 66, 86)"] .no-data,
body[style*="#2f4256"] .no-data {
    color: rgba(230, 238, 248, 0.5);
}

/* 暗黑模式下 greeting-title 样式 */
body[style*="rgb(47, 66, 86)"] .greeting-title,
body[style*="#2f4256"] .greeting-title {
    color: #e6eef8;
}

body[style*="rgb(47, 66, 86)"] .greeting-subtitle,
body[style*="#2f4256"] .greeting-subtitle {
    color: rgba(230, 238, 248, 0.7);
}

/* 暗黑模式下 progress-table-container 样式 */
body[style*="rgb(47, 66, 86)"] .progress-table-container,
body[style*="#2f4256"] .progress-table-container {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(40, 50, 70, 0.95) 30%,
        rgba(40, 50, 70, 0.95) 70%,
        rgba(102, 126, 234, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[style*="rgb(47, 66, 86)"] .table-header h4,
body[style*="#2f4256"] .table-header h4 {
    color: #c4d4f8;
}

/* 暗黑模式下 dataButton (exportData/importData) 样式 */
body[style*="rgb(47, 66, 86)"] .dataButton,
body[style*="#2f4256"] .dataButton {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #e6eef8;
    border-color: rgba(102, 126, 234, 0.3);
}

body[style*="rgb(47, 66, 86)"] .dataButton:hover,
body[style*="#2f4256"] .dataButton:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

body[style*="rgb(47, 66, 86)"] .dataButton.danger,
body[style*="#2f4256"] .dataButton.danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 78, 80, 0.15) 100%);
    color: #ff8a8a;
    border-color: rgba(255, 107, 107, 0.3);
}

body[style*="rgb(47, 66, 86)"] .dataButton.danger:hover,
body[style*="#2f4256"] .dataButton.danger:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(255, 78, 80, 0.25) 100%);
    border-color: rgba(255, 107, 107, 0.5);
}

/* 暗黑模式下 storageInfo 样式 */
body[style*="rgb(47, 66, 86)"] .storageInfo,
body[style*="#2f4256"] .storageInfo {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-color: rgba(79, 172, 254, 0.25);
}

body[style*="rgb(47, 66, 86)"] .storageInfo p,
body[style*="#2f4256"] .storageInfo p {
    color: #e6eef8;
}

/* 暗黑模式下 aboutInfo 样式 */
body[style*="rgb(47, 66, 86)"] .aboutInfo,
body[style*="#2f4256"] .aboutInfo {
    background: linear-gradient(135deg, rgba(67, 206, 162, 0.15) 0%, rgba(24, 90, 157, 0.15) 100%);
    border-color: rgba(67, 206, 162, 0.25);
}

body[style*="rgb(47, 66, 86)"] .aboutInfo p,
body[style*="#2f4256"] .aboutInfo p {
    color: #e6eef8;
    border-bottom-color: rgba(67, 206, 162, 0.15);
}

/* 移动端：让设置面板可用且友好 */
@media (max-width: 768px) {
    /* 将 #setting 移动端布局优化（不改变display状态，由JS控制） */
    #setting.settingPhone {
        position: fixed;
        top: 8vh;
        left: 50%;
        transform: translateX(-50%);
        width: min(96vw, 560px);
        max-width: 96vw;
        max-height: 88vh;
        overflow: hidden;
        padding: 0;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        z-index: 999;
    }

    /* 竖向布局，导航在上，内容在下 */
    #mainSetting {
        flex-direction: column !important;
        gap: 0;
        height: 100%;
        max-height: 88vh;
        width: 100%;
    }

    .settingPhone,
    .settingComputer {
        width: 100% !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }

    /* 导航栏固定在顶部 - 使用更通用的选择器 */
    #settingNav {
        width: 100% !important;
        height: auto !important;
        min-height: 50px;
        padding: 0.5rem !important;
        border-left: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: flex !important;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        box-sizing: border-box;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-overflow-scrolling: touch;
        order: -1; /* 确保导航在上方 */
    }

    /* 内容区域可滚动 */
    #settingMain {
        width: 100% !important;
        padding: 0 !important;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(88vh - 60px);
        -webkit-overflow-scrolling: touch;
    }

    /* 导航项在移动端横向展示，便于切换 */
    #settingNav ul {
        flex-direction: row !important;
        gap: 0.4rem;
        width: max-content;
        padding: 0 0.25rem;
        height: auto !important;
    }

    #settingNav ul li {
        height: auto !important;
        line-height: normal !important;
        padding: 0.5rem 0.8rem !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-radius: 8px;
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 0.85rem !important;
        margin: 0 !important;
    }

    /* 设置内容区域移动端优化 - 固定宽度 */
    .settingContent {
        padding: 0.8rem;
        height: auto;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .settingSection {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .settingSection h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .settingItem {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .settingItem h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .settingRow {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .settingRow .settingItem {
        margin-bottom: 0;
        width: 100%;
    }

    /* 固定各部分宽度 */
    #accountPart,
    #progressPart,
    #themePart,
    #languagePart,
    #dataPart,
    #etcPart {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 账户部分移动端优化 */
    #accountPart {
        padding: 0.8rem;
        gap: 1rem;
    }

    .user-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }

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

    .profile-avatar img {
        width: 60px;
        height: 60px;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    .profile-desc {
        font-size: 0.85rem;
    }

    /* 欢迎界面移动端 */
    .welcome-screen {
        padding: 1.5rem 1rem;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .action-buttons button {
        width: 100%;
        padding: 0.8rem 1rem;
    }

    /* 表单移动端优化 */
    .accountShowInfo {
        padding: 1rem;
    }

    .form-header h3 {
        font-size: 1.3rem;
    }

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

    .form-input {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .form-actions button {
        width: 100%;
    }

    /* 用户仪表盘移动端 */
    .user-dashboard {
        padding: 1rem;
    }

    .dashboard-header {
        margin-bottom: 1rem;
    }

    .greeting-title {
        font-size: 1.3rem;
    }

    .greeting-subtitle {
        font-size: 0.9rem;
    }

    .dashboard-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .dashboard-btn {
        width: 100%;
        padding: 0.8rem;
    }

    /* 进度部分移动端优化 */
    #progressPart {
        padding: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }

    .progress-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.8rem;
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .progress-actions {
        width: 100%;
        box-sizing: border-box;
    }

    .progress-avatar {
        width: 50px;
        height: 50px;
    }

    .progress-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .progress-info .profile-name {
        font-size: 1.1rem;
    }

    .progress-info .profile-desc {
        font-size: 0.8rem;
    }

    /* 筛选控件移动端 */
    .filter-controls {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-header h3 {
        font-size: 1.1rem;
    }

    .filter-header p {
        font-size: 0.8rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
    }

    .filter-group label {
        font-size: 0.85rem;
    }

    .filter-group select,
    .filter-group .form-input {
        padding: 0.6rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .filter-actions button {
        width: 100%;
        padding: 0.7rem;
    }

    /* 游戏统计卡片移动端 */
    .game-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
    }

    .stat-card {
        padding: 1rem;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-header h4 {
        font-size: 1rem;
    }

    .stat-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .stat-content p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    /* 进度表格容器移动端 */
    .progress-table-container {
        padding: 0.8rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .table-header h4 {
        font-size: 1rem;
    }

    .table-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .table-controls span {
        font-size: 0.8rem;
    }

    .table-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .table-wrapper {
        border-radius: 8px;
        margin: 0 -0.5rem;
    }

    .progress-table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    .progress-table th,
    .progress-table td {
        padding: 0.6rem 0.4rem;
    }

    .table-pagination {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    .pagination-controls {
        gap: 0.5rem;
    }

    .page-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* 主题选项移动端 */
    .themeOptions {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
    }

    .themeOption {
        padding: 1rem;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
    }

    .themePreview {
        width: 60px;
        height: 40px;
        margin-bottom: 0.6rem;
    }

    .themeOption span {
        font-size: 0.85rem;
    }

    /* 语言选项移动端 */
    .languageOptions {
        gap: 0.6rem;
    }

    .languageOption {
        padding: 1rem;
        border-radius: 10px;
    }

    .languageOption span {
        font-size: 0.95rem;
    }

    /* 数据管理移动端 */
    .dataActions {
        gap: 0.6rem;
    }

    .dataButton {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    /* 存储信息移动端 */
    .storageInfo {
        padding: 1rem;
        border-radius: 10px;
    }

    .storageInfo p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    /* 关于信息移动端 */
    .aboutInfo {
        padding: 1rem;
        border-radius: 10px;
    }

    .aboutInfo p {
        font-size: 0.9rem;
        margin: 0.6rem 0;
        padding: 0.3rem 0;
    }

    .aboutInfo p:first-child {
        font-size: 1.1rem;
    }

    /* 开发中提示移动端 */
    .workInProgress {
        padding: 1rem;
    }

    .workInProgress p {
        font-size: 0.9rem;
    }

    /* 移动端暗黑模式适配 */
    body[style*="rgb(47, 66, 86)"] #settingNav,
    body[style*="#2f4256"] #settingNav {
        background: rgba(18, 24, 30, 0.95) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    body[style*="rgb(47, 66, 86)"] #settingNav ul li,
    body[style*="#2f4256"] #settingNav ul li {
        color: rgba(230, 238, 248, 0.8);
    }

    body[style*="rgb(47, 66, 86)"] #settingNav ul li.active,
    body[style*="#2f4256"] #settingNav ul li.active {
        background: rgba(102, 126, 234, 0.25);
        color: #e6eef8;
    }
}
/* ==========设置-通用内容样式END========== */

/* ==========KEYFRAMES_START========== */
@keyframes navShow {
    0% {top: -10vh;}
    60% {top: 6vh;}
    100% {top: 5vh;}
}

@keyframes navHide {
    0% {top: 5vh;}
    40% {top: 6vh;}
    100% {top: -10vh;}
}
@keyframes showFadeShow {
    0% {opacity: 1;}
    35% {opacity: 0.5;}
    50% {opacity: 0;}
    65% {opacity: 0.5;}
    100% {opacity: 1;}
}
/* ==========KEYFRAMES_END========== */

/* ==========进度页面样式START========== */

/* Progress部分需要更宽的容器以显示表格 */
#progressPart {
    max-width: 100%;
}

#progressPart .settingSection {
    max-width: 100%;
    width: 100%;
}

.progress-profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.15) 0%, 
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.95) 70%,
        rgba(120, 119, 198, 0.15) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.progress-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-controls {
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.1) 0%, 
        rgba(255, 255, 255, 0.95) 30%,
        rgba(255, 255, 255, 0.95) 70%,
        rgba(120, 119, 198, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-header h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-header p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.12) 0%, 
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.9) 70%,
        rgba(120, 119, 198, 0.12) 100%);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
}

.stat-header h4 {
    color: #4a5568;
    font-weight: 600;
}

.stat-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-content p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.stat-content span {
    font-weight: 600;
    color: #4a5568;
}

.progress-table-container {
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.08) 0%, 
        rgba(255, 255, 255, 0.95) 30%,
        rgba(255, 255, 255, 0.95) 70%,
        rgba(120, 119, 198, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h4 {
    color: #4a5568;
    font-weight: 600;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-controls span {
    color: #718096;
    font-size: 0.9rem;
}

.table-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.table-btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.table-btn.danger:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    max-width: 100%;
    /* 美化滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 119, 198, 0.5) rgba(120, 119, 198, 0.1);
}

/* Webkit 浏览器滚动条样式 */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(120, 119, 198, 0.1);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.progress-table {
    width: 100%;
    min-width: 800px; /* 确保表格有最小宽度以触发横向滚动 */
    border-collapse: collapse;
    font-size: 0.9rem;
}

.progress-table th,
.progress-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(120, 119, 198, 0.1);
    white-space: nowrap; /* 防止文字换行 */
}

.progress-table th {
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.15) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-table tr:hover {
    background: rgba(120, 119, 198, 0.05);
}

.progress-table td {
    color: #718096;
}

.no-data-row {
    text-align: center;
}

.no-data {
    padding: 3rem 1rem;
    color: #a0aec0;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-data p {
    margin-bottom: 0.5rem;
}

.sub-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #718096;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#currentPage {
    font-weight: 600;
    color: #4a5568;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-controls {
        justify-content: center;
    }
    
    .table-pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-table th,
    .progress-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* 游戏结果状态颜色 */
.result-won {
    color: #48bb78;
    font-weight: 600;
}

.result-lost {
    color: #f56565;
    font-weight: 600;
}

.result-ongoing {
    color: #ed8936;
    font-weight: 600;
}

/* 难度等级颜色 */
.difficulty-easy {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty-medium {
    color: #ed8936;
    background: rgba(237, 137, 54, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty-hard {
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 数据行动画 */
.progress-table tbody tr {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========进度页面样式END========== */

/* ==========彩蛋功能样式START========== */
.easter-egg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 0;
}

.easter-egg-modal.show {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.95) 0%, 
        rgba(255, 255, 255, 0.95) 50%,
        rgba(120, 119, 198, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: calc(100vh - 4rem);
    min-height: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: contentSlideIn 0.6s ease;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    margin: auto 0;
    flex-shrink: 0;
}

.easter-egg-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.easter-egg-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.easter-egg-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f093fb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.easter-egg-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.easter-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.easter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.easter-option:hover::before {
    left: 100%;
}

.easter-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 彩虹雨效果 */
.rainbow-drop {
    position: fixed;
    width: 4px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 999;
    animation: rainDrop linear infinite;
}

@keyframes rainDrop {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 名言显示 */
.quote-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.quote-author {
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

/* 隐藏小游戏区域 */
.mini-game-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.snake-game {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 1px;
    background: #333;
    border-radius: 8px;
    width: 300px;
    height: 200px;
    margin: 0 auto;
}

.snake-cell {
    background: #555;
    transition: all 0.1s ease;
}

.snake-cell.snake {
    background: #4ecdc4;
    border-radius: 2px;
}

.snake-cell.food {
    background: #ff6b6b;
    border-radius: 50%;
}

.game-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.game-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 动态背景效果 */
.dynamic-bg-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 998;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* 响应式动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

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

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

/* 特殊效果 */
.shake-effect {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .easter-egg-modal {
        padding: 1rem 0;
    }
    
    .easter-egg-content {
        padding: 1.5rem;
        margin: 0;
        width: 95%;
        max-height: calc(100vh - 2rem);
        border-radius: 16px;
    }
    
    .easter-egg-title {
        font-size: 1.5rem;
    }
    
    .easter-egg-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .snake-game {
        width: 250px;
        height: 150px;
    }
}


