/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;  
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================== 拖拽分隔条 ==================== */
.resizer {
    width: 5px;
    background: transparent;
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s;
}

.resizer:hover {
    background: #e3f2fd;
}

.resizer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background: #ccc;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s;
}

.resizer:hover::before {
    opacity: 1;
}

/* ==================== 左侧面板 - AI助手 ==================== */
.left-panel {
    width: 360px;
    background: #fff;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
}

.ai-assistant {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.panel-header .icon {
    font-size: 20px;
    margin-right: 10px;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    color: #333;
}

.collapse-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: color 0.2s;
}

.collapse-btn:hover {
    color: #666;
}

/* WebSocket连接状态 */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

.connection-status.connected .status-dot {
    background: #4caf50;
    animation: none;
}

.connection-status.disconnected .status-dot {
    background: #f44336;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: #666;
    font-weight: 500;
}

/* 工具调用提示栏 */
.tool-call-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1a73e8;
    color: white;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-text {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.thinking-timer {
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.tool-call-bar.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* 打字效果容器 */
.typed-text {
    display: inline;
}

.message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

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

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

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
}

.message.user .message-bubble {
    background: #1a73e8;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin: 4px 8px 0;
    align-self: flex-end;
}

/* 输入区域 */
.input-section {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}

.message-input:focus {
    border-color: #1a73e8;
}

.message-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #1557b0;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== 中间面板 - 行程详情 ==================== */
.middle-panel {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: relative;
    z-index: 10;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.feedback-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.feedback-icon {
    font-size: 16px;
}

.feedback-text {
    font-size: 14px;
}

/* 按钮容器 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* 导出PDF按钮 */
.export-pdf-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.export-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: #059669;
}

.export-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.export-icon {
    font-size: 16px;
}

.export-text {
    font-size: 14px;
}

/* PDF导出加载动画 */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.pdf-loading-content {
    background-color: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
}

.pdf-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border: 5px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pdf-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.pdf-loading-tip {
    font-size: 14px;
    color: #6b7280;
}

.toolbar {
    display: flex;
    gap: 8px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.tool-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.departure-date {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.departure-date:hover {
    background: #f0f1f3;
}

.calendar-icon {
    font-size: 18px;
}

.date-text {
    color: #666;
    font-size: 14px;
}

.days-navigation {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
}

.day-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    white-space: nowrap;
}

.day-tab:hover {
    background: #f5f5f5;
    border-color: #999;
}

.day-tab.active {
    background: #1a73e8;
    color: white;
    border-color: transparent;
}

.nav-arrow, .add-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-arrow:hover, .add-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    position: relative; /* 为加载动画绝对定位做准备 */
}

/* 加载动画容器：完全居中显示 */
.loading-spinner {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    background: #fff;
    z-index: 5;
}

/* 加载圆圈样式（用于中间区域加载动画） */
.loading-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border: 6px solid #e6e9ed;
    border-top: 6px solid #1a73e8; /* 使用项目主题蓝色 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0; /* 防止圆圈被压缩 */
}

/* 旋转动画关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载动画标题 */
.loading-spinner h2 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

/* 加载动画提示文字 */
.loading-spinner p {
    font-size: 14px;
    color: #999;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* 行程内容样式 */
.overview-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.day-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.day-header {
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.segment-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #1a73e8;
    transition: transform 0.2s, box-shadow 0.2s;
}

.segment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.segment-route {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.segment-details {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.segment-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 右侧面板 - 地图 ==================== */
.right-panel {
    width: 400px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-left: 1px solid #e0e0e0;
}

.map-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
}

.map-tab {
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.map-tab:hover {
    background: #f0f1f3;
    color: #333;
}

.map-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 600;
}

.more-tab {
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

.map-container {
    flex: 1;
    position: relative;
}

/* ==================== 消息提示框 ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a73e8;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #d32f2f;
}

.toast.success {
    background: #388e3c;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .left-panel {
        width: 300px;
    }
    
    .right-panel {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        height: 300px;
    }
    
    .resizer {
        display: none;
    }
}

/* ==================== 看板模式样式 ==================== */
.middle-panel.kanban-mode .departure-date,
.middle-panel.kanban-mode .days-navigation {
    display: none;
}

.middle-panel.kanban-mode #refreshBtn,
.middle-panel.kanban-mode #richModeBtn,
.middle-panel.kanban-mode #simpleModeBtn {
    display: none;
}

.middle-panel.kanban-mode .itinerary-header {
    z-index: 100;
}

.middle-panel.kanban-mode .tool-btn {
    position: relative;
    z-index: 101;
}

.middle-panel.kanban-mode .content-area {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.middle-panel.kanban-mode .content-area::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.middle-panel.kanban-mode .content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.middle-panel.kanban-mode .content-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.middle-panel.kanban-mode .content-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.kanban-column {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kanban-column .attractions-list {
    overflow-y: auto;
    flex: 1;
}

.kanban-column .attractions-list::-webkit-scrollbar {
    width: 6px;
}

.kanban-column .attractions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.kanban-column .attractions-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.kanban-column .attractions-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.kanban-scroll-hint {
    position: fixed;
    top: 28px;
    right: 90px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 999;
    pointer-events: none;
    animation: fadeIn 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 景点详细卡片样式 ==================== */
.day-detail {
    padding: 0;
}

.day-detail-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.day-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.day-summary {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 13px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.attractions-list {
    padding: 0 20px 20px;
}

.attraction-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.attraction-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.attraction-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.attraction-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.attraction-info {
    flex: 1;
    min-width: 0;
}

.attraction-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attraction-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.time-info,
.duration-info {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.attraction-address {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.more-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

.more-btn:hover {
    color: #667eea;
}

.attraction-images {
    margin: 12px 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.attraction-images::-webkit-scrollbar {
    height: 4px;
}

.attraction-images::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.attraction-img {
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.attraction-img:only-child {
    width: 100%;
    max-width: 400px;
}

.attraction-notes {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 10px;
}

.travel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    color: #666;
    font-size: 13px;
}

.travel-icon {
    font-size: 16px;
}

.travel-time {
    font-weight: 500;
    color: #667eea;
}

.travel-mode {
    color: #999;
}

/* ==================== 历史版本弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: flex-start;
    align-items: stretch;
}

.modal-content {
    background: white;
    width: 400px;
    max-width: 400px;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

/* ==================== 旅游计划表单样式 ==================== */
.travel-form-container {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.form-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-toggle-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.form-toggle-btn:hover {
    color: #666;
}

.travel-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.travel-form.collapsed {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #f44336;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    font-size: 11px;
    color: #999;
    margin-top: -2px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: #f5f5f5;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1a73e8;
}

.radio-label input[type="radio"]:disabled {
    cursor: not-allowed;
}

.form-submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    margin-top: 8px;
}

.form-submit-btn:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.travel-form.submitted {
    pointer-events: none;
    opacity: 0.7;
}

.travel-form.submitted .form-input,
.travel-form.submitted .radio-label input[type="radio"] {
    cursor: not-allowed;
}

/* 表单数据卡片样式（在聊天记录中显示） */
.form-data-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 4px solid #1a73e8;
}

.form-data-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-data-card .card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 12px;
}

.form-data-card .data-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-data-card .data-label {
    color: #666;
    font-weight: 500;
}

.form-data-card .data-value {
    color: #333;
    font-weight: 600;
}
