/* ========== 心扉猫 · 温暖治愈风格 ========== */
/* 保留主题切换，优化圆角、阴影、字体、间距 */

/* 主题变量（暖色 / 冷色） */
:root {
    --bg: #fef7e8;
    --card-bg: #ffffff;
    --primary: #e6a17a;
    --primary-light: #fbe5d4;
    --primary-dark: #c97e5a;
    --text: #3e3a39;
    --text-light: #8b7a6f;
    --border: #f0e4d4;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
}


body.cool {
    --bg: #eef2f5;
    --card-bg: #f5f7fd;   /* 改为冷色调卡片背景 */
    --primary: #7c9a92;
    --primary-light: #d4e0db;
    --primary-dark: #5f7c72;
    --text: #2c3e4e;
    --text-light: #7a8e9e;
    --border: #d0d8e8;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    padding: 20px 16px 40px;
    transition: background 0.2s;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* 头部区域 */
.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.subtitle {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* 探索之路卡片 */
.footprint-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.footprint-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footprint-card h3::before {
    content: "📝";
    font-size: 20px;
}
.footprint-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footprint-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.footprint-item:last-child {
    border-bottom: none;
}
.footprint-icon {
    font-size: 20px;
    width: 28px;
}
.footprint-text {
    flex: 1;
}
.footprint-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.refresh-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    margin-left: auto;
    cursor: pointer;
}

/* 模块卡片网格 */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.module-card {
    display: block;
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
}
.module-card:active {
    transform: scale(0.97);
}
.module-emoji {
    font-size: 40px;
    margin-bottom: 12px;
}
.module-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}
.module-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* AI 陪聊入口 */
.chat-entry {
    margin-bottom: 32px;
}
.chat-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 48px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.chat-btn:active {
    transform: scale(0.98);
}
.chat-btn:hover {
    background: var(--primary-dark);
}

/* 治愈能量站 */
.healing-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.healing-text {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 0;
    line-height: 1.4;
    color: var(--primary-dark);
}
.healing-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.healing-btn {
    background: var(--primary-light);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.1s;
    color: var(--text);
}
.healing-btn:active {
    opacity: 0.7;
}

/* 数据操作栏 */
.data-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.data-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.data-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.data-btn {
    background: var(--primary-light);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.1s;
    color: var(--text);
}
.data-btn:active {
    opacity: 0.7;
}
.clear-btn {
    background: #ffe6e5;
    color: #c44;
}

/* 底部提示 */
.footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* 高级设置（猫模式） */
.advanced-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.advanced-card h4 {
    margin-bottom: 12px;
}
.advanced-card select, .advanced-card textarea {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-bottom: 12px;
}

/* 聊天模态框（保持原有功能，优化样式） */
.chat-modal {
    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: 2000;
}
.chat-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    height: 70%;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.chat-header {
    padding: 16px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.chat-message {
    margin-bottom: 16px;
    display: flex;
}
.chat-message.user {
    justify-content: flex-end;
}
.chat-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 24px;
    background: var(--primary-light);
    color: var(--text);
}
.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
}
.unlock-guide, .chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border);
}
.chat-input-area {
    display: flex;
    gap: 8px;
}
#chatInput {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
}

/* ========== style.css 补充 - 适配 index.html 类名 ========== */

/* Logo 区域 */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 顶部按钮行 */
.mode-toggle {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
}
.theme-toggle {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
}

/* 模块卡片网格 */
.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.module-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

/* 通用卡片（覆盖 .footprint-card / .data-card 等） */
.card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 刷新图标 */
.refresh-icon {
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    user-select: none;
}

/* 间距工具类 */
.mt-2 { margin-top: 16px; }
.text-center { text-align: center; }

/* flex 工具类 */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* 通用按钮（覆盖已有的 .btn-sm 等） */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 48px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-sm {
    background: var(--primary-light);
    color: var(--text);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.1s;
}
.btn-sm:active { opacity: 0.7; }

.btn-danger {
    background: #ffe6e5;
    color: #c44;
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

/* 隐私提示 */
.privacy-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* 模态框（覆盖 .chat-modal 等） */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 480px;
    border-radius: 28px;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}
.export-modal .modal-content {
    max-width: 360px;
}

.gate-modal-content {
    background: linear-gradient(180deg, #0a0a1e 0%, #1a1a3a 100%) !important;
    border: 2px solid rgba(247,215,116,0.6);
}

/* 聊天消息 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 200px;
    max-height: 400px;
}
.chat-message {
    margin-bottom: 12px;
    display: flex;
}
.chat-message.user { justify-content: flex-end; }
.chat-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
}
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 0 0;
}
.chat-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 14px;
    outline: none;
}
.prompt-display {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: left;
}
.unlock-area {
    text-align: center;
    padding: 16px 0 0;
}
.unlock-area p {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
}
.unlock-input {
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 14px;
    width: 60%;
    max-width: 200px;
    outline: none;
}
.end-chat-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-light);
    margin-top: 8px;
}

/* 高级设置（猫模式） */
.advanced-settings {
    border: 2px dashed var(--primary-light);
}
.unlock-adv-btn {
    background: var(--primary-light);
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}
.advanced-settings label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 12px;
}
.advanced-settings select,
.advanced-settings textarea {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
}

/* 治愈能量站 */
.healing-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.feedback-btn {
    background: var(--primary-light);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: 0.1s;
}
.feedback-btn:active { opacity: 0.7; }

/* 导入选项 */
.import-options {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.import-options.hidden { display: none; }

/* 情绪警告 */
.warning {
    background: #fff3cd;
    border-radius: 16px;
    padding: 12px;
    font-size: 13px;
    margin-top: 12px;
    color: #856404;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* AI 陪聊猫爪 - 右侧中部（距顶部30%） */
.chat-fab {
    position: fixed;
    right: 20px;
    top: 30%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary, #4eb3b3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
}
.chat-fab:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--primary-dark, #3a9a9a);
}
.cat-paw {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 首次访问高亮按钮 */
.highlight-btn {
    background: linear-gradient(135deg, #f7d774, #e8a850) !important;
    color: #1a0a2e !important;
    font-weight: 700 !important;
    box-shadow: 0 0 8px rgba(247,215,116,0.6) !important;
}

@media (max-width: 550px) {
    #gateHookBubble {
        white-space: normal;
        max-width: 80vw;
        font-size: 12px;
        bottom: -10%;
    }
}

.story-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 200;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.story-box {
    background: #1a0a2e; border-radius: 36px; padding: 24px 20px;
    max-width: 520px; width: 85%; text-align: center;
    border: 2px solid rgba(247,215,116,0.4);
    box-shadow: 0 0 60px rgba(0,0,0,0.7);
}
.story-emoji { font-size: 48px; margin-bottom: 12px; }
.story-title { font-size: 22px; font-weight: 800; color: #f7d774; margin-bottom: 12px; }
.story-text { font-size: 13px; color: #cbb8a6; line-height: 1.6; margin-bottom: 20px; text-align: left; }
.story-btn {
    background: linear-gradient(135deg, #f7d774, #e8a850);
    color: #1a0a2e; border: none; border-radius: 60px;
    padding: 10px 28px; font-size: 16px; font-weight: 700;
    cursor: pointer;
}
@media (max-width: 550px) {
    .story-box { padding: 20px 16px; width: 90%; }
    .story-emoji { font-size: 40px; }
    .story-title { font-size: 20px; }
    .story-text { font-size: 12px; }
    .story-btn { font-size: 14px; padding: 8px 24px; }
}

/* 购买会员弹窗适配移动端 */
@media (max-width: 640px) {
    #memberPurchaseModal .modal-content {
        width: 85%;
        padding: 20px 16px;
    }
    #memberPurchaseModal img {
        width: 160px !important;
    }
}

/* ========== 反馈浮窗按钮 ========== */
/* 反馈浮窗按钮 */
.feedback-float-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #ffffff;
    color: #4EB3B3;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: btnBreathing 2s ease-in-out infinite;
}

.feedback-float-btn:hover {
    transform: scale(1.05);
    background: #f0f8f8;
    color: #3da0a0;
    animation: none;
}

/* 猫咪图片动画（如果使用图片） */
.feedback-cat-img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
    animation: catWave 1.5s ease-in-out infinite;
    transform-origin: center;
}

/* 猫咪表情动画（如果使用 Emoji） */
.feedback-cat-emoji {
    display: inline-block;
    font-size: 20px;
    animation: catWave 1.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes catWave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

@keyframes btnBreathing {
    0% {
        box-shadow: 0 4px 12px rgba(78, 179, 179, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(78, 179, 179, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 12px rgba(78, 179, 179, 0.2);
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .feedback-float-btn {
        bottom: 70px;
        right: 16px;
        padding: 8px 16px;
        font-size: 14px;
    }
    .feedback-cat-img, .feedback-cat-emoji {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }
}
/* ========== 反馈弹窗 ========== */
.feedback-float-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.feedback-float-modal.active {
    visibility: visible;
    opacity: 1;
}
.feedback-float-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.feedback-float-container {
    position: relative;
    background: #FFFCF8;
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    overflow: hidden;
}
.feedback-float-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0e6d8;
    background: #FFF8F0;
}
.feedback-float-title {
    font-size: 18px;
    font-weight: 600;
    color: #5b4e3a;
}
.feedback-float-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #b8a088;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-float-close:hover {
    background: #f0e6d8;
}
.feedback-float-body {
    padding: 20px;
}
.feedback-field {
    margin-bottom: 18px;
}
.feedback-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5b4e3a;
    margin-bottom: 6px;
}
.feedback-optional {
    font-size: 12px;
    font-weight: normal;
    color: #b8a088;
}
.feedback-select,
.feedback-input,
.feedback-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0d6c8;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #3B2A1F;
    transition: border 0.2s;
    box-sizing: border-box;
}
.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: #4EB3B3;
    box-shadow: 0 0 0 2px rgba(78,179,179,0.1);
}
.feedback-textarea {
    resize: vertical;
}
.feedback-submit-btn {
    background: #4EB3B3;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 12px 20px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.feedback-submit-btn:hover {
    background: #3da0a0;
}
.feedback-submit-btn.disabled {
    background: #b8c9c9;
    cursor: not-allowed;
}
.feedback-submit-msg {
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    color: #e8a850;
}

/* 动态日志列表样式 */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.update-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f0e6d8;
}
.update-date {
    min-width: 80px;
    color: #8b7a66;
    font-size: 12px;
}
.update-content {
    flex: 1;
    color: #5b4e3a;
}
.update-badge-new {
    background: #f7d774;
    color: #1a0a2e;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 600;
}
.update-loading {
    color: #b8a088;
    text-align: center;
    padding: 20px;
}

/* 离别归来横幅 - 优化版 */
.return-reminder-banner {
    background: linear-gradient(135deg, #FFF7E8 0%, #FFE8C8 100%);
    border-left: 5px solid #f7d774;
    border-radius: 16px;
    margin: 16px 0;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    animation: slideDown 0.4s ease;
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}
#bannerText {
    flex: 1;
    font-size: 14px;
    color: #5b4e3a;
    line-height: 1.4;
}
#bannerText a {
    color: #4EB3B3;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 6px;
    white-space: nowrap;
}
.banner-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #b8a088;
    padding: 0 8px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .banner-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    #bannerText {
        width: 100%;
        order: 2;
    }
    .banner-icon {
        order: 1;
    }
    .banner-close {
        order: 3;
    }
    #bannerText a {
        white-space: normal;
    }
}

/* 辅助工具卡片（第5个及以后）使用主题主色调的柔和版本 */
.module-grid a:nth-child(n+5) {
    background: var(--primary-light) !important;
    opacity: 0.85;
    border: 1px solid var(--primary) !important;
    border-radius: 28px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.module-grid a:nth-child(n+5):hover {
    transform: translateY(-3px);
    opacity: 1;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

/* 解锁模态框：防止横向滚动条，优化小屏幕显示 */
#globalUnlockModal .modal-content,
#unlockModal .modal-content,
#memberPurchaseModal .modal-content {
    max-width: 95vw !important;
    width: auto !important;
    padding: 20px 16px !important;
    overflow-x: hidden !important;
}

/* 权益表格：小屏时自动换行/缩小字体，不出现滚动条 */
#globalUnlockModal table,
#unlockModal table {
    width: 100% !important;
    min-width: 0 !important;      /* 移除最小宽度限制 */
    font-size: 12px !important;
    display: table;
    table-layout: auto;
    word-break: break-word;
}
#globalUnlockModal th,
#globalUnlockModal td,
#unlockModal th,
#unlockModal td {
    padding: 8px 6px !important;
    white-space: normal !important;  /* 允许换行 */
}

/* 双栏区域在小屏幕上自动换行 */
#globalUnlockModal .flex-between,
#globalUnlockModal > div > div:last-child {
    flex-wrap: wrap !important;
}
#globalUnlockModal .flex-between > div {
    flex: 1 1 100% !important;
    margin-bottom: 16px;
}