/* :root {
    --primary-red: #e74c3c;
    --light-red: #ffebee;
    --gold: #ffd700;
    --dark-red: #c0392b;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f5f0;
    --border-color: #e0d6c9;
} */

body {
    /* font-family: 'Noto Serif SC', serif; */
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link.active {
    color: var(--primary-red) !important;
    border-bottom: 2px solid var(--primary-red);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 2.5rem 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 日历区域 */
.calendar-section {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.current-month {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.month-nav button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.month-nav button:hover {
    background-color: var(--dark-red);
}

/* 通用模块样式 */
.jiri-module {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border-top: 4px solid var(--primary-red);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-red);
}

.module-icon {
    background-color: var(--light-red);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* 吉日卡片 */
.jiri-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* .jiri-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        } */

.jiri-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.jiri-header {
    background-color: var(--light-red);
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.jiri-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.3rem;
}

.jiri-weekday {
    color: var(--text-light);
    font-size: 0.95rem;
}

.jiri-body {
    padding: 1.5rem;
}

.lunar-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.yi-title,
.ji-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.yi-title {
    color: #27ae60;
}

.ji-title {
    color: var(--primary-red);
}

.yi-title i,
.ji-title i {
    margin-right: 0.5rem;
}

.yi-items,
.ji-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.yi-item,
.ji-item {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.yi-item {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.ji-item {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--primary-red);
}

.chongsha {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.chongsha-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.view-detail {
    text-align: center;
}

.view-detail .btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-detail .btn:hover {
    background-color: var(--dark-red);
}

/* 内容模块样式 */
.content-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-box h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight {
    background-color: #fff9e6;
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.step-list {
    list-style-type: none;
    padding-left: 0;
}

.step-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
}

.step-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .jiri-module {
        padding: 1.5rem;
    }

    .module-title {
        font-size: 1.3rem;
    }
}

.level-daji {
    background-color: #d4edda;
    color: #155724;
}

.level-zhongji {
    background-color: #fff3cd;
    color: #856404;
}

.level-xiaoji {
    background-color: #f8d7da;
    color: #721c24;
}

.level-ping {
    background-color: #d1ecf1;
    color: #0c5460;
}