/* ============================================================
   AI莲说草本大模型 —— 「本草园」主题 v2
   布局：顶部导航 · 抽屉札记 · 居中对话舞台 · 个人中心花园
   ============================================================ */

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

/* hidden 属性兜底：避免显式 display 声明覆盖原生隐藏行为 */
[hidden] {
    display: none !important;
}

:root {
    --primary-color: #14532D;        /* 深林绿 */
    --secondary-color: #16A34A;      /* 新叶绿 */
    --accent-color: #22C55E;         /* 嫩芽绿 */
    --leaf-light: #86EFAC;
    --herb-gold: #D9A441;            /* 草本金 */

    --text-color: #1F2E24;
    --text-light: #5C6F62;
    --bg-color: #F3F8F3;
    --card-bg: #FFFFFF;
    --border-color: #D9E8DC;
    --hover-color: #E7F3E9;
    --success-color: #16A34A;
    --error-color: #E5484D;
    --thinking-bg: #F0FAF0;
    --thinking-border: #86C98D;

    --topbar-h: 64px;
    --leaf-radius: 22px 8px 22px 8px;
    --leaf-radius-sm: 14px 5px 14px 5px;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 700px 480px at 88% -8%, rgba(134, 239, 172, 0.20) 0%, transparent 62%),
        radial-gradient(ellipse 560px 420px at -6% 108%, rgba(217, 164, 65, 0.09) 0%, transparent 58%),
        var(--bg-color);
}

/* ==================== 顶部导航 ==================== */

.topbar {
    flex-shrink: 0;
    height: var(--topbar-h);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 16px rgba(20, 83, 45, 0.06);
    z-index: 50;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 12px 4px 12px 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--text-color);
    transition: all 0.22s ease;
}

.icon-btn:hover {
    border-color: var(--accent-color);
    background: var(--hover-color);
    transform: translateY(-1px);
}

.icon-btn-emoji {
    font-size: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 7px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.topbar-user:hover {
    border-color: var(--accent-color);
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.18);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--herb-gold) 130%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.topbar-user-name {
    font-size: 0.86rem;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 历史抽屉 ==================== */

.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(12, 59, 34, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 90;
}

.drawer-mask.show {
    opacity: 1;
    pointer-events: auto;
}

.history-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 340px;
    max-width: 86vw;
    background: linear-gradient(170deg, #0C3B22 0%, #14532D 60%, #1B6B3A 100%);
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.32, 1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 40px rgba(12, 59, 34, 0.35);
}

.history-drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    color: #E8F5EC;
}

.drawer-head h2 {
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #E8F5EC;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid transparent;
    border-radius: var(--leaf-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.drawer-item.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.32), rgba(22, 163, 74, 0.18));
    border-color: rgba(134, 239, 172, 0.45);
}

.drawer-item-leaf {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.drawer-item-main {
    flex: 1;
    min-width: 0;
}

.drawer-item-title {
    font-size: 0.88rem;
    color: #F0F9F2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-item-time {
    font-size: 0.72rem;
    color: #9DC4AA;
    margin-top: 2px;
}

.drawer-item-del {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #9DC4AA;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.drawer-item:hover .drawer-item-del {
    opacity: 1;
}

.drawer-item-del:hover {
    background: var(--error-color);
    color: white;
}

.history-drawer .empty-history,
.empty-history {
    text-align: center;
    padding: 48px 18px;
    color: #9DC4AA;
    font-size: 0.88rem;
    line-height: 2;
}

.empty-history small {
    opacity: 0.8;
}

/* ==================== 对话舞台 ==================== */

.chat-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 欢迎屏 */
.welcome {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 20px;
}

.welcome-card {
    width: 100%;
    max-width: 760px;
    background: white;
    border-radius: 32px 14px 32px 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 50px rgba(20, 83, 45, 0.12);
    overflow: hidden;
    animation: rise 0.5s ease;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-banner {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.welcome-body {
    padding: 30px 38px 36px;
    text-align: center;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.welcome-sub {
    color: var(--text-light);
    font-size: 0.96rem;
    margin-bottom: 26px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.chip {
    padding: 10px 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.22s ease;
}

.chip:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.08));
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.18);
}

/* 消息流 */
.chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px 24px 10px;
    scroll-behavior: smooth;
}

.chat-scroll > * {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.msg-row {
    display: flex;
    gap: 13px;
    margin-bottom: 22px;
    animation: rise 0.35s ease;
}

.msg-row.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50% 50% 50% 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.32);
}

.msg-row.user .msg-avatar {
    border-radius: 50% 50% 8px 50%;
    background: linear-gradient(135deg, var(--herb-gold), #BE882E);
    box-shadow: 0 4px 12px rgba(217, 164, 65, 0.32);
}

.msg-bubble {
    max-width: 78%;
    padding: 15px 19px;
    background: white;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    border-radius: var(--leaf-radius);
    box-shadow: 0 3px 13px rgba(20, 83, 45, 0.07);
    font-size: 0.95rem;
    line-height: 1.85;
}

.msg-row.user .msg-bubble {
    background: linear-gradient(135deg, var(--secondary-color), #0F7A38);
    color: white;
    border: none;
    border-radius: 22px 8px 22px 22px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.28);
}

.msg-bubble p {
    margin-bottom: 11px;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble ul,
.msg-bubble ol {
    margin: 0 0 11px 20px;
}

.msg-bubble li {
    margin-bottom: 5px;
}

.msg-image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

/* 科普模式声明块 */
.science-notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 12px 5px 12px 5px;
    font-size: 0.83rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.science-notice.head {
    background: linear-gradient(135deg, #ECFCEF, #E2F7E7);
    border: 1px solid #B7E4C0;
    color: #1E5B32;
}

.science-notice.foot {
    background: #FBF6EA;
    border: 1px solid #ECD9A8;
    color: #7A5C1E;
    margin-bottom: 0;
    margin-top: 12px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding-top: 6px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typing 1.4s infinite;
}

.msg-row.user .typing-dots span {
    background: rgba(255, 255, 255, 0.85);
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-7px); }
}

/* 输入区 */
.composer {
    flex-shrink: 0;
    padding: 8px 24px 16px;
}

.composer-box {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 26px;
    padding: 8px 9px 8px 20px;
    box-shadow: 0 6px 22px rgba(20, 83, 45, 0.09);
    transition: all 0.25s ease;
}

.composer-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
}

.composer-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-color);
    max-height: 140px;
    min-height: 38px;
    padding-top: 9px;
    background: transparent;
}

.composer-input::placeholder {
    color: var(--text-light);
}

.composer-send {
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 4px 13px rgba(34, 197, 94, 0.4);
    transition: all 0.22s ease;
}

.composer-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(34, 197, 94, 0.52);
}

.composer-note {
    max-width: 820px;
    margin: 8px auto 0;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

/* ==================== 弹窗（通用 + 登录提示） ==================== */

.modal,
.doc-modal,
.feedback-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 59, 34, 0.52);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content,
.doc-modal-content,
.feedback-modal-content {
    background: white;
    border-radius: var(--leaf-radius);
    width: 100%;
    max-width: 560px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(12, 59, 34, 0.35);
    overflow: hidden;
}

.modal-content {
    max-width: 400px;
    padding: 30px;
    border-top: 4px solid var(--accent-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-header h2,
.doc-modal-header h2,
.feedback-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.close-btn,
.doc-close-btn,
.feedback-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.close-btn:hover,
.doc-close-btn:hover,
.feedback-close-btn:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-body {
    text-align: center;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.doc-modal-header,
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.doc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
}

.doc-modal-body h3 {
    font-size: 0.98rem;
    color: var(--primary-color);
    margin: 18px 0 8px;
}

.doc-modal-body h3:first-child {
    margin-top: 0;
}

.doc-modal-body p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.85;
    margin-bottom: 6px;
}

/* ==================== 按钮 ==================== */

.btn {
    padding: 11px 24px;
    border: none;
    border-radius: var(--leaf-radius-sm);
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.22s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 13px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(34, 197, 94, 0.5);
}

/* ==================== 个人中心 ==================== */

.uc-stage {
    flex: 1;
    overflow-y: auto;
}

.profile-hero {
    position: relative;
    margin: 26px auto 0;
    max-width: 1040px;
    width: calc(100% - 48px);
    padding: 38px 32px 32px;
    border-radius: 30px 12px 30px 12px;
    background:
        radial-gradient(circle at 85% 20%, rgba(134, 239, 172, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #0C3B22 0%, #166534 55%, #1B7A42 100%);
    color: #EDF8F0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(20, 83, 45, 0.22);
}

.profile-hero-deco {
    position: absolute;
    opacity: 0.22;
    user-select: none;
}

.leaf-a { top: 14px; left: 26px; font-size: 2rem; transform: rotate(-18deg); }
.leaf-b { bottom: 10px; right: 34px; font-size: 2.3rem; transform: rotate(14deg); }
.leaf-c { top: 40%; right: 12%; font-size: 1.5rem; }

.profile-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(134, 239, 172, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-meta {
    margin-top: 6px;
    font-size: 0.88rem;
    color: #B9DCC4;
}

.profile-dot {
    margin: 0 8px;
}

.uc-grid {
    max-width: 1040px;
    margin: 24px auto 40px;
    width: calc(100% - 48px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.uc-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 22px 8px 22px 8px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(20, 83, 45, 0.07);
}

.uc-card-wide {
    grid-column: 1 / -1;
}

.uc-card-action {
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
    display: flex;
    justify-content: center;
}

.uc-card-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uc-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.uc-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.uc-field label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-light);
}

.uc-field input {
    padding: 11px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--leaf-radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg-color);
    transition: all 0.2s;
}

.uc-field input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.uc-link-list {
    display: flex;
    flex-direction: column;
}

.uc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-radius: var(--leaf-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.uc-link:hover {
    background: var(--hover-color);
}

.uc-link-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #F3F8F3, #E4F2E8);
    border: 1px solid var(--border-color);
    border-radius: var(--leaf-radius-sm);
}

.uc-link-text {
    flex: 1;
    min-width: 0;
}

.uc-link-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.uc-link-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.uc-link-arrow {
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    background: white;
    color: var(--error-color);
    border: 1.5px solid #F2C2C4;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.22s ease;
}

.btn-logout:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 72, 77, 0.3);
}

/* 意见反馈表单 */
.feedback-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
}

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.feedback-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
}

.feedback-select,
.feedback-input,
.feedback-textarea {
    padding: 11px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--leaf-radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg-color);
    transition: all 0.2s;
}

.feedback-textarea {
    resize: vertical;
    min-height: 110px;
}

.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.feedback-count {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-light);
}

.feedback-success {
    display: none;
    padding: 11px 15px;
    background: #ECFCEF;
    border: 1px solid #9FD8AC;
    border-radius: var(--leaf-radius-sm);
    font-size: 0.86rem;
    color: #1E5B32;
}

.feedback-modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-feedback-cancel {
    padding: 10px 22px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--leaf-radius-sm);
    cursor: pointer;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-feedback-cancel:hover {
    background: var(--hover-color);
}

#feedbackSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 滚动条 ==================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #BCD8C4;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.history-drawer ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

/* ==================== 响应式 ==================== */

@media (max-width: 860px) {
    .uc-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .uc-form .btn {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 0 14px;
    }

    .brand-name {
        font-size: 0.96rem;
        letter-spacing: 0;
    }

    .icon-btn-label {
        display: none;
    }

    .icon-btn {
        padding: 8px 10px;
    }

    .topbar-user {
        padding: 5px;
    }

    .topbar-user-name {
        display: none;
    }

    .welcome-banner {
        height: 170px;
    }

    .welcome-body {
        padding: 24px 20px 28px;
    }

    .welcome-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .chat-scroll {
        padding: 22px 14px 8px;
    }

    .msg-bubble {
        max-width: 86%;
        font-size: 0.9rem;
    }

    .composer {
        padding: 6px 12px 12px;
    }

    .profile-hero {
        width: calc(100% - 24px);
        padding: 30px 20px 26px;
    }

    .uc-grid {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
    }

    .uc-card-wide {
        grid-column: auto;
    }

    .uc-card-action {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .welcome-card {
        border-radius: 22px 8px 22px 8px;
    }

    .suggestion-chips {
        flex-direction: column;
    }

    .chip {
        width: 100%;
    }

    .msg-avatar {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .composer-send {
        padding: 0 16px;
    }
}
