/* 全局样式 */
/* 隐藏SEO干扰标签 */
noscripta,
tcenter,
dfn,
is,
tyyt,
ssmall,
sup,
time,
font,
ins,
sdu,
acronym,
fss,
delx,
spanx,
marq,
xmp,
wbr,
basex,
datax,
noindex,
xitem,
zx,
hx,
qz,
kw,
xf,
jx,
rb,
rp,
divx,
xdiv,
yx {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    visibility: hidden !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fffbf0;
}

a {
    text-decoration: none;
    color: #d4a017;
    transition: all 0.3s ease;
}

a:hover {
    color: #e67e22;
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 增加页面整体的边框和背景效果 */
.main-content {
    padding: 30px 0;
    background: url(../images/bg-pattern.svg) repeat;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    max-height: 60px;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    margin-right: 20px;
}

.search-form input {
    width: 220px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-sbutton {
    height: 36px;
    background: #d4a017;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    padding: 0 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-sbutton:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.main-navigation {
    background: #d4a017;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 16px;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    background: #b8860b;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.nav-menu>li:hover .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.sub-menu li a:hover {
    background: #fff9e6;
    color: #d4a017;
}

/* 主内容区域 */
.main-content {
    padding: 30px 0;
}

/* 头部Banner区域 */
.hero-section {
    position: relative;
    padding: 40px 0;
    background: linear-gradient(120deg, #d4a017, #8B4513);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.05;
    z-index: 0;
}

/* 新增样式 - 左右布局容器 */
.hero-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    align-items: stretch;
}

/* 左侧八字测算表单区域 */
.hero-left {
    width: 58%;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

/* 右侧工具列表区域 */
.hero-right {
    width: 38%;
    padding-left: 15px;
    display: flex;
    /*  flex-direction: column;
    height: 100%;*/
}

/* 实用工具小部件 */
.calc-widget {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    height: 100%;
}

.calc-widget .widget-header {
    background-color: #f0c14b;
    padding: 12px 15px;
    border-bottom: 1px solid #e6b73a;
}

.calc-widget .widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #8B4513;
    display: flex;
    align-items: center;
}

.calc-widget .widget-header h3 i {
    margin-right: 8px;
    color: #8B4513;
}

/* 工具网格布局 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    background-color: #fff;
}

/* 工具项样式 */
.tool-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f1d8;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    color: #8B4513;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e6b73a;
}

.tool-item:hover {
    background-color: #f0c14b;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.tool-item span {
    font-size: 14px;
}

/* 八字测算表单容器样式调整 */
.bazi-calculator {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(240, 193, 75, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    height: 100%;
}

/* 表单头部样式修改 */
.calculator-header {
    background: #f0c14b;
    padding: 15px 20px;
    border-bottom: 1px solid #e6b73a;
}

.calculator-header h2 {
    font-size: 20px;
    color: #8B4513;
    margin: 0;
}

.calculator-header h2 i {
    color: #d4a017;
}

.calculator-body {
    padding: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-right: 15px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0d5b3;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fffef7;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
    outline: none;
    background-color: #fff;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.radio-group input {
    margin-right: 5px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 黄历部分 */
.almanac-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

/* 内容区通用样式 */
.section {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0dfe6;
    /* 更改为淡蓝灰色边框 */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
    color: #8B4513;
}

.section-header h2 i {
    color: #d4a017;
    margin-right: 5px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 5px;
    height: 16px;
    background: #d4a017;
    border-radius: 3px;
}

.more-link {
    color: #d4a017;
    font-size: 14px;
}

.more-link:hover {
    color: #b8860b;
}

.almanac-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.almanac-info {
    flex: 1;
    min-width: 300px;
}

.date-info {
    margin-bottom: 20px;
}

.solar-date {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.solar-date .week {
    font-size: 16px;
    color: #777;
    font-weight: normal;
    margin-left: 10px;
}

.lunar-date {
    color: #777;
    line-height: 1.6;
}

.yi-ji {
    display: flex;
    margin-bottom: 15px;
}

.yi,
.ji {
    flex: 1;
    padding: 10px;
    margin-right: 15px;
    background: #fffbf0;
    border-radius: 4px;
    border-left: 3px solid;
}

.yi {
    border-left-color: #2e8b57;
}

.ji {
    border-left-color: #e67e22;
}

.yi h4,
.ji h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.yi h4 {
    color: #2e8b57;
}

.ji h4 {
    color: #e67e22;
}

.yi p,
.ji p {
    font-size: 14px;
    line-height: 1.5;
}

.more-details {
    display: flex;
    flex-wrap: wrap;
}

.detail-item {
    width: 50%;
    margin-bottom: 10px;
}

.detail-item .label {
    color: #777;
}

.lucky-hours {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-left: 20px;
    width: 100%;
    /* Changed from min-width: 200px to width: 100% */
    box-sizing: border-box;
}

.lucky-hours h4 {
    margin-bottom: 15px;
    text-align: center;
    color: #8B4513;
    font-size: 18px;
    /* Added font-size */
}

.hours-list {
    display: grid;
    /* Changed from flex to grid */
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    /* Created responsive grid */
    gap: 10px;
    justify-content: center;
    /* Center items */
}

.hour-item {
    text-align: center;
    padding: 8px 10px;
    /* Reduced horizontal padding */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    /* Added transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hour-item:hover {
    transform: translateY(-2px);
    /* Added hover effect */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.good-hour {
    border: 1px solid #2e8b57;
}

.bad-hour {
    border: 1px solid #b22222;
}

.good-hour .hour-mark {
    color: #2e8b57;
}

.bad-hour .hour-mark {
    color: #b22222;
}

.hour-name {
    font-weight: bold;
    display: block;
}

.hour-mark {
    font-size: 12px;
    color: #2e8b57;
}

/* 精选内容 */
.featured-section {
    margin-bottom: 30px;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.featured-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.featured-item:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid #d4a017;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.featured-image {
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-item:hover .featured-image img {
    transform: scale(1.05);
}

.featured-info {
    padding: 15px;
}

.featured-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.featured-meta span {
    margin-right: 15px;
}

.featured-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 内容区域 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-column {
    flex: 1;
    min-width: 0;
}

.side-column {
    width: 300px;
}

.latest-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.latest-articles {
    padding: 20px;
}

.article-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-link {
    display: flex;
    color: inherit;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.article-image {
    width: 120px;
    height: 90px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 侧栏 */
.widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.widget-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 18px;
    margin: 0;
    color: #8B4513;
}

.widget-header h3 i {
    color: #d4a017;
    margin-right: 5px;
}

.widget-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 5px;
    height: 16px;
    background: #d4a017;
    border-radius: 3px;
}

.widget-content {
    padding: 15px;
}

.hot-list li,
.category-list li,
.topic-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.hot-list li:last-child,
.category-list li:last-child,
.topic-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-list a,
.category-list a,
.topic-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    padding: 5px 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.hot-list a:hover,
.category-list a:hover,
.topic-list a:hover {
    padding-left: 5px;
    background-color: rgba(212, 160, 23, 0.05);
}

.hot-title,
.cat-name,
.topic-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-views {
    color: #777;
    font-size: 13px;
    margin-left: 10px;
}

/* 底部 */
.site-footer {
    background: #8B4513;
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: 30px;
    border-top: 3px solid #d4a017;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-info {
    max-width: 400px;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links,
.footer-contact {
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffd700;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
}

.footer-links ul li a:hover {
    color: #ffd700;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #ffd700;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #d4a017;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 弹窗样式 */
.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 50px auto;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
    overflow: hidden;
    animation: modalOpen 0.3s ease;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    background: #fffbf0;
    border-bottom: 1px solid #f0e6a9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
}

.close-modal:hover {
    color: #d4a017;
}

.modal-body {
    padding: 20px;
}

.loading {
    text-align: center;
    padding: 30px;
}

.result-data {
    line-height: 1.6;
}

.lucky-hours h4,
.almanac-section h4,
.result-modal h3,
.result-data h4 {
    color: #8B4513;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .side-column {
        width: 100%;
    }

    .featured-content {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .hero-left,
    .hero-right {
        width: 100%;
        padding: 0;
    }

    .hero-right {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .search-form {
        display: none;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        transition: right 0.3s;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu>li>a {
        color: #333;
        border-bottom: 1px solid #eee;
    }

    .nav-menu>li>a:hover,
    .nav-menu>li>a.active {
        background: #fff9e6;
        color: #d4a017;
    }

    .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: block;
        background: #f9f9f9;
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .almanac-content {
        flex-direction: column;
    }

    .lucky-hours {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .hot-grid {
        grid-template-columns: 1fr;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        margin-bottom: 15px;
    }

    /* 修复移动端溢出问题 */
    .hot-section,
    .list-articles-section,
    .related-categories-section {
        max-width: 100%;
        padding: 15px;
    }

    .hot-articles,
    .list-articles,
    .category-buttons {
        max-width: 100%;
    }

    .hot-image img,
    .article-image img {
        max-width: 100%;
        height: auto;
    }

    /* 确保文字内容不会溢出 */
    .hot-title,
    .article-title,
    .article-desc {
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .hours-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        /* Smaller items on mobile */
    }
}

@media (max-width: 576px) {
    .article-link {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* 进一步优化小屏幕手机样式 */
    .hot-section,
    .list-articles-section,
    .related-categories-section,
    .filter-section,
    .list-header-section {
        padding: 10px;
    }

    .section-header {
        padding: 10px;
    }

    /* 确保所有内容不会超出容器 */
    .container {
        padding: 0 10px;
        overflow-x: hidden;
    }

    .main-content {
        overflow-x: hidden;
    }

    .hours-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        /* Even smaller on very small screens */
    }
}

/* 卡片式区块样式增强 */
.almanac-section,
.featured-section,
.latest-section,
.widget,
.bazi-calculator {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.almanac-section:hover,
.featured-section:hover,
.latest-section:hover,
.widget:hover,
.bazi-calculator:hover {
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.15);
}

/* 表单样式增强 */
.form-control.error {
    border-color: #e67e22;
    background-color: #fff0f0;
}

/* 文章项目的悬停效果 */
.article-item:hover .article-title,
.hot-list li:hover .hot-title,
.category-list li:hover .cat-name,
.topic-list li:hover .topic-title {
    color: #d4a017;
}

/* 黄历部分增强 */
.yi,
.ji {
    flex: 1;
    padding: 10px;
    margin-right: 15px;
    background: #fffbf0;
    border-radius: 4px;
    border-left: 3px solid;
}

.yi {
    border-left-color: #2e8b57;
}

.ji {
    border-left-color: #e67e22;
}

/* 文章与卡片增强 */
.article-item:hover {
    background-color: #fffef7;
    border-radius: 4px;
}

/* 针对中文内容的排版增强 */
p,
.article-desc,
.featured-desc {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 强调色和悬停效果 */
.section-header h2::before,
.widget-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 5px;
    height: 16px;
    background: #d4a017;
    border-radius: 3px;
}

/* 专题区域增强 */
.widget.topic-widget {
    border-left: 3px solid #d4a017;
}

/* 增强表单元素样式 */
input,
select,
textarea {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 改进导航菜单 */
.nav-menu>li>a.active {
    background: #b8860b;
    position: relative;
}

.nav-menu>li>a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fffbf0;
}

/* 修复section-header标题样式 */
.section-header h2,
.widget-header h3 {
    position: relative;
    padding-left: 15px;
}

/* 增强搜索按钮 */
.search-sbutton:hover {
    background: #b8860b;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.breadcrumb {
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #8B4513;
}

.breadcrumb a:hover {
    color: #d4a017;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb i {
    margin-right: 5px;
    color: #d4a017;
}

/* 栏目头部 */
.category-header-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(120deg, #d4a017, #8B4513);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 24px;
    color: #fff;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #8B4513;
}

.category-desc {
    color: #666;
    line-height: 1.6;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-item {
    padding: 8px 15px;
    background: #fffbf0;
    border-radius: 20px;
    font-size: 14px;
    color: #8B4513;
    border: 1px solid rgba(212, 160, 23, 0.3);
    transition: all 0.3s;
}

.subcategory-item:hover {
    background: #d4a017;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.subcategory-item i {
    margin-right: 5px;
}

/* 推荐文章区域 */
.featured-category-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

/* 文章列表区域 */
.category-articles-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #d4a017;
    color: #fff;
    border-color: #d4a017;
}

.pagination .current {
    background: #d4a017;
    color: #fff;
    border-color: #d4a017;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

/* 黄历小组件 */
.almanac-mini {
    background: #fffbf0;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.almanac-mini .date-info {
    margin-bottom: 15px;
    text-align: center;
}

.almanac-mini .solar-date {
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
}

.almanac-mini .week {
    font-size: 14px;
    color: #777;
    margin-left: 5px;
}

.almanac-mini .lunar-date {
    color: #d4a017;
    font-size: 16px;
    margin-top: 5px;
}

.yi-ji-mini {
    display: flex;
    gap: 10px;
}

.yi-mini,
.ji-mini {
    flex: 1;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.yi-mini h4,
.ji-mini h4 {
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.yi-mini h4 {
    color: #2e8b57;
}

.ji-mini h4 {
    color: #e67e22;
}

.yi-mini h4 i,
.ji-mini h4 i {
    margin-right: 5px;
}

.yi-content,
.ji-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.almanac-tag {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.almanac-tag.good {
    background: rgba(46, 139, 87, 0.1);
    color: #2e8b57;
}

.almanac-tag.bad {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

/* 列表页特定样式 */
.list-header-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
}

.list-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.list-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(120deg, #d4a017, #8B4513);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.list-icon i {
    font-size: 26px;
    color: #fff;
}

.list-info {
    flex: 1;
}

.list-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #8B4513;
}

.list-desc {
    color: #666;
    line-height: 1.6;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 10px;
}

.filter-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.filter-item {
    padding: 6px 15px;
    border-radius: 20px;
    margin-right: 10px;
    background: #f5f5f5;
    color: #666;
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
    background: #d4a017;
    color: #fff;
}

/* 文章列表区域 */
.list-articles-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
    overflow: hidden;
}

.list-articles {
    margin-top: 20px;
    width: 100%;
}

/* 相关栏目区域 */
.related-categories-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
    overflow: hidden;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
    width: 100%;
}

.category-button {
    padding: 8px 15px;
    background: #fff9e6;
    border: 1px solid #f0e6cc;
    border-radius: 20px;
    color: #d4a017;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-button:hover {
    background: #d4a017;
    color: #fff;
}

.category-button i {
    margin-right: 5px;
}

/* 热门推荐区域 */
.hot-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
    overflow: hidden;
}

.hot-articles {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.hot-item {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hot-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fffbf0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0e6cc;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hot-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d4a017;
}

.hot-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.hot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.hot-link:hover .hot-image img {
    transform: scale(1.1);
}

.hot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hot-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    word-break: break-word;
    max-width: 100%;
}

.hot-meta {
    font-size: 13px;
    color: #999;
}

.hot-meta span {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .hot-grid {
        grid-template-columns: 1fr;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        margin-bottom: 15px;
    }
}

/* 文章内容页样式 */
.article-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
    overflow: hidden;
}

.article-content {
    width: 100%;
}

.article-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #f0e6cc;
}

.content-article-title {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

.content-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.content-article-meta span {
    margin: 0 10px 5px;
}

.content-article-meta i {
    color: #d4a017;
    margin-right: 5px;
}

.article-summary {
    margin: 20px 0;
    padding: 15px;
    background: #fffbf0;
    border-radius: 8px;
    border-left: 4px solid #d4a017;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.summary-content {
    font-style: italic;
}

.summary-content i {
    color: #d4a017;
    margin: 0 5px;
}

.article-thumbnail {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.article-thumbnail img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 文章内容样式增强 */
.article-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-text img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
    border-radius: 4px;
}

.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
    margin: 20px 0 15px;
    color: #8B4513;
    font-weight: bold;
}

.article-text a {
    color: #d4a017;
    text-decoration: underline;
}

.article-text a:hover {
    color: #e67e22;
}

.article-text blockquote {
    padding: 15px;
    background-color: #fffbf0;
    border-left: 4px solid #d4a017;
    margin: 20px 0;
    color: #666;
}

.article-text ul,
.article-text ol {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

.article-text ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.article-text ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-text table th,
.article-text table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.article-text table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 阅读权限 */
.read-permission {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed #e67e22;
}

.permission-tips {
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 15px;
}

.btn-pay {
    display: inline-block;
    padding: 8px 20px;
    background: #e67e22;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-pay:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 文章分页 */
.article-pages {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* 文章标签 */
.article-tags {
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #fff9e6;
    border: 1px solid #f0e6cc;
    border-radius: 20px;
    color: #d4a017;
    margin: 0 5px 5px 0;
    font-size: 13px;
    transition: all 0.3s;
}

.tag:hover {
    background: #d4a017;
    color: #fff;
    border-color: #d4a017;
    transform: translateY(-2px);
}

/* 上下篇导航 */
.article-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #f0e6cc;
}

.navigation-item {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.navigation-item.prev {
    text-align: left;
    padding-left: 0;
}

.navigation-item.next {
    text-align: right;
    padding-right: 0;
}

.nav-label {
    color: #888;
    margin-bottom: 5px;
    font-size: 14px;
}

.nav-title {
    color: #333;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-title:hover {
    color: #d4a017;
}

/* 相关推荐区域 */
.related-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6cc;
    overflow: hidden;
}

.related-articles {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.related-item {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.related-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fffbf0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0e6cc;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.related-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d4a017;
}

.related-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-link:hover .related-image img {
    transform: scale(1.1);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.related-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    word-break: break-word;
    max-width: 100%;
}

.related-meta {
    font-size: 13px;
    color: #999;
}

.related-meta span {
    margin-right: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }

    .article-meta {
        justify-content: flex-start;
    }

    .article-meta span {
        margin: 0 15px 5px 0;
    }

    .article-navigation {
        flex-direction: column;
    }

    .navigation-item {
        width: 100%;
        padding: 10px 0;
    }

    .navigation-item.next {
        text-align: left;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-section,
    .related-section {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 20px;
    }

    .article-summary {
        padding: 10px;
    }

    .article-text {
        font-size: 15px;
    }

    .article-section,
    .related-section {
        padding: 10px;
    }
}

/* 模态弹窗覆盖层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* 八字详细信息 */
.bazi-top-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fffbf0;
    border-radius: 5px;
    border: 1px solid #f0e6cc;
}

.bazi-info-table {
    width: 100%;
    border-collapse: collapse;
}

.bazi-info-table td {
    padding: 8px;
    border: 1px solid #f0e6cc;
}

.bazi-info-table .label {
    font-weight: bold;
    background-color: #fff9e6;
    width: 80px;
    color: #8B4513;
}

/* 八字排盘 */
.bazi-chart {
    margin-bottom: 20px;
}

.bazi-chart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #f0e6cc;
}

.bazi-chart-table td {
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #f0e6cc;
    vertical-align: middle;
}

.bazi-label {
    font-weight: bold;
    background-color: #fff9e6;
    width: 80px;
    color: #8B4513;
}

.bazi-row td {
    height: 40px;
}

/* 天干地支颜色 */
.tg-jin,
.dz-jin {
    color: #a98600;
    background-color: #fff8e1;
}

.tg-mu,
.dz-mu {
    color: #33691e;
    background-color: #e8f5e9;
}

.tg-shui,
.dz-shui {
    color: #0d47a1;
    background-color: #e3f2fd;
}

.tg-huo,
.dz-huo {
    color: #b71c1c;
    background-color: #ffebee;
}

.tg-tu,
.dz-tu {
    color: #6d4c41;
    background-color: #efebe9;
}

/* 天干行和地支行 */
.tg-row td,
.dz-row td {
    font-size: 24px;
    font-weight: bold;
}

/* 五行分析 */
.result-section {
    margin-bottom: 25px;
    border: 1px solid #f0e6cc;
    border-radius: 5px;
    overflow: hidden;
}

.result-section h4 {
    margin: 0;
    padding: 15px;
    background-color: #d4a017;
    color: white;
    font-size: 18px;
}

.wuxing-barchart {
    padding: 15px;
}

.wuxing-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.wuxing-name {
    width: 40px;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
}

.wuxing-bar-container {
    flex-grow: 1;
    height: 24px;
    background-color: #f9f9f9;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 10px;
}

.wuxing-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}

.wuxing-bar.jin {
    background-color: #ffd54f;
}

.wuxing-bar.mu {
    background-color: #81c784;
}

.wuxing-bar.shui {
    background-color: #64b5f6;
}

.wuxing-bar.huo {
    background-color: #e57373;
}

.wuxing-bar.tu {
    background-color: #a1887f;
}

.wuxing-value {
    width: 60px;
    text-align: left;
    font-weight: bold;
}

.wuxing-value .percent {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.wuxing-status {
    padding: 15px;
    background-color: #fffbf0;
}

.status-item {
    margin-bottom: 10px;
}

.status-item .label {
    font-weight: bold;
    color: #8B4513;
}

.status-item.highlight {
    background-color: #fff8e1;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #d4a017;
}

.status-item.highlight strong {
    color: #b8860b;
    font-size: 1.1em;
}

/* 付费精批按钮 */
.premium-analysis {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8e1;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #d4a017;
}

.premium-analysis p {
    margin-bottom: 15px;
    color: #8B4513;
}

.premium-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d4a017;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 16px;
    text-decoration: none;
}

.premium-btn:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.premium-icon {
    margin-right: 5px;
}

.error-message {
    padding: 15px;
    background-color: #ffebee;
    border-left: 4px solid #e57373;
    color: #b71c1c;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 响应式适配 */
@media (max-width: 768px) {

    .bazi-info-table,
    .bazi-chart-table {
        font-size: 14px;
    }

    .tg-row td,
    .dz-row td {
        font-size: 20px;
    }

    .modal-content {
        margin: 30px auto;
        width: 95%;
    }

    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {

    .bazi-info-table,
    .bazi-chart-table {
        font-size: 12px;
    }

    .tg-row td,
    .dz-row td {
        font-size: 18px;
    }

    .bazi-label,
    .bazi-info-table .label {
        width: 60px;
    }

    .wuxing-name {
        width: 30px;
    }

    .wuxing-value {
        width: 50px;
    }

    .premium-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 媒体查询适配移动端 */
@media (max-width: 992px) {

    .hero-left,
    .hero-right {
        width: 100%;
        padding: 0;
    }

    .hero-right {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 25px 0;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .tool-item {
        padding: 8px 5px;
    }

    .tool-item span {
        font-size: 13px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 头部Icon样式 */
.hero-icon {
    display: inline-block;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 命理日历样式 */
.almanac-day {
    background: #fffbf0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #f0e6cc;
}

.day-date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 15px;
    color: #8B4513;
}

.lunar-date {
    font-size: 18px;
    font-weight: bold;
    color: #d4a017;
    margin-bottom: 10px;
    text-align: center;
}

.day-info {
    font-size: 14px;
    line-height: 1.6;
    color: #8B4513;
}

.day-info div {
    margin-bottom: 3px;
}

.day-info i {
    width: 18px;
    color: #d4a017;
    margin-right: 5px;
}

.day-suitable h4,
.day-avoid h4 {
    font-size: 16px;
    margin: 12px 0 8px;
    color: #8B4513;
    display: flex;
    align-items: center;
}

.day-suitable h4 i {
    color: #27ae60;
    margin-right: 5px;
}

.day-avoid h4 i {
    color: #e74c3c;
    margin-right: 5px;
}

.suitable-items,
.avoid-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.almanac-tag {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.almanac-tag.good {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.almanac-tag.bad {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* 最新文章小组件样式 */
.latest-widget .hot-meta {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* 吉祥物语样式 */
.fortune-cards {
    padding: 5px 0;
}

.fortune-card {
    background: #fffbf0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.1);
    margin-bottom: 15px;
    border-left: 3px solid #d4a017;
    position: relative;
}

.fortune-title {
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 8px;
}

.fortune-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.fortune-tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #fff3e0;
    color: #d4a017;
    margin-top: 10px;
}

/* 本月大事样式 */
.monthly-events {
    padding: 5px 0;
}

.event-item {
    display: flex;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fffbf0;
    transition: all 0.3s ease;
    border: 1px solid #f0e6cc;
}

.event-item:hover {
    background-color: #fff9e6;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.1);
}

.event-date {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #d4a017;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 15px;
    color: #8B4513;
    margin-bottom: 5px;
    font-weight: bold;
}

.event-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 友情链接样式 */
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    padding: 8px 12px;
    background-color: #fffbf0;
    border-radius: 4px;
    color: #8B4513;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #f0e6cc;
}

.link-item:hover {
    background-color: #fff9e6;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(139, 69, 19, 0.1);
    color: #d4a017;
}

/* 日历查询样式 */
.calendar-wrapper {
    padding: 15px;
    background-color: #fffbf0;
    border-radius: 8px;
    border: 1px solid #f0e6cc;
}

.calendar-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-selector select {
    padding: 5px 10px;
    border: 1px solid #e6b73a;
    border-radius: 4px;
    background-color: #fff;
    color: #8B4513;
    margin: 0 5px;
}

.calendar-selector span {
    color: #8B4513;
    margin: 0 2px;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-btn {
    padding: 8px 12px;
    background-color: #d4a017;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(139, 69, 19, 0.2);
}

.nav-title {
    flex: 1;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: #8B4513;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #e6b73a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    margin-bottom: 10px;
}

.calendar-table th {
    padding: 8px 5px;
    text-align: center;
    font-weight: bold;
    color: #8B4513;
    background-color: #fff9e6;
    border-bottom: 2px solid #e6b73a;
}

.calendar-table td {
    padding: 0;
    text-align: center;
    vertical-align: top;
    height: 40px;
    border: 1px solid #f0e6cc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px 0;
}

.solar-day {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.lunar-day {
    font-size: 11px;
    color: #777;
    line-height: 1.2;
}

.calendar-table td:hover .calendar-day {
    background-color: #fff3cd;
}

.calendar-table td.today .calendar-day {
    background-color: #fff3cd;
    border: 1px solid #d4a017;
}

.calendar-table td.selected .calendar-day {
    background-color: #d4a017;
    color: #fff;
}

.calendar-table td.selected .solar-day,
.calendar-table td.selected .lunar-day {
    color: #fff;
}

.calendar-table td.other-month .calendar-day {
    opacity: 0.5;
    background-color: #fafafa;
}