/* ============ 旅行攻略页面专用样式 ============ */

/* 表单容器 */
.travel-wrap {
    padding: 0 16px 32px;
}
.travel-form {
    background: rgba(255,255,255,.06);
    padding: 24px 24px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
}

.t-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 16px;
    margin-bottom: 14px;
}
.t-field { display: flex; flex-direction: column; }
.t-field-grow { flex: 1; }

.t-label {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    margin-bottom: 6px;
    font-weight: 500;
}
.t-required { color: #ff5722; margin-left: 2px; }

.travel-form .layui-input,
.travel-form .layui-textarea {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.4);
    color: #333;
}

/* 偏好标签 */
.t-pref-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pref-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.pref-tag:hover {
    background: rgba(255,255,255,.22);
}
.pref-tag.active {
    background: #16baaa;
    border-color: #16baaa;
    color: #fff;
    font-weight: 500;
}

/* 操作按钮 */
.t-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,.12);
}

/* 结果区 */
.travel-result {
    margin-top: 4px;
}

/* 通用卡片 */
.t-card {
    background: rgba(255,255,255,.96);
    color: #2c3e50;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.t-h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #16baaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 顶部 Hero */
.t-hero {
    background: linear-gradient(135deg, #16baaa 0%, #138f7a 100%);
    color: #fff;
}
.t-hero .t-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}
.t-hero .t-info {
    font-size: 13px;
    opacity: .9;
    margin: 0 0 12px;
    line-height: 1.7;
}
.t-hero .t-summary {
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    background: rgba(255,255,255,.12);
    padding: 12px 14px;
    border-radius: 8px;
}

/* 亮点 */
.t-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}
.t-highlights li {
    padding-left: 22px;
    position: relative;
    line-height: 1.7;
}
.t-highlights li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: 700;
}

/* 每日行程 */
.t-day {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafbfc;
}
.t-day-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}
.t-day-tag {
    background: #16baaa;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.t-day-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.t-schedule {
    width: 100%;
    border-collapse: collapse;
}
.t-schedule td {
    padding: 6px 8px;
    vertical-align: top;
    border-bottom: 1px dotted #eee;
}
.t-schedule tr:last-child td { border-bottom: none; }
.t-time {
    width: 70px;
    color: #888;
    font-size: 13px;
    font-family: 'SF Mono', Consolas, monospace;
    white-space: nowrap;
}
.t-act-name {
    color: #2c3e50;
    font-weight: 500;
}
.t-act-tip {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.5;
}

/* 并排卡组 */
.t-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.t-grid-item { margin-bottom: 0; }

/* 美食表格 */
.t-food {
    width: 100%;
    border-collapse: collapse;
}
.t-food td {
    padding: 8px 10px;
    border-bottom: 1px dotted #eee;
    vertical-align: top;
}
.t-food tr:last-child td { border-bottom: none; }
.t-fd-name { font-weight: 600; color: #16baaa; min-width: 100px; }
.t-fd-loc { color: #888; font-size: 13px; min-width: 120px; }
.t-fd-must { color: #555; font-size: 13px; }

/* 预算 */
.t-budget-total {
    font-size: 18px;
    margin: 0 0 12px;
    color: #16baaa;
}
.t-budget-total strong {
    font-size: 28px;
    margin: 0 4px;
}
.t-budget-table {
    width: 100%;
    border-collapse: collapse;
}
.t-budget-table td {
    padding: 6px 10px;
    border-bottom: 1px dotted #eee;
}
.t-budget-table tr:last-child td { border-bottom: none; }
.t-budget-table .t-num {
    text-align: right;
    color: #16baaa;
    font-weight: 600;
    font-family: 'SF Mono', Consolas, monospace;
}

/* Tips */
.t-tips {
    margin: 0;
    padding-left: 22px;
    line-height: 1.85;
}
.t-tips li {
    margin-bottom: 4px;
    color: #555;
}

.t-fallback {
    background: #fff3e0;
    color: #e65100;
    font-size: 13px;
    text-align: center;
}

/* 小屏适配 */
@media (max-width: 640px) {
    .travel-form { padding: 16px; }
    .t-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .t-hero .t-title { font-size: 20px; }
    .t-budget-total strong { font-size: 22px; }
    .t-day { padding: 10px; }
    .t-schedule td { padding: 4px 6px; }
    .t-time { width: 60px; font-size: 12px; }
}