body { font-family: Arial, sans-serif; text-align: center; margin-top: 40px; }
#result { margin-top: 10px; font-weight: bold; }
video { max-width: 400px; border-radius: 8px; }
.mode-btns { margin: 20px 0; }
.mode-btns button {
    font-size: 1.1em;
    margin: 0 10px;
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.mode-btns button.active {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: #fff;
}
.result-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 18px 28px;
    margin: 24px auto;
    max-width: 600px;
    font-size: 1.15em;
    font-weight: bold;
    color: #f59e42;
}
.result-card .result-text {
    flex: 1;
    text-align: left;
    font-size: 1.1em;
}
.result-card button {
    background: linear-gradient(90deg,#3b82f6,#6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-left: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.result-card button:hover {
    background: linear-gradient(90deg,#6366f1,#3b82f6);
}
input[type="text"], #guessInput {
    font-size: 1.1em;
    padding: 10px 18px;
    border: 2px solid #6366f1;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border 0.2s;
    width: 240px;
    box-sizing: border-box;
    background: #f8fafc;
}
input[type="text"]:focus, #guessInput:focus {
    border-color: #3b82f6;
    background: #eef2ff;
}
button[type="submit"], #submitBtn {
    font-size: 1.1em;
    padding: 10px 24px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
button[type="submit"]:hover, #submitBtn:hover {
    background: linear-gradient(90deg, #6366f1, #3b82f6);
}

/* 美化 datalist 下拉提示（部分浏览器支持） */
input[list]::-webkit-input-placeholder { color: #6366f1; }
input[list]::-moz-placeholder { color: #6366f1; }
input[list]:focus::-webkit-input-placeholder { color: #3b82f6; }

datalist option {
    font-size: 1em;
    padding: 6px 12px;
    background: #eef2ff;
    color: #334155;
    border-radius: 4px;
}

/* 让输入区整体居中且有间距 */
.input-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    gap: 0;

}
/* 只让非第一个 section 里的文字左对齐 */
.section:not(:first-of-type) h1,
.section:not(:first-of-type) h2,
.section:not(:first-of-type) h3,
.section:not(:first-of-type) h4,
.section:not(:first-of-type) p,
.section:not(:first-of-type) ul,
.section:not(:first-of-type) ol,
.section:not(:first-of-type) li,
.section:not(:first-of-type) .faq-list {
    text-align: left;
}