* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", serif;
}
body {
    background: #18120e;
    color: #f6e6d2;
    min-height: 100vh;
    padding: 20px;
}
.bagua-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjkwIiBmaWxsPSJub25lIiBzdHJva2U9IiM0NDQiLz48cGF0aCBkPSJNMTAwIDBBMTAwIDEwMCAwIDAgMCAxMDAgMjBBMTAwIDEwMCAwIDAgMSAxMDAgMHoiIGZpbGw9IiNGNkVORDciLz48Y2lyY2xlIGN4PSIxMDAiIGN5PSI1MCIgcj0iMjAiLz48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxNTAiIHI9IjIwIiBmaWxsPSIjRjZFOEQ3Ii8+PC9zdmc+");
    opacity: 0.06;
    z-index: -1;
}
.container {
    max-width: 1000px; /* 加宽 */
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.notice {
    background: #3a271a;
    color: #f8d090;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #6d4a2f;
    font-size: 14px;
}
h1 {
    text-align: center;
    color: #eec48e;
    margin-bottom: 24px;
    font-size: 26px;
}
.form-box {
    background: #241911;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #5c402a;
}
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.btn-row {
    margin-top: 10px;
}
.item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.item label {
    color: #eec48e;
    font-size: 15px;
}
.item input, .item select {
    padding: 12px;
    background: #3a271a;
    border: 1px solid #6d4a2f;
    border-radius: 6px;
    color: #f6e6d2;
    font-size: 15px;
}
button {
    padding: 13px;
    background: #a16d3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.result-box {
    background: #241911;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #5c402a;
}
.result-box h2 {
    color: #eec48e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5c402a;
    font-size: 20px;
}
.result-box > div {
    line-height: 1.9;
    margin-bottom: 12px;
    font-size: 15px;
}
.bad-math {
    color: #ff6666;
    font-weight: bold;
}

/* 三行四列 名字排版 */
#nameList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}
.nameItem {
    background: #3a271a;
    padding: 10px 12px;
    border-radius: 6px;
    color: #eec48e;
    cursor: pointer;
    border: 1px solid #6d4a2f;
    text-align: center;
    font-size: 15px;
}
#scoreInfo {
    white-space: pre-line;
    line-height: 1.9;
}

@media (max-width:768px) {
    .row {
        grid-template-columns: 1fr;
    }
    #nameList {
        grid-template-columns: repeat(2,1fr);
    }
    .container {
        max-width: 100%;
    }
}