* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 其他导航栏样式保持不变 */

/* 主要内容区样式 */
main {
    margin-top: 60px;
    padding: 2rem 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #2196F3;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.calculator-container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 计算器标签样式 */
.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #2196F3;
}

.tab-btn.active {
    background-color: #2196F3;
    color: #fff;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* 输入组样式 */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 复选框组样式 */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* 特殊日期列表样式 */
.special-days-list {
    display: grid;
    gap: 1rem;
}

.special-day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: 1px solid #eee;
}

.day-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.event-name {
    flex: 1;
}

.countdown {
    color: #2196F3;
    font-weight: 500;
}

.add-special-day {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.add-special-day:hover {
    border-color: #2196F3;
    color: #2196F3;
}

/* 结果显示样式 */
.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2196F3;
}

.result h3 {
    color: #333;
    margin-bottom: 1rem;
}

.result-details {
    display: grid;
    gap: 0.5rem;
}

.result span {
    color: #2196F3;
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel {
    animation: fadeIn 0.3s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .calculator-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .special-day-item {
        flex-direction: column;
        gap: 1rem;
    }

    .day-info {
        flex-direction: column;
    }
}

/* 导航栏样式 */
.nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2196f3;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.login-btn {
    color: #666;
}

.register-btn {
    background-color: #2196f3;
    color: #fff;
}

.login-btn:hover {
    color: #2196f3;
}

.register-btn:hover {
    background-color: #1976d2;
}

/* 广告容器样式 */
.ad-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.ad-content {
    border: 1px dashed #ccc;
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background-color: #fff;
}

/* 底部版权样式 */
.footer {
    background-color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0.5rem 0;
    color: #666;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #2196f3;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-right {
        display: none;
    }
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 使用说明样式优化 */
.tips-container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin: 3rem 0;
}

.tips-container h3 {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.tips-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.tips-content {
    display: grid;
    gap: 1.5rem;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.1);
}

.tip-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #2196F3;
    flex-shrink: 0;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.05);
}

.tip-text {
    flex: 1;
}

.tip-text h4 {
    color: #2196F3;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tip-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tip-note {
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1.2rem;
    background-color: #E3F2FD;
    border-radius: 12px;
    border-left: 4px solid #2196F3;
}

.note-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.tip-note p {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 添加动画效果 */
.tip-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.tip-card:nth-child(1) { animation-delay: 0.1s; }
.tip-card:nth-child(2) { animation-delay: 0.2s; }
.tip-card:nth-child(3) { animation-delay: 0.3s; }
.tip-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tips-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .tip-text h4 {
        font-size: 1rem;
    }

    .tip-text p {
        font-size: 0.9rem;
    }

    .tip-note {
        flex-direction: column;
    }

    .note-icon {
        margin-bottom: 0.5rem;
    }
} 