/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* 倒计时区域 */
.countdown-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.number {
    font-size: 4rem;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.label {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
}

.countdown-info {
    color: #666;
    font-size: 1.1rem;
}

.countdown-info p {
    margin: 5px 0;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* 通用卡片样式 */
.lunar-section,
.advice-section,
.quote-section,
.study-section,
.update-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lunar-section h2,
.advice-section h2,
.quote-section h2,
.study-section h2,
.update-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 黄历信息 */
.lunar-info {
    display: grid;
    gap: 15px;
}

.lunar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lunar-item:last-child {
    border-bottom: none;
}

.lunar-item .label {
    font-weight: bold;
    color: #555;
}

.lunar-item .value {
    color: #2c3e50;
}

/* 运势颜色 */
.luck-great {
    color: #e74c3c;
    font-weight: bold;
}

.luck-good {
    color: #f39c12;
    font-weight: bold;
}

.luck-normal {
    color: #27ae60;
    font-weight: bold;
}

.luck-bad {
    color: #8e44ad;
    font-weight: bold;
}

/* 宜忌区域 */
.advice-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yi-ji h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.item.yi {
    background: #e8f5e8;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.item.ji {
    background: #ffeaea;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* 励志语录 */
.quote-content {
    text-align: center;
    padding: 20px 0;
}

.quote-text {
    font-size: 1.3rem;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.8;
    position: relative;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 2rem;
    color: #3498db;
    position: absolute;
}

.quote-text::before {
    left: -20px;
    top: -10px;
}

.quote-text::after {
    right: -20px;
    bottom: -10px;
}

/* 学习建议 */
.study-content {
    display: grid;
    gap: 20px;
}

.advice-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.8;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.study-tips {
    display: grid;
    gap: 15px;
}

.tip {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.tip h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tip p {
    color: #666;
    font-size: 0.95rem;
}

/* 更新区域 */
.update-content {
    padding: 15px 0;
}

.update-content p {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 10px;
}

.update-time {
    color: #999;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 10px 10px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-main p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.beian-info {
    margin-top: 10px;
}

.beian-info a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #3498db;
}

.friendship-links {
    margin-top: 20px;
}

.friendship-links h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 1.2rem;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.links-grid a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    display: block;
}

.links-grid a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .countdown-section {
        padding: 30px 20px;
    }

    .countdown-display {
        gap: 15px;
    }

    .countdown-item {
        min-width: 80px;
    }

    .number {
        font-size: 2.5rem;
    }

    .label {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advice-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .quote-text::before {
        left: -15px;
        top: -5px;
    }

    .quote-text::after {
        right: -15px;
        bottom: -5px;
    }

    /* 移动端footer样式 */
    .footer {
        padding: 20px 15px;
    }

    .footer-main p {
        font-size: 1rem;
    }

    .beian-info a {
        font-size: 0.8rem;
    }

    .friendship-links h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .links-grid a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .countdown-display {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
    }

    .number {
        font-size: 2rem;
    }

    .label {
        font-size: 0.9rem;
    }

    .lunar-section,
    .advice-section,
    .quote-section,
    .study-section,
    .update-section {
        padding: 20px;
    }

    /* 小屏幕footer样式 */
    .footer {
        padding: 15px 10px;
    }

    .footer-main p {
        font-size: 0.9rem;
    }

    .beian-info a {
        font-size: 0.75rem;
    }

    .friendship-links h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .links-grid a {
        font-size: 0.75rem;
        padding: 5px 6px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-item:hover {
    animation: pulse 0.5s ease-in-out;
}

/* 加载动画 */
.loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* 高亮效果 */
.highlight {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 日历区域 - 重新设计 */
.calendar-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.calendar-section h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.calendar-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.calendar-container {
    display: grid;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.month-calendar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.month-calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.month-calendar h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.calendar-table td {
    border: 1px solid #e9ecef;
    padding: 8px;
    vertical-align: top;
    height: 90px;
    transition: all 0.3s ease;
}

.calendar-table td:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.calendar-table .other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.day-cell {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-cell:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.05);
}

.day-number {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2px;
}

.lunar-day {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-bottom: 3px;
}

.days-left {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.gaokao-text {
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    padding: 3px 6px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.festival {
    font-size: 0.7rem;
    color: #27ae60;
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.jieqi {
    font-size: 0.7rem;
    color: white;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    padding: 2px 4px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.day-cell.today {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    transform: scale(1.05);
}

.day-cell.today .day-number,
.day-cell.today .lunar-day {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.day-cell.gaokao-day {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.day-cell.urgent {
    background: linear-gradient(135deg, #ffeaea, #ffcccc);
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.day-cell.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #f39c12;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 学习计划建议 */
.study-plan-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.study-plan-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.plan-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plan-phase {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.plan-phase h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.plan-phase ul {
    list-style: none;
    padding: 0;
}

.plan-phase li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.plan-phase li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 考试技巧 */
.exam-tips-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.exam-tips-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #27ae60;
}

.tip-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tip-category ul {
    list-style: none;
    padding: 0;
}

.tip-category li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tip-category li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 健康提醒 */
.health-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.health-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

.health-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.health-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #f39c12;
}

.health-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.health-item p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .calendar-table {
        font-size: 0.8rem;
    }

    .calendar-table td {
        height: 60px;
        padding: 3px;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .lunar-day {
        font-size: 0.7rem;
    }

    .days-left,
    .gaokao-text,
    .festival,
    .jieqi {
        font-size: 0.6rem;
    }

    .plan-content,
    .tips-content,
    .health-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar-table {
        font-size: 0.7rem;
    }

    .calendar-table td {
        height: 50px;
        padding: 2px;
    }

    .day-cell {
        padding: 1px;
    }

    .month-calendar {
        padding: 15px;
    }
}