/* ============================================================
   旅行规划 travel.s1.css
   青色渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.travel-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(236,254,255,0.92));
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.travel-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(14,165,233,0.12), transparent 70%);
    pointer-events: none;
}
.travel-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 70%);
    pointer-events: none;
}
.travel-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%) !important;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
    animation: travel-breath 3s ease-in-out infinite;
}
@keyframes travel-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(6,182,212,0.35); }
    50% { box-shadow: 0 6px 26px rgba(14,165,233,0.55); }
}

/* ---------- 登录引导 ---------- */
.travel-login-guide { text-align: center; padding: 34px 16px 26px; position: relative; z-index: 1; }
.travel-login-guide i { font-size: 40px; background: linear-gradient(135deg,#06b6d4,#0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.travel-login-guide h3 { margin: 12px 0 6px; font-size: 1.05rem; color: #1e293b; }
.travel-login-guide p { margin: 0 0 18px; font-size: 0.85rem; color: #64748b; }
.travel-login-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.travel-login-btns a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 26px; border-radius: 999px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; transition: all .25s ease;
}
.travel-login-btns a.main { background: linear-gradient(135deg,#06b6d4,#0ea5e9); color: #fff; box-shadow: 0 6px 16px rgba(6,182,212,0.35); }
.travel-login-btns a.main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,165,233,0.45); }
.travel-login-btns a.ghost { border: 1.5px solid rgba(6,182,212,0.45); color: #0369a1; background: rgba(255,255,255,0.7); }
.travel-login-btns a.ghost:hover { background: rgba(6,182,212,0.08); }

/* ---------- Tabs ---------- */
.travel-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(224,242,254,0.55); border: 1px solid rgba(6,182,212,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.travel-tabs::-webkit-scrollbar { display: none; }
.travel-tab {
    flex: 1 0 auto; border: none; background: transparent; cursor: pointer;
    padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .22s ease; white-space: nowrap;
}
.travel-tab i { font-size: 0.8rem; }
.travel-tab:hover { color: #0369a1; }
.travel-tab.active {
    background: linear-gradient(135deg,#06b6d4,#0ea5e9); color: #fff;
    box-shadow: 0 4px 14px rgba(6,182,212,0.35);
}

/* ---------- 预算概览卡 ---------- */
.travel-overview-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(135deg, #cffafe 0%, #bae6fd 100%);
    border-radius: 16px; padding: 18px 20px;
    border: 1px solid rgba(6,182,212,0.4);
    box-shadow: 0 6px 20px rgba(6,182,212,0.10);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.travel-ov-main { flex: 1; min-width: 0; }
.travel-ov-label { font-size: 0.78rem; color: #155e75; font-weight: 600; letter-spacing: 0.5px; }
.travel-ov-amount { font-size: 1.7rem; font-weight: 800; color: #0e7490; margin: 4px 0 2px; }
.travel-ov-currency { font-size: 1rem; margin-right: 2px; }
.travel-ov-sub { font-size: 0.82rem; color: #155e75; }
.travel-ov-side { display: flex; flex-direction: column; gap: 6px; }
.travel-ov-side-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #0e7490; font-weight: 500; }
.travel-ov-ico { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.travel-ov-side-item.planning .travel-ov-ico { color: #06b6d4; }
.travel-ov-side-item.ongoing .travel-ov-ico { color: #0ea5e9; }
.travel-ov-side-item.done .travel-ov-ico { color: #10b981; }

/* ---------- 新增按钮 ---------- */
.travel-add-row { display: flex; margin-bottom: 16px; }
.travel-add-btn {
    border: none; cursor: pointer;
    padding: 12px 22px; border-radius: 14px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#06b6d4,#0ea5e9);
    box-shadow: 0 6px 16px rgba(6,182,212,0.35);
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s ease;
}
.travel-add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,165,233,0.45); }

/* ---------- 行程列表 ---------- */
.travel-list { display: flex; flex-direction: column; gap: 12px; }
.travel-item {
    display: flex; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(6,182,212,0.18);
    border-radius: 14px; padding: 14px;
    transition: all .2s;
}
.travel-item:hover { border-color: rgba(6,182,212,0.4); box-shadow: 0 6px 20px rgba(6,182,212,0.10); }
.travel-item-cover {
    width: 90px; height: 90px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg,#06b6d4,#0ea5e9);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem; overflow: hidden;
}
.travel-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.travel-item-info { flex: 1; min-width: 0; }
.travel-item-title { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.travel-item-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
    color: #fff;
}
.travel-item-meta { font-size: 0.78rem; color: #64748b; line-height: 1.6; }
.travel-item-meta i { color: #06b6d4; margin-right: 4px; width: 14px; text-align: center; }
.travel-item-budget { font-size: 0.82rem; font-weight: 700; color: #0e7490; margin-top: 4px; }
.travel-item-checklist { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.travel-item-cl-item {
    font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
    background: rgba(6,182,212,0.1); color: #0e7490;
}
.travel-item-actions { display: flex; flex-direction: column; gap: 6px; }
.travel-item-btn {
    border: none; background: rgba(6,182,212,0.08); color: #0369a1;
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    font-size: 0.82rem; transition: all .2s;
}
.travel-item-btn:hover { background: rgba(6,182,212,0.18); }
.travel-item-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.travel-item-btn.del:hover { background: rgba(239,68,68,0.18); }

/* ---------- 空状态 ---------- */
.travel-empty { text-align: center; padding: 36px 16px; color: #94a3b8; }
.travel-empty i { font-size: 2.4rem; margin-bottom: 10px; opacity: 0.5; }
.travel-empty div { font-size: 0.88rem; }

/* ---------- 分页 ---------- */
.travel-pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.travel-page-btn {
    border: 1px solid rgba(6,182,212,0.25); background: #fff; color: #0369a1;
    padding: 6px 14px; border-radius: 8px; cursor: pointer;
    font-size: 0.82rem; transition: all .2s;
}
.travel-page-btn:hover { background: rgba(6,182,212,0.08); }
.travel-page-btn.active { background: linear-gradient(135deg,#06b6d4,#0ea5e9); color: #fff; border-color: transparent; }
.travel-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- 表单弹窗 ---------- */
.travel-modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    z-index: 999998; display: flex; align-items: center; justify-content: center;
    padding: 16px; animation: travel-fade .2s ease;
}
@keyframes travel-fade { from { opacity: 0; } to { opacity: 1; } }
.travel-modal {
    background: #fff; border-radius: 18px; max-width: 520px; width: 100%;
    padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: travel-pop .25s ease;
    max-height: 88vh; overflow-y: auto;
}
@keyframes travel-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.travel-modal-title { font-size: 1.05rem; font-weight: 700; color: #0e7490; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.travel-modal-title i { color: #06b6d4; }

.travel-field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.travel-field { flex: 1; min-width: 130px; margin-bottom: 12px; }
.travel-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.travel-field label i { color: #06b6d4; margin-right: 4px; }
.travel-field input[type="text"], .travel-field input[type="date"], .travel-field input[type="number"] {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(6,182,212,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.travel-field input:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }

.travel-checklist-input, .travel-note-input {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(6,182,212,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; resize: vertical; font-family: inherit; line-height: 1.5;
    transition: border-color .2s, box-shadow .2s;
}
.travel-checklist-input:focus, .travel-note-input:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }

/* 状态选择 */
.travel-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.travel-status-item {
    text-align: center; padding: 10px 6px;
    border: 1.5px solid rgba(6,182,212,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.travel-status-item i { font-size: 1.1rem; display: block; margin-bottom: 4px; }
.travel-status-item .travel-status-name { font-size: 0.78rem; color: #64748b; font-weight: 500; }
.travel-status-item.active { background: rgba(6,182,212,0.10); border-color: #06b6d4; box-shadow: 0 4px 12px rgba(6,182,212,0.15); }
.travel-status-item.active .travel-status-name { color: #0e7490; font-weight: 700; }

/* 弹窗按钮 */
.travel-modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.travel-modal-btn {
    flex: 1; border: none; cursor: pointer; padding: 11px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600; transition: all .2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.travel-modal-btn.primary { background: linear-gradient(135deg,#06b6d4,#0ea5e9); color: #fff; box-shadow: 0 6px 14px rgba(6,182,212,0.3); }
.travel-modal-btn.primary:hover { transform: translateY(-1px); }
.travel-modal-btn.ghost { background: rgba(6,182,212,0.08); color: #0369a1; }

/* ---------- Toast ---------- */
.travel-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 12px 20px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; z-index: 999999;
    border-left: 4px solid #06b6d4;
    animation: travel-toast-in .3s ease;
    max-width: 90vw;
}
.travel-toast.success { border-left-color: #10b981; }
.travel-toast.error { border-left-color: #ef4444; }
.travel-toast.warning { border-left-color: #f59e0b; }
.travel-toast.info { border-left-color: #3b82f6; }
.travel-toast i { font-size: 1rem; }
.travel-toast.success i { color: #10b981; }
.travel-toast.error i { color: #ef4444; }
.travel-toast.warning i { color: #f59e0b; }
.travel-toast.info i { color: #3b82f6; }
@keyframes travel-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .travel-card { padding: 14px; border-radius: 16px; }
    .travel-tab { padding: 8px 10px; font-size: 0.78rem; }
    .travel-tab i { display: none; }
    .travel-overview-card { padding: 14px; }
    .travel-ov-amount { font-size: 1.4rem; }
    .travel-item { flex-wrap: wrap; }
    .travel-item-cover { width: 100%; height: 120px; }
    .travel-modal { padding: 16px; }
    .travel-field-row { gap: 8px; }
}
