/* 八字 */
#back-to-top{
    display: none!important;
}
/* 主要内容区 */

.input-section {
    flex: 1;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e1d1;
}

.input-section h2 {
    font-size: 24px;
    color: #5d4037;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0ebe4;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5d4037;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4c9b9;
    border-radius: 8px;
    font-size: 16px;
    color: #3c2f2f;
    background-color: #fcfaf7;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8B4513;
    outline: none;
}

.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-option {
    flex: 1;
    text-align: center;
}

.gender-option input {
    display: none;
}

.gender-label {
    display: block;
    padding: 12px;
    border: 2px solid #d4c9b9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-option input:checked+.gender-label {
    border-color: #8B4513;
    background-color: rgba(139, 69, 19, 0.05);
    color: #8B4513;
    font-weight: 600;
}

.birth_box{
    display: flex;
}
.birth_box select {
    margin-right: 16px;
}
.tip {
    background-color: #f9f5e9;
    border-left: 4px solid #8B4513;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
    font-size: 14px;
    color: #6d4c41;
}

.tip i {
    color: #8B4513;
    margin-right: 8px;
}

.calc-btn {
    padding: 16px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.calc-btn-primary {
    background-color: #8B4513;
    color: #fff;
    /* -webkit-animation: btnAnim 1.5s linear infinite;
    -moz-animation: btnAnim 1.5s linear infinite;
    animation: btnAnim 1.5s linear infinite; */
}

.calc-btn-primary:hover {
    background-color: #5d4037;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.calc-btn-secondary {
    background-color: transparent;
    color: #5d4037;
    border: 2px solid #a1887f;
}

.calc-btn-secondary:hover {
    background-color: rgba(161, 136, 127, 0.1);
}

/* 侧边栏 */
.baizi-sidebar {
    width: 300px;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e1d1;
    align-self: flex-start;
}

.baizi-sidebar h3 {
    font-size: 20px;
    color: #5d4037;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebe4;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #5d4037;
}

.feature-text p {
    font-size: 14px;
    color: #6d4c41;
}

/* 结果页面样式 */
.result-section {
    flex: 1;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e1d1;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 10px;
}

.result-header p {
    color: #8d6e63;
    font-size: 16px;
}

/* 八字命盘展示 */
.bazi-display {
    background-color: #f9f5e9;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.bazi-title {
    font-size: 18px;
    color: #8B4513;
    margin-bottom: 20px;
    font-weight: 600;
}

.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.bazi-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.bazi-label {
    font-size: 14px;
    color: #8d6e63;
    margin-bottom: 5px;
}

.bazi-value {
    font-size: 22px;
    color: #5d4037;
    font-weight: 700;
}

.bazi-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.detail-item {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #5d4037;
}

/* 免费结果区域 */
.free-results {
    margin-bottom: 40px;
}

.result-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 20px;
    color: #5d4037;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebe4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-content {
    background-color: #fcfaf7;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.8;
}
.category-content p{
   margin-bottom: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.info-item {
    padding: 12px;
    background-color: #f9f5e9;
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-value {
    color: #3c2f2f;
}

.highlight {
    color: #8B4513;
    font-weight: 600;
}

/* 五行能量条 */
.wuxing-bars {
    margin: 20px 0;
}

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

.wuxing-label {
    width: 60px;
    font-weight: 600;
    color: #5d4037;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e8e1d1;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.bar-percent {
    width: 80px;
    text-align: right;
    font-weight: 600;
    color: #8d6e63;
}

/* 五行颜色 */
.jin {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.mu {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.shui {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.huo {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.tu {
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

/* 付费锁定部分 */
.locked-content {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border: 2px dashed #d4c9b9;
}

.locked-icon {
    font-size: 60px;
    color: #8d6e63;
    margin-bottom: 20px;
}

.locked-content h3 {
    font-size: 22px;
    color: #5d4037;
    margin-bottom: 15px;
}

.locked-content p {
    color: #6d4c41;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

/* 警告信息 */
.warning-box {
    background-color: #f9f5e9;
    border-radius: 2px;
    padding: 20px;
    margin-top: 40px;
    border-left: 4px solid #d32f2f;
}

.warning-title {
    font-size: 18px;
    color: #d32f2f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 十年大运样式 */
.yunshi-section {
    margin-top: 30px;
}

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

.yunshi-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e8e1d1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.yunshi-title {
    font-size: 18px;
    color: #8B4513;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebe4;
}

.yunshi-item {
    margin-bottom: 15px;
}

.yunshi-label {
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 5px;
    font-size: 14px;
}

.yunshi-value {
    color: #3c2f2f;
    font-size: 14px;
    line-height: 1.6;
}

/* 流年样式 */
.liunian-section {
    margin-top: 30px;
}

.liunian-card {
    background-color: #f9f5e9;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #8B4513;
    margin-bottom: 15px;
}

.liunian-category {
    margin-bottom: 8px;
}

.liunian-category-label {
    font-weight: 600;
    color: #5d4037;
    font-size: 13px;
    margin-bottom: 3px;
}

.liunian-category-value {
    color: #3c2f2f;
    font-size: 13px;
    line-height: 1.5;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-btn {
    flex: 1;
    min-width: 180px;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alipay {
    color: #1677ff;
    border-color: #1677ff;
}

.alipay:hover {
    background-color: #f0f8ff;
}

.wechat {
    color: #07c160;
    border-color: #07c160;
}

.wechat:hover {
    background-color: #f0fff4;
}

.payment-btn i {
    font-size: 24px;
    margin-right: 10px;
}

.liunian-year {
    position: relative;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e1d1;
    transition: all 0.3s ease;
}

.liunian-year:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.1);
}

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

.year-title {
    font-size: 18px;
    font-weight: 600;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-badge {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.year-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.year-category {
    padding: 12px;
    background: #f9f5e9;
    border-radius: 8px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-label i {
    color: #8B4513;
    font-size: 14px;
}

.category-value {
    font-size: 14px;
    color: #3c2f2f;
    line-height: 1.5;
}

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

    .sidebar {
        width: 100%;
    }

    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .baizi-sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .article-date {
        margin-left: 0;
        margin-top: 5px;
        font-size: 20px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .article-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .steps:before {
        width: 70%;
        left: 15%;
    }

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

    .payment-options {
        flex-direction: column;
        align-items: center;
    }

    .payment-option {
        width: 100%;
        max-width: 300px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bazi-pillars {
        gap: 15px;
    }

    .pillar-value {
        font-size: 24px;
    }

    .year-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {

    .info-cards-grid,
    .element-summary {
        grid-template-columns: 1fr;
    }

    .bazi-pillars {
        flex-direction: column;
        gap: 20px;
    }

    .liunian-filters {
        justify-content: center;
    }
}