/* 吉时查询专用样式 */

/* 重置可能影响显示的标签样式 */
.jishi-summary * {
    box-sizing: border-box;
}

.jishi-summary font {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
    border: none;
    outline: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.jishi-summary i {
    font-family: inherit;
    font-style: inherit;
    font-weight: inherit;
    text-decoration: none;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

.jishi-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.jishi-title-area {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.jishi-title-center h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb .fa-home {
    margin-right: 8px;
    color: #d4a017;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

/* 日期导航 */
.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #d4a017;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.current-date-info {
    text-align: center;
}

.solar-date {
    font-size: 24px;
    font-weight: bold;
    color: #d4a017;
    margin-bottom: 4px;
}

.lunar-date {
    font-size: 14px;
    color: #666;
}

/* 吉时介绍说明 */
.jishi-intro-section {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro-content {
    padding: 30px 40px;
    position: relative;
    z-index: 2;
}

.intro-title {
    font-size: 24px;
    font-weight: bold;
    color: #d4a017;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    max-width: 800px;
}

/* 通用区块样式 */
.section-title {
    background: #d4a017;
    color: #fff;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    position: relative;
}

/* 吉时概览标题特殊装饰 */
.jishi-summary-section .section-title {
    position: relative;
}

.jishi-summary-section .section-title::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 30px;
    background-image: url('../images/yun.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.jishi-summary-section .section-title::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    width: 40px;
    height: 30px;
    background-image: url('../images/yun.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.section-content {
    padding: 30px;
    background: #fff;
}

/* 吉时概览 */
.jishi-summary-section {
    margin: 30px 0;
}

.jishi-summary {
    background: #fff9e6;
    border: 2px solid #d4a017;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.jishi-summary span {
    display: inline-block;
    margin: 8px 12px;
    background: #fff;
    border: 1px solid #d4a017;
    border-radius: 6px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    vertical-align: top;
    min-width: 120px;
    text-align: center;
    line-height: 1.4;
    color: #666;
    font-size: 14px;
}

.jishi-summary span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
}

/* 强制显示font标签内容 */
.jishi-summary span font,
.jishi-summary font {
    display: block !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    position: static !important;
    font-family: inherit !important;
    /* 调试用边框 */
    border: 1px solid red !important;
    background: yellow !important;
}

/* 强制显示i标签内容 */
.jishi-summary span font i,
.jishi-summary font i,
.jishi-summary i {
    background: #28a745 !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-style: normal !important;
    margin-left: 8px !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    position: static !important;
    /* 调试用边框 */
    border: 1px solid blue !important;
}

.summary-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #d4a017;
}

.tip-item i {
    color: #d4a017;
    font-size: 18px;
}

/* 时辰详情 */
.shichen-detail-section {
    margin: 30px 0;
}

.shichen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shichen-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.shichen-item.is_daji {
    background: #e8f5e8;
    border-color: #28a745;
}

.shichen-item.is_daxiong {
    background: #fff5f5;
    border-color: #dc3545;
}

.shichen-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.shichen-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.shichen-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.shichen-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.jixiong-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.is_daji .jixiong-status {
    background: #28a745;
    color: #fff;
}

.is_daxiong .jixiong-status {
    background: #dc3545;
    color: #fff;
}

.shichen-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.info-value.chong {
    color: #dc3545;
}

.yiji-info {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.yi-section,
.ji-section {
    margin-bottom: 10px;
}

.yiji-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.yiji-label.yi {
    background: #28a745;
}

.yiji-label.ji {
    background: #dc3545;
}

.yiji-content {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    word-break: break-all;
}

/* 建议区块 */
.advice-section {
    margin: 30px 0;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advice-card {
    background: #fff9e6;
    border: 2px solid #d4a017;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.advice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.2);
}

.advice-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.advice-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.advice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 今天适不适合做什么样式 */
.lifa_nav {
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.containerhl {
    padding: 0;
}

.titlehl {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #fff, #d4a017);
    margin: 0;
}

.button-container {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.shiht_item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shiht_item a {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shiht_item a:hover {
    background: #d4a017;
    color: #fff;
    border-color: #d4a017;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .shichen-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .button-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .date-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .intro-content {
        padding: 20px 25px;
    }

    .intro-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .intro-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 移动端云朵装饰调整 */
    .jishi-summary-section .section-title::before,
    .jishi-summary-section .section-title::after {
        width: 30px;
        height: 22px;
    }

    .jishi-summary-section .section-title::before {
        left: 15px;
    }

    .jishi-summary-section .section-title::after {
        right: 15px;
    }

    .shichen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .advice-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-tips {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .button-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px 15px;
    }

    .titlehl {
        font-size: 20px;
        padding: 15px;
    }

    .shiht_item a {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .section-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .shichen-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .intro-content {
        padding: 15px 20px;
    }

    .intro-title {
        font-size: 18px;
    }

    .intro-text {
        font-size: 13px;
    }

    /* 小屏幕云朵装饰调整 */
    .jishi-summary-section .section-title::before,
    .jishi-summary-section .section-title::after {
        width: 25px;
        height: 18px;
    }

    .jishi-summary-section .section-title::before {
        left: 10px;
    }

    .jishi-summary-section .section-title::after {
        right: 10px;
    }

    .jishi-summary span {
        margin: 5px;
        min-width: auto;
        width: calc(50% - 10px);
    }

    .button-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-content {
        padding: 15px;
    }
}