* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* ✨ Notion同款系统级字体栈，极其清晰锐利 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

/* 顶部栏 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.header-left h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    opacity: 0.95;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-success { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); color: white; }
.btn-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.btn-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-danger { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); color: white; }

.btn-small {
    padding: 5px 12px;
    font-size: 10px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 视图切换 */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: perspective(2000px) rotateY(-180deg) scale(0.5);
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
}

.view.active {
    opacity: 1;
    visibility: visible;
    transform: perspective(2000px) rotateY(0deg) scale(1);
    filter: blur(0px);
}

.view.exiting {
    transform: perspective(2000px) rotateY(180deg) scale(0.5);
    opacity: 0;
    filter: blur(10px);
}

/* 背景设置按钮 */
.bg-settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    z-index: 50;
    transition: all 0.2s;
}

.bg-settings-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* 经验球视图 */
.exp-balls-view {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f7fa;
}

/* 经验球 */
.exp-ball {
    position: absolute;
    width: 120px;
    height: 140px;
    cursor: move;
    user-select: none;
    transition: transform 0.2s ease;
}

.exp-ball:hover {
    transform: scale(1.05);
    z-index: 50;
}

.exp-ball.dragging {
    z-index: 9999 !important;
    cursor: grabbing !important;
    transition: none !important; /* 核心修复：干掉所有延迟，实现1:1绝对跟手 */
    transform: scale(1.08) !important; /* 提起时轻微放大 */
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.35)) !important; /* 增加离地物理悬浮阴影 */
}

.ball-sphere {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* 渐变球效果 */
/* 渐变球体 - 顶级晶莹玻璃质感 */
.ball-sphere.gradient-ball {
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        inset 0 -10px 25px rgba(0,0,0,0.2),
        inset 0 10px 20px rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.4);
}

/* 顶部锋利高光 */
.ball-sphere.gradient-ball::before {
    content: '';
    position: absolute;
    top: 2%;
    left: 10%;
    width: 80%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
    filter: blur(1px);
    z-index: 2;
}

/* 底部清透反光 */
.ball-sphere.gradient-ball::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 15%;
    width: 70%;
    height: 25%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
    z-index: 2;
}

/* 表情球效果 - 纯表情无边框 */
.ball-sphere.emoji-ball {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.ball-sphere.emoji-ball::before,
.ball-sphere.emoji-ball::after {
    display: none;
}

.ball-emoji {
    font-size: 100px;
    line-height: 1;
    z-index: 1;
}

.ball-name {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* 悬停提示 */
.ball-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    pointer-events: none;
    z-index: 200;
    min-width: 150px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: none;
}

.ball-tooltip.show {
    display: block;
}

.tooltip-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.tooltip-level {
    margin-bottom: 5px;
}

.tooltip-exp {
    margin-bottom: 8px;
}

.tooltip-progress {
    background: rgba(255,255,255,0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.tooltip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #56ab2f 0%, #a8e063 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 任务视图 */
.tasks-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f5f7fa;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.category-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 13px;
    font-weight: bold;
    color: #666;
}

.category-tab:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.category-tab.add-new {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    border: none;
}

.task-list-container {
    flex: 1;
    background: transparent;
    border-radius: 16px;
    padding: 20px;
    overflow-y: auto;
}

.task-list-container::-webkit-scrollbar {
    width: 6px;
}

.task-list-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 6px;
}

.task-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
    cursor: move;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.task-card.dragging {
    opacity: 0.5;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-info h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.task-meta {
    font-size: 12px;
    color: #666;
}

.task-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.task-type-once {
    background: #ffecd2;
    color: #f77062;
}

.task-type-daily {
    background: #e0c3fc;
    color: #8e44ad;
}

.task-type-infinite {
    background: #a8edea;
    color: #0891b2;
}

.task-buttons {
    display: flex;
    gap: 6px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    transition: border 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.ball-style-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.ball-style-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.ball-style-option:hover {
    border-color: #667eea;
}

.ball-style-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.ball-style-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.task-type-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.task-type-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 12px;
}

.task-type-option:hover {
    border-color: #667eea;
}

.task-type-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

/* 动画效果 */
.float-text {
    position: fixed;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    z-index: 9999;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

.levelup-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    pointer-events: none;
    z-index: 9999;
    animation: levelUpAnim 2s ease-out forwards;
}

@keyframes levelUpAnim {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: fireworkAnim 1s ease-out forwards;
}

@keyframes fireworkAnim {
    0% { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 0; }
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table th, .history-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.history-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #555;
}

.history-table tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.badge-beginner { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.badge-intermediate { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.badge-advanced { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.badge-master { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

/* 绘画工具 */
.draw-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 200;
}

.draw-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.draw-toggle-btn.active {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.draw-canvas.active {
    pointer-events: auto;
}

.draw-toolbar {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 201;
    max-width: 280px;
}

.draw-toolbar.show {
    display: flex;
}

.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbar-label {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tool-btn {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tool-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.tool-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tool-icon {
    font-size: 18px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.size-value {
    font-size: 12px;
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.action-btn {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-eraser {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn-clear {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.undo-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.undo-toast.show {
    opacity: 1;
}
/* ==================== 设置下拉菜单 ==================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-item {
    padding: 12px 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f4ff;
    color: #667eea;
    padding-left: 20px; /* 悬停时的小动画反馈 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ================= 旗舰版设置面板样式 ================= */
.settings-container {
    display: flex;
    padding: 0;
    width: 850px !important;
    max-width: 95vw !important;
    height: 550px;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
}

.settings-sidebar {
    width: 240px;
    background: #f0f2f5;
    border-right: 1px solid #e1e4e8;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.settings-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    padding: 0 25px 25px;
    margin: 0;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 15px;
}

.settings-tab {
    padding: 16px 25px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.settings-tab:hover {
    background: #e4e6eb;
    color: #667eea;
}

.settings-tab.active {
    background: #ffffff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: bold;
    box-shadow: -3px 0 10px rgba(0,0,0,0.02);
}

.settings-tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.settings-main {
    flex: 1;
    /* ✨ 核心修复：绝对对称的内边距 (全30px)，彻底消灭专门留给按钮的空白列！ */
    padding: 30px; 
    background: white;
    position: relative;
    overflow-y: auto;
}

.settings-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f2f5;
    border: none;
    font-size: 16px;
    width: 32px;  /* 稍微改小一点点，显得更精致 */
    height: 32px;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.settings-close-btn:hover { 
    background: #ffe3e6;
    color: #dc3545; 
    transform: rotate(90deg);
}

.settings-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.settings-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.setting-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    border: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.setting-card:hover {
    border-color: #cdd2d8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.setting-info h4 { margin: 0 0 8px 0; font-size: 16px; color: #222; }
.setting-info p { margin: 0; font-size: 13px; color: #777; }
.setting-actions { display: flex; gap: 12px; }
/* ================= 金币商城专属样式 ================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 5px;
}

.shop-grid::-webkit-scrollbar {
    width: 6px;
}
.shop-grid::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 6px;
}

.shop-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.shop-card:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.shop-card-icon {
    font-size: 45px;
    margin-bottom: 12px;
    line-height: 1;
}

.shop-card-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-price {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    background: #fff9e6;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
/* ================= 学习笔记专属样式 ================= */
.note-item {
    padding: 16px 25px;
    font-size: 15px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f0f2f5;
}

.note-item:hover { 
    background: #eef2ff; 
}

.note-item.active {
    background: #ffffff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: bold;
    box-shadow: -3px 0 10px rgba(0,0,0,0.02);
}

.note-title-input {
    border: none;
    padding: 30px 60px 20px 30px;
    font-size: 26px;
    font-weight: bold;
    color: #222;
    outline: none;
    border-bottom: 1px solid #f0f2f5;
    background: transparent;
    font-family: inherit;
}

.note-content-input {
    flex: 1;
    border: none;
    padding: 25px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    outline: none;
    resize: none;
    background: transparent;
    font-family: inherit;
}

/* 隐藏笔记列表自带的滚动条，让左侧更干净 */
#noteListContainer::-webkit-scrollbar {
    width: 4px;
}
#noteListContainer::-webkit-scrollbar-thumb {
    background: #e1e4e8;
    border-radius: 4px;
}
.note-content-input::-webkit-scrollbar {
    width: 8px;
}
.note-content-input::-webkit-scrollbar-thumb {
    background: #cdd2d8;
    border-radius: 8px;
}
/* ================= 富文本与快捷键专属样式 ================= */
/* 把之前的 textarea 样式继承给现在的 div */
div.note-content-input[contenteditable="true"] {
    flex: 1;
    overflow-y: auto;
    border: none;
    padding: 20px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    outline: none;
    background: transparent;
    cursor: text;
}
div.note-content-input[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}

.note-rich-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
}

.note-rich-toolbar button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= Notion 同款暗黑悬浮工具栏 ================= */
.notion-floating-toolbar {
    display: none; /* 默认隐藏，划词才出现 */
    position: fixed;
    background: #2f3437; /* 高级暗黑灰 */
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 9999;
    align-items: center;
    gap: 4px;
    animation: popIn 0.15s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.notion-floating-toolbar button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-family: "Times New Roman", serif; /* 还原经典的衬线字体图标感 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}

.notion-floating-toolbar button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.notion-floating-toolbar .divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
}

/* 颜色选择器巧妙融入暗黑菜单 */
.notion-floating-toolbar .color-picker-wrapper {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 15px;
}

.notion-floating-toolbar .color-picker-wrapper:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.notion-floating-toolbar .color-picker-wrapper input[type="color"] {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    cursor: pointer;
    opacity: 0;
}

.color-picker-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    cursor: pointer;
    opacity: 0; /* 隐藏真实的取色器外观，只留下点击区域 */
}

.shortcut-input {
    padding: 10px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    background: #f8f9fa;
    width: 200px;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.shortcut-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
/* ✨ 重新调优编辑器的字体大小和排版 */
.note-title-input {
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #37352f !important;
    letter-spacing: -0.02em;
}

div.note-content-input[contenteditable="true"] {
    font-size: 17px !important; 
    line-height: 1.7 !important; 
    color: #37352f !important; 
    font-weight: 400;
    
    /* ✨ 核心修复：给底部留出巨大的空间，保证你永远能点进去打字 */
    padding-bottom: 300px !important;
}

/* ================= 颜色下拉菜单样式 ================= */
.color-dropdown-container {
    position: relative;
    display: flex;
}

.color-dropdown-container button .arrow {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.6;
}

.notion-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 6px 0;
    width: 140px;
    z-index: 10000;
}

.notion-dropdown-menu.show {
    display: block;
    animation: popDown 0.15s ease-out;
}

@keyframes popDown {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dropdown-title {
    font-size: 11px;
    color: #999;
    padding: 4px 12px;
    font-weight: bold;
    margin-bottom: 2px;
}

.color-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #37352f;
    cursor: pointer;
    transition: background 0.1s;
}

.color-item:hover {
    background: #f1f1ef;
}

.color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 隐藏原本丑陋的颜色选择器包裹框 */
.color-picker-wrapper { display: none; }
/* ================= 笔记撤回按钮样式 ================= */
.note-undo-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.note-undo-btn:hover {
    background: #eef2ff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* ================= 笔记增强功能样式 ================= */

/* 侧边栏的区域标题（⭐收藏、⬅️返回、📁全部） */
.note-list-header {
    font-size: 11px;
    font-weight: bold;
    color: #999;
    padding: 15px 25px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.note-list-header.back-btn {
    cursor: pointer;
    color: #667eea;
    background: #f8f9fa;
    transition: all 0.2s;
    border-bottom: 1px solid #e1e4e8;
    padding: 15px 25px;
    margin-top: -10px; /* 紧贴顶部 */
    margin-bottom: 10px;
}

.note-list-header.back-btn:hover { 
    background: #eef2ff;
    color: #5a67d8; 
}

/* 侧边栏右侧的暗藏星星 */
.note-star-btn {
    opacity: 0;
    cursor: pointer;
    font-size: 14px;
    color: #f6ad55;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.note-item:hover .note-star-btn {
    opacity: 1;
}

/* ✨ 面包屑导航样式 (替代旧版的返回按钮) */
.note-breadcrumb-header {
    padding: 15px 25px 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 10px;
}

.breadcrumb-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: bold;
    color: #37352f;
}

.breadcrumb-item:hover {
    background: #eef2ff;
    color: #667eea;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 12px;
}

/* ================= 高级笔记增强样式 ================= */

/* 左侧标题与返回层级 (面包屑) */
.note-list-header { font-size: 11px; font-weight: bold; color: #999; padding: 15px 25px 8px; text-transform: uppercase; letter-spacing: 1px; }

.note-breadcrumb-header {
    padding: 15px 25px 8px; font-size: 13px; color: #666; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    border-bottom: 1px solid #f0f2f5; margin-bottom: 10px; margin-top: -10px;
}
.breadcrumb-item { cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; font-weight: bold; color: #37352f; }
.breadcrumb-item:hover { background: #eef2ff; color: #667eea; }
.breadcrumb-separator { color: #ccc; font-size: 12px; }

.note-star-btn { opacity: 0; cursor: pointer; font-size: 14px; color: #f6ad55; transition: opacity 0.2s; margin-left: 10px; }
.note-item:hover .note-star-btn { opacity: 1; }

/* ✨ 重点：正文内联子页面区块 (强制排他版) */
.notion-inline-page {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
    align-items: center;
    padding: 10px 15px;
    margin: 4px 0 !important; /* 收紧了上下边距，现在看起来更紧凑精致 */
    background: #f7f7f5;
    border-radius: 6px;
    cursor: grab; 
    transition: background 0.2s, border-color 0.2s;
    font-weight: 500;
    color: #37352f;
    border: 1px solid transparent;
    user-select: none; 
    -webkit-user-drag: element;
    clear: both !important; /* ✨ 绝对禁止任何东西和它挤在同一行 */
}

.notion-inline-page:active {
    cursor: grabbing; 
}

.notion-inline-page:hover {
    background: #efefed;
    border-color: #e1e1e1;
}

.notion-inline-page .page-icon, 
.notion-inline-page .page-title {
    pointer-events: none;
}

.notion-inline-page .page-icon { margin-right: 12px; font-size: 18px; }
.notion-inline-page .page-title { flex: 1; }
/* ================= 升级特效增强 ================= */
@keyframes premiumLevelUp {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); filter: blur(10px); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); filter: blur(0px); }
    30% { transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0px); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1.3); filter: blur(15px); }
}

.task-card.dragging {
    opacity: 0.8 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    z-index: 100;
}
/* ==================== 画质分级控制系统 (Graphics Quality) ==================== */
/* 极速低画质：干掉所有极其耗费GPU的模糊和复杂阴影，关闭球体动画 */
body.gfx-low .task-card {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
body.gfx-low .modal-content {
    animation: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
body.gfx-low .glow-container {
    animation: none !important; /* 关闭光晕呼吸动画 */
}

/* 均衡中画质：保留基本阴影和过渡，关闭毛玻璃 */
body.gfx-medium .task-card {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* 极致高画质：火力全开 (维持默认的高斯模糊等设定，无需额外覆盖) */


/* ==================== 经验球高级光晕特效 ==================== */
.glow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

/* 彻底抛弃巨型模糊背景，改用收紧的强光投影 */
.glow-tier-1 {
    box-shadow: 0 10px 25px rgba(var(--glow-color), 0.45);
}

.glow-tier-2 {
    box-shadow: 0 10px 30px rgba(var(--glow-color), 0.55), 0 0 15px rgba(var(--glow-color), 0.4);
    animation: auraBreathe 2.5s ease-in-out infinite alternate;
}

.glow-tier-3 {
    box-shadow: 0 15px 40px rgba(var(--glow-color), 0.65), 0 0 25px rgba(var(--glow-color), 0.5), inset 0 0 15px rgba(var(--glow-color), 0.3);
    animation: masterFloat 3s ease-in-out infinite alternate;
}

@keyframes auraBreathe {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

@keyframes masterFloat {
    0% { transform: translate(-50%, -46%); }
    100% { transform: translate(-50%, -54%); }
}
/* ================= 极简高颜值登录弹窗 (完美还原) ================= */
.auth-modal-wrapper {
    position: relative;
    background: #f8f9fa; /* 还原截图中的淡灰背景色 */
    margin: 5% auto;
    padding: 40px 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

/* 顶部探头头像 */
.auth-avatar {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.auth-avatar img { width: 100%; height: 100%; border-radius: 50%; }

.auth-title { text-align: center; font-size: 24px; color: #333; margin-top: 10px; margin-bottom: 8px; letter-spacing: 1px; }
.auth-subtitle { text-align: center; font-size: 14px; color: #888; margin-bottom: 30px; }

.auth-label { display: block; font-size: 14px; color: #333; margin-bottom: 8px; }

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s;
}
.input-with-icon:focus-within { border-color: #4662d9; box-shadow: 0 0 0 3px rgba(70, 98, 217, 0.1); }

.input-icon { width: 20px; height: 20px; color: #aaa; margin-right: 10px; }
.input-action-icon { width: 20px; height: 20px; color: #888; cursor: pointer; transition: color 0.2s; }
.input-action-icon:hover { color: #4662d9; }

.input-with-icon input {
    flex: 1;
    border: none;
    padding: 14px 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}
.input-with-icon input::placeholder { color: #ccc; }

/* 记住我与忘记密码 */
.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }

.auth-checkbox-container { display: flex; align-items: center; cursor: pointer; position: relative; padding-left: 24px; user-select: none; }
.auth-checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 16px; width: 16px; background-color: #fff; border: 1px solid #ccc; border-radius: 4px; transition: all 0.2s; }
.auth-checkbox-container:hover input ~ .checkmark { border-color: #4662d9; }
.auth-checkbox-container input:checked ~ .checkmark { background-color: #4662d9; border-color: #4662d9; }
.checkmark:after { content: ""; position: absolute; display: none; left: 5px; top: 2px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-checkbox-container input:checked ~ .checkmark:after { display: block; }

.auth-link { color: #4662d9; text-decoration: none; font-size: 14px; transition: opacity 0.2s; }
.auth-link:hover { opacity: 0.8; }

/* 主按钮 */
.auth-submit-btn {
    width: 100%;
    background: #4662d9; /* 完美还原截图中的静谧蓝 */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    letter-spacing: 2px;
}
.auth-submit-btn:hover { background: #3b54b4; }
.auth-submit-btn svg { width: 20px; height: 20px; }

/* Google 快捷登录 */
.btn-google-new {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}
.btn-google-new:hover { background: #f0f2f5; }
.btn-google-new img { width: 18px; height: 18px; }

/* 底部区域 */
.auth-footer { text-align: center; margin-top: 25px; font-size: 14px; }
/* ================= ✨ 治愈系微插画动态背景 (纯 CSS 硬件加速) ================= */
.healing-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: -1; /* 永远垫底 */
    overflow: hidden;
    transition: opacity 0.5s ease;
    /* 模拟一天中极其缓慢的天空变色：清晨蓝 -> 治愈落霞粉 -> 清晨蓝 */
    animation: skyCycle 60s ease-in-out infinite alternate;
}

@keyframes skyCycle {
    0%, 100% { background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%); } /* 晴空蓝 */
    50% { background: linear-gradient(180deg, #ffe4e6 0%, #fff1f2 100%); }     /* 落霞粉 */
}

/* 柔软发光的太阳/月亮 */
.healing-sun {
    position: absolute;
    top: 15%; right: 15%;
    width: 90px; height: 90px;
    background: #fef08a; /* 温暖的奶油黄 */
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(254, 240, 138, 0.6);
    /* 像呼吸一样温柔地上下浮动 */
    animation: sunFloat 8s ease-in-out infinite alternate;
}

@keyframes sunFloat {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 50px rgba(254, 240, 138, 0.5); }
    100% { transform: translateY(-15px) scale(1.05); box-shadow: 0 0 80px rgba(254, 240, 138, 0.8); }
}

/* 极简慵懒的云朵 */
.healing-cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50px;
    opacity: 0.7;
    filter: blur(1px); /* 让边缘变得软糯 */
    animation: cloudDrift linear infinite;
    will-change: transform; /* 开启 GPU 强制加速，绝对不卡 */
}

.cloud-1 { top: 20%; left: -20%; width: 140px; height: 45px; animation-duration: 50s; animation-delay: 0s; }
.cloud-2 { top: 38%; left: -20%; width: 90px; height: 30px; animation-duration: 35s; animation-delay: -20s; opacity: 0.4; }

@keyframes cloudDrift {
    0% { transform: translateX(-20vw); }
    100% { transform: translateX(120vw); }
}

/* 底部起伏的波浪地平线 */
.healing-wave {
    position: absolute;
    bottom: -10%; left: -10%; 
    width: 120%; height: 25%;
    background: #ffffff;
    border-radius: 50% 50% 0 0; /* 切出弧形 */
    animation: waveFloat 10s ease-in-out infinite alternate;
    will-change: transform;
}

.wave-1 { 
    bottom: -15%; 
    background: #ffffff; 
    opacity: 1; 
    animation-duration: 12s; 
}
.wave-2 { 
    bottom: -10%; 
    background: rgba(255, 255, 255, 0.5); 
    animation-duration: 8s; 
    animation-delay: -3s; 
    transform-origin: center bottom; 
}

@keyframes waveFloat {
    0% { transform: translateY(0) rotate(-1deg) scaleY(1); }
    100% { transform: translateY(-15px) rotate(1deg) scaleY(1.05); }
}
/* ================= 左右分栏全屏登录界面 结构重构 ================= */
.auth-fullscreen-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px; /* 大约一个宽屏的尺寸 */
    height: 85vh;
    min-height: 550px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: fadeInScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 左侧壁纸区占据 60% 宽度 */
.auth-left-banner {
    flex: 6;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

/* 给左侧壁纸加一个黑色渐变，让白字凸显出来 */
.auth-left-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.auth-banner-text, .auth-banner-footer {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.auth-banner-footer {
    font-size: 28px;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

/* 右侧表单区占据 40% 宽度 */
.auth-right-panel {
    flex: 4;
    min-width: 400px;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 表单容器居中 */
.auth-form-container {
    width: 100%;
    max-width: 360px;
    padding: 20px;
}

/* 修正之前的浮空头像，将其放入普通文档流中 */
.auth-avatar {
    position: static;
    transform: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f2f5;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: none;
}
.auth-avatar img { width: 100%; height: 100%; border-radius: 50%; }

/* 重写标题对齐方式为居左 */
.auth-title { text-align: left; font-size: 28px; color: #333; margin-top: 0; margin-bottom: 8px; letter-spacing: 0px; }
.auth-subtitle { text-align: left; font-size: 14px; color: #888; margin-bottom: 35px; }

/* 修正输入框外边距 */
.auth-form .form-group { text-align: left; margin-bottom: 20px; }
/* ================= 番茄钟专属样式 ================= */
.task-card.pomo-active {
    border: 3px solid #ff4757 !important;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3) !important;
    animation: pomoPulse 2s infinite;
    transform: scale(1.02);
}

@keyframes pomoPulse {
    0% { border-color: #ff4757; }
    50% { border-color: #ffafbd; }
    100% { border-color: #ff4757; }
}

.pomo-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 71, 87, 0.95);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}
/* ================= 主屏幕左下角番茄钟悬浮按钮 ================= */
.pomo-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
}

.pomo-toggle-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 25px rgba(255, 154, 158, 0.6);
}
/* ================= 模组高级封面卡片样式 ================= */
.module-cover-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 15px;
}

.module-cover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #ff9a9e;
}

.module-card-bg {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
}

.module-card-content {
    flex: 1;
}

.module-card-content h4 {
    margin: 0 0 5px 0;
    font-size: 17px;
    color: #222;
}

.module-card-content p {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.module-card-arrow {
    font-size: 13px;
    font-weight: bold;
    color: #ff6b81;
    background: #fff0f2;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 10px;
    transition: all 0.2s;
}

.module-cover-card:hover .module-card-arrow {
    background: #ff6b81;
    color: white;
}

/* ================= 模组详情面板展开动画 ================= */
.module-details-panel {
    background: #fdfdfd;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 20px;
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.module-details-body {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    animation: slideDownFade 0.2s ease-out;
}

/* ================= 高级 iOS 风格拨动开关 ================= */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e4e6eb;
    transition: .3s;
    border-radius: 30px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ios-switch input:checked + .ios-slider {
    background-color: #34c759; /* iOS 经典绿 */
}

.ios-switch input:checked + .ios-slider:before {
    transform: translateX(22px);
}
/* ================= 模组高级封面卡片 & 页面切换 ================= */
.module-cover-card {
    display: flex; align-items: center; background: #ffffff;
    border: 1px solid #e1e4e8; border-radius: 16px; padding: 15px 20px;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.module-cover-card:hover { transform: translateY(-2px); border-color: #ff9a9e; box-shadow: 0 6px 15px rgba(255, 154, 158, 0.15); }
.module-card-icon {
    font-size: 26px; width: 48px; height: 48px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
}
.module-card-content { flex: 1; }
.module-card-content h4 { margin: 0 0 4px 0; font-size: 16px; color: #222; }
.module-card-content p { margin: 0; font-size: 13px; color: #888; line-height: 1.4; }
.module-card-arrow { font-size: 12px; font-weight: bold; color: #ff6b81; background: #fff0f2; padding: 6px 12px; border-radius: 20px; }

/* 详情页头部与教程框 */
.module-page-header { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
.module-back-btn { background: #f0f2f5; border: none; padding: 8px 15px; border-radius: 8px; color: #555; font-weight: bold; cursor: pointer; transition: background 0.2s; font-size: 13px; }
.module-back-btn:hover { background: #e4e6eb; color: #333; }
.module-tutorial-box { background: #fff8e6; border-left: 4px solid #f6ad55; padding: 15px; border-radius: 0 8px 8px 0; margin-bottom: 20px; color: #555; }
.module-tutorial-box h5 { margin: 0 0 10px 0; color: #d9730d; font-size: 14px; }
.module-tutorial-box ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.module-tutorial-box li { margin-bottom: 4px; }
/* ================= 番茄钟抽取任务极其优雅的高级 UI ================= */
.pomo-cat-label {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #ffffff; border: 2px solid #edf2f7;
    border-radius: 14px; margin-bottom: 10px; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pomo-cat-label:hover {
    border-color: #ffb8b8; background: #fffafb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 71, 87, 0.06);
}

.pomo-cat-label.active {
    border-color: #ff4757; background: #fff5f5;
}

.pomo-cat-icon {
    font-size: 20px; background: #f8f9fa; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all 0.2s;
}

.pomo-cat-label.active .pomo-cat-icon {
    background: #ffe3e6;
}

.pomo-cat-label .custom-checkbox {
    width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e0;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: white;
}

.pomo-cat-label.active .custom-checkbox {
    background: #ff4757; border-color: #ff4757;
}

.pomo-cat-label.active .custom-checkbox::after {
    content: '✓'; color: white; font-size: 14px; font-weight: bold;
}

#pomoSetupCategories::-webkit-scrollbar { width: 4px; }
#pomoSetupCategories::-webkit-scrollbar-thumb { background: #ffb8b8; border-radius: 4px; }