 :root {
      --ion-color-primary: #4CAF50;
      --ion-color-primary-rgb: 76,175,80;
      --ion-color-primary-contrast: #ffffff;
      --ion-color-primary-contrast-rgb: 255,255,255;
      --ion-color-primary-shade: #439a46;
      --ion-color-primary-tint: #5eb762;
      --ion-color-secondary: #FF9800;
      --ion-color-tertiary: #2196F3;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    }

    body {
      background-color: #f5f5f5;
      color: #333;
      max-width: 100vw;
      overflow-x: hidden;
      padding-bottom: 60px;
    }

    /* 顶部标题栏 */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 50px;
      background-color: var(--ion-color-primary);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 100;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .header-title {
      font-size: 18px;
      font-weight: bold;
    }

    .header-back {
      position: absolute;
      left: 15px;
      font-size: 20px;
      cursor: pointer;
    }

    /* 内容区域 */
    .content {
      margin-top: 50px;
      padding: 15px;
      padding-bottom: 70px;
    }

    /* 模式切换 */
    .mode-switcher {
      display: flex;
      background: white;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .mode-tab {
      flex: 1;
      text-align: center;
      padding: 12px;
      font-size: 14px;
      color: #666;
      transition: all 0.3s;
    }

    .mode-tab.active {
      background-color: var(--ion-color-primary);
      color: white;
      font-weight: bold;
    }

    /* AI助手按钮 */
    .ai-button-container {
      margin-bottom: 20px;
    }

    .ai-toggle-button {
      width: 100%;
      background: white;
      border: none;
      border-radius: 12px;
      padding: 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      cursor: pointer;
    }

    .ai-button-left {
      display: flex;
      align-items: center;
    }

    .ai-avatar {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #2196F3, #64B5F6);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      margin-right: 10px;
    }

    .ai-button-text {
      text-align: left;
    }

    .ai-button-title {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 2px;
    }

    .ai-button-subtitle {
      font-size: 12px;
      color: #666;
    }

    /* AI对话区 (默认隐藏) */
    .ai-assistant {
      background: white;
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      display: none;
    }

    .ai-assistant.active {
      display: block;
    }

    .ai-header {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .ai-name {
      font-weight: bold;
      font-size: 16px;
    }

    .ai-status {
      font-size: 12px;
      color: #4CAF50;
      margin-left: auto;
    }

    .chat-container {
      height: 250px;
      overflow-y: auto;
      margin-bottom: 15px;
      padding-right: 5px;
    }

    .message {
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
    }

    .message-ai {
      align-items: flex-start;
    }

    .message-user {
      align-items: flex-end;
    }

    .message-bubble {
      max-width: 80%;
      padding: 10px 15px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.4;
    }

    .ai-bubble {
      background: #f1f1f1;
      border-top-left-radius: 4px;
    }

    .user-bubble {
      background: var(--ion-color-primary);
      color: white;
      border-top-right-radius: 4px;
    }

    .message-time {
      font-size: 10px;
      color: #999;
      margin-top: 4px;
    }

    .input-area {
      display: flex;
      gap: 10px;
    }

    .message-input {
      flex: 1;
      border: 1px solid #eee;
      border-radius: 20px;
      padding: 10px 15px;
      font-size: 14px;
      outline: none;
    }

    .send-button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--ion-color-primary);
      color: white;
      border: none;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
    }

    /* 快速建议按钮 */
    .quick-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 15px;
    }

    .quick-suggestion {
      background: #f1f1f1;
      border-radius: 15px;
      padding: 8px 12px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .quick-suggestion:hover {
      background: #e0e0e0;
    }

    /* 推荐行程 */
    .recommended-trips {
      margin-top: 20px;
    }

    .section-title {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
    }

    .section-title ion-icon {
      margin-right: 8px;
      color: var(--ion-color-primary);
    }

    .trip-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 15px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .trip-image {
      width: 100%;
      height: 120px;
      object-fit: cover;
    }

    .trip-info {
      padding: 12px;
    }

    .trip-title {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .trip-duration {
      font-size: 12px;
      color: #666;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
    }

    .trip-duration ion-icon {
      margin-right: 5px;
      font-size: 14px;
    }

    .trip-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 10px;
    }

    .trip-tag {
      font-size: 10px;
      padding: 2px 6px;
      background-color: #e8f5e9;
      color: #2e7d32;
      border-radius: 10px;
    }

    /* 底部Tab栏 */
    .tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60px;
      background-color: white;
      display: flex;
      justify-content: space-around;
      align-items: center;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
      z-index: 100;
    }

    .tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #666;
      font-size: 12px;
      flex: 1;
      height: 100%;
    }

    .tab-item.active {
      color: var(--ion-color-primary);
    }

    .tab-item ion-icon {
      font-size: 20px;
      margin-bottom: 3px;
    }

    /* 加载动画 */
    .typing-indicator {
      display: flex;
      padding: 10px 15px;
    }

    .typing-dot {
      width: 8px;
      height: 8px;
      background: #ccc;
      border-radius: 50%;
      margin: 0 2px;
      animation: typing 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) {
      animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
      animation-delay: 0.4s;
    }

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

    /* 旋转箭头动画 */
    .toggle-arrow {
      transition: transform 0.3s ease;
    }

    .toggle-arrow.active {
      transform: rotate(180deg);
    }




    