/* 数字命理计算器样式 */

/* 计算结果容器样式 */
.numerology-results {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.numerology-results h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.numerology-results h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
    margin-top: 25px;
}

/* 段落样式 */
.numerology-results p {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: justify;
    color: #666;
}

/* 强调文本样式 */
.numerology-results strong {
    color: #333;
    font-weight: 600;
}

/* 表单样式 */
.numerology-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.numerology-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* 生日选择器样式 */
.birthday-selector {
    display: flex;
    gap: 10px;
    max-width: 350px;
    margin-bottom: 15px;
}

.birthday-selector select {
    padding: 8px;
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.birthday-selector select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* 输入框样式 */
.numerology-form input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.numerology-form input[type="number"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* 按钮样式 */
.numerology-button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.numerology-button:hover {
    background-color: #005a87;
}

.numerology-button:active {
    background-color: #004d73;
}

/* 错误信息样式 */
.numerology-error {
    color: #d94f4f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* 计算结果特定样式 */
.result-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.result-positive {
    border-left-color: #46b450;
}

.result-negative {
    border-left-color: #dc3232;
}

/* 八卦图样式 */
.bagua-container {
    text-align: center;
    margin: 20px 0;
}

.bagua-container svg {
    max-width: 300px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
}

/* 方向列表样式 */
.direction-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.direction-item {
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .numerology-results {
        max-width: 100%;
        padding: 15px;
        margin: 10px;
    }

    .birthday-selector {
        flex-direction: column;
        max-width: 100%;
    }

    .numerology-form input[type="number"] {
        width: 100%;
    }

    .direction-list {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    .numerology-form {
        display: none;
    }

    .numerology-results {
        box-shadow: none;
        border: 1px solid #000;
    }
}