/* ═══════════════════════════════════════════
   TravelAgent-5 — 暗色奢华旅行风
   ═══════════════════════════════════════════ */

:root {
    --bg-deep: #0a0a0f;
    --bg-base: #111118;
    --bg-elevated: #1a1a24;
    --bg-glass: rgba(255,255,255,0.04);
    --bg-glass-hover: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.08);
    --glass-border-hover: rgba(255,255,255,0.15);

    --text: #f0ece4;
    --text-2: #a09890;
    --text-muted: #6a6058;

    --accent: #e8a838;
    --accent-light: #f0c060;
    --accent-glow: rgba(232,168,56,0.15);
    --accent-soft: rgba(232,168,56,0.08);

    --agent-route: #34d399;
    --agent-hotel: #a78bfa;
    --agent-food: #fbbf24;
    --agent-info: #38bdf8;
    --agent-supervisor: #f87171;

    --r: 12px;
    --r-sm: 8px;
    --r-lg: 20px;
    --blur: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
::selection { background: var(--accent); color: #0a0a0f; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ═══ 背景 ═══ */
.bg-mesh {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}

.mesh-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.mesh-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(232,168,56,0.3), transparent 70%); top: -200px; right: -100px; }
.mesh-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(167,139,250,0.2), transparent 70%); bottom: -150px; left: -100px; animation-delay: -7s; }
.mesh-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -14s; }

@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(30px,-40px) scale(1.05); }
    50% { transform: translate(-20px,20px) scale(0.95); }
    75% { transform: translate(40px,30px) scale(1.02); }
}

.grain {
    position: absolute; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ═══ 导航栏 ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1600px; margin: 0 auto; padding: 0 24px; height: 64px;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 18px;
}

.brand-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); border: 1px solid rgba(232,168,56,0.2);
    border-radius: var(--r-sm); color: var(--accent);
}

.brand-accent { color: var(--accent); }

.nav-links { display: flex; gap: 4px; }

.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500; color: var(--text-2);
    transition: all 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--bg-glass); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-nav {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--r-sm);
    border: 1px solid var(--glass-border); background: var(--bg-glass);
    color: var(--text-2); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}

.btn-nav:hover { color: var(--text); border-color: var(--glass-border-hover); background: var(--bg-glass-hover); }

.user-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: 100px; font-size: 13px; color: var(--text-2);
    cursor: pointer; transition: all 0.2s;
}

.user-badge:hover { border-color: var(--glass-border-hover); background: var(--bg-glass-hover); }

.avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e06040);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: white;
}

/* ═══ 登录弹窗 ═══ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    width: 100%; max-width: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: 36px 32px 28px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
}

.modal-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), #e06040, var(--accent-light));
}

.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: none; background: var(--bg-glass); border-radius: 50%;
    color: var(--text-muted); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: var(--bg-glass-hover); color: var(--text); }

.modal-head { text-align: center; margin-bottom: 28px; }

.modal-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(232,168,56,0.05));
    border: 1px solid rgba(232,168,56,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; position: relative;
}

.modal-icon::after {
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 1px solid rgba(232,168,56,0.08);
}

.modal-head h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.modal-head p { font-size: 14px; color: var(--text-muted); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }

.form-group input {
    width: 100%; padding: 11px 14px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: var(--r-sm); color: var(--text);
    font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s;
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.btn-primary {
    width: 100%; padding: 12px;
    background: var(--accent); color: #0a0a0f;
    border: none; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
}

.btn-primary:hover { background: var(--accent-light); }

.form-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 20px 0; color: var(--text-muted); font-size: 12px;
}

.form-divider::before, .form-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--glass-border);
}

.btn-ghost {
    width: 100%; padding: 11px;
    background: transparent; color: var(--text-2);
    border: 1px solid var(--glass-border); border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--glass-border-hover); color: var(--text); }

.modal-perks {
    display: flex; justify-content: center; gap: 20px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.perk { font-size: 12px; color: var(--text-muted); }

/* ═══ 首屏 ═══ */
.hero {
    position: relative; z-index: 1;
    padding: 140px 24px 48px;
    max-width: 1600px; margin: 0 auto; text-align: center;
}

.hero-eyebrow {
    display: inline-block; padding: 6px 16px;
    background: var(--accent-soft); border: 1px solid rgba(232,168,56,0.15);
    border-radius: 100px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.05em; color: var(--accent);
    margin-bottom: 20px; animation: fadeUp 0.6s ease both;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}

.title-line { display: block; animation: fadeUp 0.6s ease both; }
.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }

.title-accent {
    background: linear-gradient(135deg, var(--accent), #e06040, var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc {
    max-width: 520px; margin: 0 auto 24px;
    font-size: 16px; color: var(--text-2); line-height: 1.7;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-chips {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; background: var(--bg-glass);
    border: 1px solid var(--glass-border); border-radius: 100px;
    font-size: 13px; color: var(--text-2); backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.hero-chip:hover { border-color: var(--glass-border-hover); color: var(--text); transform: translateY(-2px); }

.chip-dot { width: 7px; height: 7px; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-chip:nth-child(1) .chip-dot { background: var(--agent-route); }
.hero-chip:nth-child(2) .chip-dot { background: var(--agent-hotel); }
.hero-chip:nth-child(3) .chip-dot { background: var(--agent-food); }
.hero-chip:nth-child(4) .chip-dot { background: var(--agent-info); }

@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ 主布局 ═══ */
.studio {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 440px;
    max-width: 1600px; margin: 0 auto;
    height: calc(100vh - 64px); padding: 0 24px;
}

/* ═══ 聊天 ═══ */
.chat-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.chat-msgs {
    flex: 1; overflow-y: auto; padding: 20px 0;
    display: flex; flex-direction: column; gap: 18px;
}

.msg { display: flex; gap: 12px; max-width: 88%; animation: msgIn 0.35s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-system { align-self: flex-start; }

.msg-av {
    width: 40px; height: 40px; border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}

.msg-system .msg-av { background: var(--accent-soft); border: 1px solid rgba(232,168,56,0.15); color: var(--accent); }
.msg-user .msg-av { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; font-size: 14px; font-weight: 700; }

.avatar-glow {
    position: absolute; inset: -4px; border-radius: var(--r);
    background: var(--accent); opacity: 0.15; filter: blur(8px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse { 0%,100% { opacity: 0.1; } 50% { opacity: 0.2; } }

.msg-body {
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: var(--r-lg); padding: 16px 20px;
    backdrop-filter: blur(var(--blur));
}

.msg-user .msg-body { background: rgba(232,168,56,0.1); border-color: rgba(232,168,56,0.15); }

.msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.msg-name { font-weight: 600; color: var(--text); }
.msg-time { color: var(--text-muted); }

.msg-text { font-size: 15px; line-height: 1.7; }
.msg-text p { margin-bottom: 8px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-text h1, .msg-text h2, .msg-text h3 { margin: 12px 0 8px; font-weight: 700; line-height: 1.3; }
.msg-text h2 { font-size: 17px; }
.msg-text h3 { font-size: 15px; }

.msg-text table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.msg-text th { text-align: left; padding: 7px 10px; background: var(--bg-glass); border-bottom: 1px solid var(--glass-border); font-weight: 600; font-size: 11px; text-transform: uppercase; color: var(--text-2); letter-spacing: 0.04em; }
.msg-text td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.msg-text code { font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 2px 5px; background: var(--bg-glass); border-radius: 4px; color: var(--accent); }
.msg-text pre { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; margin: 10px 0; }
.msg-text pre code { background: none; color: var(--text); }
.msg-text blockquote { border-left: 3px solid var(--accent); padding: 8px 14px; margin: 10px 0; background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); }
.msg-text img { max-width: 100%; border-radius: var(--r-sm); margin: 8px 0; }

/* Agent 卡片 */
.agent-card {
    border: 1px solid var(--glass-border); border-radius: var(--r);
    margin-bottom: 12px; overflow: hidden;
    animation: cardIn 0.4s ease both;
}

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

.agent-card-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; background: var(--bg-glass);
    border-bottom: 1px solid var(--glass-border);
    font-size: 12px; font-weight: 600;
}

.agent-card[data-agent="route"] .agent-card-head { color: var(--agent-route); }
.agent-card[data-agent="hotel"] .agent-card-head { color: var(--agent-hotel); }
.agent-card[data-agent="food"] .agent-card-head { color: var(--agent-food); }
.agent-card[data-agent="info"] .agent-card-head { color: var(--agent-info); }
.agent-card[data-agent="supervisor"] .agent-card-head { color: var(--agent-supervisor); }

.agent-dot { width: 7px; height: 7px; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.agent-card[data-agent="route"] .agent-dot { background: var(--agent-route); }
.agent-card[data-agent="hotel"] .agent-dot { background: var(--agent-hotel); }
.agent-card[data-agent="food"] .agent-dot { background: var(--agent-food); }
.agent-card[data-agent="info"] .agent-dot { background: var(--agent-info); }
.agent-card[data-agent="supervisor"] .agent-dot { background: var(--agent-supervisor); }

.agent-card-body { padding: 14px; font-size: 14px; line-height: 1.7; }

.agent-card-think {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    animation: thinkPulse 1.5s ease-in-out infinite;
}

@keyframes thinkPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ═══ 行程卡片 ═══ */
.itin-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 12px 0;
    animation: cardIn 0.4s ease both;
}

/* Header */
.itin-head {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border-bottom: 1px solid var(--glass-border);
}

.itin-dest-badge {
    padding: 5px 14px;
    background: var(--accent);
    color: #0a0a0f; font-size: 14px; font-weight: 700;
    border-radius: 100px;
}

.itin-desc { flex: 1; font-size: 13px; color: var(--text-2); }

.itin-download {
    width: 32px; height: 32px;
    border: 1px solid var(--glass-border); border-radius: 50%;
    background: var(--bg-glass); font-size: 14px;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.itin-download:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Day tabs */
.itin-days {
    display: flex; gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
}

.itin-day {
    flex-shrink: 0;
    padding: 6px 16px;
    border: 1.5px solid var(--glass-border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
}

.itin-day.active { background: var(--accent); border-color: var(--accent); color: #0a0a0f; }
.itin-day:hover:not(.active) { border-color: var(--accent); color: var(--text); }

/* Day panels */
.itin-day-panel { display: none; }
.itin-day-panel.active { display: block; }

/* Timeline */
.tl-timeline { padding: 16px; }

.tl-item {
    display: flex; gap: 12px; align-items: flex-start;
    position: relative;
}

.tl-time {
    width: 48px; flex-shrink: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    padding-top: 14px;
}

.tl-dot {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative; z-index: 1;
}

.tl-card {
    flex: 1; min-width: 0;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    overflow: hidden;
    transition: all 0.2s;
}

.tl-card:hover { border-color: var(--glass-border-hover); }

.tl-img {
    width: 100%; height: 120px;
    overflow: hidden;
}

.tl-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tl-card:hover .tl-img img { transform: scale(1.05); }

.tl-body { padding: 10px 14px; }

.tl-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.tl-name a { color: var(--text); text-decoration: none; }
.tl-name a:hover { color: var(--accent); }

.tl-addr { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }

.tl-price {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 1px 8px; border-radius: 100px;
    margin: 4px 0;
}

.tl-desc { font-size: 11px; color: var(--text-2); line-height: 1.4; margin-top: 4px; }

/* Connector between items */
.tl-connector {
    display: flex; justify-content: center;
    padding: 4px 0 4px 103px;
}

.tl-connector-dot {
    width: 2px; height: 16px;
    background: var(--glass-border);
    border-radius: 1px;
}

/* Transport between stops */
.tl-transport {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 0 4px 78px;
    font-size: 11px; color: var(--text-muted);
}

.tl-transport-icon { font-size: 13px; }

/* Day theme */
.tl-day-theme {
    padding: 8px 16px;
    font-size: 13px; font-weight: 600; color: var(--accent);
    background: var(--accent-soft);
    border-bottom: 1px solid var(--glass-border);
}

/* Transport tip */
.itin-transport-tip {
    padding: 10px 20px;
    font-size: 12px; color: var(--text-2);
    background: rgba(56,189,248,0.05);
    border-bottom: 1px solid var(--glass-border);
}

/* Duration badge */
.tl-duration {
    display: inline-block;
    font-size: 11px; color: var(--text-muted);
    margin-right: 8px;
}

/* Tip */
.tl-tip {
    font-size: 11px; color: var(--accent);
    margin-top: 4px;
}

/* Hotel comparison */
.hotel-comparison {
    padding: 10px 14px;
    font-size: 12px; color: var(--text-2);
    border-top: 1px solid var(--glass-border);
    line-height: 1.5;
}

/* Food culture */
.itin-food-culture {
    padding: 8px 16px;
    font-size: 12px; color: var(--text-2);
    font-style: italic;
    border-top: 1px solid var(--glass-border);
}

/* Hotels section */
.itin-section {
    border-top: 1px solid var(--glass-border);
    padding: 16px;
}

.itin-section-title {
    font-size: 13px; font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.itin-hotels {
    display: flex; flex-direction: column; gap: 8px;
}

.hotel-card {
    display: flex; gap: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    overflow: hidden;
    transition: all 0.2s;
}

.hotel-card:hover { border-color: var(--glass-border-hover); }

.hotel-img {
    width: 80px; flex-shrink: 0;
    overflow: hidden;
}

.hotel-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hotel-info { padding: 10px 12px; flex: 1; min-width: 0; }
.hotel-name { font-size: 13px; font-weight: 600; color: var(--text); }
.hotel-name a { color: var(--text); text-decoration: none; }
.hotel-name a:hover { color: var(--accent); }
.hotel-score { font-size: 11px; color: var(--accent); margin: 2px 0; }
.hotel-price { font-size: 12px; font-weight: 700; color: var(--text); }
.hotel-addr { font-size: 11px; color: var(--text-muted); }

/* Info section */
.itin-info { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.itin-info h1, .itin-info h2, .itin-info h3 { color: var(--text); margin: 10px 0 6px; }
.itin-info p { margin-bottom: 6px; }

/* Day panels */
.itin-day-panel { display: none; }
.itin-day-panel.active { display: block; }

/* 快捷按钮 */
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.quick-btn {
    padding: 7px 16px; background: var(--bg-glass);
    border: 1px solid var(--glass-border); border-radius: 100px;
    color: var(--text-2); font-size: 13px; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
}

.quick-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 打字动画 */
.typing { display: flex; gap: 5px; padding: 6px 0; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: tBounce 1.2s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes tBounce { 0%,60%,100% { transform: translateY(0); opacity: 0.3; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ═══ 输入区 ═══ */
.composer { padding: 14px 0 20px; }

.composer-inner {
    display: flex; align-items: flex-end; gap: 8px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: var(--r-lg); padding: 8px 8px 8px 16px;
    transition: all 0.2s; backdrop-filter: blur(var(--blur));
}

.composer-inner:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.2); }

#chatInput {
    flex: 1; border: none; outline: none; resize: none;
    background: transparent; color: var(--text);
    font-family: inherit; font-size: 15px; line-height: 1.5;
    padding: 10px 0; max-height: 120px;
}

#chatInput::placeholder { color: var(--text-muted); }

.send-btn {
    width: 40px; height: 40px; border-radius: var(--r);
    border: none; background: var(--accent); color: #0a0a0f;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}

.send-btn:hover:not(:disabled) { background: var(--accent-light); transform: scale(1.05); }
.send-btn:disabled { background: var(--bg-glass); color: var(--text-muted); cursor: not-allowed; }

.composer-hint { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.composer-hint kbd { padding: 2px 6px; background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: 4px; font-family: "JetBrains Mono", monospace; font-size: 10px; }

/* ═══ 侧边栏 ═══ */
.sidebar {
    border-left: 1px solid var(--glass-border);
    padding: 24px 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
}

/* ── 目的地转盘（Hero区）── */
.sidebar-hero {
    text-align: center;
    padding: 28px 20px 24px;
    background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
}

.sidebar-hero-ring {
    width: 80px; height: 80px;
    margin: 0 auto 14px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.ring-glow {
    position: absolute; inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse { 0%,100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 0.8; transform: scale(1.1); } }

.sidebar-hero-emoji {
    font-size: 40px; position: relative; z-index: 1;
    transition: transform 0.3s;
}

.sidebar-hero-emoji.pop { animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop { 0% { transform: scale(0.4) rotate(-15deg); } 100% { transform: scale(1) rotate(0); } }

.sidebar-hero-name {
    font-size: 18px; font-weight: 700; color: var(--text);
    margin-bottom: 10px; min-height: 27px;
}

.sidebar-hero-tags {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin-bottom: 16px; min-height: 24px;
}

.sidebar-hero-tag {
    padding: 3px 10px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: 100px; font-size: 11px; color: var(--text-2);
    animation: tagIn 0.3s ease both;
}

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

.sidebar-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px;
    background: var(--accent); color: #0a0a0f;
    border: none; border-radius: 100px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(232,168,56,0.25);
}

.sidebar-hero-btn:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,168,56,0.35); }
.sidebar-hero-btn:active { transform: translateY(0); }
.sidebar-hero-btn.spinning { opacity: 0.5; pointer-events: none; }

/* ── 今天吃什么（横排卡片）── */
.sidebar-food {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    transition: all 0.2s;
}

.sidebar-food:hover { border-color: var(--glass-border-hover); }

.sidebar-food-left {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); border-radius: var(--r);
    flex-shrink: 0;
}

.sidebar-food-emoji {
    font-size: 28px;
    transition: transform 0.3s;
}

.sidebar-food-emoji.pop { animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1); }

.sidebar-food-right { flex: 1; min-width: 0; }

.sidebar-food-label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 2px;
}

.sidebar-food-name {
    font-size: 14px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-food-desc {
    font-size: 11px; color: var(--text-muted); line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.sidebar-food-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass-hover); border: 1px solid var(--glass-border);
    border-radius: 50%; font-size: 16px;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}

.sidebar-food-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.sidebar-food-btn.spinning { opacity: 0.5; pointer-events: none; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 博客（圆点列表）── */
.sidebar-blog {
    display: flex; flex-direction: column; gap: 0;
}

.sidebar-blog-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding: 0 2px;
}

.sidebar-blog-title {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sidebar-blog-more { font-size: 11px; color: var(--text-muted); }
.sidebar-blog-more:hover { color: var(--accent); }

.sidebar-blog-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--r-sm);
    transition: all 0.2s;
}

.sidebar-blog-item:hover { background: var(--bg-glass); }

.sidebar-blog-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--text-muted); flex-shrink: 0;
    transition: all 0.2s;
}

.sidebar-blog-item:hover .sidebar-blog-dot { background: var(--accent); }

.sidebar-blog-text {
    font-size: 13px; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.2s;
}

.sidebar-blog-item:hover .sidebar-blog-text { color: var(--text); }

/* ═══ 移动端 ═══ */
.mobile-nav {
    display: none; position: fixed;
    bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,15,0.9); backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--glass-border); padding: 6px;
}

.mobile-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px; border: none; background: transparent;
    color: var(--text-muted); font-size: 11px; font-family: inherit;
    cursor: pointer; border-radius: var(--r-sm); transition: all 0.2s;
}

.mobile-btn.active { color: var(--accent); background: var(--accent-soft); }

/* ═══ 博客页 ═══ */
.blog-page {
    position: relative; z-index: 1;
    max-width: 860px; margin: 0 auto; padding: 100px 24px 48px;
}

.blog-page-head { margin-bottom: 32px; }
.blog-page-head h1 { font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.blog-page-head p { color: var(--text-muted); font-size: 15px; }

.blog-grid { display: flex; flex-direction: column; gap: 14px; }

.blog-card {
    display: block; padding: 24px;
    background: var(--bg-glass); border: 1px solid var(--glass-border);
    border-radius: var(--r-lg); backdrop-filter: blur(var(--blur));
    transition: all 0.3s;
}

.blog-card:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.blog-card-date { font-size: 12px; font-family: "JetBrains Mono", monospace; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.blog-card-summary { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.blog-card-more { font-size: 13px; font-weight: 600; color: var(--accent); }

.blog-pagination {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 36px; padding: 20px 0;
}
.page-btn {
    padding: 8px 18px; border-radius: 8px;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
    transition: all .2s;
}
.page-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn.disabled { opacity: .35; pointer-events: none; }
.page-info { font-size: 13px; color: var(--text-muted); font-family: "JetBrains Mono", monospace; }

/* ═══ 文章页 ═══ */
.article-page {
    position: relative; z-index: 1;
    max-width: 720px; margin: 0 auto; padding: 100px 24px 48px;
}

.article-head { margin-bottom: 28px; }
.article-date { font-size: 13px; font-family: "JetBrains Mono", monospace; color: var(--text-muted); }
.article-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 8px; line-height: 1.25; }

.article-body { font-size: 16px; line-height: 1.85; color: var(--text-2); }
.article-body h1, .article-body h2, .article-body h3 { color: var(--text); margin: 28px 0 12px; line-height: 1.3; }
.article-body h1 { font-size: 26px; }
.article-body h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); }
.article-body h3 { font-size: 18px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin-bottom: 14px; padding-left: 24px; }
.article-body li { margin-bottom: 5px; }
.article-body code { font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 2px 5px; background: var(--bg-glass); border-radius: 4px; color: var(--accent); }
.article-body pre { background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 14px; overflow-x: auto; margin: 14px 0; }
.article-body pre code { background: none; color: var(--text); }

/* ASCII art / flow diagram styling */
.article-body pre:has(code) {
    background: rgba(232,168,56,0.03);
    border-color: rgba(232,168,56,0.15);
    font-size: 12px;
    line-height: 1.5;
}

.itin-fallback pre { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; font-size: 12px; line-height: 1.5; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 10px 14px; margin: 14px 0; background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-body th { text-align: left; padding: 9px 12px; background: var(--bg-glass); border-bottom: 2px solid var(--glass-border); font-weight: 600; font-size: 12px; color: var(--text-2); }
.article-body td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.article-body img { max-width: 100%; border-radius: var(--r); margin: 14px 0; }

.article-nav { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--glass-border); }
.back-link { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ═══ Footer ═══ */
.footer {
    position: relative; z-index: 1;
    text-align: center; padding: 20px;
    color: var(--text-muted); font-size: 12px;
    border-top: 1px solid var(--glass-border); margin-top: 36px;
}

/* ═══ 响应式 ═══ */
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr 380px; } }

@media (max-width: 900px) {
    .studio { grid-template-columns: 1fr; padding: 0 16px; }
    .sidebar { display: none; }
    .sidebar.mobile-active { display: flex; position: fixed; inset: 64px 0 56px 0; z-index: 50; background: var(--bg-deep); border-left: none; }
    .mobile-nav { display: flex; }
    .nav-links { display: none; }
    .hero { padding: 110px 16px 32px; }
    .hero-title { font-size: 32px; }
    .chat-msgs { padding: 16px 0; }
    .blog-page { padding: 80px 16px 32px; }
    .article-page { padding: 80px 16px 32px; }
}

/* ═══ Booking section ═══ */
.itin-booking { border-top: 1px solid var(--glass-border); }
.booking-subtitle { font-size: 12px; font-weight: 600; color: var(--accent); padding: 8px 0 6px; }
.booking-card { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.booking-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.booking-no { font-size: 13px; font-weight: 600; color: var(--text); }
.booking-route { font-size: 11px; color: var(--text-2); }
.booking-time { font-size: 11px; color: var(--text-muted); font-family: "JetBrains Mono", monospace; }
.booking-price { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.booking-cta { padding: 5px 12px; background: var(--accent); color: #0a0a0f; border-radius: 100px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: all 0.2s; }
.booking-cta:hover { background: var(--accent-light); }

/* ═══ Weather section ═══ */
.itin-weather { border-top: 1px solid var(--glass-border); }
.weather-days { display: flex; gap: 10px; flex-wrap: wrap; }
.weather-day { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--r-sm); font-size: 12px; }
.weather-date { color: var(--text); font-weight: 500; }
.weather-icon { font-size: 16px; }
.weather-temp { color: var(--text-2); }
.weather-rain { color: var(--agent-info); font-size: 11px; }
.weather-clothing { margin-top: 10px; padding: 8px 12px; background: rgba(56,189,248,0.05); border-radius: var(--r-sm); font-size: 12px; color: var(--text-2); }
.weather-umbrella { margin-top: 6px; padding: 6px 12px; background: rgba(251,191,36,0.08); border-radius: var(--r-sm); font-size: 12px; color: var(--agent-food); }

/* ═══ Photo spot ═══ */
.tl-photo-spot { font-size: 11px; color: var(--agent-hotel); margin-top: 4px; }

/* ═══ XHS link ═══ */
.tl-xhs-link { display: inline-block; margin-top: 6px; font-size: 11px; color: #ff2442; }
.tl-xhs-link:hover { text-decoration: underline; }

/* ═══ Booking button on activity ═══ */
.tl-book-btn { display: inline-block; margin-top: 6px; margin-left: 8px; padding: 3px 10px; background: var(--accent); color: #0a0a0f; border-radius: 100px; font-size: 11px; font-weight: 600; transition: all 0.2s; }
.tl-book-btn:hover { background: var(--accent-light); }

/* ═══ Hotel booking CTA ═══ */
.hotel-book-cta { display: inline-block; margin-top: 6px; padding: 3px 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(232,168,56,0.2); border-radius: 100px; font-size: 11px; font-weight: 600; transition: all 0.2s; }
.hotel-book-cta:hover { background: var(--accent); color: #0a0a0f; }
