/* 命理测试页面专用样式 */
/* 基于qq41276713模板风格设计 */

/* 表单区域样式 */
.mingli-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;
}

.mingli-form .form-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mingli-form .form-group {
    flex: 1;
    margin-right: 15px;
    min-width: 180px;
}

.mingli-form .form-group:last-child {
    margin-right: 0;
}

.mingli-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #6b5c3e;
}

.mingli-form .center-btn {
    justify-content: center;
    margin-top: 25px;
}

.mingli-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;
}

.mingli-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;
}

.result-info,
.analysis-content,
.wuxing-analysis,
.career-analysis,
.fate-analysis {
    padding: 15px 20px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #6b5c3e;
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #333;
}

.analysis-item {
    margin-bottom: 15px;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

.analysis-subtitle {
    font-size: 15px;
    color: #d4a017;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #f2e8d5;
}

/* 五行色彩 */
.tg-mu,
.dz-mu {
    color: #2ecc71;
    /* 木 */
}

.tg-huo,
.dz-huo {
    color: #e74c3c;
    /* 火 */
}

.tg-tu,
.dz-tu {
    color: #f39c12;
    /* 土 */
}

.tg-jin,
.dz-jin {
    color: #95a5a6;
    /* 金 */
}

.tg-shui,
.dz-shui {
    color: #3498db;
    /* 水 */
}

/* 五行信息表格 */
.wuxing-grid {
    padding: 0 0 15px 0;
}

.wuxing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wuxing-table th,
.wuxing-table td {
    padding: 8px 10px;
    border: 1px solid #f2e8d5;
    text-align: center;
}

.wuxing-table th {
    background-color: #fff9e6;
    color: #6b5c3e;
    font-weight: 500;
}

.wuxing-table tr:nth-child(even) {
    background-color: #fafaf5;
}

/* 注意事项样式 */
.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;
}

/* 付费精批按钮 */
.premium-analysis {
    text-align: center;
    margin: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e8, #fffbf0);
    border-radius: 10px;
    border: 1px solid #f2e8d5;
    position: relative;
    overflow: hidden;
}

.premium-analysis:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #b8860b);
    border-radius: 3px 3px 0 0;
}

.premium-analysis p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #6b5c3e;
    line-height: 1.6;
}

.premium-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(212, 160, 23, 0.4);
}

.premium-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s;
}

.premium-btn:hover:after {
    transform: rotate(30deg) translate(10%, 10%);
}

.premium-icon {
    display: inline-block;
    margin-right: 8px;
    animation: pointing 1.5s infinite;
}

@keyframes pointing {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mingli-form .form-row {
        flex-direction: column;
    }

    .mingli-form .form-group {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .wuxing-table {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .mingli-calculator {
        padding: 15px;
    }

    .result-title,
    .result-info,
    .analysis-content,
    .wuxing-analysis,
    .career-analysis,
    .fate-analysis {
        padding: 12px 15px;
    }

    .premium-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}