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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    padding: 10px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    color: #0066cc;
}

.divider {
    color: #ccc;
}

.language-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 3px 6px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

main {
    flex: 1;
    width: 100%;
}

h1 {
    text-align: center;
    margin: 40px 0;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
    min-height: 250px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
    text-align: center;
}

.tool-card p {
    color: #666;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.coming-soon {
    cursor: default;
    background: #f8f9fa;
    opacity: 0.8;
}

.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.coming-soon .tool-icon {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .tool-card {
        padding: 30px;
        min-height: 200px;
    }
}

/* 添加禁用状态的工具卡片样式 */
.tool-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.tool-card.disabled::after {
    content: "开发中";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 广告区样式 */
.banner-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* 广告容器 */
.banner-container {
    width: 100%;
    height: 125px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

/* Swiper容器样式 */
.swiper-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Swiper幻灯片样式 */
.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 广告图片样式 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 广告链接样式 */
.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 分页器样式 */
.swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-container {
        height: 100px;
    }

    .banner-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* 年度进度展示样式优化 */
.year-progress-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.year-progress-container {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 进度标题区域样式 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px 0;
    color: #333;
}

.progress-info {
    flex: 1;
}

.progress-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.progress-motto {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.progress-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.track-btn,
.report-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    height: 28px;
    line-height: 20px;
}

.track-btn {
    background-color: #4CAF50;
    color: white;
}

.track-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.report-btn {
    background-color: #2196F3;
    color: white;
}

.report-btn:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 进度格子样式 */
.progress-box {
    aspect-ratio: 1;
    background: #4CAF50;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 12px;
    max-height: 12px;
}

/* 已过日期的格子 */
.progress-box.filled {
    background: #f0f0f0;
}

/* 有事项的格子 */
.progress-box.has-events {
    background-color: #1976D2 !important;
    cursor: pointer !important;
}

/* 有事项的格子悬停效果 */
.progress-box.has-events:hover {
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 自定义提示框样式 */
.progress-box.has-events::before {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(33, 33, 33, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre-line;
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 3;
}

/* 提示框箭头 */
.progress-box.has-events::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(33, 33, 33, 0.9) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

/* 悬停时显示提示框 */
.progress-box.has-events:hover::before,
.progress-box.has-events:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: 110%;
}

/* 进度格子网格布局 */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    gap: 2px;
    margin-bottom: 10px;
    padding: 2px;
}

.progress-detail {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* 日历样式 */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.calendar-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 日历头部样式 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-date {
    display: flex;
    gap: 10px;
}

.current-date select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.add-event-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-event-btn:hover {
    background: #45a049;
}

.add-event-btn i {
    font-size: 16px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.close-calendar {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.close-calendar:hover {
    color: #333;
    background: #f5f5f5;
}

/* 日历主体样式 */
#calendar {
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #666;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    max-height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.today {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.day-number {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
    flex-shrink: 0;
    font-size: 14px;
}

/* 事项样式 */
.event-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 2px;
    font-size: 12px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.event-list::-webkit-scrollbar {
    width: 3px;
}

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

.event-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

.event-item {
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    line-height: 1.4;
}

.event-item:hover {
    background: #bbdefb;
}

.event-title {
    color: #1976d2;
    font-weight: bold;
    margin-bottom: 2px;
}

.event-desc {
    color: #666;
    font-size: 11px;
}

/* 日历中的事项样式 */
.calendar-day .event-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日历中隐藏事项描述 */
.calendar-day .event-desc {
    display: none;
}

/* 事项指示点 */
.event-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* 事项编辑弹窗样式 */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.event-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-buttons button[type="submit"] {
    background: #4CAF50;
    color: white;
}

.form-buttons button[type="button"] {
    background: #f5f5f5;
    color: #666;
}

.form-buttons button:hover {
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .calendar-content {
        width: 95%;
        padding: 15px;
    }

    .calendar-day {
        min-height: 80px;
        max-height: 80px;
        padding: 4px;
    }

    .day-number {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .event-item {
        padding: 1px 3px;
        font-size: 10px;
    }

    .event-content {
        width: 95%;
        margin: 30px auto;
    }
}

/* 修改有事项的日期颜色 */
.progress-box.has-events {
    background-color: #1976D2 !important; /* 使用蓝色作为基础颜色 */
}

.progress-box.has-events:hover {
    background-color: #1565C0 !important; /* 悬停时使用稍深的蓝色 */
}

/* 保持其他进度格子的颜色 */
.progress-box {
    aspect-ratio: 1;
    background: #4CAF50;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.progress-box.filled {
    background: #f0f0f0;
}

/* 日期事项列表弹窗 */
.day-events-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

/* 按钮组样式优化 */
.progress-actions {
    display: flex;
    gap: 10px;
}

.track-btn,
.report-btn {
    padding: 4px 10px;
    height: 28px;
    font-size: 13px;
    gap: 4px;
}

.track-btn {
    background-color: #4CAF50;
    color: white;
}

.track-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.report-btn {
    background-color: #2196F3;
    color: white;
}

.report-btn:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 报告弹窗样式优化 */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.report-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.report-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.report-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1976D2;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.report-events {
    margin-top: 20px;
}

.day-section {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.day-date {
    flex: 0 0 120px;
    padding: 15px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-date .weekday {
    font-weight: 500;
    color: #1976D2;
    margin-bottom: 5px;
}

.day-date .date {
    font-size: 12px;
    color: #666;
}

.day-events {
    flex: 1;
    padding: 15px;
}

.event-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.event-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.event-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
    color: #333;
}

.event-desc {
    font-size: 12px;
    color: #666;
}

.no-events {
    text-align: center;
    color: #666;
    padding: 10px;
    font-size: 12px;
    background: #f8f9fa;
}

/* 导航按钮样式 */
.nav-btn {
    padding: 4px 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.close-modal {
    padding: 4px 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .report-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .report-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 10px 20px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* 报告折叠样式 */
.week-section,
.month-section {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.week-header,
.month-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 6px;
}

.week-header:hover,
.month-header:hover {
    background: #e9ecef;
}

.week-header i,
.month-header i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.week-header h4,
.month-header h4 {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.event-count {
    color: #666;
    font-size: 12px;
}

.week-content,
.month-content {
    display: none;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* 默认展开第一个月份和周 */
.month-section:first-child .month-content,
.week-section:first-child .week-content {
    display: block;
}

.month-section:first-child .month-header i,
.week-section:first-child .week-header i {
    transform: rotate(90deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .year-progress-container {
        padding: 10px 15px;
    }

    .progress-title {
        font-size: 1.2rem;
    }

    .progress-motto {
        font-size: 0.85rem;
    }

    .progress-grid {
        grid-template-columns: repeat(auto-fill, minmax(10px, 1fr));
    }

    .progress-box {
        min-height: 10px;
        max-height: 10px;
    }

    .track-btn,
    .report-btn {
        padding: 3px 8px;
        height: 26px;
        font-size: 12px;
    }
}

/* 修改进度头部样式 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px 0;
    color: #333;
}

.progress-info {
    flex: 1;
}

.progress-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.actions-row {
    display: flex;
    gap: 10px;
}

.days-info {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .progress-header {
        flex-direction: column;
        gap: 15px;
    }

    .progress-actions {
        width: 100%;
        align-items: stretch;
    }

    .actions-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .days-info {
        text-align: center;
    }
}

/* Beta 标签样式 */
.beta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 内测功能提示样式 */
.beta-notice {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.beta-notice h3 {
    color: #ef6c00;
    margin: 0 0 10px;
}

.beta-notice p {
    color: #666;
    margin: 0;
}

.tool-card-visible {
    display: flex !important;
}
  