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

/* ========== 主题系统 CSS 变量 ========== */
:root {
    /* 默认主题：绿色心情 */
    --primary-start: #4CAF50;
    --primary-end: #8BC34A;
    --primary-solid: #4CAF50;
    --secondary-start: #8BC34A;
    --secondary-end: #AED581;
    --accent-start: #81C784;
    --accent-end: #AED581;
    --dark: #2E7D32;
    --bg-gradient-1: rgba(139, 195, 74, 0.35);
    --bg-gradient-2: rgba(76, 175, 80, 0.25);
    --bg-gradient-3: rgba(174, 213, 129, 0.25);
    --bg-base: #D9E8DF;
    --shadow-primary: rgba(76, 175, 80, 0.3);
    --shadow-secondary: rgba(76, 175, 80, 0.4);
    --shadow-accent: rgba(139, 195, 74, 0.4);
    --focus-ring: rgba(76, 175, 80, 0.15);
    --bg-subtle: rgba(76, 175, 80, 0.08);
}

/* 紫罗兰主题 - VIP */
[data-theme="violet"] {
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --primary-solid: #667eea;
    --secondary-start: #764ba2;
    --secondary-end: #9b59b6;
    --accent-start: #a29bfe;
    --accent-end: #6c5ce7;
    --dark: #4a3269;
    --bg-gradient-1: rgba(102, 126, 234, 0.35);
    --bg-gradient-2: rgba(118, 75, 162, 0.25);
    --bg-gradient-3: rgba(155, 89, 182, 0.25);
    --bg-base: #e8e4f0;
    --shadow-primary: rgba(102, 126, 234, 0.3);
    --shadow-secondary: rgba(118, 75, 162, 0.4);
    --shadow-accent: rgba(162, 155, 254, 0.4);
    --focus-ring: rgba(102, 126, 234, 0.15);
    --bg-subtle: rgba(102, 126, 234, 0.08);
}

/* 樱花粉主题 - VIP */
[data-theme="sakura"] {
    --primary-start: #ff9a9e;
    --primary-end: #fecfef;
    --primary-solid: #ff9a9e;
    --secondary-start: #fecfef;
    --secondary-end: #ffecd2;
    --accent-start: #ffcbf2;
    --accent-end: #ffafbd;
    --dark: #d6336c;
    --bg-gradient-1: rgba(255, 154, 158, 0.35);
    --bg-gradient-2: rgba(254, 207, 239, 0.25);
    --bg-gradient-3: rgba(255, 236, 210, 0.25);
    --bg-base: #fff0f5;
    --shadow-primary: rgba(255, 154, 158, 0.3);
    --shadow-secondary: rgba(254, 207, 239, 0.4);
    --shadow-accent: rgba(255, 203, 242, 0.4);
    --focus-ring: rgba(255, 154, 158, 0.15);
    --bg-subtle: rgba(255, 154, 158, 0.08);
}

/* 苹果风透明白色 - VIP */
[data-theme="ocean"] {
    --primary-start: #81C784;
    --primary-end: #66BB6A;
    --primary-solid: #81C784;
    --secondary-start: #A5D6A7;
    --secondary-end: #81C784;
    --accent-start: #C8E6C9;
    --accent-end: #66BB6A;
    --dark: #43A047;
    --bg-gradient-1: rgba(255, 255, 255, 0.8);
    --bg-gradient-2: rgba(245, 245, 247, 0.6);
    --bg-gradient-3: rgba(232, 232, 237, 0.4);
    --bg-base: #F5F5F7;
    --shadow-primary: rgba(129, 199, 132, 0.3);
    --shadow-secondary: rgba(102, 187, 106, 0.4);
    --shadow-accent: rgba(129, 199, 132, 0.25);
    --focus-ring: rgba(129, 199, 132, 0.2);
    --bg-subtle: rgba(0, 0, 0, 0.03);
}

/* 苹果风主题特殊处理 - 磨砂玻璃效果 */
[data-theme="ocean"] .container,
[data-theme="ocean"] .task-panel,
[data-theme="ocean"] .unified-log-details,
[data-theme="ocean"] .task-item,
[data-theme="ocean"] .operation-log,
[data-theme="ocean"] .login-modal-content,
[data-theme="ocean"] .member-modal-content {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="ocean"] .timer-display {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 苹果风主题按钮 - 使用淡绿色 */
[data-theme="ocean"] .btn-start,
[data-theme="ocean"] .btn-pause,
[data-theme="ocean"] .btn-reset {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%) !important;
    color: white !important;
    border: none !important;
}

[data-theme="ocean"] .btn-start:hover,
[data-theme="ocean"] .btn-pause:hover,
[data-theme="ocean"] .btn-reset:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%) !important;
    box-shadow: 0 4px 12px rgba(129, 199, 132, 0.4) !important;
}

/* 日落橙主题 - VIP */
[data-theme="sunset"] {
    --primary-start: #fa709a;
    --primary-end: #fee140;
    --primary-solid: #fa709a;
    --secondary-start: #fee140;
    --secondary-end: #f8b500;
    --accent-start: #ffb347;
    --accent-end: #ffcc33;
    --dark: #d63031;
    --bg-gradient-1: rgba(250, 112, 154, 0.35);
    --bg-gradient-2: rgba(254, 225, 64, 0.25);
    --bg-gradient-3: rgba(248, 181, 0, 0.25);
    --bg-base: #fff8e1;
    --shadow-primary: rgba(250, 112, 154, 0.3);
    --shadow-secondary: rgba(254, 225, 64, 0.4);
    --shadow-accent: rgba(255, 179, 71, 0.4);
    --focus-ring: rgba(250, 112, 154, 0.15);
    --bg-subtle: rgba(250, 112, 154, 0.08);
}

/* 暗夜黑主题 - VIP */
[data-theme="dark"] {
    --primary-start: #74b9ff;
    --primary-end: #0984e3;
    --primary-solid: #74b9ff;
    --secondary-start: #4a5568;
    --secondary-end: #5d6d7e;
    --accent-start: #85c1e9;
    --accent-end: #5499c7;
    --dark: #2c3e50;
    --bg-gradient-1: rgba(52, 73, 94, 0.3);
    --bg-gradient-2: rgba(72, 126, 176, 0.25);
    --bg-gradient-3: rgba(93, 109, 126, 0.25);
    --bg-base: #34495e;
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.4);
    --shadow-accent: rgba(116, 185, 255, 0.3);
    --focus-ring: rgba(116, 185, 255, 0.2);
    --bg-subtle: rgba(116, 185, 255, 0.08);
}

/* 暗夜主题特殊处理 */
[data-theme="dark"] .container,
[data-theme="dark"] .task-panel,
[data-theme="dark"] .unified-log-details,
[data-theme="dark"] .task-item,
[data-theme="dark"] .operation-log,
[data-theme="dark"] .login-modal-content,
[data-theme="dark"] .member-modal-content {
    background: rgba(52, 73, 94, 0.85) !important;
    border-color: rgba(116, 185, 255, 0.3) !important;
}

[data-theme="dark"] body {
    color: #dfe6e9;
}

[data-theme="dark"] .container h1,
[data-theme="dark"] .task-panel h2,
[data-theme="dark"] .site-title {
    color: #74b9ff !important;
    -webkit-text-fill-color: #74b9ff !important;
}

[data-theme="dark"] .timer-display {
    color: #74b9ff !important;
    -webkit-text-fill-color: #74b9ff !important;
}

[data-theme="dark"] .task-title {
    color: #dfe6e9 !important;
}

[data-theme="dark"] .task-info,
[data-theme="dark"] .settings label,
[data-theme="dark"] .preset-selector label {
    color: #b2bec3 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select {
    background: rgba(93, 109, 126, 0.5) !important;
    color: #dfe6e9 !important;
    border-color: rgba(116, 185, 255, 0.3) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* 主题渐变背景 */
    background:
        radial-gradient(ellipse at 20% 30%, var(--bg-gradient-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--bg-gradient-2) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, var(--bg-gradient-3) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-base) 0%, var(--bg-base) 50%, var(--bg-base) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    transition: background 0.5s ease;
}

/* 背景装饰圆 - 增强玻璃态效果 */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(var(--primary-solid-rgb, 76, 175, 80), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(174, 213, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 网站主标题 */
.site-header {
    width: 100%;
    text-align: center;
    padding: 20px 0 15px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-title {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    filter: drop-shadow(2px 2px 4px var(--focus-ring));
}

/* 右上角用户栏 */
.top-user-bar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 15px 25px;
    z-index: 100;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-trigger-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-solid);
    border: 2px solid var(--primary-solid);
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-trigger-btn:hover {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

.logged-in-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.username-display {
    color: var(--primary-solid);
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.username-display:hover {
    color: var(--secondary-start);
    opacity: 0.8;
}

.logout-btn-small {
    padding: 5px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn-small:hover {
    background: #d32f2f;
}

/* 登录/注册弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-modal.show {
    display: flex;
}

.login-modal-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0;
    border-radius: 24px;
    min-width: 380px;
    max-width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.login-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    z-index: 0;
}

#loginModalTitle {
    color: white;
    margin: 0;
    padding: 25px 30px 20px;
    text-align: center;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.login-tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--primary-solid);
    background: rgba(255,255,255,0.9);
    color: var(--primary-solid);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

.login-tab-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 30px 30px;
    position: relative;
    z-index: 1;
}

.login-tab-content label {
    display: flex;
    flex-direction: column;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.required {
    color: #f44336;
}

.forgot-password {
    text-align: right;
    margin-top: -5px;
    margin-bottom: 15px;
}

.forgot-password a {
    color: var(--primary-solid);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.forgot-password a:hover {
    color: var(--secondary-start);
    text-decoration: underline;
}

.forgot-password-content {
    text-align: center;
    padding: 20px 30px 30px;
}

.forgot-tip {
    color: var(--primary-solid);
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info {
    background: rgba(255,255,255,0.9);
    padding: 18px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info p {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
}

.forgot-steps {
    text-align: left;
    background: rgba(255,243,205,0.9);
    padding: 18px;
    border-radius: 12px;
    margin-top: 15px;
}

.forgot-steps p {
    margin: 10px 0;
    font-size: 13px;
    color: #856404;
}

.forgot-steps strong {
    color: #856404;
}

.login-tab-content input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 6px;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}

.login-tab-content input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.reg-tip {
    font-size: 12px;
    color: var(--primary-solid);
    text-align: center;
    margin: 5px 0;
    font-weight: 600;
}

.btn-login-action {
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

/* 登录/注册按钮居中 */
#modalLoginBtn, #modalRegisterBtn {
    align-self: center;
    width: 100%;
}

.btn-login-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-secondary);
}

/* 会员信息弹窗 */
.member-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.member-modal.show {
    display: flex;
}

.member-modal-content {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 0;
    border-radius: 24px;
    width: 450px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(252, 182, 159, 0.4);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

.member-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.member-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.login-modal-close,
.member-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    line-height: 1;
}

.login-modal-close:hover,
.member-modal-close:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

.member-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 24px 24px 0 0;
    z-index: 0;
}

.member-modal-content h2 {
    color: white;
    margin: 0;
    padding: 25px 60px 20px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.member-modal-content h3 {
    color: #666;
    margin: 20px 0 10px;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.member-status {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    border-radius: 16px;
    color: #333;
    margin: 25px 30px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    border: 1px solid var(--primary-solid);
}

.member-welcome {
    font-size: 16px;
    margin: 5px 0;
    color: var(--dark);
}

.member-level {
    font-size: 20px;
    font-weight: bold;
    margin: 12px 0 8px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-benefits-box {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 16px;
    margin: 15px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    border: 1px solid var(--primary-solid);
}

.feature-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.feature-comparison-table th {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.feature-comparison-table th:first-child {
    border-radius: 8px 0 0 0;
}

.feature-comparison-table th:last-child {
    border-radius: 0 8px 0 0;
}

.feature-comparison-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.feature-comparison-table tr:last-child td {
    border-bottom: none;
}

.feature-comparison-table tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.feature-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.feature-comparison-table .free-no {
    color: #666;
    font-weight: 500;
}

.feature-comparison-table .vip-yes {
    color: var(--primary-solid);
    font-weight: bold;
}

.vip-contact {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-subtle);
    border-radius: 8px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-item {
    color: #333;
    font-size: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-solid);
    font-weight: 500;
}

.usage-info-box {
    background: rgba(255,243,205,0.9);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #ffc107;
    margin: 15px 30px;
    box-shadow: 0 4px 15px rgba(255,193,7,0.2);
    position: relative;
    z-index: 1;
}

.usage-count {
    color: #856404;
    font-size: 14px;
    margin: 8px 0;
    font-weight: 500;
}

.usage-count span {
    font-weight: bold;
    color: #d9534f;
    font-size: 16px;
}

/* 剩余次数提示 */
.usage-reminder {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #856404;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.usage-reminder span {
    font-weight: bold;
    color: #d9534f;
    font-size: 16px;
}

/* VIP用户隐藏剩余次数提示 */
.usage-reminder.vip-hidden {
    display: none;
}

/* 操作记录表 */
.operation-log {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    margin-top: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.operation-log summary {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    user-select: none;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.operation-log summary:hover {
    background: #f8f9fa;
}

.operation-log summary::-webkit-details-marker {
    display: none;
}

.operation-log summary::before {
    content: '▶';
    font-size: 10px;
    margin-right: 8px;
}

.operation-log[open] summary::before {
    content: '▼';
}

.operation-log span {
    color: #6c757d;
    font-weight: normal;
}

.log-table {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.log-table::-webkit-scrollbar {
    width: 6px;
}

.log-table::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.log-table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.log-table::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.log-empty {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 13px;
}

.log-item {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

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

.log-item:hover {
    background: #f8f9fa;
}

.log-index {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.log-content {
    flex: 1;
    line-height: 1.4;
}

.log-time {
    color: #6c757d;
    font-size: 11px;
    flex-shrink: 0;
}

.log-action-add {
    color: #28a745;
}

.log-action-edit {
    color: #ffc107;
}

.log-action-delete {
    color: #dc3545;
}

.log-action-complete {
    color: #17a2b8;
}

.log-action-update {
    color: #fd7e14;
}

.log-updated {
    text-decoration: line-through;
    opacity: 0.6;
}

.vip-activate-box {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,165,0,0.2) 100%);
    padding: 20px;
    border-radius: 16px;
    margin: 15px 30px 30px;
    border: 2px solid rgba(255,215,0,0.5);
    color: #333;
    position: relative;
    z-index: 1;
}

.vip-activate-box label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.vip-activate-box input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 12px;
    font-size: 14px;
    margin-top: 5px;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}

.vip-activate-box input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

.btn-vip-action {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-vip-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.vip-tip {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 12px 0 0;
    font-weight: 500;
}

/* VIP二维码区域 */
.vip-qrcode-box {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    max-width: 33.33%; /* 弹窗宽度的1/3 */
    margin-left: auto;
    margin-right: auto;
}

.vip-qrcode-box .qrcode-title {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.vip-qrcode-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 同步按钮区域 */
.sync-section {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 16px;
    margin: 15px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    border: 1px solid var(--primary-solid);
}

.sync-section h3 {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

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

.sync-button-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-sync {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-sync:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.btn-sync:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sync-message {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    min-height: auto;
    line-height: 1.5;
}

.sync-message.success {
    background: #d4edda;
    color: #155724;
}

.sync-message.error {
    background: #f8d7da;
    color: #721c24;
}

.sync-message.info {
    background: #e3f2fd;
    color: #0c5460;
}

.sync-message.loading {
    background: #fff3cd;
    color: #856404;
}

/* ========== 主题选择区域 ========== */
.theme-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    padding: 20px;
    border-radius: 16px;
    margin: 15px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.theme-section h3 {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.theme-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-solid);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-card:hover:not(.theme-locked) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-card.active {
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.theme-card.theme-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.theme-card.theme-locked:hover {
    transform: none;
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.theme-preview-default {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.theme-preview-violet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-preview-sakura {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.theme-preview-ocean {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    border: 2px solid rgba(129, 199, 132, 0.5);
}

.theme-preview-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #74b9ff 0%, #34495e 100%);
}

.theme-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.theme-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.theme-free {
    background: #d4edda;
    color: #155724;
}

.theme-vip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.theme-tip {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 8px 0 0;
    font-style: italic;
}

/* 主题选择区域 */
.sync-message.loading {
    background: #fff3cd;
    color: #856404;
}

/* 主布局容器 */
.main-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container {
    /* 玻璃态效果 */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 24px;
    border-radius: 24px;
    /* 多层阴影增强深度感 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 500px;
    width: 95%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin-top: 70px;
}

.container:hover {
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.container h1 {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: bold;
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    border: 2px solid var(--shadow-secondary);
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary-solid);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

.tab[data-mode="continuous"].active {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

.tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-primary);
}

/* 倒计时显示 */
.timer-display {
    font-size: 52px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 8px var(--shadow-primary));
}

/* 控制按钮 */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.controls button {
    padding: 11px 24px;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#startBtn {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

#pauseBtn {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--secondary-end) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

#resetBtn {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--secondary-end) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.controls button:hover {
    transform: scale(1.05);
}

.controls button:active {
    transform: scale(0.95);
}

.controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 设置区域 */
.settings {
    border-top: 2px solid #eee;
    padding-top: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.settings::-webkit-scrollbar {
    width: 5px;
}

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

.settings::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.settings::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.settings-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.settings label {
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.settings input {
    padding: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 70px;
    text-align: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.settings input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.settings select {
    padding: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.settings select:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.audio-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.audio-label {
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
}

.duration-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    white-space: nowrap;
    font-size: 12px;
}

.duration-input {
    padding: 4px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 40px;
    text-align: center;
    font-size: 12px;
}

.btn-test {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--accent-start) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-test:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

#applySettings {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
    width: auto;
    min-width: 85px;
    align-self: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

#applySettings:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-secondary);
}

/* 预设选择器 */
.preset-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

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

.preset-selector select {
    padding: 8px 14px;
    border: 2px solid var(--shadow-primary);
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    min-width: 120px;
    transition: all 0.3s ease;
}

.preset-selector select:hover {
    border-color: var(--shadow-secondary);
}

.preset-selector select:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.preset-selector select:hover {
    border-color: #45a049;
}

.btn-delete {
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--secondary-end) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.default-preset-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.default-preset-label input {
    cursor: pointer;
}

/* 保存预设区域 */
.preset-save-row {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.preset-name-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preset-name-label input {
    width: 120px;
    padding: 6px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

.btn-save {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--accent-start) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

/* ========== 任务面板 ========== */
.task-panels {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.task-panel {
    /* 玻璃态效果 */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 24px;
    border-radius: 24px;
    /* 多层阴影增强深度感 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    height: 85vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin-top: 70px;
}

.task-panel:hover {
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.task-panel:first-child {
    width: 360px;
}

.task-panel:last-child {
    width: 320px;
}

.task-panel h2 {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
}

/* 任务表单 */
.task-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.task-form label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    text-align: left;
}

.task-form label input,
.task-form label select {
    flex: 1;
}

/* 星期选择器 */
.weekday-selector {
    flex-direction: row !important;
    justify-content: center;
}

/* 音频设置行 */
.audio-settings-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.audio-settings-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.audio-settings-row label span {
    white-space: nowrap;
}

.audio-settings-row label select,
.audio-settings-row label input {
    flex: 1;
}

.weekdays {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.weekdays label {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.weekdays label:hover {
    background: rgba(255, 255, 255, 0.8);
}

.weekdays label input {
    width: auto;
    flex: none;
    cursor: pointer;
}

.weekdays label:has(input:checked) {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    box-shadow: 0 2px 8px var(--shadow-primary);
}

.task-form input[type="text"],
.task-form input[type="time"],
.task-form input[type="datetime-local"] {
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.task-form input[type="datetime-local"] {
    cursor: pointer;
}

.task-form input[type="text"]:focus,
.task-form input[type="time"]:focus,
.task-form input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.task-form select {
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.task-form select:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.task-duration-input {
    padding: 6px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
}

.btn-add-task {
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.btn-add-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-secondary);
}

/* 表单按钮组 */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel-edit {
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.btn-add-task.editing {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--secondary-end) 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-add-task.editing:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.task-item.editing {
    background: var(--shadow-accent);
    border-left-width: 6px;
}

/* 任务列表 */
.task-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

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

.task-list::-webkit-scrollbar-thumb {
    background: var(--primary-solid);
    border-radius: 3px;
}

.task-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px;
    border-left: 4px solid var(--primary-solid);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.task-item.completed {
    border-left-color: var(--accent-start);
    opacity: 0.7;
}

.task-item.overdue {
    border-left-color: var(--primary-solid);
    background: var(--shadow-accent);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: #999;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.task-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    flex: 1;
    word-break: break-word;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.btn-task-action {
    padding: 4px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-task-complete {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
}

.btn-task-complete:hover {
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.btn-task-edit {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--accent-start) 100%);
    color: white;
}

.btn-task-edit:hover {
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.btn-task-delete {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--secondary-end) 100%);
    color: white;
}

.btn-task-delete:hover {
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.task-status.pending {
    background: linear-gradient(135deg, var(--secondary-end) 0%, var(--accent-start) 100%);
    color: #2d3436;
}

.task-status.completed {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--accent-start) 100%);
    color: #2d3436;
}

.task-status.overdue {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--dark) 100%);
    color: white;
}

.empty-tasks {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* ========== 任务弹窗 ========== */
.task-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.task-modal.show {
    display: flex;
}

.task-modal-content {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    padding: 0;
    border-radius: 24px;
    text-align: center;
    min-width: 360px;
    max-width: 90%;
    box-shadow: 0 25px 80px var(--shadow-secondary);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.task-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: modalShine 3s infinite;
}

@keyframes modalShine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.task-modal-content h3 {
    color: white;
    margin: 0;
    padding: 30px 30px 15px;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-modal-content h3::before {
    content: '🔔';
    display: inline;
    font-size: 1.2em;
    margin-bottom: 0;
    animation: bellRing 0.5s ease-in-out;
    flex-shrink: 0;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.task-modal-content p {
    color: rgba(255,255,255,0.95);
    margin: 0;
    padding: 0 30px 25px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 30px 30px;
    position: relative;
    z-index: 1;
}

.btn-modal-complete,
.btn-modal-close {
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.btn-modal-complete {
    background: rgba(255,255,255,0.25);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-modal-complete:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-modal-close {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.btn-modal-close:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ========== 限制提醒弹窗 ========== */
.limit-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.limit-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.limit-modal-content {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    padding: 0;
    border-radius: 28px;
    min-width: 400px;
    max-width: 90%;
    box-shadow: 0 30px 90px rgba(255, 107, 107, 0.5);
    position: relative;
    animation: limitModalSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.limit-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: limitModalShine 4s infinite;
}

@keyframes limitModalShine {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

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

.limit-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    line-height: 1;
}

.limit-modal-close:hover {
    color: white;
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.1);
}

.limit-icon {
    font-size: 64px;
    text-align: center;
    padding-top: 35px;
    position: relative;
    z-index: 1;
    animation: limitIconBounce 1s ease-in-out infinite;
}

@keyframes limitIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.limit-modal-content h3 {
    color: white;
    margin: 20px 0 10px;
    padding: 0 30px;
    font-size: 1.7em;
    font-weight: bold;
    text-shadow: 0 3px 15px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    text-align: center;
}

.limit-message {
    color: rgba(255,255,255,0.95);
    margin: 0;
    padding: 0 30px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-align: center;
}

.limit-number {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    margin: 0 4px;
}

.limit-vip-features {
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 20px 25px;
    margin: 20px 30px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.limit-feature-item {
    color: white;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.limit-feature-item strong {
    color: #fff;
    font-weight: 600;
}

.limit-price {
    text-align: center;
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    padding: 10px 30px;
    position: relative;
    z-index: 1;
}

.limit-price strong {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.limit-modal-vip-btn {
    display: block;
    width: calc(100% - 60px);
    margin: 15px auto 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 1;
}

.limit-modal-vip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.5);
}

.limit-modal-close-btn {
    display: block;
    width: calc(100% - 60px);
    margin: 10px auto 25px;
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.limit-modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ========== 账户区域样式 ========== */
.account-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    flex-shrink: 0;
}

.account-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.account-status p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

/* 登录/注册表单样式（保留兼容） */
.login-form {
    margin-top: 10px;
}

.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: #e0e0e0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-solid);
    color: white;
}

.tab-content {
    background: white;
    padding: 12px;
    border-radius: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-content label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #666;
}

.tab-content input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 3px;
}

.tip {
    font-size: 11px;
    color: #666;
    margin: 5px 0;
}

.btn-primary {
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.btn-secondary {
    padding: 6px 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d32f2f;
}

.logged-in-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .task-panels {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .task-panels {
        flex-direction: column;
    }

    .task-panel {
        width: 100%;
        max-width: 340px;
        margin-top: 65px;
    }

    .container {
        height: auto;
        min-height: 50vh;
        margin-top: 65px;
    }

    .task-panel {
        height: 60vh;
    }

    .member-modal-content {
        min-width: 90%;
        padding: 20px;
    }

    .member-modal-close {
        font-size: 24px;
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }

    .member-modal-content h2 {
        font-size: 1.5em;
        padding: 20px 40px 15px;
    }

    .member-status {
        margin: 90px 20px 15px;
    }
}

/* 页脚样式 */
.site-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    margin-top: 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    color: #333;
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-content .footer-desc {
    color: #666;
    font-size: 13px;
}

.footer-content .footer-permissions {
    color: var(--primary-solid);
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-subtle);
    border-radius: 8px;
}

/* ========== 统一操作记录表 ========== */
.unified-log-section {
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
    z-index: 1;
}

.unified-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
}

.unified-log-details {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.unified-log-summary {
    padding: 12px 25px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    color: white;
}

.unified-log-summary:hover {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
}

.unified-log-summary::-webkit-details-marker {
    display: none;
}

.toggle-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-hint::before {
    content: '▶';
    font-size: 10px;
}

.unified-log-details[open] .toggle-hint::before {
    content: '▼';
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-icon {
    font-size: 24px;
}

.summary-title {
    font-size: 18px;
    font-weight: bold;
}

.summary-count {
    background: rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.summary-right {
    display: flex;
    gap: 10px;
}

.btn-export-log,
.btn-clear-log {
    padding: 8px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-export-log:hover,
.btn-clear-log:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.unified-log-content {
    padding: 20px;
}

.log-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.search-label {
    flex: 1;
    min-width: 200px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.unified-log-table {
    max-height: 500px;
    overflow-y: auto;
}

.unified-log-table::-webkit-scrollbar {
    width: 8px;
}

.unified-log-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.unified-log-table::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.unified-log-table::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.log-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.log-table-item {
    display: grid;
    grid-template-columns: 140px 110px minmax(80px, 0.4fr) 1fr 80px 160px;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.log-table-item:hover {
    background: var(--bg-subtle);
}

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

.log-task-details {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-id {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    background: var(--bg-subtle);
    padding: 4px 8px;
    border-radius: 6px;
    text-align: left;
    justify-self: start;
}

.log-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    justify-self: center;
}

.log-type.pomodoro {
    background: linear-gradient(135deg, var(--secondary-end) 0%, var(--accent-start) 100%);
    color: #2d3436;
}

.log-type.weekly {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--primary-start) 100%);
    color: white;
}

.log-type.single {
    background: linear-gradient(135deg, var(--secondary-end) 0%, var(--secondary-start) 100%);
    color: white;
}

.log-task-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-task-details {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    justify-self: center;
}

.log-action.add {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--accent-start) 100%);
    color: #2d3436;
}

.log-action.edit {
    background: linear-gradient(135deg, var(--secondary-end) 0%, var(--accent-start) 100%);
    color: #2d3436;
}

.log-action.complete {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--primary-start) 100%);
    color: white;
}

.log-action.delete {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--dark) 100%);
    color: white;
}

.log-action.start {
    background: linear-gradient(135deg, var(--secondary-start) 0%, var(--primary-start) 100%);
    color: white;
}

.log-action.remind {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--primary-start) 100%);
    color: white;
}

.log-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    white-space: nowrap;
    justify-self: end;
}

.log-table-header {
    display: grid;
    grid-template-columns: 140px 110px minmax(80px, 0.4fr) 1fr 80px 160px;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-subtle);
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-solid);
}

.log-table-header > div:nth-child(1) {
    justify-self: start;
}

.log-table-header > div:nth-child(2),
.log-table-header > div:nth-child(5) {
    justify-self: center;
}

.log-table-header > div:nth-child(6) {
    justify-self: end;
}

.log-table-header {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .log-table-item,
    .log-table-header {
        grid-template-columns: 110px 90px minmax(80px, 0.4fr) 1fr 70px 130px;
        gap: 10px;
    }

    .log-id {
        display: none;
    }

    .log-type {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 600px) {
    .unified-log-summary {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .summary-right {
        justify-content: center;
    }

    .log-table-item,
    .log-table-header {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }

    .log-table-header {
        display: none;
    }

    .log-id,
    .log-type {
        display: inline-flex;
    }

    .log-table-item {
        padding: 12px 15px;
    }
}

/* 移动端适配 */
@media (max-width: 700px) {
    .site-title {
        font-size: 24px;
    }

    .site-header {
        padding: 15px 0 10px;
    }

    .unified-log-section {
        margin: 20px auto;
    }
}

/* ========== 通用确认对话框 ========== */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.confirm-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-content {
    background: white;
    padding: 30px 25px 20px;
    border-radius: 20px;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.confirm-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.confirm-modal-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.confirm-modal-content p {
    margin: 0 0 25px;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn-cancel,
.confirm-btn-confirm {
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.confirm-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.confirm-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: white;
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .confirm-modal-content {
        padding: 25px 20px 15px;
        min-width: 280px;
    }

    .confirm-icon {
        font-size: 40px;
    }

    .confirm-modal-content h3 {
        font-size: 18px;
    }

    .confirm-modal-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .confirm-actions {
        flex-direction: column;
        gap: 10px;
    }

    .confirm-btn-cancel,
    .confirm-btn-confirm {
        width: 100%;
        min-width: unset;
    }
}

/* ========== 区块使用简介提示 ========== */
/* 区块容器添加相对定位，为提示框定位 */
.container,
.task-panel {
    position: relative;
}

/* 帮助提示框 - 位于区块顶部中间，外部显示 */
.block-help-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow-primary);
    width: 280px;
    min-height: 50px;
    font-size: 14px;
    line-height: 1.5;
    color: white;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* 提示框显示状态 */
.block-help-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* 添加小箭头指向区块 */
.block-help-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-end);
}

/* 小屏幕优化 */
@media (max-width: 768px) {
    .block-help-tooltip {
        top: -55px;
        font-size: 12px;
        padding: 10px 15px;
        width: 240px;
        min-height: 45px;
    }

    .container,
    .task-panel {
        margin-top: 65px;
    }
}
