/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0d0d0f;
    --bg-2: #141416;
    --bg-3: #1a1a1e;
    --surface: #1e1e23;
    --surface-2: #252530;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dim: rgba(201,168,76,0.15);
    --text: #f0ede8;
    --text-2: #a09a90;
    --text-3: #5a5550;
    --accent: #c9a84c;
    --red: #e05c5c;
    --green: #5cb87a;
    --sidebar-w: 320px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Noto Serif SC', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

/* ===== 背景装饰 ===== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.bg-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.bg-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(100,80,200,0.04) 0%, transparent 70%);
    bottom: -150px; left: 100px;
}
.grain-overlay {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ===== 应用布局 ===== */
.app-shell {
    position: relative; z-index: 1;
    display: flex; height: 100vh; overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.sidebar-inner {
    display: flex; flex-direction: column;
    height: 100%; padding: 28px 24px;
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 2px; }

/* ===== 品牌 ===== */
.brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #1a1200;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}
.brand-text h1 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 22px; font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-text p {
    font-size: 11px; color: var(--text-3);
    letter-spacing: 0.5px; margin-top: 2px;
}

/* ===== 分隔线 ===== */
.divider {
    height: 1px; background: var(--border);
    margin-bottom: 24px;
}

/* ===== 表单 ===== */
.form-nav { flex: 1; display: flex; flex-direction: column; gap: 24px; }

.field-group { display: flex; flex-direction: column; gap: 10px; }

.field-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 500;
    color: var(--text-3); letter-spacing: 1px;
    text-transform: uppercase;
}
.label-num {
    font-family: 'Playfair Display', serif;
    font-size: 13px; color: var(--gold);
    font-style: italic;
}
.optional {
    font-size: 10px; color: var(--text-3);
    background: var(--surface);
    padding: 1px 6px; border-radius: 4px;
    text-transform: none; letter-spacing: 0;
    margin-left: auto;
}

/* ===== 输入框 ===== */
.field-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:hover { border-color: var(--border-hover); background: var(--surface-2); }
.field-input:focus { border-color: var(--gold); background: var(--surface-2); }
.field-input-sm { padding: 8px 12px; font-size: 12px; }

/* ===== 搜索框 ===== */
.search-wrap { position: relative; }
.search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); pointer-events: none;
}
.search-wrap .field-input { padding-left: 36px; }
.search-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    overflow: hidden; z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.search-dropdown.open { display: block; }
.dropdown-item {
    padding: 10px 14px; cursor: pointer;
    font-size: 13px; color: var(--text-2);
    transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--gold-dim); color: var(--gold-light); }

/* ===== 热门城市 ===== */
.hot-cities { display: flex; flex-direction: column; gap: 8px; }
.hot-label { font-size: 10px; color: var(--text-3); letter-spacing: 0.5px; }
.city-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.city-tag {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-2);
    font-size: 12px; cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}
.city-tag:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.city-tag.active {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ===== 天数选择器 ===== */
.days-selector {
    display: flex; align-items: center; gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.day-btn {
    width: 44px; height: 44px;
    background: transparent; border: none;
    color: var(--text-2); font-size: 20px;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.day-btn:hover { background: var(--gold-dim); color: var(--gold); }
.day-display {
    flex: 1; text-align: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 8px 0;
}
.day-num {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 700;
    color: var(--text); line-height: 1;
}
.day-unit { font-size: 11px; color: var(--text-3); margin-left: 2px; }
.day-track {
    height: 3px; background: var(--surface);
    border-radius: 2px; overflow: hidden;
}
.day-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 偏好标签 ===== */
.pref-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-tag {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-3); font-size: 11px;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.pref-tag:hover { border-color: var(--border-hover); color: var(--text-2); }
.pref-tag.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ===== API 配置 ===== */
.config-group { margin-top: 4px; }
.config-toggle {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px; width: 100%;
    color: var(--text-3); font-size: 12px;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.config-toggle:hover { border-color: var(--border-hover); color: var(--text-2); }
.toggle-arrow { margin-left: auto; transition: transform var(--transition); }
.config-toggle.open .toggle-arrow { transform: rotate(180deg); }
.config-panel {
    display: none; flex-direction: column; gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.config-panel.open { display: flex; }
.config-field { display: flex; flex-direction: column; gap: 5px; position: relative; }
.config-field label { font-size: 11px; color: var(--text-3); }
.config-label-row {
    display: flex; align-items: center; justify-content: space-between;
}
.get-key-link {
    font-size: 11px; color: var(--gold);
    text-decoration: none; opacity: 0.8;
    transition: opacity var(--transition);
}
.get-key-link:hover { opacity: 1; text-decoration: underline; }
.config-field .field-input { padding-right: 52px; }
.key-toggle {
    position: absolute; right: 8px; bottom: 8px;
    background: transparent; border: none;
    color: var(--text-3); font-size: 11px;
    cursor: pointer; font-family: inherit;
    transition: color var(--transition);
}
.key-toggle:hover { color: var(--gold); }
.save-config-btn {
    padding: 8px 14px;
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 12px;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.save-config-btn:hover { background: rgba(201,168,76,0.25); }

/* ===== 底部 ===== */
.sidebar-footer { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.generate-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%);
    border: none; border-radius: var(--radius-sm);
    color: #1a1200; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(201,168,76,0.2);
    position: relative; overflow: hidden;
}
.generate-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition);
}
.generate-btn:hover::before { opacity: 1; }
.generate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(201,168,76,0.3); }
.generate-btn:active { transform: translateY(0); }
.generate-btn:disabled {
    background: var(--surface-2); color: var(--text-3);
    box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-icon { display: flex; align-items: center; }

.status-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 0 4px;
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-3);
    transition: background var(--transition);
    flex-shrink: 0;
}
.status-dot.active { background: var(--gold); animation: pulse 1.5s infinite; }
.status-dot.done { background: var(--green); animation: none; }
.status-dot.error { background: var(--red); animation: none; }
#statusText { font-size: 12px; color: var(--text-3); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1; position: relative; overflow: hidden;
    background: var(--bg);
}

/* ===== 欢迎页 ===== */
.welcome-screen {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.welcome-inner {
    text-align: center; z-index: 1;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.welcome-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 20px;
    font-size: 11px; color: var(--gold);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 24px;
}
.welcome-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 42px; font-weight: 700;
    color: var(--text); line-height: 1.25;
    margin-bottom: 16px;
}
.welcome-title em {
    font-style: italic; color: var(--gold);
}
.welcome-desc {
    font-size: 14px; color: var(--text-2);
    line-height: 1.8; margin-bottom: 48px;
}
.welcome-steps {
    display: flex; align-items: center; justify-content: center; gap: 0;
}
.w-step {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.w-step-icon {
    width: 52px; height: 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: all var(--transition);
}
.w-step:hover .w-step-icon {
    border-color: var(--gold); color: var(--gold);
    background: var(--gold-dim);
}
.w-step span { font-size: 12px; color: var(--text-3); }
.w-step-line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, var(--border-hover) 50%, var(--border) 100%);
    margin-bottom: 22px;
}

/* 装饰环 */
.welcome-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid var(--border);
    animation: spin linear infinite;
}
.deco-ring-1 {
    width: 500px; height: 500px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation-duration: 60s;
}
.deco-ring-2 {
    width: 700px; height: 700px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    border-style: dashed;
    animation-duration: 90s; animation-direction: reverse;
}
.deco-ring-3 {
    width: 900px; height: 900px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation-duration: 120s;
    opacity: 0.5;
}
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== 加载页 ===== */
.loading-screen {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
}
.loading-inner { text-align: center; }
.loading-compass {
    width: 80px; height: 80px;
    position: relative; margin: 0 auto 32px;
}
.compass-ring {
    width: 80px; height: 80px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}
.compass-needle {
    position: absolute; top: 50%; left: 50%;
    width: 2px; height: 28px;
    background: linear-gradient(to bottom, var(--gold) 50%, var(--text-3) 50%);
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    animation: needle 3s ease-in-out infinite;
}
@keyframes needle {
    0%, 100% { transform: translate(-50%, -100%) rotate(-20deg); }
    50% { transform: translate(-50%, -100%) rotate(20deg); }
}
.loading-text {
    font-size: 15px; color: var(--text-2);
    margin-bottom: 32px;
}
.loading-steps { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.l-step {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--text-3);
    transition: color var(--transition);
}
.l-step.active { color: var(--text); }
.l-step.done { color: var(--green); }
.l-step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--surface-2);
    transition: background var(--transition);
    flex-shrink: 0;
}
.l-step.active .l-step-dot { background: var(--gold); animation: pulse 1s infinite; }
.l-step.done .l-step-dot { background: var(--green); animation: none; }

/* ===== 地图容器 ===== */
.map-container {
    position: absolute; inset: 0;
    display: flex; flex-direction: row;
}
.map-view {
    flex: 1; position: relative; min-width: 0;
}
.map-frame {
    width: 100%; height: 100%; border: none; display: block;
}
.map-overlay-bar {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 16px;
    background: rgba(14,14,16,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
}
.overlay-info { font-size: 13px; color: var(--text-2); }
.overlay-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 20px;
    color: var(--gold); font-size: 12px;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.overlay-btn:hover { background: rgba(201,168,76,0.25); }

/* ===== 行程详情面板 ===== */
.itinerary-panel {
    width: 300px; flex-shrink: 0;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.itin-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.itin-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 17px; font-weight: 700;
    color: var(--text); margin-bottom: 3px;
}
.itin-subtitle {
    font-size: 11px; color: var(--text-3);
    letter-spacing: 0.3px;
}
.itin-stats {
    display: flex; gap: 0;
    margin-top: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.itin-stat {
    flex: 1; text-align: center;
    padding: 10px 8px;
}
.itin-stat + .itin-stat {
    border-left: 1px solid var(--border);
}
.itin-stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700;
    color: var(--gold); line-height: 1;
}
.itin-stat-label {
    font-size: 10px; color: var(--text-3);
    margin-top: 3px; letter-spacing: 0.3px;
}

/* ===== 天数列表 ===== */
.itin-days {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}
.itin-days::-webkit-scrollbar { width: 3px; }
.itin-days::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 2px; }

.day-block { margin-bottom: 0; }
.day-block-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px; cursor: pointer;
    user-select: none;
}
.day-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0;
}
.day-block-title {
    font-size: 12px; font-weight: 600;
    color: var(--text-2); letter-spacing: 0.5px;
    text-transform: uppercase; flex: 1;
}
.day-count {
    font-size: 11px; color: var(--text-3);
    background: var(--surface);
    padding: 2px 8px; border-radius: 10px;
}
.day-chevron {
    color: var(--text-3);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.day-block.collapsed .day-chevron { transform: rotate(-90deg); }
.day-block.collapsed .spot-list { display: none; }

/* ===== 景点卡片 ===== */
.spot-list {
    display: flex; flex-direction: column; gap: 6px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
}
.spot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.spot-card:hover {
    border-color: var(--gold);
    background: var(--surface-2);
    transform: translateX(2px);
}
.spot-card.active {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.spot-card-top {
    display: flex; align-items: flex-start; gap: 10px;
}
.spot-num {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: #1a1200; flex-shrink: 0;
    margin-top: 1px;
}
.spot-info { flex: 1; min-width: 0; }
.spot-name {
    font-size: 13px; font-weight: 600;
    color: var(--text); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spot-time {
    font-size: 11px; color: var(--text-3);
    margin-top: 3px;
}
.spot-desc {
    font-size: 11px; color: var(--text-2);
    line-height: 1.6; margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 展开详情 */
.spot-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: none; flex-direction: column; gap: 6px;
}
.spot-card.expanded .spot-detail { display: flex; }
.spot-card.expanded .spot-desc {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.detail-row {
    display: flex; gap: 8px; align-items: flex-start;
}
.detail-icon { font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.detail-text { font-size: 11px; color: var(--text-2); line-height: 1.6; }
.detail-text b { color: var(--text); font-weight: 500; }

.detail-chip {
    border-radius: 4px; padding: 6px 10px;
    font-size: 11px; line-height: 1.5;
}
.chip-tips { background: rgba(245,158,11,0.1); border-left: 2px solid #f59e0b; color: #d4a030; }
.chip-food { background: rgba(34,197,94,0.08); border-left: 2px solid #22c55e; color: #4ade80; }
.chip-transport { background: rgba(59,130,246,0.08); border-left: 2px solid #3b82f6; color: #60a5fa; }

.spot-expand-hint {
    position: absolute; bottom: 8px; right: 10px;
    font-size: 10px; color: var(--text-3);
    transition: color var(--transition);
}
.spot-card:hover .spot-expand-hint { color: var(--gold); }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 32px; right: 32px;
    padding: 12px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 13px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(20px); opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; z-index: 9999;
    max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--red); color: #ff9090; }
.toast.success { border-color: var(--green); color: #90ffb0; }

/* ===== 动画 ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    :root { --sidebar-w: 100%; }
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; max-height: 50vh; }
    .welcome-title { font-size: 28px; }
}
