html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody > .container > .text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody > .container > .text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody > .container > .text-center > a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody > .container > .text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

/* ========== 万年历页面样式（从 index.html 和 lhl.html 提取）========== */

/* 万年历通用样式 */
:root {
    --primary-red: #d93030;
    --light-red: #e74c3c;
    --bg-orange: #fff5e6;
    --bg-green: #e8f5e9;
    --text-gray: #666;
    --border-color: #eee;
    --gray-text: #999;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 头部和导航 */
.wanlianli-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.wanlianli-logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.wanlianli-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-tabs-custom {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c0392b 100%);
    padding: 8px 15px;
    border-radius: 50px;
}

.nav-tabs-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-tabs-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-tabs-custom .nav-link.active {
    background: #fff;
    color: var(--primary-red);
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 日历控制区 */
.calendar-control {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-control .control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-control .btn-year-month {
    min-width: 100px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-red);
    padding: 8px 15px;
    background: #fff5f5;
    border: 2px solid var(--primary-red);
    border-radius: 8px;
}

.calendar-control .btn-nav {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: #fff;
    transition: all 0.3s;
}

.calendar-control .btn-nav:hover {
    background: var(--primary-red);
    color: #fff;
}

.btn-return-today {
    background: linear-gradient(135deg, var(--primary-red) 0%, #e74c3c 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(217, 48, 48, 0.3);
}

.btn-return-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 48, 48, 0.4);
    color: #fff;
}

/* 日历容器 */
.calendar-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.calendar-table {
    width: 100%;
    table-layout: fixed;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.calendar-table thead {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c0392b 100%);
}

.calendar-table thead th {
    padding: 15px 5px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.calendar-table thead th:first-child {
    border-top-left-radius: 12px;
}

.calendar-table thead th:last-child {
    border-top-right-radius: 12px;
}

.calendar-table tbody td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    vertical-align: top;
    height: 80px;
    width: 14.28%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-table tbody td:hover:not(.empty-day) {
    background: #fff5f5;
    border-color: var(--primary-red);
}

.calendar-table tbody td:not(:last-child) {
    border-right: none;
}

.calendar-table tbody tr:not(:last-child) td {
    border-bottom: none;
}

.calendar-table tbody tr:last-child td:last-child {
    border-bottom: none;
}

.date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.date-number {
    font-size: 1.15rem;
    font-weight: bold;
    display: block;
    line-height: 1.3;
}

.date-number.holiday {
    color: var(--primary-red);
}

.date-number.other-month {
    color: var(--gray-text);
}

/* 值日天神颜色：黄道红色，黑道黑色 */
.date-number.huangdao {
    color: var(--primary-red);
}

.date-number.heidao {
    color: #333;
}

.date-lunar {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: block;
    margin-top: 3px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-current {
    background: #fff5f5 !important;
    border: 2px solid var(--primary-red) !important;
}

/* 休字样式：灰色 */
.rest-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background:#e57373;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* 班字样式：蓝色 */
.work-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background:#4a90d9;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* 节日节气颜色：鲜艳颜色 */
.date-lunar.festival {
    color: #d93030;
}

.date-lunar.jieqi {
    color: #27ae60;
}

/* 非当月农历文字：灰色 */
.date-lunar.other-month {
    color: #999;
}

/* 信息面板 */
.info-panel {
    background: var(--bg-orange);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.info-panel-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: 600;
    text-align: center;
    font-size: 1.05rem;
}

.big-date {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: bold;
    border-radius: 16px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.lunar-date {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #333;
}

.ganzhi-date {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.yi-ji-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.yi-item,
.ji-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.yi-item:last-child,
.ji-item:last-child {
    margin-bottom: 0;
}

.yi-label,
.ji-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.yi-label {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.ji-label {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.yi-content,
.ji-content {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 黄历信息 */
.huangli-info {
    background: var(--bg-green);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.huangli-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2d5016;
    display: flex;
    align-items: center;
}

.huangli-title i {
    margin-right: 8px;
}

.huangli-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.huangli-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.huangli-label {
    min-width: 75px;
    color: #555;
    font-weight: 500;
}

.huangli-value {
    flex: 1;
    color: #333;
}

/* 时辰吉凶 */
.shichen-section {
    background: #fffbf0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.shichen-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #8b6914;
    display: flex;
    align-items: center;
}

.shichen-title i {
    margin-right: 8px;
}

.shichen-item {
    padding: 18px;
    border-bottom: 1px solid #f0e0d0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.shichen-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.shichen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shichen-name {
    display: flex;
    align-items: center;
}

.shichen-zi {
    width: 55px;
    height: 55px;
    border: 2px solid #e0d0c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #666;
    margin-right: 15px;
    background: #fff;
}

.shichen-time {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.shichen-xiong {
    width: 40px;
    height: 40px;
    background: #555;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.shichen-ji {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.shichen-details {
    padding-left: 70px;
}

.shichen-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    line-height: 1.6;
}

.shichen-row:last-child {
    margin-bottom: 0;
}

.shichen-row .yi-label,
.shichen-row .ji-label {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-right: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.shichen-row .yi-content,
.shichen-row .ji-content {
    font-size: 0.9rem;
    flex: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 页脚 */
.footer-links {
    background: #fff;
    padding: 25px 0;
    margin-top: 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-links-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.footer-links a {
    color: var(--text-gray);
    margin-right: 15px;
    margin-bottom: 8px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.copyright {
    background: #f8f9fa;
    padding: 25px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--text-gray);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary-red);
}

.copyright .mt-2 {
    margin-top: 10px;
}

/* ========== lhl 页面主题样式（根据黄道吉日切换红色系/绿色系）========== */
/* 默认红色系 - 黄道吉日 */
:root {
    --lhl-primary: #c41e3a;
    --lhl-dark: #8b0000;
    --lhl-light: #fff5f5;
    --lhl-border: #e57373;
    --lhl-text: #c41e3a;
    --lhl-bg: #ffebee;
}

/* 绿色系 - 非黄道吉日 */
:root.lhl-black-theme {
    --lhl-primary: #4caf50;
    --lhl-dark: #2e7d32;
    --lhl-light: #e8f5e9;
    --lhl-border: #81c784;
    --lhl-text: #2e7d32;
    --lhl-bg: #f1f8e9;
}

.lhl-big-date {
    font-size: 6rem;
    font-weight: bold;
    color: var(--lhl-primary);
    line-height: 1;
}

.lhl-nav-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--lhl-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lhl-primary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.lhl-nav-arrow:hover {
    background: var(--lhl-primary);
    color: #fff;
}

/* 日期选择器 */
.date-select-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.date-select {
    padding: 5px 8px;
    font-size: 0.9rem;
    border: 1px solid var(--lhl-primary);
    border-radius: 6px;
    background: #fff;
    color: var(--lhl-text);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.date-select:hover {
    background: var(--lhl-light);
}

.date-select:focus {
    border-color: var(--lhl-primary);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 主信息框 */
.lhl-main-box {
    border: 2px solid var(--lhl-primary);
    border-radius: 8px;
    overflow: hidden;
}

.lhl-cell {
    border: 1px solid var(--lhl-border);
    padding: 10px;
    text-align: center;
}

.lhl-cell-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.lhl-cell-value {
    color: var(--lhl-text);
    font-weight: bold;
}

.lhl-shengxiao-circle {
    width: 50px;
    height: 50px;
    border: 2px solid var(--lhl-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    color: var(--lhl-primary);
    font-size: 1.2rem;
}

/* 宜忌 */
.lhl-yiji-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.lhl-yiji-circle.yi {
    background: var(--lhl-primary);
}

.lhl-yiji-circle.ji {
    background: var(--lhl-dark);
}

.lhl-yiji-content {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* 八卦图 */
.lhl-bagua {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.lhl-bagua-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--lhl-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
}

.lhl-bagua-dir {
    position: absolute;
    font-size: 0.75rem;
    color: var(--lhl-text);
    font-weight: bold;
}

.lhl-bagua-dir.n { top: 5px; left: 50%; transform: translateX(-50%); }
.lhl-bagua-dir.s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.lhl-bagua-dir.e { right: 5px; top: 50%; transform: translateY(-50%); }
.lhl-bagua-dir.w { left: 5px; top: 50%; transform: translateY(-50%); }
.lhl-bagua-dir.ne { top: 15px; right: 15px; }
.lhl-bagua-dir.nw { top: 15px; left: 15px; }
.lhl-bagua-dir.se { bottom: 15px; right: 15px; }
.lhl-bagua-dir.sw { bottom: 15px; left: 15px; }

/* 值神区 */
.lhl-zhishen-box {
    background: var(--lhl-light);
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--lhl-border);
    border-bottom: 1px solid var(--lhl-border);
}

/* 吉神方位 */
.lhl-fangwei-box {
    padding: 10px;
    text-align: center;
}

.lhl-fangwei-title {
    color: var(--lhl-text);
    font-weight: bold;
    margin-bottom: 10px;
}

/* 彭祖百忌 */
.lhl-pengzu-box {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--lhl-border);
}

/* 建除十二神 */
.lhl-jianchu-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
}

.lhl-jianchu-item {
    text-align: center;
    font-size: 0.75rem;
}

.lhl-jianchu-gz {
    color: #666;
}

.lhl-jianchu-val {
    color: var(--lhl-text);
    font-weight: bold;
}

.lhl-jianchu-val.xiong {
    color: #c0392b;
}

/* 二十八星宿 */
.lhl-xingxiu-text {
    writing-mode: vertical-rl;
    color: var(--lhl-text);
    font-size: 0.85rem;
}

/* 时辰 */
.lhl-shichen-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.lhl-shichen-item:last-child {
    border-bottom: none;
}

.lhl-shichen-zi {
    width: 45px;
    height: 45px;
    border: 2px solid var(--lhl-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--lhl-text);
    margin-right: 12px;
}

.lhl-shichen-jx {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
}

.lhl-shichen-jx.ji {
    background: var(--lhl-primary);
}

.lhl-shichen-jx.xiong {
    background: #666;
}

.lhl-yiji-label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 0.7rem;
    margin-right: 5px;
}

.lhl-yiji-label.yi {
    background: #27ae60;
}

.lhl-yiji-label.ji {
    background: #c0392b;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-tabs-custom {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .nav-tabs-custom .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .wanlianli-logo {
        font-size: 1.6rem;
    }

    .nav-tabs-custom .nav-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .calendar-control {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .calendar-control .control-group {
        justify-content: center;
        flex: 0 0 auto;
    }

    .calendar-control .btn-year-month {
        min-width: 70px;
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .calendar-control .btn-nav {
        width: 28px;
        height: 28px;
    }

    .btn-return-today {
        flex: 1;
        min-width: 100px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .calendar-table tbody td {
        height: 65px;
        padding: 4px 2px;
    }

    .date-number {
        font-size: 1rem;
    }

    .date-lunar {
        font-size: 0.7rem;
    }

    .big-date {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }

    .huangli-grid {
        grid-template-columns: 1fr;
    }

    .shichen-header {
        flex-wrap: wrap;
    }

    .shichen-details {
        padding-left: 0;
        padding-top: 12px;
    }

    .shichen-zi {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* 时辰吉凶 - 宜忌 手机端自适应 */
    .shichen-row {
        flex-wrap: nowrap;
    }

    .shichen-row .yi-label,
    .shichen-row .ji-label {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .shichen-row .yi-content,
    .shichen-row .ji-content {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .lhl-big-date {
        font-size: 4rem;
    }
    
    .lhl-jianchu-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========== 吉日页面样式 ========== */
.jiri-page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d93030;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jiri-page-title i {
    font-size: 2rem;
    color: #d93030;
}

.jiri-page-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.jiri-types-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jiri-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    height: 100%;
    /* min-height: 120px; */
    justify-content: center;
}

.jiri-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(217, 48, 48, 0.2);
    border-color: #d93030;
    text-decoration: none;
    color: inherit;
}

.jiri-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d93030 0%, #e74c3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.jiri-type-card:hover .jiri-type-icon {
    transform: scale(1.1);
}

.jiri-type-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .jiri-page-title {
        font-size: 1.4rem;
    }
    
    .jiri-page-title i {
        font-size: 1.6rem;
    }
    
    .jiri-type-card {
        padding: 10px;
        /* min-height: 100px; */
    }
    
    .jiri-type-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .jiri-type-name {
        font-size: 0.9rem;
    }
}

/* ========== 吉日分类页面样式 ========== */

/* 页面标题区域 */
.jiri-cate-header {
    background: linear-gradient(135deg, #d93030 0%, #e74c3c 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(217, 48, 48, 0.3);
}

.jiri-cate-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.jiri-cate-title i {
    margin-right: 10px;
}

.jiri-cate-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* 吉日卡片 */
.jiri-day-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
    overflow: hidden;
}

.jiri-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.jiri-day-solar {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d93030;
    margin-bottom: 5px;
}

.jiri-day-lunar {
    font-size: 0.85rem;
    color: #666;
}

/* 信息区域 */
.jiri-day-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

/* 宜忌区域 */
.jiri-day-yiji {
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 3px solid #d93030;
}

/* 值神区域 */
.jiri-day-shen {
    padding: 8px 10px;
    background: #e8f4fd;
    border-radius: 8px;
}

/* 冲煞区域 */
.jiri-day-chongsha {
    padding: 5px 10px;
    background: #fef3e2;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 节日节气徽章 */
.jiri-day-festival .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* SEO 内容区域 */
.jiri-seo-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.jiri-seo-content h2,
.jiri-seo-content h3 {
    color: #d93030;
}

.jiri-seo-content ul li {
    margin-bottom: 8px;
}

/* 其他吉日类型 */
.jiri-other-types .h4 {
    color: #333;
    border-bottom: 2px solid #d93030;
    padding-bottom: 10px;
    display: inline-block;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .jiri-cate-header {
        padding: 20px 15px;
    }
    
    .jiri-cate-title {
        font-size: 1.3rem;
    }
    
    .jiri-cate-desc {
        font-size: 0.85rem;
    }
    
    .jiri-day-solar {
        font-size: 1.2rem;
    }
    
    .jiri-seo-content {
        padding: 15px !important;
    }
}

/* 简繁切换按钮样式 */
.lang-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.lang-switcher .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.lang-switcher .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 70px;
        right: 10px;
    }
    
    .lang-switcher .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* =======================
   放假安排页面样式
   ======================= */
.fangjia-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.fangjia-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border-radius: 12px;
}
.fangjia-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.fangjia-header p {
    font-size: 1rem;
    opacity: 0.9;
}
.year-selector {
    text-align: center;
    margin-bottom: 30px;
}
.year-selector select {
    padding: 10px 20px;
    font-size: 1.1rem;
    border: 2px solid #e67e22;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.holiday-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e67e22;
}
.holiday-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.holiday-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e67e22;
}
.holiday-days {
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}
.holiday-date-range {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}
.holiday-date-range .date-highlight {
    color: #e74c3c;
    font-weight: bold;
}
.holiday-note {
    background: #fff8e1;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
}
.holiday-note strong {
    color: #e67e22;
}
.work-day-badge {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 5px;
}
.rest-day-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 5px;
}
.qa-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}
.qa-section h3 {
    color: #e67e22;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.qa-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.qa-question {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.qa-answer {
    color: #666;
    line-height: 1.6;
}
.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.summary-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}
.summary-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
}
.summary-item .number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}
.summary-item .label {
    font-size: 0.85rem;
    opacity: 0.9;
}
