@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.logo-icon {
    font-size: 24px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.5px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

/* 导航按钮 */
.navbar-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.btn-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.btn-text {
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.navbar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 主内容区域调整 */
main.app-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px; /* 顶部留出导航栏空间 */
    gap: 40px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .navbar-btn {
        padding: 8px 12px;
        font-size: 14px;
        gap: 4px;
    }
    
    .btn-text {
        font-size: 12px;
    }
    
    main.app-container {
        flex-direction: column;
        padding: 70px 16px 16px;
        gap: 30px;
    }
    
    .timer-container, .goal-container {
        width: 100%;
        max-width: 400px;
    }
    
    .timer {
        width: 180px;
        height: 180px;
    }
    
    .time-display {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .navbar-container {
        justify-content: space-between;
        gap: 8px;
    }
    
    .navbar-right {
        gap: 6px;
    }
    
    .navbar-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 3px;
    }
    
    .btn-text {
        font-size: 11px;
    }
    
    main.app-container {
        padding: 60px 12px 12px;
    }
}

@media (max-width: 480px) {
    /* 在极小屏幕上隐藏统计按钮，保留核心功能 */
    #stats-btn {
        display: none;
    }
    
    /* 在极小屏幕上隐藏按钮文字，只显示图标 */
    .btn-text {
        display: none;
    }
    
    .navbar-container {
        gap: 6px;
    }
    
    .navbar-right {
        gap: 4px;
    }
    
    .navbar-btn {
        padding: 6px 8px;
        font-size: 11px;
        gap: 0;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



.timer-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.timer-container > * {
    position: relative;
    z-index: 1;
}

.timer {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border: 6px solid rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    margin: 0 auto 30px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timer:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 4px rgba(79, 70, 229, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.15);
}

.timer:hover::after {
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 1),
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(79, 70, 229, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.timer:active {
    cursor: grabbing;
    transform: translateY(0);
}

.time-display {
    font-size: 2.5em;
    font-weight: 600;
    color: #000000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.timer-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#start-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

#reset-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.goal-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.goal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.goal-container > * {
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

#todo-form {
    display: flex;
    margin-bottom: 30px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#todo-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #000000;
    border-radius: 12px 0 0 12px;
}

#todo-input::placeholder {
    color: #000000;
    opacity: 0.6;
}

#todo-form button {
    padding: 16px 24px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#todo-form button:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

#todo-form button:active {
    transform: translateY(1px);
}

#todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
}

/* 自定义滚动条样式 */
#todo-list::-webkit-scrollbar {
    width: 8px;
}

#todo-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 4px 0;
}

#todo-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.6), rgba(124, 58, 237, 0.6));
    border-radius: 12px;
    transition: all 0.3s ease;
}

#todo-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(124, 58, 237, 0.8));
    transform: scaleY(1.1);
}

#todo-list::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Firefox 滚动条样式 */
#todo-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.6) rgba(255, 255, 255, 0.1);
    scroll-behavior: smooth;
}

/* 滚动渐变遮罩效果 */
.todo-section {
    position: relative;
    --top-gradient-opacity: 0;
    --bottom-gradient-opacity: 0;
}

.todo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, calc(var(--top-gradient-opacity) * 0.15)), 
        transparent);
    pointer-events: none;
    z-index: 2;
    border-radius: 12px 12px 0 0;
    transition: all 0.2s ease;
}

.todo-section::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, calc(var(--bottom-gradient-opacity) * 0.15)), 
        transparent);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 12px 12px;
    transition: all 0.2s ease;
}

/* 滚动提示文字 */
.scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: all 0.3s ease;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.todo-section.scrollable .scroll-hint {
    opacity: 1;
}

@keyframes scrollHintPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) translateY(0px);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) translateY(-2px);
    }
}

/* 平滑滚动已在上面的Firefox滚动条样式中设置 */

/* 滚动条区域鼠标悬停效果 */
#todo-list:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(124, 58, 237, 0.7));
}

#todo-list li {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    padding: 20px 24px;
    margin-bottom: 0;
    border-radius: 18px;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
}

#todo-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

#todo-list li::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(79, 70, 229, 0.6), 
        rgba(124, 58, 237, 0.6), 
        rgba(16, 185, 129, 0.6),
        rgba(79, 70, 229, 0.6));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* 暂时移除旋转动画 */
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#todo-list li:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

#todo-list li:hover::after {
    opacity: 0;
}

/* 任务状态图标 */
.task-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.task-status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 未完成状态 */
#todo-list li:not(.completed) .task-status {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    border: 2px solid rgba(79, 70, 229, 0.4);
}

#todo-list li:not(.completed) .task-status::before {
    background: transparent;
    border: 2px solid rgba(79, 70, 229, 0.6);
}

#todo-list li:not(.completed):hover .task-status {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.3));
    border-color: rgba(79, 70, 229, 0.6);
    transform: scale(1.1);
}

/* 已完成状态 */
#todo-list li.completed .task-status {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #059669;
    animation: completePulse 0.6s ease-out;
}

#todo-list li.completed .task-status::before {
    content: '✓';
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

@keyframes completePulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 任务内容 */
.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    min-width: 0;
    overflow: hidden;
}

.task-text {
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    transition: all 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
}

.task-meta {
    font-size: 13px;
    color: #000000;
    opacity: 0.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 任务操作按钮 */
.task-actions {
    display: flex;
    gap: 8px;
    z-index: 2;
    opacity: 0.3;
    transform: translateX(0);
    transition: all 0.3s ease;
    min-width: 60px;
}

#todo-list li:hover .task-actions {
    opacity: 1;
    transform: translateX(0);
}

.task-delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.task-delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.task-delete-btn:active {
    transform: translateY(0);
}

/* 已完成任务样式 */
#todo-list li.completed {
    background: rgba(255, 255, 255, 0.15);
    opacity: 0.7;
}

#todo-list li.completed::before {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%,
        rgba(5, 150, 105, 0.05) 100%);
}

#todo-list li.completed .task-text {
    text-decoration: line-through;
    opacity: 0.8;
    color: #059669;
    font-weight: 400;
}

#todo-list li.completed:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1);
    background: rgba(255, 255, 255, 0.2);
}

/* 优先级指示器 */
.task-priority {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 18px 0 0 18px;
    opacity: 0.8;
}

.task-priority.high {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
}

.task-priority.medium {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.task-priority.low {
    background: linear-gradient(to bottom, #10b981, #059669);
}



/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-container, .timer-container {
    animation: fadeInUp 0.6s ease-out;
}

#todo-list li {
    animation: taskSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes taskSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 计时器轨道光环效果 */
.timer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(79, 70, 229, 0.3), 
        rgba(124, 58, 237, 0.3), 
        rgba(245, 101, 101, 0.3),
        rgba(79, 70, 229, 0.3));
    z-index: -1;
    animation: rotate 8s linear infinite;
    opacity: 0.4;
    filter: blur(1px);
}

/* 计时器小球 */
.timer::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--ball-color, #4f46e5, #7c3aed));
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(var(--ball-rotation, 0deg));
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(79, 70, 229, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    transform-origin: 50% calc(50% + 110px);
}

/* 拖拽时禁用小球位置过渡动画，保持流畅 */
.timer.dragging::after {
    transition: none;
    transform: translateX(-50%) rotate(var(--ball-rotation, 0deg)) scale(1.1);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 1),
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(79, 70, 229, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

/* 拖拽时计时器容器的反馈 */
.timer.dragging {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 4px rgba(79, 70, 229, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 计时器轨道进度显示 */
.timer {
    --ball-rotation: 0deg;
    --ball-color: #4f46e5, #7c3aed;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 新增样式 */
.timer-instruction {
    margin-top: 15px;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    opacity: 0.7;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.todo-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.todo-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
    z-index: -1;
}

.stats-text {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* 按钮内容样式 */
.timer-controls button span,
#todo-form button span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #000000;
    font-style: italic;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 2px dashed rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

.empty-state::before {
    content: '🎯';
    display: block;
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: emptyStateFloat 3s ease-in-out infinite;
}

.empty-state::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(79, 70, 229, 0.05), 
        transparent);
    animation: emptyStateShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes emptyStateFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes emptyStateShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.empty-state:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 任务计数动画 */
.task-count {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 计时器运行时的小球脉动效果 */
.timer.running::after {
    animation: ballPulse 1.5s ease-in-out infinite;
}

@keyframes ballPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px rgba(255, 255, 255, 0.9),
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(79, 70, 229, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 0 5px rgba(255, 255, 255, 1),
            0 6px 16px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(79, 70, 229, 0.8),
            inset 0 3px 6px rgba(255, 255, 255, 0.5);
    }
}

/* ==================== 教程系统样式 ==================== */

/* 教程遮罩层 */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
}

.tutorial-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 高亮元素效果 */
.tutorial-highlight {
    position: absolute;
    border: 4px solid #4f46e5;
    border-radius: 12px;
    box-shadow: 
        0 0 0 6px rgba(79, 70, 229, 0.4),
        0 0 30px rgba(79, 70, 229, 0.8),
        0 0 50px rgba(79, 70, 229, 0.6),
        inset 0 0 0 3px rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10001;
    background: rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(2px);
    animation: tutorialPulse 2s ease-in-out infinite;
}

@keyframes tutorialPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 6px rgba(79, 70, 229, 0.4),
            0 0 30px rgba(79, 70, 229, 0.8),
            0 0 50px rgba(79, 70, 229, 0.6),
            inset 0 0 0 3px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 0 12px rgba(79, 70, 229, 0.6),
            0 0 40px rgba(79, 70, 229, 1),
            0 0 70px rgba(79, 70, 229, 0.8),
            inset 0 0 0 4px rgba(255, 255, 255, 0.4);
        transform: scale(1.02);
    }
}

/* 教程内容卡片 */
.tutorial-content {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    min-width: 320px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 10002;
    transform: scale(0.9);
    animation: tutorialSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tutorialSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 教程头部 */
.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tutorial-progress {
    flex: 1;
}

.step-counter {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 12.5%; /* 1/8 = 12.5% */
}

.tutorial-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: 16px;
}

.tutorial-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* 教程主体内容 */
.tutorial-body {
    margin-bottom: 24px;
}

.tutorial-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.tutorial-description {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 教程底部导航 */
.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tutorial-nav {
    display: flex;
    gap: 12px;
}

.tutorial-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tutorial-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.tutorial-btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.tutorial-btn-outline:hover:not(:disabled) {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.tutorial-btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.tutorial-btn-secondary:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

/* 教程箭头指向 */
.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    z-index: 10001;
    transition: all 0.3s ease;
}

.tutorial-arrow.arrow-top {
    border-bottom-color: rgba(255, 255, 255, 0.95);
    border-top: none;
}

.tutorial-arrow.arrow-bottom {
    border-top-color: rgba(255, 255, 255, 0.95);
    border-bottom: none;
}

.tutorial-arrow.arrow-left {
    border-right-color: rgba(255, 255, 255, 0.95);
    border-left: none;
}

.tutorial-arrow.arrow-right {
    border-left-color: rgba(255, 255, 255, 0.95);
    border-right: none;
}

/* 高亮的元素样式增强 */
.tutorial-highlighted {
    position: relative;
    z-index: 10001 !important;
    transform: scale(1.02);
    transition: all 0.3s ease !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .tutorial-content {
        max-width: 90vw;
        min-width: auto;
        padding: 20px;
        margin: 20px;
    }
    
    .tutorial-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tutorial-close {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .tutorial-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .tutorial-nav {
        width: 100%;
        justify-content: center;
    }
    
    .tutorial-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==================== 目标设定系统样式 ==================== */

/* 目标设定界面 */
.goal-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.goal-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.goal-content {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.goal-emoji {
    font-size: 4em;
    margin-bottom: 20px;
    animation: goalFloat 3s ease-in-out infinite;
}

@keyframes goalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.goal-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.goal-subtitle {
    font-size: 16px;
    color: #000000;
    opacity: 0.8;
    margin: 0 0 30px 0;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.goal-input-container {
    margin-bottom: 30px;
    width: 100%;
}

.goal-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.goal-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.goal-input::placeholder {
    color: #000000;
    opacity: 0.6;
}

.input-hint {
    font-size: 13px;
    color: #000000;
    opacity: 0.7;
    margin-top: 8px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.goal-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: fit-content;
}

.goal-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
}

.goal-btn:active {
    transform: translateY(-1px);
}

.goal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.goal-btn .btn-icon {
    font-size: 18px;
}

.goal-btn .btn-text {
    font-weight: 600;
}

/* 加载界面 */
.plan-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-content {
    max-width: 300px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-left: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.loading-subtitle {
    font-size: 15px;
    color: #000000;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* 任务列表界面 */
.todo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.todo-header-content {
    flex: 1;
}

.todo-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    text-align: left;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.goal-description {
    font-size: 14px;
    color: #000000;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.reset-goal-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.reset-goal-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
    border-color: rgba(239, 68, 68, 0.3);
}

.todo-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.action-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.3);
}

.action-btn .btn-icon {
    font-size: 14px;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .goal-container {
        width: 100%;
        max-width: 380px;
        padding: 24px;
    }
    
    .goal-title {
        font-size: 24px;
    }
    
    .goal-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .goal-emoji {
        font-size: 3em;
        margin-bottom: 16px;
    }
    
    .goal-input {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .goal-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .todo-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .todo-header h1 {
        text-align: center;
        font-size: 22px;
    }
    
    .todo-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    /* 移动端滚动区域调整 */
    #todo-list {
        max-height: 300px;
    }
    
    .scroll-hint {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 50px;
    }
}

@media (max-width: 480px) {    
    /* 小屏幕滚动区域进一步调整 */
    #todo-list {
        max-height: 250px;
    }
    
    #todo-list li {
        padding: 16px 20px;
    }
    
    .task-text {
        font-size: 15px;
    }
    
    .task-meta {
        font-size: 12px;
    }
    
    .scroll-hint {
        bottom: 45px;
    }
}

/* ==================== 登录/注册模态框样式 ==================== */

/* 模态框遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 模态框内容 */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.9);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
    transform: rotate(90deg);
}

/* 模态框主体 */
.modal-body {
    padding: 0 24px 24px 24px;
}

/* 认证表单 */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #111827;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input::placeholder {
    color: #6b7280;
    opacity: 0.8;
}

/* 认证按钮 */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.auth-btn-secondary {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 2px solid rgba(79, 70, 229, 0.2);
}

.auth-btn-secondary:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* 分割线 */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 114, 128, 0.3), transparent);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 16px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 成功状态样式 */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.form-success .success-title {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-success .success-message {
    font-size: 14px;
    color: #047857;
    line-height: 1.5;
}

/* 错误状态样式 */
.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-error::before {
    content: '⚠️';
    font-size: 16px;
}

/* 输入框错误状态 */
.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .auth-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}
