:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --border-color: #ddd;
    --success-color: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

.main-content {
    margin: 20px 0;
}

.calculator-section,
.info-section {
    width: 100%;
    margin-bottom: 20px;
}

.calculator-box,
.info-box {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.calculator-header,
.info-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.calculator-content,
.info-content {
    padding: 20px;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    margin-bottom: 15px;
    flex: 1;
    min-width: 200px;
    margin-right: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.time-input {
    display: flex;
    align-items: center;
    height: 40px;
}

.time-input select {
    width: auto;
    margin-right: 5px;
}

.time-separator {
    margin: 0 5px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

.result-section {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.result-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.result-label {
    font-weight: bold;
}

.today-info {
    margin-bottom: 20px;
}

.today-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.today-lunar {
    color: #666;
    margin-bottom: 5px;
}

.quote-box {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.quote-text {
    font-style: italic;
    margin-bottom: 5px;
}

.holiday-list {
    list-style-type: none;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-badge {
    background-color: var(--accent-color);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.jieqi-box {
    margin-top: 15px;
}

.jieqi-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.yi-ji-box {
    display: flex;
    margin-top: 10px;
}

.yi-box,
.ji-box {
    flex: 1;
}

.yi-title,
.ji-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.yi-content {
    color: var(--success-color);
}

.ji-content {
    color: var(--accent-color);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    color: #333;
    font-weight: 500;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

footer {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-color);
    margin: 0 10px;
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 自动更新内容的样式 */
.auto-update-content {
    border-top: 1px dashed var(--border-color);
    margin-top: 15px;
    padding-top: 15px;
}

.update-time {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%;
        margin-right: 0;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* 2025年放假安排样式 */
.holiday-table {
    width: 100%;
    border-collapse: collapse;
}

.holiday-table th,
.holiday-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.holiday-table th {
    background-color: #f5f5f5;
    text-align: left;
    font-weight: normal;
    color: #666;
}

.holiday-table tr:last-child td {
    border-bottom: none;
}

.holiday-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
}

.holiday-status.status-off {
    background-color: var(--accent-color);
}

.holiday-status.status-pending {
    background-color: var(--secondary-color);
}

/* 使用说明样式 */
.instruction-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.instruction-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.instruction-box p {
    margin-bottom: 10px;
    color: #555;
}

.instruction-box p:last-child {
    margin-bottom: 0;
}

/* 应用场景网格样式 */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 20px;
}

.usage-item {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.usage-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.usage-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.usage-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* 常见问题样式 */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-item p {
    color: #555;
    margin: 0;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex: 1 1 100%;
        margin-right: 0;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* 友情链接样式 */
.friend-links {
    margin: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.friend-links h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.links-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.links-wrap a {
    color: #777;
    font-size: 0.85rem;
    margin: 5px 10px;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.links-wrap a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 备案信息样式 */
.beian {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
}

.beian a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.beian a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}