* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    align-items: flex-start !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #dceeff 100%);
    min-height: 100vh;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.page-transition-out {
    opacity: 0;
    transform: scale(0.95);
}

body.page-transition-in {
    opacity: 0;
    transform: scale(1.05);
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        height: 100vh;
    }
    
    .settings-sidebar {
        width: 80%;
        max-width: 280px;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .settings-sidebar.show {
        left: 0;
    }
    
    .settings-main {
        flex: 1;
        width: 100%;
        overflow-y: auto;
    }
    
    .settings-header {
        padding: 20px 25px;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .header-left p {
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 5px;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .achievement-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .settings-sidebar {
        width: 90%;
    }
    
    .settings-header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .header-left p {
        font-size: 12px;
    }
    
    .settings-content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .achievement-item {
        padding: 12px;
    }
}

.settings-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.settings-sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
    position: relative;
}

.sidebar-uid {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-username {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-version {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.menu-group {
    margin-bottom: 20px;
}

.menu-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    margin-bottom: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(212, 93, 121, 0.1);
    border-left-color: #d45d79;
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(212, 93, 121, 0.1) 0%, rgba(230, 126, 138, 0.1) 100%);
    border-left-color: #d45d79;
    color: #d45d79;
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-size: 15px;
}

.menu-item.danger {
    color: #e74c3c;
}

.menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

.settings-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-header {
    padding: 30px 40px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.settings-header p {
    font-size: 14px;
    color: #666;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
}

.settings-section {
    display: none;
}

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

.section-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-card.danger {
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.card-header .card-title {
    flex: 1;
}

.card-header .game-selector-btn {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.card-icon.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.card-title h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.card-title p {
    font-size: 13px;
    color: #666;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input-group {
    display: flex;
    gap: 10px;
}

.form-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(212, 93, 121, 0.3);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input-group input:focus {
    outline: none;
    border-color: #d45d79;
    box-shadow: 0 0 0 2px rgba(212, 93, 121, 0.2);
}

.form-input-group input[readonly] {
    background: rgba(0, 0, 0, 0.03);
    cursor: not-allowed;
}

.edit-btn,
.copy-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 93, 121, 0.3);
}

.action-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 93, 121, 0.3);
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.action-btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    color: #4CAF50;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.verification-status i {
    font-size: 14px;
}

.action-btn.danger:hover {
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(212, 93, 121, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #d45d79;
    box-shadow: 0 0 0 2px rgba(212, 93, 121, 0.2);
}

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.avatar-selection {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 自定义头像悬浮卡片样式 */
.avatar-option.custom-avatar {
    position: relative;
    cursor: pointer;
}

.avatar-hover-card {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 200px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.avatar-hover-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.avatar-option.custom-avatar:hover .avatar-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.avatar-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-card-header input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.avatar-card-info {
    font-size: 12px;
    color: #666;
}

.avatar-card-actions {
    display: flex;
    justify-content: flex-end;
}

.delete-avatar-btn {
    padding: 6px 12px;
    background: #d45d79;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delete-avatar-btn:hover {
    background: #c04b65;
    transform: translateY(-1px);
}

/* 头像编辑窗口样式 */
.avatar-editor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.avatar-editor-container.show {
    opacity: 1;
    visibility: visible;
}

.avatar-editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.avatar-editor-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s ease;
}

.avatar-editor-container.show .avatar-editor-content {
    transform: translate(-50%, -50%) scale(1);
}

.avatar-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.avatar-editor-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-editor-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-editor-btn:hover {
    background: #eee;
    color: #333;
}

.avatar-editor-body {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.editor-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    flex: 1;
}

.preview-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}

#editorImage {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.crop-overlay::before {
    content: '';
    width: 80%;
    height: 80%;
    background: transparent;
    border: 2px dashed #fff;
}

.editor-tools {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.tool-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.tool-section input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.tool-section input[type="text"]:focus {
    outline: none;
    border-color: #d45d79;
}

.image-info {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.crop-tools, .filter-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crop-btn, .filter-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.crop-btn:hover, .filter-btn:hover {
    border-color: #d45d79;
    color: #d45d79;
}

.crop-btn.active, .filter-btn.active {
    background: #d45d79;
    color: white;
    border-color: #d45d79;
}

.adjust-tools {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.adjust-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adjust-item label {
    font-size: 12px;
    color: #666;
}

.adjust-item input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.adjust-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d45d79;
    cursor: pointer;
}

.adjust-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d45d79;
    cursor: pointer;
    border: none;
}

.avatar-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cancel-btn, .confirm-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: white;
    color: #333;
}

.confirm-btn {
    background: #d45d79;
    color: white;
    border-color: #d45d79;
}

.cancel-btn:hover {
    background: #f8f9fa;
}

.confirm-btn:hover {
    background: #c04b65;
    transform: translateY(-1px);
}

/* 调整大小的手柄样式 */
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 1px solid #d45d79;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.resize-handle.nw {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.resize-handle.ne {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.resize-handle.sw {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.resize-handle.se {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

.resize-handle.n {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.resize-handle.e {
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.resize-handle.s {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.resize-handle.w {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    cursor: w-resize;
}

/* 裁剪区域样式调整 */
.crop-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.crop-overlay::before {
    content: none;
}

@media (max-width: 768px) {
    .avatar-editor-body {
        flex-direction: column;
    }
    
    .editor-preview, .editor-tools {
        min-width: auto;
    }
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.avatar-option:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.3);
}

.avatar-option.selected {
    border-color: #d45d79;
    box-shadow: 0 0 0 4px rgba(212, 93, 121, 0.3);
}

.avatar-option.custom-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-option.custom-avatar.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

.upload-avatar-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.upload-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

.upload-avatar-btn:active {
    transform: translateY(0);
}

.avatar-size-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.toggle-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.toggle-info p {
    font-size: 13px;
    color: #666;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #d45d79;
}

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

.verification-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.method-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-info h5 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.method-info p {
    font-size: 13px;
    color: #666;
}

.method-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.method-status.unbound {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.method-status.bound {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.login-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.history-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-device {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.history-time {
    font-size: 13px;
    color: #666;
}

.history-location {
    font-size: 13px;
    color: #999;
}

.history-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.history-status.current {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.history-status:not(.current) {
    background: rgba(158, 158, 158, 0.1);
    color: #999;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-history-btn {
    margin-right: 10px;
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.action-btn.danger {
    background-color: #f44336;
    color: white;
}

.action-btn.danger:hover {
    background-color: #d32f2f;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(212, 93, 121, 0.1) 0%, rgba(230, 126, 138, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 93, 121, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin: 0 auto 15px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.achievements-section {
    margin-top: 30px;
}

.achievements-section h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
}

.achievement-game-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.game-selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #d45d79;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5b7b1 100%);
    color: #2d1b1b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-selector-btn:hover {
    border-color: #d45d79;
    background: linear-gradient(135deg, #f8d7da 0%, #f5b7b1 100%);
    color: #2d1b1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.3);
}

.game-selector-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 93, 121, 0.2);
}

.game-selector-btn.active {
    border-color: #d45d79;
    background: linear-gradient(135deg, #f8d7da 0%, #f5b7b1 100%);
    color: #2d1b1b;
}

.game-selector-btn.active:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 93, 121, 0.2);
}

.game-selector-btn i {
    font-size: 16px;
}

.game-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.game-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.game-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d45d79 0%, #e67e8b 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.game-progress-text {
    font-size: 11px;
    color: #2d1b1b;
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}

.game-progress-percent {
    font-size: 13px;
    color: #d45d79;
    font-weight: 700;
    white-space: nowrap;
    min-width: 35px;
    text-align: right;
}

.selecting-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 93, 121, 0.3);
    z-index: 10;
}

.selecting-indicator::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #e67e8a;
}

.game-selector-btn.active .selecting-indicator {
    opacity: 1;
    visibility: visible;
}

.game-selector-btn {
    position: relative;
}

.game-selector-btn.special-btn {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%);
    color: #8B4513;
}

.game-selector-btn.special-btn:hover {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%);
    color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.game-selector-btn.special-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

.game-selector-btn.special-btn.active {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%);
    color: #8B4513;
}

.game-selector-btn.special-btn.active:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

.game-selector-btn.special-btn i {
    color: #FFD700;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-time {
    position: absolute;
    right: 60px;
    top: 15px;
    font-size: 11px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.achievement-item:not(:has(.achievement-toggle-btn)) .achievement-time {
    right: 15px;
}

.achievement-toggle-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.achievement-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.achievement-toggle-btn:active {
    transform: scale(0.95);
}

.achievement-toggle-btn i {
    color: #999;
    transition: color 0.3s ease;
}

.achievement-toggle-btn[data-is-unlocked="true"] i {
    color: #4CAF50;
}

.achievement-toggle-btn[data-is-unlocked="false"] i {
    color: #9E9E9E;
}

.achievement-item.unlocked .achievement-toggle-btn {
    background: rgba(76, 175, 80, 0.1);
}

.achievement-item.locked .achievement-toggle-btn {
    background: rgba(158, 158, 158, 0.1);
}

.achievement-item.unlocked .achievement-toggle-btn:hover {
    background: rgba(76, 175, 80, 0.2);
}

.achievement-item.locked .achievement-toggle-btn:hover {
    background: rgba(158, 158, 158, 0.2);
}

body.dark-mode .achievement-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .achievement-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .achievement-toggle-btn i {
    color: #aaa;
}

body.dark-mode .achievement-toggle-btn[data-is-unlocked="true"] i {
    color: #66BB6A;
}

body.dark-mode .achievement-toggle-btn[data-is-unlocked="false"] i {
    color: #757575;
}

body.dark-mode .achievement-item.unlocked .achievement-toggle-btn {
    background: rgba(76, 175, 80, 0.15);
}

body.dark-mode .achievement-item.locked .achievement-toggle-btn {
    background: rgba(158, 158, 158, 0.15);
}

body.dark-mode .achievement-item.unlocked .achievement-toggle-btn:hover {
    background: rgba(76, 175, 80, 0.25);
}

body.dark-mode .achievement-item.locked .achievement-toggle-btn:hover {
    background: rgba(158, 158, 158, 0.25);
}

.achievement-item.special-achievement .achievement-toggle-btn {
    background: rgba(255, 215, 0, 0.1);
}

.achievement-item.special-achievement .achievement-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.achievement-item.special-achievement .achievement-toggle-btn i {
    color: #FFD700;
}

.achievement-item.special-achievement.locked .achievement-toggle-btn {
    background: rgba(158, 158, 158, 0.1);
}

.achievement-item.special-achievement.locked .achievement-toggle-btn i {
    color: #9E9E9E;
}

body.dark-mode .achievement-item.special-achievement .achievement-toggle-btn {
    background: rgba(255, 215, 0, 0.15);
}

body.dark-mode .achievement-item.special-achievement .achievement-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.25);
}

body.dark-mode .achievement-item.special-achievement .achievement-toggle-btn i {
    color: #FFD700;
}

body.dark-mode .achievement-item.special-achievement.locked .achievement-toggle-btn {
    background: rgba(158, 158, 158, 0.15);
}

body.dark-mode .achievement-item.special-achievement.locked .achievement-toggle-btn i {
    color: #757575;
}

.terms-layout {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.terms-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.terms-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.terms-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    background: white;
    border: 1px solid #e0e0e0;
}

.terms-nav-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
}

.terms-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.terms-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.terms-main {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 10px;
}

.terms-main::-webkit-scrollbar {
    width: 6px;
}

.terms-main::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terms-main::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.terms-main::-webkit-scrollbar-thumb:hover {
    background: #556cd6;
}

.terms-content {
    padding: 20px;
    line-height: 1.8;
}

.terms-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 12px;
}

.terms-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.terms-section:first-child {
    display: block;
}

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

.terms-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-warning i {
    color: #ff9800;
    font-size: 20px;
    margin-top: 2px;
}

.terms-warning strong {
    color: #ff9800;
    font-weight: 600;
}

.terms-content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.terms-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.terms-content ul li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.terms-content strong {
    color: #667eea;
    font-weight: 600;
}

.terms-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
}

.achievement-item.unlocked.special-achievement {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.achievement-item.locked {
    opacity: 0.7;
}

.achievement-item.locked.special-achievement {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    border: 2px solid #b0b0b0;
}

.achievement-item.locked.special-achievement .achievement-icon {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.achievement-item.unlocked .achievement-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.achievement-item.unlocked.special-achievement .achievement-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.achievement-item.locked .achievement-icon {
    background: linear-gradient(135deg, #9E9E9E 0%, #BDBDBD 100%);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.achievement-game-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(212, 93, 121, 0.1);
    color: #d45d79;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 500;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d45d79 0%, #e67e8a 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    min-width: 40px;
}

.devices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.device-item.current {
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.device-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.device-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.device-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.device-browser,
.device-time,
.device-location {
    font-size: 13px;
    color: #666;
}

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

.device-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.device-status.current {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.data-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.data-info {
    flex: 1;
}

.data-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.data-info p {
    font-size: 13px;
    color: #666;
}

.theme-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.theme-option {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(212, 93, 121, 0.3);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: #d45d79;
    background: rgba(212, 93, 121, 0.1);
}

.theme-option.active {
    border-color: #d45d79;
    background: linear-gradient(135deg, rgba(212, 93, 121, 0.1) 0%, rgba(230, 126, 138, 0.1) 100%);
}

.theme-option i {
    font-size: 24px;
    color: #d45d79;
}

.theme-option span {
    font-size: 14px;
    color: #333;
}

/* 毛玻璃主题面板样式 */
.glass-theme-panel {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-theme-section {
    margin-bottom: 25px;
}

.glass-theme-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* 预览盒子样式 */
.preview-box {
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.glass-preview {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.preview-content {
    text-align: center;
}

.preview-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.preview-content p {
    color: #666;
    margin-bottom: 15px;
}

.preview-button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #d45d79;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-button:hover {
    background: #c94e6e;
    transform: scale(1.05);
}

/* 主题操作按钮样式 */
.theme-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.theme-actions .action-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
}

.theme-actions .action-btn.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-actions .action-btn.secondary:hover {
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 毛玻璃主题的暗色模式样式 */
body.dark-mode .glass-theme-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-theme-section h4 {
    color: #e0e0e0;
}

body.dark-mode .preview-box {
    background: rgba(30, 30, 50, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .glass-preview {
    background: rgba(30, 30, 50, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .preview-content h3 {
    color: #e0e0e0;
}

body.dark-mode .preview-content p {
    color: #999;
}

body.dark-mode .preview-button {
    background: #e67e8a;
}

body.dark-mode .preview-button:hover {
    background: #d45d79;
}

.language-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-selection label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.language-selection select {
    padding: 10px 15px;
    border: 1px solid rgba(212, 93, 121, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selection select:focus {
    outline: none;
    border-color: #d45d79;
    box-shadow: 0 0 0 2px rgba(212, 93, 121, 0.2);
}

/* 自定义背景设置样式 */
.background-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-background-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-background-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

.background-size-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 5px;
}

.background-preview {
    margin-top: 15px;
    border: 2px dashed rgba(212, 93, 121, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.preview-loading i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #667eea;
}

.background-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

#backgroundFit {
    padding: 10px 15px;
    border: 1px solid rgba(212, 93, 121, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#backgroundFit:focus {
    outline: none;
    border-color: #d45d79;
    box-shadow: 0 0 0 2px rgba(212, 93, 121, 0.2);
}

.background-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.background-actions .action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.background-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.3);
}

.background-actions .action-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.background-actions .action-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 深色模式下的背景设置样式 */
body.dark-mode #backgroundFit {
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode #backgroundFit:focus {
    border-color: #e67e8a;
    box-shadow: 0 0 0 2px rgba(230, 126, 138, 0.3);
}

body.dark-mode .background-preview {
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode .preview-placeholder {
    color: #999;
}

body.dark-mode .background-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .background-actions .action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.custom-theme-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-theme-section {
    margin-bottom: 25px;
}

.custom-theme-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.color-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-mode-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(212, 93, 121, 0.3);
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-mode-btn:hover {
    border-color: #d45d79;
    background: rgba(212, 93, 121, 0.05);
}

.color-mode-btn.active {
    border-color: #d45d79;
    background: linear-gradient(135deg, #d45d79 0%, #e8748e 100%);
    color: white;
}

.rgb-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rgb-slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rgb-slider-group label {
    min-width: 80px;
    font-size: 14px;
    color: #333;
}

.rgb-slider-group input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ff0000, #00ff00, #0000ff);
    border-radius: 3px;
    outline: none;
}

.rgb-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.rgb-slider-group span {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.palette-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
    border-color: #d45d79;
    box-shadow: 0 0 0 3px rgba(212, 93, 121, 0.3);
}

.custom-color-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-color-input label {
    font-size: 14px;
    color: #333;
}

.custom-color-input input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.slider-group label {
    min-width: 80px;
    font-size: 14px;
    color: #333;
}

.slider-group input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d45d79 0%, #e8748e 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(212, 93, 121, 0.3);
}

.slider-group span {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.theme-preview {
    margin-bottom: 25px;
}

.theme-preview h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.preview-box {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.preview-content {
    text-align: center;
}

.preview-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.preview-button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #d45d79 0%, #e8748e 100%);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.3);
}

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

.theme-actions .action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #d45d79 0%, #e8748e 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.3);
}

.theme-actions .action-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.theme-actions .action-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.volume-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.volume-item label {
    min-width: 100px;
    font-size: 14px;
    color: #333;
}

.volume-item input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
}

.volume-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-item input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-value {
    min-width: 50px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.danger-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
}

.danger-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.danger-info {
    flex: 1;
}

.danger-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.danger-info p {
    font-size: 13px;
    color: #666;
}

.settings-footer {
    padding: 20px 40px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

/* 毛玻璃主题下的footer样式 */
body.glass-mode .settings-footer {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

/* 暗色模式下的footer样式 */
body.dark-mode .settings-footer {
    background: rgba(30, 30, 50, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 毛玻璃主题+暗色模式下的footer样式 */
body.glass-mode.dark-mode .settings-footer {
    background: rgba(30, 30, 50, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.save-all-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.save-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 93, 121, 0.4);
}

/* 毛玻璃主题下的保存按钮样式 */
body.glass-mode .save-all-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #333;
}

body.glass-mode .save-all-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* 暗色模式下的保存按钮样式 */
body.dark-mode .save-all-btn {
    background: linear-gradient(135deg, #e67e8a 0%, #d45d79 100%);
}

body.dark-mode .save-all-btn:hover {
    box-shadow: 0 5px 20px rgba(230, 126, 138, 0.4);
}

/* 毛玻璃主题+暗色模式下的保存按钮样式 */
body.glass-mode.dark-mode .save-all-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.glass-mode.dark-mode .save-all-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#customAlert {
    z-index: 20000;
}

.custom-alert.show {
    display: flex;
}

.alert-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.alert-icon {
    font-size: 48px;
    color: #d45d79;
    margin-bottom: 20px;
}

.alert-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}

.alert-confirm {
    padding: 10px 30px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

/* 确认弹窗样式 */
.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-confirm.show {
    opacity: 1;
    pointer-events: all;
}

.confirm-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-confirm.show .confirm-content {
    transform: translateY(0);
}

.confirm-icon {
    font-size: 48px;
    color: #d45d79;
    margin-bottom: 20px;
}

.confirm-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.confirm-btn.cancel {
    background: #e0e0e0;
    color: #333;
}

.confirm-btn.confirm {
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
}

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

.confirm-btn.confirm:hover {
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.4);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

/* 自定义滚动条样式 */
/* 侧边栏滚动条 */
.settings-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 93, 121, 0.3) rgba(0, 0, 0, 0.05);
}

.settings-sidebar::-webkit-scrollbar {
    width: 6px;
}

.settings-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.settings-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.settings-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 93, 121, 0.5);
}

/* 右侧内容区域滚动条 */
.settings-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 93, 121, 0.3) rgba(0, 0, 0, 0.05);
}

.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 93, 121, 0.5);
}

/* 暗色模式下的滚动条 */
body.dark-mode .settings-sidebar {
    scrollbar-color: rgba(212, 93, 121, 0.4) rgba(30, 30, 50, 0.3);
}

body.dark-mode .settings-sidebar::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.3);
}

body.dark-mode .settings-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.4);
}

body.dark-mode .settings-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 93, 121, 0.6);
}

body.dark-mode .settings-content {
    scrollbar-color: rgba(212, 93, 121, 0.4) rgba(30, 30, 50, 0.3);
}

body.dark-mode .settings-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.3);
}

body.dark-mode .settings-content::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.4);
}

body.dark-mode .settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 93, 121, 0.6);
}

/* 毛玻璃主题下的滚动条 */
body.glass-mode .settings-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body.glass-mode .settings-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.4);
}

body.glass-mode .settings-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body.glass-mode .settings-content::-webkit-scrollbar-thumb {
    background: rgba(212, 93, 121, 0.4);
}

/* 毛玻璃+暗色模式下的滚动条 */
body.glass-mode.dark-mode .settings-sidebar::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.4);
}

body.glass-mode.dark-mode .settings-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.4);
}

.alert-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

body.dark-mode .settings-sidebar {
    background: rgba(30, 30, 50, 0.95);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-username {
    color: #e0e0e0;
}

body.dark-mode .sidebar-uid {
    color: #999;
    background: rgba(30, 30, 50, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-version {
    color: #999;
}

body.dark-mode .menu-item {
    color: #e0e0e0;
}

body.dark-mode .menu-item:hover {
    background: rgba(212, 93, 121, 0.2);
}

body.dark-mode .menu-item.active {
    background: rgba(212, 93, 121, 0.2);
    color: #e67e8a;
}

body.dark-mode .settings-header {
    background: rgba(30, 30, 50, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-header h1 {
    color: #e0e0e0;
}

body.dark-mode .settings-header p {
    color: #999;
}

body.dark-mode .section-card {
    background: rgba(30, 30, 50, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .section-card.danger {
    border-color: rgba(231, 76, 60, 0.5);
}

body.dark-mode .card-title h3 {
    color: #e0e0e0;
}

body.dark-mode .card-title p {
    color: #999;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-input-group input {
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode .form-input-group input:focus {
    border-color: #e67e8a;
    box-shadow: 0 0 0 2px rgba(230, 126, 138, 0.3);
}

body.dark-mode .form-input-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode textarea {
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode textarea:focus {
    border-color: #e67e8a;
    box-shadow: 0 0 0 2px rgba(230, 126, 138, 0.3);
}

body.dark-mode .char-count {
    color: #999;
}

body.dark-mode .toggle-info h4 {
    color: #e0e0e0;
}

body.dark-mode .toggle-info p {
    color: #999;
}

body.dark-mode .toggle-slider {
    background-color: #666;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
    background-color: #e67e8a;
}

body.dark-mode .method-info h5 {
    color: #e0e0e0;
}

body.dark-mode .method-info p {
    color: #999;
}

body.dark-mode .history-device {
    color: #e0e0e0;
}

body.dark-mode .history-time {
    color: #999;
}

body.dark-mode .history-location {
    color: #999;
}

body.dark-mode .device-name {
    color: #e0e0e0;
}

body.dark-mode .device-browser,
body.dark-mode .device-time,
body.dark-mode .device-location {
    color: #999;
}

body.dark-mode .data-info h4 {
    color: #e0e0e0;
}

body.dark-mode .data-info p {
    color: #999;
}

body.dark-mode .theme-option {
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode .theme-option:hover {
    border-color: #e67e8a;
    background: rgba(212, 93, 121, 0.2);
}

body.dark-mode .theme-option.active {
    border-color: #e67e8a;
    background: rgba(212, 93, 121, 0.2);
}

/* 毛玻璃主题样式 */
body.glass-mode {
    background: linear-gradient(135deg, #f0f9ff 0%, #dceeff 100%);
}

body.glass-mode .settings-sidebar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .section-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .form-group input,
body.glass-mode .form-group select,
body.glass-mode .form-group textarea,
body.glass-mode .language-selection select {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.glass-mode.dark-mode .form-group input,
body.glass-mode.dark-mode .form-group select,
body.glass-mode.dark-mode .form-group textarea,
body.glass-mode.dark-mode .language-selection select {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 毛玻璃模式下的背景适应方式选择框 */
body.glass-mode #backgroundFit {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.glass-mode.dark-mode #backgroundFit {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.glass-mode .action-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.glass-mode .action-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 毛玻璃模式下的按钮样式 */
body.glass-mode .upload-avatar-btn,
body.glass-mode .upload-background-btn,
body.glass-mode .submit-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.glass-mode .upload-avatar-btn:hover,
body.glass-mode .upload-background-btn:hover,
body.glass-mode .submit-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transform: translateY(-2px);
}

body.glass-mode.dark-mode .upload-avatar-btn,
body.glass-mode.dark-mode .upload-background-btn,
body.glass-mode.dark-mode .submit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

body.glass-mode.dark-mode .upload-avatar-btn:hover,
body.glass-mode.dark-mode .upload-background-btn:hover,
body.glass-mode.dark-mode .submit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 毛玻璃模式下的示例按钮样式 */
body.glass-mode .preview-button {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.glass-mode .preview-button:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transform: translateY(-2px);
}

body.glass-mode.dark-mode .preview-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

body.glass-mode.dark-mode .preview-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.glass-mode .theme-option {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .theme-option.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

body.glass-mode .custom-theme-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .volume-item input[type="range"] {
    background: rgba(255, 255, 255, 0.3);
}

body.glass-mode .volume-item input[type="range"]::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.8);
}

body.glass-mode .device-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-mode .device-item.current {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .theme-option i {
    color: #e67e8a;
}

body.dark-mode .theme-option span {
    color: #e0e0e0;
}

body.dark-mode .language-selection label {
    color: #e0e0e0;
}

body.dark-mode .language-selection select {
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode .language-selection select:focus {
    border-color: #e67e8a;
    box-shadow: 0 0 0 2px rgba(230, 126, 138, 0.3);
}

body.dark-mode .custom-theme-panel {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .custom-theme-section h4 {
    color: #e0e0e0;
}

body.dark-mode .color-mode-btn {
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border-color: rgba(212, 93, 121, 0.5);
}

body.dark-mode .color-mode-btn:hover {
    background: rgba(212, 93, 121, 0.2);
    border-color: #e67e8a;
}

body.dark-mode .rgb-slider-group label {
    color: #e0e0e0;
}

body.dark-mode .rgb-slider-group span {
    color: #aaa;
}

body.dark-mode .slider-group label {
    color: #e0e0e0;
}

body.dark-mode .slider-group span {
    color: #aaa;
}

body.dark-mode .theme-preview h4 {
    color: #e0e0e0;
}

body.dark-mode .preview-box {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .preview-content p {
    color: #aaa;
}

body.dark-mode .theme-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .theme-actions .action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .volume-item label {
    color: #e0e0e0;
}

body.dark-mode .volume-value {
    color: #999;
}

body.dark-mode .danger-info h4 {
    color: #e0e0e0;
}

body.dark-mode .danger-info p {
    color: #999;
}

body.dark-mode .stat-card {
    background: rgba(212, 93, 121, 0.15);
}

body.dark-mode .stat-value {
    color: #e0e0e0;
}

body.dark-mode .stat-label {
    color: #999;
}

body.dark-mode .achievement-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .achievement-item.unlocked.special-achievement {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

body.dark-mode .achievement-item.locked.special-achievement {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.15) 0%, rgba(189, 189, 189, 0.15) 100%);
    border: 2px solid rgba(176, 176, 176, 0.3);
}

body.dark-mode .achievement-item.locked.special-achievement .achievement-icon {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
}

body.dark-mode .achievement-name {
    color: #e0e0e0;
}

body.dark-mode .achievement-desc {
    color: #999;
}

body.dark-mode .achievement-game-tag {
    background: rgba(212, 93, 121, 0.2);
    color: #e67e8b;
}

body.dark-mode .achievement-time {
    color: #bbb;
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .terms-content h3 {
    color: #667eea;
}

body.dark-mode .terms-content h4 {
    color: #e0e0e0;
}

body.dark-mode .terms-content h5 {
    color: #ccc;
}

body.dark-mode .terms-content p {
    color: #bbb;
}

body.dark-mode .terms-content ul li {
    color: #bbb;
}

body.dark-mode .terms-content ul li:before {
    color: #667eea;
}

body.dark-mode .terms-content strong {
    color: #667eea;
}

body.dark-mode .terms-sidebar {
    background: #2a2a2a;
}

body.dark-mode .terms-nav-title {
    color: #e0e0e0;
}

body.dark-mode .terms-nav-item {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #bbb;
}

body.dark-mode .terms-nav-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

body.dark-mode .terms-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-left-color: #ff9800;
}

body.dark-mode .terms-warning strong {
    color: #ff9800;
}

.terms-agreement {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.terms-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d45d79;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #d45d79;
}

.terms-checkbox .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.terms-checkbox .checkbox-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.terms-action-btn {
    background: #d45d79;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.terms-action-btn:hover {
    background: #c04d6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.3);
}

.terms-action-btn:active {
    transform: translateY(0);
}

body.dark-mode .terms-agreement {
    border-top-color: #333;
}

body.dark-mode .terms-checkbox .checkbox-text {
    color: #bbb;
}

body.dark-mode .terms-checkbox .checkmark {
    border-color: #e67e8b;
}

/* 测试页面样式 */
.test-section {
    margin-bottom: 30px;
}

.test-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.test-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.test-card h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.test-card p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.test-button {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #d45d79 0%, #e67e8a 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-button:hover {
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.4);
    transform: translateY(-1px);
}

.test-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.test-form .form-group {
    margin-bottom: 15px;
}

.test-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.test-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 暗色模式下的测试页面样式 */
body.dark-mode .test-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .test-card h5 {
    color: #e0e0e0;
}

body.dark-mode .test-card p {
    color: #999;
}

body.dark-mode .test-section h4 {
    color: #e0e0e0;
}

body.dark-mode .test-form {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .test-form .form-group label {
    color: #e0e0e0;
}

/* 毛玻璃模式下的测试页面样式 */
body.glass-mode .test-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.glass-mode .test-form {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.glass-mode .test-button {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.glass-mode .test-button:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 毛玻璃模式下的暗色主题样式 */
body.glass-mode.dark-mode .test-card {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.glass-mode.dark-mode .test-form {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.glass-mode.dark-mode .test-button {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.glass-mode.dark-mode .test-button:hover {
    background: rgba(40, 40, 40, 0.4);
}

body.dark-mode .terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #e67e8b;
}

body.dark-mode .terms-action-btn {
    background: #e67e8b;
}

body.dark-mode .terms-action-btn:hover {
    background: #d96e7c;
}

body.dark-mode .game-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .game-progress-text {
    color: #e0e0e0;
    font-weight: 600;
}

body.dark-mode .game-selector-btn {
    color: #2d1b1b;
}

body.dark-mode .game-selector-btn:hover {
    color: #2d1b1b;
}

body.dark-mode .game-selector-btn.active {
    color: #2d1b1b;
}

body.dark-mode .game-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .game-progress-percent {
    color: #e67e8b;
}

body.dark-mode .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .progress-text {
    color: #999;
}

body.dark-mode .settings-footer {
    background: rgba(30, 30, 50, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .alert-content {
    background: rgba(30, 30, 50, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .alert-content h3 {
    color: #e0e0e0;
}

body.dark-mode .alert-message {
    color: #e0e0e0;
}

body.dark-mode .verification-status {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

@media (max-width: 1024px) {
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-menu {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px;
    }
    
    .menu-group {
        margin-bottom: 10px;
    }
    
    .achievement-game-selector {
        flex-direction: row;
    }
    
    .game-selector-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .menu-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .settings-main {
        height: calc(100vh - 200px);
    }
    
    .settings-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .settings-header {
        padding: 20px;
    }
    
    .settings-header h1 {
        font-size: 22px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .achievement-game-selector {
        flex-direction: column;
    }
    
    .game-selector-btn {
        width: 100%;
        align-items: flex-start;
        padding: 10px 16px;
        flex-direction: column;
    }
    
    .game-progress {
        margin-top: 10px;
        width: 100%;
    }
    
    .theme-selection {
        flex-direction: column;
    }
    
    .theme-option {
        width: 100%;
    }
    
    .settings-footer {
        padding: 15px 20px;
    }
    
    .save-all-btn {
        width: 100%;
    }
}

.delete-account-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 76, 60, 0.15);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-account-overlay.show {
    opacity: 1;
}