﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 15px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 10px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/*        h1 { color: #8B4513; text-align: center; margin-bottom: 20px; }*/
h1 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0d6c2;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #8B4513;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #8B4513;
    border-radius: 4px;
    font-size: 16px;
}

.row {
    display: flex;
    gap: 10px;
}

    .row .form-group {
        flex: 1;
    }

button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
}

    button:hover {
        background: #A0522D;
    }
/*        #loading {
            display: none; position: fixed; top: 0; left: 0;
            width: 100%; height: 100%; background: rgba(0,0,0,0.5);
            justify-content: center; align-items: center; z-index: 100;
        }
        .spinner {
            width: 40px; height: 40px; border: 4px solid #f3f3f3;
            border-top: 4px solid #8B4513; border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }*/

#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #8B4513;
    font-size: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* 铁板神数查询容器样式 */
.chaxun-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: #f8f4e8; /* 古籍纸张底色 */
    border: 1px solid #d4c9a8; /* 仿古边框 */
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.1); /* 棕色系阴影 */
    font-family: "Microsoft YaHei", "SimSun", serif; /* 优先使用衬线字体 */
    color: #333;
    line-height: 1.8;
}

    /* 段落样式 */
    .chaxun-container p {
        margin-bottom: 1.5em;
        text-indent: 2em; /* 中文段落首行缩进 */
        text-align: justify; /* 两端对齐 */
        font-size: 16px;
    }

    /* 强调关键词样式 */
    .chaxun-container strong {
        color: #8B4513; /* 棕色强调 */
        font-weight: normal;
        border-bottom: 1px dashed #8B4513; /* 下划线效果 */
        padding-bottom: 1px;
    }

/* 响应式设计 */
@media (max-width: 768px) {
/*    .chaxun-container {
        padding: 10px;
        margin: 0 10px;
    }*/

        .chaxun-container p {
            font-size: 15px;
            line-height: 1.7;
        }
}

@media (max-width: 480px) {
    .chaxun-container {
        padding: 12px;
    }

        .chaxun-container p {
            font-size: 14px;
            text-indent: 1.5em;
        }
}
