:root {
    --primary-color: #d84315;
    /* 深橘红色 */
    --secondary-color: #f9a825;
    /* 琥珀色 */
    --accent-color: #e53935;
    /* 红色 */
    --bg-color: #fffaf0;
    /* 暖白色 */
    --card-bg: #ffffff;
    --text-color: #5d4037;
    /* 深棕色 */
    --text-light: #8d6e63;
    /* 浅棕色 */
    --border-color: #d7ccc8;
    --shadow: 0 4px 6px rgba(216, 67, 21, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', "Microsoft YaHei", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

.header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 2.2em;
}

.header .subtitle {
    color: var(--text-light);
    font-size: 1.1em;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.nav-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.back-btn {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* 通用控制按钮 */
.control-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-accent {
    background: var(--accent-color);
    color: white;
}

.control-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.control-btn:disabled {
    background-color: #6b6b6b;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ead9c7;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    accent-color: var(--primary-color);
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff7ee;
    background: var(--primary-color);
    box-shadow: 0 2px 7px rgba(216, 67, 21, 0.3);
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #ead9c7;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff7ee;
    background: var(--primary-color);
    box-shadow: 0 2px 7px rgba(216, 67, 21, 0.3);
    cursor: pointer;
}


/* 引导/思考记录区域 */
.questions, .guidance-questions {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.questions h2, .guidance-questions h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.question-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fffaf0;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.question-item h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.question-item p {
    color: #6d4c41;
    font-size: 1.05em;
}

.answer-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    margin-top: 10px;
    background: white;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(216, 67, 21, 0.1);
}

/* 参数显示表格 (从 range-search 提取) */
.parameter-display {
    background: #fffaf0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table th,
.param-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.param-table th {
    background: #efebe9;
    font-weight: 600;
}

.param-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
}

/* 模态框通用样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-footer {
    margin-top: 25px;
    text-align: right;
}

footer {
    text-align: center;
    padding: 20px 20px;
    color: #a1887f;
    font-size: 14px;
}

/* 播放速度：在当前栏内水平居中，轨道随栏宽伸缩 */
.playback-speed-group {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.playback-speed-group > label {
    width: 100%;
    text-align: center;
}

.playback-speed-group .range-slider-wrap {
    width: 100%;
}