/* ========== 基础变量 ========== */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --red: #e74c3c;
    --gray: #f5f5f5;
    --input-bg: #e0e0e0;
    --border-width: 2px;
    --box-shadow: 4px 4px 0px #1a1a1a;
    --sketch-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --dot-color: #e5e5e5;
}

/* 暗黑模式 */
body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --gray: #2a2a2a;
    --input-bg: #333333;
    --box-shadow: 4px 4px 0px #000000;
    --dot-color: #333333;
}

/* 暗黑模式 - 应用容器 */
body.dark-theme .app-container {
    background: #1a1a1a;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* 暗黑模式 - 顶部导航 */
body.dark-theme .app-header {
    background: #1a1a1a;
    border-bottom-color: #444;
}

body.dark-theme .chapter-name {
    color: #888;
}

/* 暗黑模式 - 进度条 */
body.dark-theme .progress-bar {
    background: #2a2a2a;
    border-bottom-color: #333;
}

body.dark-theme .progress-text {
    color: #e0e0e0;
    text-shadow: 
        -1px -1px 0 #1a1a1a,
        1px -1px 0 #1a1a1a,
        -1px 1px 0 #1a1a1a,
        1px 1px 0 #1a1a1a,
        0 0 3px rgba(0,0,0,0.8);
}

/* 暗黑模式 - 页面内容 */
body.dark-theme .page {
    color: #e0e0e0;
}

/* 暗黑模式 - 手绘风格盒子 */
body.dark-theme .sketch-box,
body.dark-theme .achievement-box {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 4px 4px 0px #000000;
}

/* 暗黑模式 - 封面页 */
body.dark-theme .welcome-title h1 {
    text-shadow: 2px 2px 0px #000;
}

body.dark-theme .welcome-title .subtitle {
    color: #666;
}

body.dark-theme .welcome-text {
    color: #666;
}

/* 暗黑模式 - 输入框 */
body.dark-theme .inline-input {
    border-bottom-color: #555;
    color: #e0e0e0;
}

body.dark-theme .inline-input::placeholder {
    color: #666;
}

body.dark-theme .inline-input:focus {
    border-bottom-color: var(--red);
}

/* 暗黑模式 - 关键词输入 */
body.dark-theme .keyword-input {
    background: #333333;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 2px 2px 0px #000;
}

body.dark-theme .keyword-input:focus {
    border-color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

/* 暗黑模式 - 照片上传 */
body.dark-theme .photo-upload {
    background: #333333;
    border-color: #555555;
}

body.dark-theme .photo-upload:hover {
    border-color: #777;
    background: #3a3a3a;
}

body.dark-theme .photo-upload .upload-icon {
    color: #666;
}

body.dark-theme .photo-upload:hover .upload-icon {
    color: #888;
}

/* 暗黑模式 - 颜色选择 */
body.dark-theme .color-section .hint {
    color: #666;
}

/* 暗黑模式 - 问答区块 */
body.dark-theme .answer-input,
body.dark-theme .message-input,
body.dark-theme .blessing-input {
    background: #333333;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 3px 3px 0px #000000;
}

body.dark-theme .answer-input::placeholder,
body.dark-theme .message-input::placeholder,
body.dark-theme .blessing-input::placeholder {
    color: #666;
}

body.dark-theme .answer-input:focus,
body.dark-theme .message-input:focus,
body.dark-theme .blessing-input:focus {
    border-color: var(--red);
    box-shadow: 3px 3px 0px var(--red);
}

/* 暗黑模式 - 页面提示 */
body.dark-theme .page-hint {
    background: #2a2a2a;
    color: #888;
    border-left-color: #555;
}

/* 暗黑模式 - 好友区域 */
body.dark-theme .friend-avatar {
    background: #333;
    border-color: #555;
    box-shadow: 3px 3px 0px #000;
}

body.dark-theme .avatar-placeholder {
    background: #555;
}

body.dark-theme .friend-name {
    border-bottom-color: #555;
    color: #e0e0e0;
}

body.dark-theme .friend-name:focus {
    border-bottom-color: var(--red);
}

body.dark-theme .message-avatar {
    background: #333;
    border-color: #555;
}

body.dark-theme .message-toggle {
    color: #888;
}

body.dark-theme .btn-add-friend {
    border-color: #555;
    color: #888;
}

body.dark-theme .btn-add-friend:hover {
    background: #333;
}

/* 暗黑模式 - 恋爱区域 */
body.dark-theme .love-select {
    border-bottom-color: #555;
    color: #e0e0e0;
}

body.dark-theme .love-select option {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-theme .chat-section .hint {
    color: #666;
}

/* 暗黑模式 - 奖牌 */
body.dark-theme .award-medal {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 3px 3px 0px #000000;
}

body.dark-theme .award-name {
    border-bottom-color: #555;
    color: #e0e0e0;
}

body.dark-theme .award-name:focus {
    border-bottom-color: var(--red);
}

/* 暗黑模式 - 头像墙 */
body.dark-theme .wall-title {
    color: #888;
}

body.dark-theme .avatar-grid {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 4px 4px 0px #000;
}

body.dark-theme .avatar-grid .mini-avatar {
    background: #333333;
    border-color: #555555;
}

body.dark-theme .wall-hint {
    color: #666;
}

/* 暗黑模式 - 安慰消息 */
body.dark-theme .comfort-message {
    background: #1e3a5f;
    border-color: #2196f3;
}

body.dark-theme .comfort-label {
    color: #64b5f6;
}

body.dark-theme .comfort-input {
    color: #64b5f6;
}

/* 暗黑模式 - 愿望区域 */
body.dark-theme .wishes-hint {
    color: #666;
}

body.dark-theme .wish-input {
    border-bottom-color: #555;
    color: #e0e0e0;
}

body.dark-theme .wish-input:focus {
    border-bottom-color: var(--red);
}

/* 暗黑模式 - 结束页 */
body.dark-theme .big-text {
    text-shadow: 3px 3px 0px #000;
}

body.dark-theme .blessing-note {
    color: #666;
}

/* 暗黑模式 - 底部导航 */
body.dark-theme .bottom-nav {
    background: #1a1a1a;
    border-top-color: #444;
}

body.dark-theme .nav-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 2px 2px 0px #000;
}

body.dark-theme .nav-btn:hover:not(:disabled) {
    background: #444;
    color: white;
}

body.dark-theme .nav-btn.next {
    background: #444;
    color: white;
}

body.dark-theme .nav-btn.next:hover:not(:disabled) {
    background: var(--red);
    border-color: var(--red);
}

/* 暗黑模式 - Toast提示 */
body.dark-theme .toast {
    background: #444;
    color: white;
}

/* 暗黑模式 - 设置面板 */
body.dark-theme .settings-panel {
    background: #1a1a1a;
}

body.dark-theme .settings-header {
    background: #1a1a1a;
    border-bottom-color: #444;
}

body.dark-theme .settings-header h2 {
    color: #e0e0e0;
}

body.dark-theme .close-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .close-btn:hover {
    background: #444;
    color: white;
}

body.dark-theme .settings-content {
    background-image: radial-gradient(#333 1px, transparent 1px);
}

body.dark-theme .settings-section {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 4px 4px 0px #000000;
}

body.dark-theme .settings-section h3 {
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-theme .settings-hint {
    color: #888;
}

/* 暗黑模式 - 问题列表 */
body.dark-theme .question-item {
    background: #333;
    border-color: #444;
}

body.dark-theme .question-item:hover {
    border-color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-theme .question-item.disabled {
    background: #2a2a2a;
}

body.dark-theme .question-item.custom {
    background: #3a2a2a;
}

body.dark-theme .question-text {
    color: #888;
}

body.dark-theme .chapter-title {
    color: #888;
    border-bottom-color: #444;
}

body.dark-theme .toggle-slider {
    background-color: #444;
}

body.dark-theme .question-toggle input:checked + .toggle-slider {
    background-color: var(--red);
}

body.dark-theme .question-action-btn {
    background: #333;
    border-color: #555;
    color: #888;
}

body.dark-theme .question-action-btn:hover {
    background: #444;
    border-color: #666;
    color: #e0e0e0;
}

/* 暗黑模式 - 设置按钮 */
body.dark-theme .btn-add-question {
    border-color: #555;
    color: #888;
}

body.dark-theme .btn-add-question:hover {
    background: #333;
}

body.dark-theme .settings-action-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 2px 2px 0px #000;
}

body.dark-theme .settings-action-btn:hover {
    background: #444;
    color: white;
}

body.dark-theme .btn-reset {
    border-color: #555;
    color: #666;
}

body.dark-theme .btn-reset:hover {
    border-color: var(--red);
    color: var(--red);
}

body.dark-theme .about-text {
    color: #888;
}

/* 暗黑模式 - 统计信息 */
body.dark-theme .settings-stats {
    background: #333;
}

body.dark-theme .stat-label {
    color: #888;
}

/* 暗黑模式 - 存储信息 */
body.dark-theme .storage-info {
    background: #333;
}

body.dark-theme .storage-bar {
    background: #444;
    border-color: #555;
}

body.dark-theme .storage-label,
body.dark-theme .storage-text {
    color: #aaa;
}

/* 暗黑模式 - 弹窗 */
body.dark-theme .modal-content {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 6px 6px 0px #000;
}

body.dark-theme .modal-content h3 {
    color: #e0e0e0;
}

body.dark-theme .modal-input,
body.dark-theme .modal-textarea {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 2px 2px 0px #000;
}

body.dark-theme .modal-select {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .modal-select option {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .modal-field label {
    color: #888;
}

body.dark-theme .modal-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .modal-btn:hover {
    background: #444;
}

body.dark-theme .modal-btn.primary {
    background: #555;
    color: white;
}

body.dark-theme .modal-btn.primary:hover {
    background: var(--red);
    border-color: var(--red);
}

/* 暗黑模式 - 开发者面板 */
body.dark-theme .dev-menu {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 6px 6px 0px #000;
}

body.dark-theme .dev-menu button {
    background: #2a2a2a;
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-theme .dev-menu button:hover {
    background: #333;
}

body.dark-theme .dev-menu-divider {
    background: #444;
}

/* 暗黑模式 - 按钮通用 */
body.dark-theme .btn-ready {
    background: #444;
    border-color: #555;
}

body.dark-theme .btn-ready:hover {
    background: var(--red);
    border-color: var(--red);
}

body.dark-theme .slogan {
    background: #444;
}

body.dark-theme .btn-export {
    background: #444;
    border-color: #555;
}

body.dark-theme .btn-export:hover {
    background: var(--red);
    border-color: var(--red);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 14px;
    min-height: 100vh;
    /* 网点纸背景 */
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 16px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
}

.red { color: var(--red); }

/* ========== 应用容器 ========== */
.app-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* ========== 顶部导航 ========== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: var(--border-width) solid var(--text-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chapter-name {
    font-size: 12px;
    color: #666;
    letter-spacing: 3px;
}

/* ========== 进度条 ========== */
.progress-bar {
    height: 28px;
    background: var(--gray);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--text-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 9%;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #333;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 3px rgba(255,255,255,0.8);
}

/* ========== 页面容器 ========== */
.pages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.page {
    display: none;
    padding: 24px 20px;
    animation: pageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

/* 页面切换动画 */
@keyframes pageSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 输入框聚焦动画 */
.input-focus-animation {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* 完成标记动画 */
.question-block {
    position: relative;
}

.question-block.completed {
    background: linear-gradient(to right, transparent, rgba(231, 76, 60, 0.05), transparent);
    border-left: 3px solid var(--red);
    padding-left: 17px;
    margin-left: -3px;
    transition: all 0.3s ease;
}

.completion-checkmark {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.completion-checkmark.show {
    opacity: 1;
    transform: scale(1) rotate(360deg);
}

.page-content {
    max-width: 100%;
}

/* ========== 手绘风格盒子 ========== */
.sketch-box {
    background: white;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--sketch-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sketch-box:active {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-color);
}

/* ========== 封面页 ========== */
.welcome-title {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
}

.welcome-title h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 0px #ddd;
}

.welcome-title .subtitle {
    font-size: 10px;
    color: #999;
    letter-spacing: 4px;
    text-transform: lowercase;
}

.welcome-box {
    text-align: center;
    padding: 25px 15px;
    margin-bottom: 25px;
}

.welcome-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 6px;
}

.welcome-box p {
    font-size: 14px;
    margin: 12px 0;
}

.welcome-box .desc {
    font-size: 15px;
    margin: 25px 0;
    line-height: 1.9;
    color: var(--red);
}

.btn-ready {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-color);
    color: white;
    border: var(--border-width) solid var(--text-color);
    padding: 14px 28px;
    font-size: 14px;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    margin: 25px 0;
    transition: all 0.15s ease;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.btn-ready:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.05) rotate(2deg);
}

.btn-ready:active {
    transform: scale(0.98);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.btn-ready .arrow {
    font-size: 18px;
    animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.slogan-box {
    text-align: center;
    margin-top: 40px;
}

.slogan {
    font-size: 15px;
    font-weight: 500;
    background: var(--text-color);
    color: white;
    display: inline-block;
    padding: 8px 20px;
    transform: rotate(-2deg);
}

/* ========== 输入框样式 ========== */
.inline-input {
    border: none;
    border-bottom: 2px solid var(--text-color);
    background: transparent;
    padding: 4px 10px;
    font-size: inherit;
    font-family: inherit;
    width: 90px;
    text-align: center;
    transition: border-color 0.2s;
}

.inline-input.small {
    width: 55px;
}

.inline-input:focus {
    outline: none;
    border-bottom-color: var(--red);
}

.inline-input::placeholder {
    color: #bbb;
}

/* ========== 分隔符 ========== */
.section-divider {
    text-align: center;
    font-size: 20px;
    margin: 15px 0 30px;
    color: var(--text-color);
}

/* ========== 关键词区域 ========== */
.keywords-section {
    margin: 35px 0;
}

.keywords-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Noto Sans SC', sans-serif;
}

.keywords-grid {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.keyword-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.keyword-icon {
    font-size: 16px;
}

.keyword-input {
    width: 100%;
    padding: 12px 8px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px var(--text-color);
}

.keyword-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

/* ========== 照片上传 ========== */
.photos-section {
    margin: 30px 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.photo-upload {
    aspect-ratio: 1;
    background: var(--gray);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.photo-upload:hover {
    border-color: var(--text-color);
    background: #eee;
}

.photo-upload.has-image {
    border-style: solid;
    border-color: var(--text-color);
}

.photo-upload .upload-icon {
    font-size: 28px;
    color: #bbb;
    transition: color 0.2s;
}

.photo-upload:hover .upload-icon {
    color: var(--text-color);
}

.photo-upload.has-more .upload-icon {
    font-size: 22px;
    letter-spacing: 3px;
    writing-mode: vertical-lr;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ========== 照片墙页面 ========== */
.photo-wall-header {
    text-align: center;
    margin-bottom: 15px;
}

.photo-wall-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.photo-wall-subtitle {
    font-size: 11px;
    color: #888;
    letter-spacing: 6px;
    margin: 5px 0 10px;
}

.photo-wall-divider {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    margin: 10px 0;
}

.photo-wall-chapter {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 九宫格照片墙 - 创意不规则布局 */
/* 九宫格照片墙 - 创意不规则布局 (6x6网格) */
.photo-wall-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    margin: 15px 0;
    max-width: 100%;
    aspect-ratio: 1;
}

/* 照片1: 左上竖图 (2x3) */
.photo-wall-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
}

/* 照片2: 上中正方形 (2x2) */
.photo-wall-item:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

/* 照片3: 右上正方形 (2x2) */
.photo-wall-item:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1 / 3;
}

/* 照片4: 中间横图 (2x2) */
.photo-wall-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

/* 照片5: 右中竖图 (2x2) */
.photo-wall-item:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

/* 照片6: 左下正方形 (2x2) */
.photo-wall-item:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
}

/* 照片7: 下中横图 (4x2) */
.photo-wall-item:nth-child(7) {
    grid-column: 3 / 7;
    grid-row: 5 / 7;
}

/* 照片8: 左下角小图 (1x1) */
.photo-wall-item:nth-child(8) {
    grid-column: 1 / 2;
    grid-row: 6 / 7;
}

/* 照片9: 左下角小图2 (1x1) */
.photo-wall-item:nth-child(9) {
    grid-column: 2 / 3;
    grid-row: 6 / 7;
}

.photo-wall-item {
    background: var(--gray);
    border: 2px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-wall-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.photo-wall-item .upload-icon {
    font-size: 20px;
    color: #bbb;
    transition: all 0.2s;
}

/* 大图的上传图标更大 */
.photo-wall-item:nth-child(1) .upload-icon,
.photo-wall-item:nth-child(4) .upload-icon,
.photo-wall-item:nth-child(7) .upload-icon {
    font-size: 28px;
}

.photo-wall-item:hover .upload-icon {
    color: var(--text-color);
    transform: scale(1.1);
}

.photo-wall-item.has-image {
    border-width: 2px;
}

.photo-wall-item .photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.photo-wall-item:hover .photo-preview {
    transform: scale(1.05);
}

.photo-wall-footer {
    text-align: center;
    margin-top: 15px;
}

.photo-wall-hint {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 8px;
}

.photo-wall-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

.photo-wall-question {
    font-size: 12px;
    line-height: 1.7;
}

/* 暗黑模式 - 照片墙 */
body.dark-theme .photo-wall-subtitle,
body.dark-theme .photo-wall-chapter {
    color: #888;
}

body.dark-theme .photo-wall-desc {
    color: #888;
}

body.dark-theme .photo-wall-item {
    background: #2a2a2a;
    border-color: #555;
}

body.dark-theme .photo-wall-item:hover {
    border-color: #888;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* 图片裁剪弹窗 */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crop-modal.hidden {
    display: none;
}

.crop-container {
    width: 100%;
    max-width: 350px;
    max-height: 60vh;
    position: relative;
    overflow: hidden;
    background: #333;
}

.crop-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.crop-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.crop-btn {
    padding: 12px 30px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.crop-btn.confirm {
    background: var(--red);
    color: white;
}

.crop-btn.cancel {
    background: #666;
    color: white;
}


/* ========== 颜色选择 ========== */
.color-section {
    margin: 25px 0;
    font-size: 13px;
    line-height: 1.8;
}

.color-title {
    margin-bottom: 12px;
    font-weight: 500;
}

.color-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.color-preset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-preset-item:hover {
    background: var(--gray);
}

.color-preset-item.selected {
    border-color: var(--text-color);
    background: var(--gray);
}

.color-dot {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-dot.custom-dot {
    background: linear-gradient(135deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.color-name {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.color-picker-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.color-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--text-color);
    vertical-align: middle;
}

.color-section .hint {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* 暗黑模式 - 颜色选择器 */
body.dark-theme .color-preset-item:hover,
body.dark-theme .color-preset-item.selected {
    background: #333;
}

body.dark-theme .color-name {
    color: #888;
}

body.dark-theme .color-dot {
    border-color: rgba(255,255,255,0.1);
}

/* ========== 问题区块 ========== */
.question-block {
    margin-bottom: 28px;
}

.question-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.q-number {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    font-family: 'ZCOOL KuaiLe', cursive;
    line-height: 1;
    min-width: 50px;
    color: var(--text-color);
}

.q-text {
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
    padding-top: 5px;
}

.answer-input {
    width: 100%;
    min-height: 110px;
    padding: 15px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.7;
    box-shadow: 3px 3px 0px var(--text-color);
    transition: all 0.2s;
}

.answer-input.short {
    min-height: 70px;
}

.answer-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 3px 3px 0px var(--red);
}

.answer-input::placeholder {
    color: #bbb;
}

.page-hint {
    font-size: 11px;
    color: #999;
    line-height: 1.9;
    margin-top: 25px;
    padding: 15px;
    background: var(--gray);
    border-left: 3px solid var(--text-color);
}

/* ========== 社交篇-好友 ========== */
.friends-section {
    margin-bottom: 25px;
}

.friend-avatar {
    width: 75px;
    height: 75px;
    background: var(--gray);
    border: var(--border-width) solid var(--text-color);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 3px 3px 0px var(--text-color);
    transition: all 0.2s;
}

.friend-avatar:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-color);
}

.friend-avatar.small {
    width: 55px;
    height: 55px;
}

.avatar-placeholder {
    width: 35px;
    height: 35px;
    background: #ddd;
    border-radius: 50%;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.friend-name {
    border: none;
    border-bottom: 2px solid var(--text-color);
    background: transparent;
    text-align: center;
    padding: 6px;
    font-size: 13px;
    width: 85px;
    font-family: inherit;
}

.friend-name:focus {
    outline: none;
    border-bottom-color: var(--red);
}

.friend-desc {
    font-size: 12px;
    line-height: 2.2;
    margin: 25px 0;
}

.message-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.message-avatar {
    width: 45px;
    height: 45px;
    background: var(--gray);
    border: 2px solid var(--text-color);
    flex-shrink: 0;
}

.message-input {
    flex: 1;
    min-height: 65px;
    padding: 12px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    box-shadow: 2px 2px 0px var(--text-color);
}

.message-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

.new-friend-section {
    margin: 25px 0;
}

.new-friend-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.new-friend-card p {
    font-size: 12px;
    line-height: 1.9;
}

/* 好友卡片动态样式 */
.friend-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.friend-card {
    text-align: center;
    position: relative;
}

.friend-card-inner {
    position: relative;
}

.btn-remove-friend {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-friend:hover {
    background: #c0392b;
}

.friend-actions {
    text-align: center;
    margin-bottom: 20px;
}

.btn-add-friend {
    background: transparent;
    border: 2px dashed var(--text-color);
    padding: 8px 20px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-add-friend:hover {
    background: var(--gray);
}

.btn-add-friend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.message-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 10px;
    color: #666;
}

.message-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ========== 社交篇-恋爱 ========== */
.love-section {
    font-size: 13px;
    line-height: 1.9;
}

.love-select {
    border: none;
    border-bottom: 2px solid var(--text-color);
    background: transparent;
    padding: 3px 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.love-select:focus {
    outline: none;
    border-bottom-color: var(--red);
}

.achievement-box {
    background: white;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--sketch-radius);
    padding: 18px;
    margin: 25px 0;
    font-size: 12px;
    line-height: 1.9;
    box-shadow: var(--box-shadow);
}

.love-person, .chat-section {
    margin: 25px 0;
}

.chat-section .hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.awards-section {
    margin: 30px 0;
}

.awards-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.awards-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.award-item {
    text-align: center;
}

.award-medal {
    width: 65px;
    height: 65px;
    background: white;
    border: var(--border-width) solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0px var(--text-color);
}

.award-name {
    border: none;
    border-bottom: 2px solid var(--text-color);
    background: transparent;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    width: 75px;
    font-family: inherit;
}

.award-name:focus {
    outline: none;
    border-bottom-color: var(--red);
}

/* ========== 社交篇-孤独时刻 ========== */
.lonely-section {
    font-size: 13px;
}

.lonely-question {
    line-height: 1.9;
    margin-bottom: 18px;
}

.avatar-wall {
    margin: 30px 0;
    text-align: center;
}

.wall-title {
    font-size: 12px;
    margin-bottom: 18px;
    color: #666;
    letter-spacing: 2px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 18px;
    background: white;
    border: var(--border-width) solid var(--text-color);
    box-shadow: var(--box-shadow);
}

.avatar-grid .mini-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray);
    border: 1px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-grid .mini-avatar:hover {
    transform: scale(1.1);
    z-index: 1;
}

.avatar-grid .mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wall-hint {
    font-size: 10px;
    color: #999;
    margin-top: 12px;
}

.comfort-message {
    margin: 25px 0;
    padding: 15px 18px;
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: var(--sketch-radius);
}

.comfort-label {
    font-size: 12px;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comfort-input {
    border: none;
    background: transparent;
    font-size: 12px;
    color: #1976d2;
    flex: 1;
    font-family: inherit;
}

.comfort-input:focus {
    outline: none;
}


/* ========== 回顾与展望-愿望 ========== */
.wishes-section {
    margin: 35px 0;
}

.wishes-title {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.wishes-hint {
    font-size: 11px;
    color: #999;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wish-icon {
    font-size: 16px;
    color: var(--text-color);
}

.wish-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--text-color);
    padding: 10px 5px;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
}

.wish-input:focus {
    outline: none;
    border-bottom-color: var(--red);
}

/* ========== 结束页 ========== */
.ending-section {
    text-align: center;
    padding: 25px 0;
}

.ending-title {
    font-size: 15px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.blessing-wall {
    margin: 25px 0;
}

.blessing-input {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.9;
    text-align: center;
    resize: none;
    box-shadow: var(--box-shadow);
}

.blessing-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 4px 4px 0px var(--red);
}

.new-year-text {
    margin: 35px 0;
}

.big-text {
    font-size: 38px;
    font-weight: 700;
    font-family: 'ZCOOL KuaiLe', cursive;
    text-shadow: 3px 3px 0px #ddd;
}

.blessing-note {
    font-size: 10px;
    color: #999;
    margin-top: 12px;
}

.final-blessing {
    margin: 35px 0;
    line-height: 2.2;
}

.final-text {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 18px;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.export-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 45px;
    flex-wrap: wrap;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-color);
    color: white;
    border: var(--border-width) solid var(--text-color);
    padding: 15px 25px;
    font-size: 14px;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

.btn-export:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.05) rotate(2deg);
}

.btn-export:active {
    transform: scale(0.98);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

/* ========== 导出选项弹窗 ========== */
.export-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.export-modal.hidden {
    display: none;
}

.export-modal-content {
    background: white;
    border: 3px solid var(--text-color);
    box-shadow: 6px 6px 0px var(--text-color);
    padding: 25px;
    max-width: 320px;
    width: 100%;
    text-align: center;
}

.export-modal-content h3 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.export-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: var(--gray);
    border: 2px solid var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.export-option-btn:hover {
    background: var(--text-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.export-option-btn i {
    font-size: 24px;
}

.export-option-btn span {
    font-size: 14px;
    font-weight: 600;
}

.export-option-btn small {
    font-size: 11px;
    opacity: 0.7;
}

.export-cancel-btn {
    background: transparent;
    border: 2px solid #ccc;
    padding: 10px 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.export-cancel-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* 暗黑模式 - 导出弹窗 */
body.dark-theme .export-modal-content {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 6px 6px 0px #000;
}

body.dark-theme .export-modal-content h3 {
    color: #e0e0e0;
}

body.dark-theme .export-option-btn {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .export-option-btn:hover {
    background: #555;
    color: white;
}

body.dark-theme .export-cancel-btn {
    border-color: #555;
    color: #888;
}

body.dark-theme .export-cancel-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-top: var(--border-width) solid var(--text-color);
    z-index: 100;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: var(--border-width) solid var(--text-color);
    padding: 12px 22px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0px var(--text-color);
}

.nav-btn:hover:not(:disabled) {
    background: var(--text-color);
    color: white;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--text-color);
}

.nav-btn:active:not(:disabled) {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-color);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.nav-btn.next {
    background: var(--text-color);
    color: white;
}

.nav-btn.next:hover:not(:disabled) {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 3px 3px 0px var(--red);
}

/* ========== 介绍文字 ========== */
.intro-text {
    font-size: 13px;
    line-height: 2.2;
    margin-bottom: 25px;
}

/* ========== 加载提示 ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    letter-spacing: 2px;
}

.loading-progress {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* ========== 导出模式样式 ========== */
body.exporting .app-header,
body.exporting .progress-bar,
body.exporting .bottom-nav,
body.exporting .btn-ready,
body.exporting .export-section,
body.exporting .page-hint,
body.exporting .blessing-note,
body.exporting .wall-hint,
body.exporting .btn-remove-friend,
body.exporting .btn-add-friend,
body.exporting .message-toggle,
body.exporting .friend-actions,
body.exporting .export-hide,
body.exporting .completion-checkmark {
    display: none !important;
}

body.exporting .page {
    animation: none !important;
}

/* 导出克隆容器样式 */
.export-clone-container {
    background: #ffffff !important;
}

.export-clone-container .page {
    background: #ffffff !important;
    animation: none !important;
}

.export-clone-container .page-content {
    background: #ffffff !important;
}

/* 导出时隐藏打勾圆点 */
.export-clone-container .completion-checkmark {
    display: none !important;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-color);
    color: white;
    padding: 12px 25px;
    font-size: 13px;
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 380px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .avatar-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .awards-grid {
        gap: 12px;
    }
    
    .award-medal {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .keywords-grid {
        gap: 8px;
    }
    
    .keyword-input {
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* ========== 图片裁剪器 ========== */
.image-cropper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cropper-container {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.cropper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.cropper-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.cropper-close:hover {
    color: white;
}

.cropper-body {
    padding: 20px;
}

.crop-area {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    cursor: grab;
}

.crop-area:active {
    cursor: grabbing;
}

#cropImage {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
}

.cropper-hint {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin: 16px 0 12px;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
}

.zoom-icon {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.zoom-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cropper-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #333;
}

.cropper-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.cropper-btn.cancel {
    background: #333;
    color: #aaa;
}

.cropper-btn.cancel:hover {
    background: #444;
    color: white;
}

.cropper-btn.confirm {
    background: var(--red);
    color: white;
}

.cropper-btn.confirm:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* ========== 图片查看器（增强版） ========== */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.image-viewer.fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.image-viewer.hidden {
    display: none;
}

.image-viewer-container {
    max-width: 90%;
    max-height: 70vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.image-viewer-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.viewer-btn {
    padding: 10px 20px;
    font-size: 12px;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viewer-btn:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.viewer-btn.danger {
    border-color: var(--red);
    color: var(--red);
}

.viewer-btn.danger:hover {
    background: var(--red);
    color: white;
}


/* ========== 开发者面板 ========== */
.dev-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9998;
    display: none; /* 默认隐藏 */
}

.dev-toggle {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: -2px 2px 8px rgba(102, 126, 234, 0.4);
}

.dev-toggle:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

.dev-toggle.active {
    border-radius: 10px;
    right: 5px;
}

.dev-menu {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #333;
    display: none;
    flex-direction: column;
    min-width: 180px;
    overflow: hidden;
}

.dev-menu.show {
    display: flex;
    animation: devMenuSlide 0.2s ease;
}

@keyframes devMenuSlide {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.dev-menu-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.dev-menu button {
    padding: 12px 15px;
    border: none;
    background: white;
    text-align: left;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.dev-menu button i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

.dev-menu button:hover {
    background: #f5f5ff;
    padding-left: 20px;
}

.dev-menu button:active {
    background: #e8e8ff;
}

.dev-menu-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.dev-menu button:hover {
    background: var(--gray);
}

.dev-menu button:not(:last-child) {
    border-bottom: 1px solid #eee;
}


/* ========== 设置按钮 ========== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn,
.settings-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    color: var(--red);
    transform: scale(1.1);
}

.settings-btn:hover {
    color: var(--red);
    transform: rotate(90deg);
}

/* ========== 设置面板 ========== */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: var(--border-width) solid var(--text-color);
    background: white;
}

.settings-header h2 {
    font-size: 16px;
    font-family: 'ZCOOL KuaiLe', cursive;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--text-color);
    color: white;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 16px 16px;
}

.settings-section {
    background: white;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--sketch-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.settings-section h3 {
    font-size: 14px;
    font-family: 'ZCOOL KuaiLe', cursive;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.settings-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

/* ========== 问题列表 ========== */
.questions-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s;
}

.question-item:hover {
    border-color: var(--text-color);
}

.question-item.disabled {
    opacity: 0.5;
    background: #f9f9f9;
}

.question-item.custom {
    border-color: var(--red);
    border-style: dashed;
}

.question-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.question-info {
    flex: 1;
    min-width: 0;
}

.question-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-label .q-tag {
    font-size: 11px;
    background: var(--text-color);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
}

.question-label .custom-tag {
    background: var(--red);
}

.question-text {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    word-break: break-all;
}

.question-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.question-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.question-action-btn:hover {
    border-color: var(--text-color);
    background: var(--gray);
}

.question-action-btn.delete:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ========== 添加问题按钮 ========== */
.btn-add-question {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--text-color);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add-question:hover {
    background: var(--gray);
    border-style: solid;
}

/* ========== 设置操作按钮 ========== */
.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-action-btn {
    padding: 12px 15px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px var(--text-color);
}

.settings-action-btn:hover {
    background: var(--text-color);
    color: white;
}

.settings-action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-color);
}

.settings-action-btn.danger {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

.settings-action-btn.danger:hover {
    background: var(--red);
    color: white;
}

.about-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

/* ========== 添加问题弹窗 ========== */
.add-question-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.add-question-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--sketch-radius);
    padding: 25px;
    width: 100%;
    max-width: 380px;
    box-shadow: 6px 6px 0px var(--text-color);
}

.modal-content h3 {
    font-size: 16px;
    font-family: 'ZCOOL KuaiLe', cursive;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: var(--border-width) solid var(--text-color);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0px var(--text-color);
}

.modal-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

.modal-select {
    width: 100%;
    padding: 12px;
    border: var(--border-width) solid var(--text-color);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 20px;
    background: white;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: var(--border-width) solid var(--text-color);
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: var(--gray);
}

.modal-btn.primary {
    background: var(--text-color);
    color: white;
}

.modal-btn.primary:hover {
    background: var(--red);
    border-color: var(--red);
}


/* ========== 设置页面优化 ========== */
.question-chapter {
    margin-bottom: 20px;
}

.chapter-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.question-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.question-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.question-toggle input:checked + .toggle-slider {
    background-color: var(--text-color);
}

.question-toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s;
    border-radius: 8px;
}

.question-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.question-item.disabled {
    opacity: 0.5;
    background: #fafafa;
}

.question-item.custom {
    border-color: var(--red);
    border-style: dashed;
    background: #fff9f9;
}

.modal-field {
    margin-bottom: 15px;
}

.modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #666;
}

.modal-textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-width) solid var(--text-color);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-shadow: 2px 2px 0px var(--text-color);
}

.modal-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 2px 2px 0px var(--red);
}

/* 自定义问题样式 */
.custom-question {
    border-left: 3px solid var(--red);
    padding-left: 15px;
    margin-left: -3px;
}

.custom-question .q-number {
    color: var(--red) !important;
}

/* 重置按钮 */
.btn-reset {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: #999;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: var(--red);
    color: var(--red);
}

/* 统计信息 */
.settings-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--gray);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    font-family: 'ZCOOL KuaiLe', cursive;
    color: var(--text-color);
}

.stat-label {
    font-size: 11px;
    color: #888;
}

/* 存储空间信息 */
.storage-info {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--gray);
    border-radius: 8px;
}

.storage-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #666;
}

.storage-bar {
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #ccc;
}

.storage-fill {
    height: 100%;
    background: var(--text-color);
    transition: width 0.5s ease, background 0.3s ease;
    border-radius: 10px;
}

.storage-text {
    font-size: 11px;
    color: #666;
    text-align: center;
}


/* ========== 暗黑模式补充样式 ========== */

/* 暗黑模式 - 好友描述文字 */
body.dark-theme .friend-desc {
    color: #ccc;
}

body.dark-theme .friend-desc .friend-name-display {
    color: var(--red);
}

/* 暗黑模式 - 新朋友区域 */
body.dark-theme .new-friend-card p {
    color: #ccc;
}

/* 暗黑模式 - 恋爱介绍文字 */
body.dark-theme .love-intro {
    color: #ccc;
}

body.dark-theme .love-person p {
    color: #ccc;
}

/* 暗黑模式 - 孤独问题 */
body.dark-theme .lonely-question {
    color: #ccc;
}

/* 暗黑模式 - 颜色选择器 */
body.dark-theme .color-picker {
    border-color: #555;
}

/* 暗黑模式 - 问题编号 */
body.dark-theme .q-number {
    color: #e0e0e0;
}

body.dark-theme .q-text {
    color: #ccc;
}

/* 暗黑模式 - 关键词区域 */
body.dark-theme .keywords-section h3 {
    color: #ccc;
}

/* 暗黑模式 - 照片区域提示 */
body.dark-theme .photos-section p {
    color: #888;
}

/* 暗黑模式 - 颜色区域 */
body.dark-theme .color-section {
    color: #ccc;
}

/* 暗黑模式 - 奖项标题 */
body.dark-theme .awards-title {
    color: #ccc;
}

/* 暗黑模式 - 愿望标题 */
body.dark-theme .wishes-title {
    color: #ccc;
}

/* 暗黑模式 - 结束页 */
body.dark-theme .ending-title {
    color: #e0e0e0;
}

body.dark-theme .final-blessing {
    color: #ccc;
}

body.dark-theme .final-blessing p {
    color: #ccc;
}

/* 暗黑模式 - 介绍文字 */
body.dark-theme .intro-text {
    color: #ccc;
}

/* 暗黑模式 - 分隔符 */
body.dark-theme .section-divider {
    color: #888;
}

/* 暗黑模式 - 聊天区域 */
body.dark-theme .chat-section p {
    color: #ccc;
}

/* 暗黑模式 - 成就框文字 */
body.dark-theme .achievement-box p {
    color: #ccc;
}

/* 暗黑模式 - 欢迎框 */
body.dark-theme .welcome-box p {
    color: #ccc;
}

/* 暗黑模式 - 好友信息输入 */
body.dark-theme .friend-info .friend-name {
    color: #e0e0e0;
}

/* 暗黑模式 - 完成标记背景 */
body.dark-theme .question-block.completed {
    background: linear-gradient(to right, transparent, rgba(231, 76, 60, 0.1), transparent);
}

/* 暗黑模式 - 图片裁剪器（已经是暗色，保持不变） */

/* 暗黑模式 - 加载提示（已经是暗色，保持不变） */

/* 暗黑模式 - 图片查看器（已经是暗色，保持不变） */

/* 暗黑模式 - select下拉框 */
body.dark-theme select {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme select option {
    background: #333;
    color: #e0e0e0;
}

/* 暗黑模式 - 所有输入框placeholder */
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #666;
}

/* 暗黑模式 - 数字输入框 */
body.dark-theme input[type="number"] {
    color: #e0e0e0;
}

/* 暗黑模式 - 文本输入框 */
body.dark-theme input[type="text"] {
    color: #e0e0e0;
}

/* 暗黑模式 - 复选框标签 */
body.dark-theme .message-toggle label {
    color: #888;
}

/* 暗黑模式 - 好友卡片 */
body.dark-theme .friend-card {
    color: #e0e0e0;
}

/* 暗黑模式 - 寄语卡片 */
body.dark-theme .message-card {
    color: #e0e0e0;
}

/* 暗黑模式 - 导出克隆容器（导出时保持白色背景） */
body.dark-theme .export-clone-container {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

body.dark-theme .export-clone-container .page {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

body.dark-theme .export-clone-container * {
    color: #1a1a1a !important;
}

body.dark-theme .export-clone-container .red {
    color: #e74c3c !important;
}


/* 照片提示文字 */
.photos-hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

body.dark-theme .photos-hint {
    color: #888;
}


/* ========== 暗黑模式 - 额外补充 ========== */

/* 暗黑模式 - 链接颜色 */
body.dark-theme a {
    color: #64b5f6;
}

body.dark-theme a:hover {
    color: #90caf9;
}

/* 暗黑模式 - 滚动条 */
body.dark-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 暗黑模式 - 选中文本 */
body.dark-theme ::selection {
    background: var(--red);
    color: white;
}

/* 暗黑模式 - 焦点轮廓 */
body.dark-theme *:focus {
    outline-color: var(--red);
}

/* 暗黑模式 - 禁用状态 */
body.dark-theme button:disabled,
body.dark-theme input:disabled,
body.dark-theme select:disabled,
body.dark-theme textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 暗黑模式 - 表单元素边框 */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    border-color: #555;
}

/* 暗黑模式 - 表单元素聚焦 */
body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    border-color: var(--red);
}

/* 暗黑模式 - hr分隔线 */
body.dark-theme hr {
    border-color: #444;
}

/* 暗黑模式 - 代码块 */
body.dark-theme code,
body.dark-theme pre {
    background: #333;
    color: #e0e0e0;
}

/* 暗黑模式 - 引用块 */
body.dark-theme blockquote {
    border-left-color: #555;
    color: #aaa;
}

/* 暗黑模式 - 表格 */
body.dark-theme table {
    border-color: #444;
}

body.dark-theme th,
body.dark-theme td {
    border-color: #444;
}

body.dark-theme th {
    background: #333;
}

body.dark-theme tr:nth-child(even) {
    background: #2a2a2a;
}

/* 暗黑模式 - 图片边框 */
body.dark-theme img {
    border-color: #555;
}

/* 暗黑模式 - 卡片悬停效果 */
body.dark-theme .sketch-box:hover,
body.dark-theme .achievement-box:hover {
    box-shadow: 6px 6px 0px #000;
}

/* 暗黑模式 - 按钮悬停效果 */
body.dark-theme .btn-ready:active,
body.dark-theme .btn-export:active {
    box-shadow: 1px 1px 0px #000;
}

/* 暗黑模式 - 主题切换按钮图标 */
body.dark-theme .theme-toggle-btn {
    color: #ffc107;
}

body.dark-theme .theme-toggle-btn:hover {
    color: #ffeb3b;
}

/* 暗黑模式 - 设置按钮 */
body.dark-theme .settings-btn {
    color: #e0e0e0;
}

body.dark-theme .settings-btn:hover {
    color: var(--red);
}

/* 暗黑模式 - Logo */
body.dark-theme .logo {
    color: #e0e0e0;
}

/* 暗黑模式 - 进度条填充 */
body.dark-theme .progress-fill {
    background: #666;
}

/* 暗黑模式 - 好友删除按钮 */
body.dark-theme .btn-remove-friend {
    background: var(--red);
}

body.dark-theme .btn-remove-friend:hover {
    background: #c0392b;
}

/* 暗黑模式 - 消息卡片头像背景 */
body.dark-theme .message-avatar {
    background-color: #444;
}

/* 暗黑模式 - 好友头像背景 */
body.dark-theme .friend-avatar {
    background-color: #444;
}

/* 暗黑模式 - 上传图标 */
body.dark-theme .upload-icon {
    color: #666;
}

body.dark-theme .photo-upload:hover .upload-icon {
    color: #888;
}

/* 暗黑模式 - 头像占位符 */
body.dark-theme .avatar-placeholder {
    background: #555;
}

/* 暗黑模式 - 问题完成标记 */
body.dark-theme .completion-checkmark {
    background: var(--red);
    color: white;
}

/* 暗黑模式 - 愿望图标 */
body.dark-theme .wish-icon {
    color: #888;
}

/* 暗黑模式 - 关键词图标 */
body.dark-theme .keyword-icon {
    color: #888;
}

/* 暗黑模式 - 新朋友头像 */
body.dark-theme .new-friend-card .friend-avatar {
    background: #444;
}

/* 暗黑模式 - 确保所有文本可读 */
body.dark-theme p,
body.dark-theme span,
body.dark-theme div,
body.dark-theme label {
    color: inherit;
}

/* 暗黑模式 - 红色文字保持红色 */
body.dark-theme .red {
    color: var(--red) !important;
}

/* 暗黑模式 - 欢迎描述文字 */
body.dark-theme .welcome-box .desc {
    color: var(--red);
}
