﻿/* 排盘方式选择容器样式 - 优化版 */
.paipan-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 1px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 1px 0;
    flex-wrap: wrap;
}

/* 排盘选项样式 */
.paipan-option {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .paipan-option:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    /* 单选按钮样式 */
    .paipan-option input[type="radio"] {
        appearance: none;
        width: 16px;
        height: 16px;
        border: 2px solid #ddd;
        border-radius: 50%;
        margin: 0;
        position: relative;
        transition: all 0.2s ease;
    }

        /* 选中状态样式 */
        .paipan-option input[type="radio"]:checked {
            border-color: var(--primary-color);
        }

            .paipan-option input[type="radio"]:checked::before {
                content: '';
                position: absolute;
                width: 10px;
                height: 10px;
                background: var(--primary-color);
                border-radius: 50%;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

    /* 不同排盘类型的颜色 */
    .paipan-option[data-type="tieban"] input[type="radio"]:checked {
        --primary-color: #9c27b0; /* 紫色 */
    }

    .paipan-option[data-type="bazi"] input[type="radio"]:checked {
        --primary-color: #4caf50; /* 绿色 */
    }

    .paipan-option[data-type="ziwei"] input[type="radio"]:checked {
        --primary-color: #2196f3; /* 蓝色 */
    }

    /* 文字样式 */
    .paipan-option .label {
        margin-left: 8px;
        font-size: 15px;
        color: #333;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-weight: 500;
    }

/* 响应式调整 */
@media (max-width: 600px) {
    .paipan-selector {
        gap: 12px;
        padding: 8px;
    }

    .paipan-option {
        padding: 6px 10px;
    }

        .paipan-option .label {
            font-size: 14px;
        }
}



.instructions {
    margin-top: 5px;
    background: #f0f4f8;
    border-radius: 12px;
    padding: 10px;
}

    .instructions h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        text-align: center;
    }

    .instructions ul {
        padding-left: 20px;
    }

    .instructions li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .instructions {
        font-size: 14px;
        padding: 20px 5px;
    }
}
