/* 八字合婚页面专用样式 */
/* 基于qq41276713模板风格设计 */

/* 表单区域样式 */
.hehun-calculator {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #f2e8d5;
}

.hehun-form .form-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hehun-form .form-group {
    flex: 1;
    margin-right: 15px;
    min-width: 180px;
}

.hehun-form .form-group:last-child {
    margin-right: 0;
}

.hehun-form .form-group.full-width {
    width: 100%;
    flex-basis: 100%;
}

.hehun-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #6b5c3e;
}

.hehun-form .form-control {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5d5b0;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.hehun-form .form-control:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

.hehun-form .center-btn {
    justify-content: center;
    margin-top: 25px;
}

.hehun-form .btn-submit {
    background: #d4a017;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(212, 160, 23, 0.2);
    display: inline-block;
    text-align: center;
}

.hehun-form .btn-submit:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 160, 23, 0.3);
}

/* 测算结果容器样式 */
.result-container {
    background: #fff;
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f2e8d5;
}

.result-header {
    background: linear-gradient(120deg, #d4a017, #b8860b);
    color: white;
    padding: 15px 20px;
    position: relative;
    border-bottom: 1px solid #e5d5b0;
}

.result-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.result-data {
    padding: 0;
}

/* 结果部分样式 */
.result-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #f2e8d5;
}

.result-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.result-title {
    margin: 0;
    padding: 15px 20px;
    color: #6b5c3e;
    font-size: 16px;
    font-weight: 600;
    background-color: #fff9e6;
    border-bottom: 1px solid #f2e8d5;
}

.analysis-content {
    padding: 15px 20px;
}

/* 人员信息样式 */
.person-info {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 6px;
}

.man-info {
    background-color: #f5f9ff;
    border-left: 4px solid #3a7ab7;
}

.woman-info {
    background-color: #fff5f9;
    border-left: 4px solid #e35b8f;
}

.info-title {
    font-size: 17px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.man-info .info-title {
    color: #3a7ab7;
}

.woman-info .info-title {
    color: #e35b8f;
}

/* 合婚评分样式 */
.hehun-score {
    display: flex;
    justify-content: center;
    padding: 25px 0;
}

.score-chart {
    text-align: center;
    position: relative;
}

.score-value {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.score-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.score-unit {
    font-size: 16px;
    margin-top: 5px;
}

.score-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.score-excellent {
    color: #d4a017;
    padding: 3px 10px;
    background-color: rgba(212, 160, 23, 0.1);
    border-radius: 15px;
}

.score-good {
    color: #20a070;
    padding: 3px 10px;
    background-color: rgba(32, 160, 112, 0.1);
    border-radius: 15px;
}

.score-average {
    color: #d08030;
    padding: 3px 10px;
    background-color: rgba(208, 128, 48, 0.1);
    border-radius: 15px;
}

/* 夫妻双方资料卡片 */
.couple-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.person-card {
    flex: 1;
    min-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.man-card {
    border-top: 3px solid #3a7ab7;
}

.woman-card {
    border-top: 3px solid #e35b8f;
}

.person-title {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 600;
}

.man-card .person-title {
    color: #3a7ab7;
}

.woman-card .person-title {
    color: #e35b8f;
}

.person-details {
    padding: 15px;
}

.info-row {
    margin-bottom: 8px;
    display: flex;
}

.info-label {
    font-weight: 600;
    min-width: 80px;
    color: #6b5c3e;
}

.info-value {
    flex: 1;
}

/* 评分项目样式 */
.score-items {
    margin: 10px 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #f2e8d5;
}

.score-item .item-label i {
    margin-right: 5px;
    color: #d4a017;
}

.score-item:nth-child(odd) {
    background-color: #fff9e6;
}

.score-item:hover {
    background-color: #fffbf0;
    transition: background-color 0.3s ease;
}

.total-score {
    margin-top: 15px;
    background-color: #fffbf0;
    border-left: 3px solid #d4a017;
    font-weight: bold;
}

.total-score .item-score {
    font-size: 20px;
    color: #d4a017;
}

.total-score .item-label i {
    color: #f5a623;
}

.item-label {
    color: #555;
}

.item-value {
    font-weight: 600;
}

.item-score {
    color: #d4a017;
    font-size: 18px;
    margin-right: 3px;
}

/* 住宅方位样式 */
.house-orientation {
    padding: 15px;
    background: linear-gradient(135deg, #fffbf0, #fff9e6);
    border-radius: 8px;
    border: 1px solid #f2e8d5;
}

.orientation-item {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}

.orientation-label {
    font-weight: 600;
    color: #6b5c3e;
    min-width: 100px;
    margin-right: 10px;
}

.orientation-value {
    font-size: 16px;
    color: #d4a017;
    font-weight: 600;
    background-color: rgba(212, 160, 23, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.orientation-tip {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border-left: 3px solid #d4a017;
}

/* 八字详解样式 */
.bazi-details {
    line-height: 1.7;
}

.sub-title {
    margin-top: 18px;
    margin-bottom: 10px;
    color: #d4a017;
    font-size: 16px;
    border-bottom: 1px dashed #f2e8d5;
    padding-bottom: 5px;
    position: relative;
    padding-left: 16px;
    font-weight: 600;
}

.sub-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    height: 14px;
    width: 4px;
    background: linear-gradient(to bottom, #d4a017, #b8860b);
    border-radius: 2px;
}

.analysis-text p {
    margin-bottom: 15px;
    color: #444;
}

/* 付费精批按钮 */
.premium-analysis {
    margin-top: 30px;
    background: linear-gradient(135deg, #fffbf0, #fff9e6);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f2e8d5;
    position: relative;
}

.premium-analysis:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: url(../images/paper-edge.png) repeat-x;
    opacity: 0.5;
}

.premium-analysis p {
    margin-bottom: 15px;
    color: #6b5c3e;
}

.premium-btn {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    position: relative;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 134, 11, 0.4);
}

.premium-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url(../images/arrow-right.svg) no-repeat;
    background-size: contain;
    opacity: 0.8;
    animation: pointing 1s ease-in-out infinite;
}

.premium-icon {
    margin-right: 5px;
    font-size: 18px;
}

/* 注意事项样式 */
.notice-list {
    padding: 10px 0;
}

.notice-list p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.notice-item {
    margin-bottom: 20px;
    background-color: #fafaf5;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #f2e8d5;
}

.notice-item h4 {
    color: #d4a017;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px dashed #f2e8d5;
    padding-bottom: 8px;
}

.notice-item h4 i {
    margin-right: 8px;
}

/* 动画效果 */
@keyframes pointing {
    0% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(5px, -50%);
    }

    100% {
        transform: translate(0, -50%);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hehun-form .form-row {
        flex-direction: column;
    }

    .hehun-form .form-group {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .couple-info {
        flex-direction: column;
    }

    .score-value {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 32px;
    }

    .premium-btn {
        width: 90%;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .hehun-calculator {
        padding: 15px;
    }

    .result-title,
    .info-title,
    .person-title,
    .sub-title {
        font-size: 15px;
    }

    .score-item {
        padding: 8px 10px;
    }

    .orientation-item {
        flex-direction: column;
    }

    .orientation-label {
        margin-bottom: 5px;
    }
}