/* ============ CSS风格：暗金镶边 · 都市暖调 · 苏婉晴专属 ============ */
/* 配色：暗棕底 + 暖金文字 + 琥珀强调，模拟老城区傍晚的暖光与暗影交织 */

:root {
    --bg-primary: #1e1b16;
    --bg-card: #282520;
    --bg-input: #2a2722;
    --text-primary: #e5dcc8;
    --text-secondary: #c4b99a;
    --accent: #c9a96e;
    --accent-glow: rgba(201, 169, 110, 0.25);
    --border: #4a4438;
    --border-hover: #c9a96e;
    --radius: 10px;
}

/* ===== 回答/问题内容区域 ===== */
#customized-answer-content {
    background: #e8f5e9;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Noto Serif SC', 'SimSun', 'KaiTi', '宋体', serif;
    font-size: 0.95em;
    line-height: 1.85;
    padding: 18px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#customized-answer-content:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 28px rgba(201, 169, 110, 0.35);
}

#customized-question-content {
    background:#F1F8F3;
    color: #E0E0E0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Noto Serif SC', 'SimSun', 'KaiTi', '宋体', serif;
    font-size: 0.9em;
    line-height: 1.75;
    padding: 14px 14px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

/* ===== 头像 ===== */
#customized-answer-avatar {
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--accent-glow);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}
#customized-answer-avatar:hover {
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.5);
    transform: scale(1.05);
}

#customized-question-avatar {
    border: 2px solid #5a5248;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* ===== 按钮 ===== */
#ai-mod-button2 {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    transition: all 0.35s ease;
}
#ai-mod-button2:hover {
    background: rgba(201, 169, 110, 0.2);
    box-shadow: 0 0 14px var(--accent-glow);
}

#ai-chat-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', 'SimSun', 'KaiTi', '宋体', serif;
    font-size: 0.9em;
    padding: 12px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#ai-chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    outline: none;
}

#ai-send-button {
    background: #8b6914;
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-family: 'Noto Serif SC', 'SimSun', serif;
    font-weight: bold;
    letter-spacing: 0.06em;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.35s ease;
    text-shadow: 0 0 6px rgba(201, 169, 110, 0.3);
}
#ai-send-button:hover {
    background: #a87d1a;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.45);
    transform: translateY(-1px);
}

/* 操作按钮（重载/编辑/重发/删除） */
#customized-reload-button,
#customized-edit-button,
#customized-resend-button,
#customized-delete-button {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px 10px;
    background: transparent;
    color: var(--text-secondary);
}
#customized-reload-button:hover,
#customized-edit-button:hover,
#customized-resend-button:hover,
#customized-delete-button:hover {
    background: rgba(201, 169, 110, 0.12);
    color: var(--accent);
}

#customized-model-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Noto Serif SC', serif;
    padding: 6px 10px;
}

#header-setting-button {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #8a8578;
    transition: all 0.35s ease;
}
#header-setting-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

#customized-scroll-to-bottom-button {
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: all 0.35s ease;
}
#customized-scroll-to-bottom-button:hover {
    background: rgba(201, 169, 110, 0.28);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.45);
}

#ai-mod-button {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.35s ease;
}
#ai-mod-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[id^="customized-shortcut-command-button-"] {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.8em;
    padding: 5px 14px;
    transition: all 0.35s ease;
    cursor: pointer;
}
[id^="customized-shortcut-command-button-"]:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 169, 110, 0.08);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== 折叠面板统一美化 ===== */
details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 8px 0;
    padding: 0;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}
details:hover {
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}
details summary {
    background: rgba(201, 169, 110, 0.06);
    color: var(--accent);
    padding: 11px 18px;
    cursor: pointer;
    font-family: 'Noto Serif SC', 'SimSun', serif;
    font-weight: bold;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    list-style: none;
    user-select: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--accent);
}
details[open] summary::before {
    content: '▾ ';
    transform: rotate(0deg);
}
details[open] summary {
    border-bottom: 1px solid var(--border);
    background: rgba(201, 169, 110, 0.12);
}
details p,
details table,
details ul,
details ol {
    padding: 14px 18px;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.75;
    color: var(--text-primary);
}
details table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
details table th,
details table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    font-size: 0.85em;
    color: var(--text-primary);
}
details table th {
    background: rgba(201, 169, 110, 0.15);
    color: var(--accent);
    font-weight: bold;
}

/* ===== 正文段落 ===== */
.urban-panel text p {
    font-family: 'Noto Serif SC', 'SimSun', 'KaiTi', '宋体', serif;
    font-size: 0.95em;
    line-height: 1.9;
    color: var(--text-primary);
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 1em;
}

/* 苏婉晴特殊氛围：豆腐摊暖光微粒子效果（仅在背景上若隐若现） */
.urban-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(201, 169, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.urban-panel {
    position: relative;
}

/* 保证对比度的强制锁：所有文字色与背景L差均≥40% */
/* 背景#1e1b16 (L≈11%) 与 文字#e5dcc8 (L≈87%) 差76% ✅ */
/* 卡片#282520 (L≈15%) 与 文字#e5dcc8 (L≈87%) 差72% ✅ */
/* 输入框#2a2722 (L≈16%) 与 文字#e5dcc8 (L≈87%) 差71% ✅ */
