:root {
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --text-main: #ffffff;
    --text-sub: #8e8e93;
    --accent: #0a84ff;
    --highlight: #ffd60a;
    --border: #2c2c2e;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索框区域 */
.search-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.search-box {
    position: relative;
}

#searchInput {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

#searchInput:focus {
    border-color: var(--accent);
}

/* 结果列表 */
#resultsArea {
    padding-top: 20px;
}

.placeholder {
    text-align: center;
    color: var(--text-sub);
    margin-top: 50px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.card .type-tag {
    display: inline-block;
    background: #3a3a3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-right: 8px;
    vertical-align: middle;
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.options-list li {
    padding: 5px 0;
    color: #d1d1d6;
}

.answer-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: #30d158; /* 绿色答案 */
    font-weight: 600;
}

.analysis {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: normal;
}

em.highlight {
    font-style: normal;
    color: var(--bg-color);
    background-color: var(--highlight);
    border-radius: 2px;
    padding: 0 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- 题型标签优化 --- */
.type-tag {
    display: inline-block;
    padding: 3px 8px;       /* 内边距，让标签胖一点 */
    border-radius: 6px;     /* 圆角 */
    font-size: 0.85rem;     /* 字体稍小 */
    font-weight: bold;      /* 加粗 */
    color: #fff;            /* 白字 */
    margin-right: 8px;      /* 标签和题目拉开距离 */
    vertical-align: text-bottom; /* 对齐微调 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 轻微阴影，更有质感 */
}

/* 蓝色 - 单选 (最常见，冷静) */
.type-single {
    background: linear-gradient(135deg, #007aff, #0051a8);
}

/* 紫色 - 多选 (醒目，警示需要多选) */
.type-multi {
    background: linear-gradient(135deg, #af52de, #5e5ce6);
}

/* 绿色 - 判断 (是非分明) */
.type-judge {
    background: linear-gradient(135deg, #30d158, #248a3d);
}

/* 橙色 - 填空 (需要注意) */
.type-fill {
    background: linear-gradient(135deg, #ff9f0a, #ff7a00);
}

/* 灰色 - 未知 */
.type-unknown {
    background: #636366;
}
/* 次要按钮（上一题） */
.secondary-btn {
    background: #3a3a3c !important; /* 深灰色 */
    color: #fff !important;
    margin-right: 15px; /* 和下一题按钮拉开间距 */
}
.secondary-btn:hover {
    background: #48484a !important;
}

/* 按钮容器，让上一题和下一题居中对齐 */
.nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}