:root {
    --primary-color: #FF9B8B;
    --secondary-color: #FFF9F7;
    --text-color: #34495E;
    --light-gray: #FAFAFA;
    --accent-color: #FFCEC4;
    --border-color: #F0F0F0;
    --link-color: #FF8674;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 仪表盘布局样式 */
.dashboard {
    padding: 5rem 0 2rem;
    min-height: calc(100vh - 60px);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
}

/* 侧边栏样式 */
.dashboard-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: fit-content;
    overflow: hidden;
}

/* 日历组件样式 */
.calendar-widget {
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: var(--secondary-color);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

.calendar-day.active {
    background: var(--accent-color);
    color: var(--text-color);
}

.calendar-day.empty {
    cursor: default;
}

/* 主内容区样式 */
.dashboard-main {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* 笔记卡片样式 */
.post-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 1rem;
}

.post-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.post-related {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 待办列表底部样式优化 */
.view-all-todos {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.more-todos-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.view-all-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.view-all-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
}

.todo-count {
    font-size: 0.9rem;
}

.view-all-link i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 待办列表样式优化 */
.todo-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.todo-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.todos-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.view-all-todos {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.todos-counter {
    text-align: center;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.view-all-link i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.todo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    opacity: 0;
}

.todo-item.priority-high::before {
    background: #ff4d4f;
    opacity: 1;
}

.todo-item.priority-medium::before {
    background: #ffa940;
    opacity: 1;
}

.todo-item.priority-low::before {
    background: #40a9ff;
    opacity: 1;
}

.todo-item:hover {
    transform: translateX(5px);
    background: var(--secondary-color);
}

.todo-item.completed {
    opacity: 0.7;
    background: var(--light-gray);
}

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

.todo-checkbox {
    position: relative;
    flex-shrink: 0;
}

.todo-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.todo-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-checkbox input:checked + label {
    background: var(--primary-color);
}

.todo-checkbox input:checked + label::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.todo-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.todo-due {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.todo-due.overdue {
    color: #ff4d4f;
}

/* 优先级样式 */
.priority-high {
    border-left: 3px solid #ff4d4f;
}

.priority-medium {
    border-left: 3px solid #ffa940;
}

.priority-low {
    border-left: 3px solid #40a9ff;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--link-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem auto;
    padding: 0;
    border-radius: 16px;
    background: white;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* 页脚样式 */
.site-footer {
    background: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-color);
}

/* 动画 */
@keyframes modalSlideIn {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-10%);
        opacity: 0;
    }
}

/* 提示消息样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success {
    border-left: 4px solid #52c41a;
}

.toast-error {
    border-left: 4px solid #ff4d4f;
}

.toast-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    animation: progress 3s linear forwards;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-state i {
    font-size: 2rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 日程列表样式优化 */
.daily-schedule {
    margin-top: 2rem;
}

.schedule-list {
    margin-top: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.schedule-item.priority-high::before {
    background: #ff4d4f;
}

.schedule-item.priority-medium::before {
    background: #ffa940;
}

.schedule-item.priority-low::before {
    background: #40a9ff;
}

.schedule-time {
    flex-shrink: 0;
    width: 60px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.schedule-content {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.schedule-title {
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.schedule-desc {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日程详情模态框样式 */
.schedule-detail-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.schedule-detail-header {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
}

.schedule-detail-time {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.schedule-detail-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.schedule-detail-meta {
    display: flex;
    gap: 2rem;
}

.schedule-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.schedule-detail-meta-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.schedule-detail-meta-item span {
    font-size: 1rem;
    color: #666;
}

.schedule-detail-content {
    padding: 2.5rem;
}

.schedule-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    white-space: pre-wrap;
}

.schedule-detail-notes {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.schedule-detail-notes h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.schedule-detail-notes h4 i {
    color: var(--primary-color);
}

.note-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-item:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

.note-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.note-item-meta {
    font-size: 0.9rem;
    color: #666;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

/* 编辑日程模态框样式 */
.edit-schedule-modal .modal-content {
    max-width: 600px;
}

.edit-schedule-modal .modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
}

.edit-schedule-modal .modal-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
}

.edit-schedule-modal .modal-body {
    padding: 2rem;
}

.edit-schedule-modal .form-group {
    margin-bottom: 1.8rem;
}

.edit-schedule-modal label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.edit-schedule-modal input[type="text"],
.edit-schedule-modal input[type="datetime-local"],
.edit-schedule-modal textarea,
.edit-schedule-modal select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.edit-schedule-modal input:focus,
.edit-schedule-modal textarea:focus,
.edit-schedule-modal select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

.edit-schedule-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-schedule-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edit-schedule-modal .modal-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 查看模态框样式 */
.modal-detail {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.modal-detail .modal-header {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-detail .modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

.modal-detail .modal-body {
    padding: 2rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-content {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-color);
}

.detail-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.detail-tag {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.detail-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.detail-related h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.related-item {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-item-title {
    font-weight: 500;
    color: var(--text-color);
}

/* 编辑模态框样式优化 */
.edit-modal .modal-content {
    max-width: 800px;
}

.edit-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 首页样式 */
.home-page {
    padding-top: 80px;
}

.hero {
    background: linear-gradient(135deg, var(--secondary-color), white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.features {
    padding: 6rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* 功能板块整体样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 功能卡片样式 */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 待办管理卡片 */
.feature-todo {
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    border: 2px solid rgba(64,169,255,0.1);
}

.feature-todo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(64,169,255,0.2);
    border-color: rgba(64,169,255,0.3);
}

.feature-todo .feature-icon {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    color: white;
}

/* 日程安排卡片 */
.feature-schedule {
    background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
    border: 2px solid rgba(82,196,26,0.1);
}

.feature-schedule:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(82,196,26,0.2);
    border-color: rgba(82,196,26,0.3);
}

.feature-schedule .feature-icon {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
}

/* 随心记录卡片 */
.feature-notes {
    background: linear-gradient(135deg, #f9f0ff 0%, #ffffff 100%);
    border: 2px solid rgba(114,46,209,0.1);
}

.feature-notes:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(114,46,209,0.2);
    border-color: rgba(114,46,209,0.3);
}

.feature-notes .feature-icon {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
    color: white;
}

/* 功能图标样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: inherit;
    filter: blur(12px);
    opacity: 0.3;
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 0.5;
    transform: scale(1.2);
}

/* 功能标题样式 */
.feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-title::after {
    opacity: 0.2;
    transform: scaleX(1.1);
}

/* 功能描述样式 */
.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin: 0 auto;
    max-width: 280px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .feature-title {
        font-size: 1.4rem;
    }

    .feature-description {
        font-size: 1rem;
    }
}

/* 查看模态框通用样式 */
.view-modal .modal-content {
    max-width: 700px;
}

.view-modal .modal-header {
    background: var(--secondary-color);
    padding: 1.5rem 2rem;
}

.view-modal .modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

.view-modal .modal-body {
    padding: 2rem;
}

.view-content {
    margin-bottom: 2rem;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.meta-item i {
    color: var(--primary-color);
}

.view-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.view-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

.view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.view-tag {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.view-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.view-related h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.related-item {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: var(--accent-color);
}

/* 编辑模态框样式优化 */
.edit-modal .modal-content {
    max-width: 800px;
}

.edit-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 登录和注册页面样式 - 确保这是文件中唯一的相关样式 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,155,139,0.1) 0%, rgba(255,255,255,0.8) 100%);
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* 左侧欢迎区域 */
.auth-welcome {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff7875 100%);
    color: white;
    position: relative;
}

.auth-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.1;
    animation: slide 60s linear infinite;
}

.auth-welcome h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-welcome p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    position: relative;
    margin-bottom: 3rem;
}

/* 功能特点展示 */
.welcome-features {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.welcome-feature-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.welcome-feature-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.welcome-feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.welcome-feature-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* 右侧表单区域 */
.auth-form-container {
    padding: 4rem 3rem;
    background: white;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-form-header h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.auth-form-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 表单样式 */
.auth-form .form-group {
    margin-bottom: 2rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.auth-form .input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.auth-form .input-wrapper input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255,155,139,0.1);
    outline: none;
}

.auth-form .input-wrapper input::placeholder {
    color: #999;
}

/* 提交按钮 */
.auth-form .btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.auth-form .btn-submit:hover {
    background: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,155,139,0.3);
}

/* 链接样式 */
.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a span {
    color: #666;
    font-weight: normal;
    margin-right: 0.5rem;
}

.auth-links a:hover {
    color: var(--link-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        margin: 1rem;
    }

    .auth-welcome {
        padding: 3rem 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 2rem 1.5rem;
    }

    .auth-welcome {
        padding: 2rem 1.5rem;
    }

    .auth-welcome h2 {
        font-size: 2rem;
    }
}

/* 待办详情模态框样式 */
.todo-detail-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.todo-detail-header {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
}

.todo-detail-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.todo-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.todo-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.todo-detail-meta-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.todo-detail-meta-item span {
    font-size: 1rem;
    color: #666;
}

.todo-detail-content {
    padding: 2.5rem;
}

.todo-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    white-space: pre-wrap;
}

/* 编辑待办模态框样式 */
.edit-todo-modal .modal-content {
    max-width: 600px;
}

.edit-todo-modal .modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
}

.edit-todo-modal .modal-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
}

.edit-todo-modal .modal-body {
    padding: 2rem;
}

.edit-todo-modal .form-group {
    margin-bottom: 1.8rem;
}

.edit-todo-modal label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.edit-todo-modal input[type="text"],
.edit-todo-modal input[type="datetime-local"],
.edit-todo-modal textarea,
.edit-todo-modal select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.edit-todo-modal input:focus,
.edit-todo-modal textarea:focus,
.edit-todo-modal select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

.edit-todo-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-todo-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edit-todo-modal .modal-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 通用模态框样式优化 */
.modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.modal .modal-header {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
}

.modal .modal-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-right: 2rem;
}

.modal .modal-body {
    padding: 2rem;
}

/* 表单样式优化 */
.modal-form .form-group {
    margin-bottom: 1.8rem;
}

.modal-form label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.modal-form input[type="text"],
.modal-form input[type="datetime-local"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

/* 输入框焦点状态 */
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

/* 文本域高度限制 */
.modal-form textarea {
    min-height: 120px;
    max-height: 300px;
    resize: vertical;
}

/* 表单行布局 */
.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 标签输入区域样式 */
.tags-input-container {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.tags-input-container:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tag .remove-tag {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.tag .remove-tag:hover {
    color: var(--primary-color);
}

.tags-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.tags-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.95rem;
}

.btn-add-tag {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-tag:hover {
    background: var(--link-color);
    transform: translateY(-2px);
}

/* 笔记详情模态框样式 */
.note-detail {
    padding: 1rem;
}

.note-detail .note-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.note-detail .note-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.note-detail .note-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.note-detail .note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 模态框操作按钮样式 */
.modal-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-actions .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.modal-actions .btn-primary:hover {
    background: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,155,139,0.3);
}

.modal-actions .btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-actions .btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

/* 新建和编辑模态框通用样式 */
.modal-form {
    max-width: 600px;
    margin: 0 auto;
}

.modal-form .form-group {
    margin-bottom: 1.8rem;
}

.modal-form label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

/* 输入框样式统一 */
.modal-form input[type="text"],
.modal-form input[type="datetime-local"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

/* 输入框焦点状态 */
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
    background: white;
}

/* 文本域高度限制 */
.modal-form textarea {
    min-height: 120px;
    max-height: 300px;
    resize: vertical;
}

/* 表单行布局 */
.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 标签输入区域样式 */
.tags-input-container {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.tags-input-container:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,155,139,0.2);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tags-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.tags-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.95rem;
}

.btn-add-tag {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-tag:hover {
    background: var(--link-color);
    transform: translateY(-2px);
}

/* 模态框操作按钮 */
.modal-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-actions .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.modal-actions .btn-primary:hover {
    background: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,155,139,0.3);
}

.modal-actions .btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-actions .btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

/* 优化模态框头部样式 */
.modal .modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal .modal-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0;
}

.modal .modal-body {
    padding: 2rem;
}

/* 关闭按钮样式 */
.close-modal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* 修复模态框内容溢出问题 */
.modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem auto;
    padding: 0;
    border-radius: 16px;
    background: white;
}

/* 优化表单布局和间距 */
.modal-form {
    padding: 0 2rem 2rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

/* 调整输入框尺寸和间距 */
.modal-form input[type="text"],
.modal-form input[type="datetime-local"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

/* 限制文本域高度 */
.modal-form textarea {
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
}

/* 优化表单行布局 */
.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 标签输入区域紧凑化 */
.tags-input-container {
    padding: 0.8rem;
}

.tags-list {
    margin-bottom: 0.6rem;
    min-height: 32px;
}

.tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

/* 调整按钮区域样式 */
.modal-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 优化关联待办选择框 */
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
}

/* 优先级标签样式优化 */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.priority-badge.priority-high {
    background: rgba(255,77,79,0.1);
    color: #ff4d4f;
}

.priority-badge.priority-medium {
    background: rgba(255,169,64,0.1);
    color: #ffa940;
}

.priority-badge.priority-low {
    background: rgba(64,169,255,0.1);
    color: #40a9ff;
}

/* 移除之前的边框样式 */
.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* 添加优先级指示器 */
.todo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    opacity: 0;
}

.todo-item.priority-high::before {
    background: #ff4d4f;
    opacity: 1;
}

.todo-item.priority-medium::before {
    background: #ffa940;
    opacity: 1;
}

.todo-item.priority-low::before {
    background: #40a9ff;
    opacity: 1;
}

/* 调整待办详情中的优先级显示 */
.todo-detail-meta-item .priority-badge {
    margin-left: -0.4rem; /* 微调位置 */
}

/* 待办列表查看更多按钮样式 */
.view-more-todos {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.view-more-todos .btn {
    width: 100%;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-more-todos .btn:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
}

/* 优化待办列表样式 */
.todo-list {
    /* 移除 max-height 和 overflow-y 属性 */
}

.todo-list::-webkit-scrollbar {
    width: 4px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.todo-list::-webkit-scrollbar-track {
    background: transparent;
}

/* 全部待办页面样式 */
.todos-page {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
}

.todos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.todos-header h1 {
    font-size: 1.8rem;
    color: var(--text-color);
}

.todos-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: var(--link-color);
    transform: translateY(-2px);
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

/* 待办卡片样式 */
.todo-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.todo-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0.5;
}

.todo-card.priority-high::before {
    background: #ff4d4f;
    opacity: 1;
}

.todo-card.priority-medium::before {
    background: #ffa940;
    opacity: 1;
}

.todo-card.priority-low::before {
    background: #40a9ff;
    opacity: 1;
}

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

.todo-card.completed {
    opacity: 0.7;
}

.todo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.todo-status input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.priority-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.priority-badge.priority-high {
    background: rgba(255,77,79,0.1);
    color: #ff4d4f;
}

.priority-badge.priority-medium {
    background: rgba(255,169,64,0.1);
    color: #ffa940;
}

.priority-badge.priority-low {
    background: rgba(64,169,255,0.1);
    color: #40a9ff;
}

.todo-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.todo-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.todo-due-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.todo-due-date.overdue {
    color: #ff4d4f;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .todos-header {
        flex-direction: column;
        gap: 1rem;
    }

    .todos-header h1 {
        font-size: 1.5rem;
    }

    .todos-filters {
        padding: 1rem;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .todos-grid {
        grid-template-columns: 1fr;
    }

    .todo-card {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .todos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 待办列表页面布局 */
.todos-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.todos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .todos-section {
        padding: 1rem;
    }

    .todos-grid {
        grid-template-columns: 1fr;
    }

    .todo-card {
        margin-bottom: 1rem;
    }

    .todos-filters {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        margin-bottom: 1rem;
    }

    .filter-group {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .todos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast 提示样式优化 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 280px;
    max-width: 480px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left: 4px solid #52c41a;
}

.toast.error {
    border-left: 4px solid #ff4d4f;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #52c41a;
}

.toast.error i {
    color: #ff4d4f;
}

.toast-message {
    color: var(--text-color);
    font-size: 0.95rem;
    flex: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e8e8e8;
}

.toast-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    animation: progress 3s linear forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* 登录注册页面的输入框样式 - 添加到文件最后 */
.auth-form .form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

/* 修复输入框和图标的定位问题 */
.auth-form .input-wrapper {
    position: relative;
    width: 100%;
}

.auth-form .input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.auth-form .input-wrapper input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255,155,139,0.1);
}

.auth-form .input-wrapper input:focus + i {
    color: var(--primary-color);
}

.auth-form .input-wrapper input::placeholder {
    color: #999;
}

/* 登录注册按钮样式 */
.auth-form .btn-submit {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.auth-form .btn-submit:hover {
    background: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,155,139,0.3);
}

/* 链接样式 */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-links a span {
    color: #666;
    font-weight: normal;
}

.auth-links a:hover {
    color: var(--link-color);
}

/* 登录注册页面的输入框样式 - 确保这是文件中唯一的一份 */
.auth-form .form-group {
    margin-bottom: 1.8rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.auth-form .input-wrapper {
    position: relative;
    display: block;
}

.auth-form .input-wrapper input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 24px;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-form .input-wrapper input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255,155,139,0.1);
    outline: none;
}

.auth-form .input-wrapper input:focus + i {
    color: var(--primary-color);
}

/* 登录注册按钮样式 */
.auth-form .btn-submit {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.auth-form .btn-submit:hover {
    background: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,155,139,0.3);
}

/* 链接样式 */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a span {
    color: #666;
    font-weight: normal;
}

.auth-links a:hover {
    color: var(--link-color);
} 