body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

h2 {
    color: #7f8c8d;
    text-align: center;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 300;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

tr:hover {
    background-color: #f8f9fa;
}

.arrow {
    color: #3498db;
    font-weight: bold;
}

.yang-line {
    background-color: #2c3e50;
    height: 20px;
    width: 100px;
    margin: 0 auto;
    display: block;
    border-radius: 2px;
}

.yin-line {
    background-color: #2c3e50;
    height: 20px;
    width: 100px;
    margin: 0 auto;
    display: block;
    position: relative;
    border-radius: 2px;
}

.yin-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 35%;
    width: 30%;
    height: 100%;
    background-color: #f5f5f5;
}

#yaoci {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    margin-top: 30px;
    min-height: 120px;
    font-size: 1.1em;
    line-height: 1.8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    color: #34495e;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #95a5a6;
    font-size: 0.9em;
}

/* 六神颜色 */
.zhuque { color: #e74c3c; font-weight: 500; }
.qinglong { color: #27ae60; font-weight: 500; }
.xuanwu { color: #3498db; font-weight: 500; }
.baihu { color: #9b59b6; font-weight: 500; }
.tengshe { color: #f39c12; font-weight: 500; }
.gouchen { color: #1abc9c; font-weight: 500; }

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    table {
        font-size: 0.9em;
    }
    td, th {
        padding: 10px 5px;
    }
    .yin-line, .yang-line {
        width: 60px;
    }
}
