/* 姓名缘分测试样式 */

/* 姓名输入区域 */
.input-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.name-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-input-group label {
    font-weight: bold;
    color: #333;
}

.input-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.relation-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.type-label {
    font-weight: bold;
    color: #333;
}

.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.type-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.test-action {
    text-align: center;
    margin-top: 10px;
}

.test-btn {
    padding: 12px 30px;
    background-color: #ff4081;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.test-btn:hover {
    background-color: #e91e63;
}

/* 测试结果区域 */
.result-section {
    margin-bottom: 30px;
}

.result-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.names-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.name-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.name-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
}

.name-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.compatibility-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.compatibility-line {
    width: 100px;
    height: 2px;
    background-color: #ff4081;
}

.compatibility-heart {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.compatibility-score {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

.score-value {
    font-size: 36px;
    font-weight: bold;
}

.score-label {
    font-size: 14px;
}

.compatibility-details {
    margin-bottom: 20px;
}

.compatibility-details h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.detail-score {
    font-size: 14px;
    color: #ff4081;
}

.compatibility-comment {
    background-color: #fff3f7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.compatibility-comment h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.compatibility-comment p {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

/* 姓名缘分知识 */
.knowledge-section {
    margin-bottom: 30px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.knowledge-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.knowledge-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.knowledge-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 说明信息 */
.info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .names-display {
        flex-direction: column;
    }
    
    .compatibility-indicator {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .knowledge-grid,
    .info-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}