/* ============================================
   旅伴 - 自助旅游咨询互助平台
   全局样式表
   ============================================ */

/* ============ Reset & Base ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============ Navbar ============ */
/* 改为普通文档流元素：随页面滚动，物理上永远不会遮挡任何内容 */
.navbar {
    position: relative;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: var(--transition);
}

/* 导航栏已在文档流中，不再需要自动隐藏逻辑 */

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
}

.navbar .logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: 48px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-search {
    position: relative;
}

.nav-search input {
    width: 220px;
    padding: 8px 16px 8px 36px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    background: var(--bg-light);
    transition: var(--transition);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.nav-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ============ Hero ============ */
.hero {
    margin-top: 0;
    min-height: 560px;
    height: auto;
    padding: 48px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 40%, #7c3aed 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 装饰光晕裁剪层（独立背景层，hero 本身不裁剪以便城市下拉面板溢出显示） */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 40px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-content .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    background: white;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 680px;
    margin: 0 auto;
}

.hero-search .search-field {
    flex: 1;
    padding: 8px 20px;
    border-right: 1px solid var(--border);
    text-align: left;
}

.hero-search .search-field:last-of-type {
    border-right: none;
}

.hero-search .search-field label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
    font-weight: 600;
}

.hero-search .search-field select,
.hero-search .search-field input {
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
    background: transparent;
    cursor: pointer;
}

.hero-search .search-field select:focus,
.hero-search .search-field input:focus {
    outline: none;
}

.hero-search .btn {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 13px;
    opacity: 0.8;
}

/* ============ Section Common ============ */
.section {
    padding: 80px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Filter Bar ============ */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sort-select {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-medium);
    background: white;
    cursor: pointer;
}

/* ============ Route Cards ============ */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.route-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.route-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.route-card .route-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.route-card .route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.route-card:hover .route-image img {
    transform: scale(1.08);
}

.route-difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(4px);
}

.difficulty-easy { background: rgba(16,185,129,0.9); }
.difficulty-medium { background: rgba(245,158,11,0.9); }
.difficulty-hard { background: rgba(239,68,68,0.9); }

.route-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.route-card .route-body {
    padding: 20px;
}

.route-card .route-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.route-card .route-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.route-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.route-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-card .route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.route-card .route-price {
    font-size: 13px;
    color: var(--text-light);
}

.route-card .route-price strong {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
}

.route-card .route-btn {
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.route-card .route-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============ Accommodation Section ============ */
.accommodation-section {
    background: var(--bg-light);
}

.accom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.accom-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.accom-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.accom-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.accom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.accom-card:hover .accom-image img {
    transform: scale(1.08);
}

.accom-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(37,99,235,0.9);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.accom-type-badge.homestay {
    background: rgba(245,158,11,0.9);
}

.accom-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    font-size: 16px;
}

.accom-fav:hover {
    background: white;
    transform: scale(1.1);
}

.accom-fav.faved {
    color: var(--danger);
}

.accom-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.accom-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.accom-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.accom-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.accom-feature {
    padding: 3px 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-medium);
}

.accom-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.accom-rating .stars {
    color: var(--accent);
    font-size: 14px;
}

.accom-rating .score {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

.accom-rating .reviews {
    font-size: 12px;
    color: var(--text-light);
}

.accom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.accom-price {
    font-size: 13px;
    color: var(--text-light);
}

.accom-price strong {
    font-size: 24px;
    color: var(--danger);
    font-weight: 800;
}

.accom-price .unit {
    font-size: 13px;
    color: var(--text-light);
}

.accom-book-btn {
    padding: 8px 18px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.accom-book-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* ============ Shopping Section ============ */
.shopping-section {
    padding: 80px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.shop-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.shop-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-card:hover .shop-image img {
    transform: scale(1.08);
}

.shop-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.cat-food { background: rgba(239,68,68,0.9); }
.cat-craft { background: rgba(124,58,237,0.9); }
.cat-mall { background: rgba(37,99,235,0.9); }
.cat-market { background: rgba(245,158,11,0.9); }
.cat-supermarket { background: rgba(16,185,129,0.9); }

.shop-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.shop-desc {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.shop-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-rating .stars {
    color: var(--accent);
}

.shop-rating .score {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.shop-price-range {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

.shop-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.shop-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============ Modal ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    position: relative;
}

.modal-header img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 28px;
}

.modal-body h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-body .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.modal-body .modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-body .modal-meta-item .label {
    font-size: 12px;
    color: var(--text-light);
}

.modal-body .modal-meta-item .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.route-timeline {
    position: relative;
    padding-left: 24px;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .day {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-item .content {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-price {
    font-size: 14px;
    color: var(--text-light);
}

.modal-price strong {
    font-size: 28px;
    color: var(--danger);
    font-weight: 800;
}

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: 14px 28px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast .toast-icon {
    color: var(--success);
    font-size: 20px;
}

/* ============ Community Section ============ */
.community-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    padding: 80px 40px;
}

.community-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.community-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.post-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.post-author-info {
    flex: 1;
}

.post-author {
    font-size: 14px;
    font-weight: 700;
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.post-tag {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.post-content {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-footer {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.post-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.post-footer span:hover {
    color: var(--primary);
}

/* ============ Footer ============ */
.footer {
    background: #1e293b;
    color: var(--text-light);
    padding: 60px 40px 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-search input { width: 160px; }
    .hero-content h1 { font-size: 36px; }
    .hero-stats { gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-search { display: none; }
    .hero { height: 480px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content .subtitle { font-size: 15px; }
    .hero-search { flex-direction: column; gap: 8px; }
    .hero-search .search-field { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 22px; }
    .section { padding: 48px 16px; }
    .section-header h2 { font-size: 26px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .route-grid { grid-template-columns: 1fr; }
    .accom-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr 1fr; }
    .booking-form { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .community-posts { grid-template-columns: 1fr; }
}

/* ============ 用户认证模块 ============ */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 认证弹窗 --- */
.auth-modal {
    padding: 36px 36px 28px;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.auth-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
}

.auth-head {
    text-align: center;
    margin-bottom: 20px;
}

.auth-head .logo-icon {
    margin-bottom: 12px;
}

.auth-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-head p {
    font-size: 14px;
    color: var(--text-light);
}

/* --- 选项卡 --- */
.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* --- 表单 --- */
.auth-form .auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 6px;
}

.auth-field .req {
    color: #ef4444;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
    background: white;
    font-family: inherit;
}

.auth-input-wrap input:disabled {
    background: #f8fafc;
    color: var(--text-light);
}

.auth-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
}

/* --- 密码强度 --- */
.strength-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.weak { background: #ef4444; width: 25%; }
.strength-bar.fair { background: #f59e0b; width: 50%; }
.strength-bar.good { background: #3b82f6; width: 75%; }
.strength-bar.strong { background: #10b981; width: 100%; }

.strength-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- 记住我 / 链接 / 协议 --- */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    cursor: pointer;
}

.auth-remember input {
    accent-color: var(--primary);
}

.auth-link {
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 16px;
    cursor: pointer;
    line-height: 1.5;
}

.auth-agree input {
    accent-color: var(--primary);
    margin-top: 2px;
}

/* --- 提交按钮 / 错误提示 / 切换 --- */
.auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    letter-spacing: 4px;
    border-radius: 10px;
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-error {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.auth-error.show {
    display: block;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* --- 导航栏用户菜单 --- */
.user-menu {
    position: relative;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: var(--transition);
}

.user-chip:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.user-avatar.big {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-caret {
    font-size: 10px;
    color: var(--text-light);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.ud-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.ud-phone {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.ud-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.ud-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.ud-item.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.ud-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* --- 我的预订列表 --- */
.booking-list {
    max-height: 420px;
    overflow-y: auto;
}

.booking-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.bi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bi-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.bi-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
}

.bi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.bi-time {
    color: var(--text-light);
    font-size: 12px;
}

/* --- 心愿单列表 --- */
.fav-list {
    max-height: 420px;
    overflow-y: auto;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.fav-item:hover {
    background: #f1f5f9;
}

.fav-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.fav-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-meta {
    font-size: 12px;
    color: var(--text-light);
}

.fav-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}

.fav-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .auth-modal { padding: 24px 20px; }
    .nav-auth .btn { padding: 8px 14px; font-size: 13px; }
    .user-name { display: none; }
}

/* ============ 预订/购物平台外链 ============ */
.platform-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 12px;
    font-size: 12px;
}

.platform-strip-label {
    color: var(--text-light);
    margin-right: 2px;
}

.platform-strip-link {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    line-height: 1.6;
}

.platform-strip-link:hover {
    opacity: 0.7;
}

.platform-dot {
    color: var(--border);
}

.platform-note {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin: -4px 0 12px;
}

.platform-btns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--pf-color);
    color: var(--pf-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.platform-btn:hover {
    background: var(--pf-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.platform-btn-go {
    font-size: 12px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .platform-btns { grid-template-columns: 1fr 1fr; }
}

/* ============ 线路方案增强（出发地/目的地 · 出行方式 · 预算档位） ============ */

/* 卡片：出发地 → 目的地 */
.route-path {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.route-path strong { color: #2563eb; font-size: 14px; }
.rp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2563eb; display: inline-block; margin-right: 2px;
}
.rp-arrow { color: #f59e0b; font-size: 14px; }
.rp-region {
    margin-left: auto;
    background: #f1f5f9; color: #64748b;
    padding: 2px 10px; border-radius: 20px; font-size: 12px;
}

/* 弹窗：出发 → 目的地横幅 */
.route-path-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
}
.rp-start, .rp-end { font-size: 18px; font-weight: 700; color: #1e293b; }
.rp-info {
    margin-left: auto;
    font-size: 13px; color: #475569;
    background: #fff; padding: 4px 12px; border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.sec-sub { font-size: 12px; font-weight: 400; color: #94a3b8; margin-left: 8px; }

/* 出行方式 / 预算切换 Tabs */
.mode-tabs, .budget-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.mode-tab, .budget-tab {
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.mode-tab:hover, .budget-tab:hover { border-color: #93c5fd; color: #2563eb; }
.mode-tab.active, .budget-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.budget-tab.active {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5,150,105,.25);
}

/* 出行方式方案概览 */
.mode-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.ms-badge {
    display: inline-block;
    background: #2563eb; color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    margin-bottom: 10px;
}
.ms-facts {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: 13px; color: #334155; margin-bottom: 8px;
}
.ms-desc { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }

/* 沿途景点 · 时间安排列表 */
.stops-title { font-size: 14px; font-weight: 700; color: #1e293b; margin: 4px 0 10px; }
.stops-list { display: flex; flex-direction: column; gap: 8px; }
.stops-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 10px 12px;
}
.stops-time {
    flex: 0 0 88px;
    text-align: center;
    background: #eff6ff;
    border-radius: 8px;
    padding: 8px 4px;
    align-self: flex-start;
}
.stops-day { display: block; font-size: 13px; font-weight: 700; color: #2563eb; }
.stops-clock { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.stops-body { flex: 1; min-width: 0; }
.stops-spot {
    font-size: 14px; font-weight: 600; color: #1e293b;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.stops-drive {
    font-size: 11px; color: #059669; background: #ecfdf5;
    padding: 2px 8px; border-radius: 12px; font-weight: 600;
    white-space: nowrap;
}
.stops-note { font-size: 12.5px; color: #64748b; line-height: 1.6; margin-top: 4px; }
.tip-list { color: #475569; font-size: 13.5px; line-height: 1.9; padding-left: 20px; margin: 0; }

/* 预算方案卡 */
.budget-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.budget-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-bottom: 1px dashed #d1fae5;
    flex-wrap: wrap;
}
.budget-name { font-size: 15px; font-weight: 700; color: #065f46; }
.budget-total { font-size: 22px; font-weight: 800; color: #059669; margin-left: auto; }
.budget-total small { font-size: 12px; font-weight: 400; color: #64748b; margin-left: 2px; }
.budget-perday {
    font-size: 12.5px; color: #64748b;
    background: #fff; padding: 4px 10px; border-radius: 20px;
}
.budget-desc { font-size: 13.5px; color: #475569; line-height: 1.7; margin: 0; padding: 12px 16px; }
.budget-items { border-top: 1px solid #f1f5f9; }
.budget-item {
    display: flex; gap: 12px;
    padding: 9px 16px;
    font-size: 13px;
}
.budget-item:nth-child(odd) { background: #fafbfc; }
.bi-label { flex: 0 0 56px; font-weight: 700; color: #1e293b; }
.bi-value { color: #475569; line-height: 1.6; }

@media (max-width: 768px) {
    .stops-time { flex-basis: 76px; }
    .budget-head { gap: 8px; }
    .budget-total { margin-left: 0; }
    .rp-info { margin-left: 0; }
    .route-path-bar { gap: 8px; }
}

/* ============ 首页出行规划表单 ============ */
.plan-form {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}
.pf-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.pf-field { flex: 1; min-width: 150px; }
.pf-field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.pf-field select,
.pf-field input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.pf-field select:focus,
.pf-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.pf-swap {
    width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1.5px solid #dbeafe;
    border-radius: 10px;
    color: #2563eb;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    margin-bottom: 1px;
}
.pf-swap:hover { background: #dbeafe; transform: rotate(180deg); }

/* ============ 城市组合框（自由输入 + 拼音筛选） ============ */
.pf-city { position: relative; }
.city-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,23,42,.14);
    max-height: 280px;
    overflow-y: auto;
    z-index: 60;
    padding: 8px;
    box-sizing: border-box;
}
.city-drop.open { display: block; }
.city-hint {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-weight: 600;
}
.city-group { margin-bottom: 4px; }
.city-group-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 6px 4px;
}
.city-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.city-item {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.city-item i {
    font-style: normal;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}
.city-item:hover { background: #eff6ff; border-color: #93c5fd; color: #2563eb; }
.city-item:hover i { color: #60a5fa; }
.city-item.prov-item {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
    margin-right: 4px;
}
.city-item.prov-item:hover { background: #e0e7ff; border-color: #a5b4fc; color: #3730a3; }
.city-item.prov-item i { color: #818cf8; }
.city-item.prov-item b { font-weight: 700; }
.city-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.pf-budget { flex: 1.6; }
.budget-quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.budget-quick span {
    padding: 5px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.budget-quick span:hover { border-color: #a7f3d0; color: #059669; }
.budget-quick span.active { background: #ecfdf5; border-color: #34d399; color: #059669; }
.pf-submit {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 4px;
    letter-spacing: 2px;
}

/* ============ 论坛发帖框 ============ */
.post-composer {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30,41,59,.06);
    padding: 18px 20px;
    max-width: 1120px;
    margin: 0 auto;
}
.composer-head { display: flex; align-items: center; gap: 14px; }
.composer-title { flex: 1; min-width: 0; }
.composer-title strong { display: block; font-size: 15px; color: #1e293b; }
.composer-title span { font-size: 12.5px; color: #94a3b8; }
.composer-btn { flex-shrink: 0; }
.composer-body { margin-top: 14px; border-top: 1px dashed #e2e8f0; padding-top: 14px; }
.composer-row select {
    width: 100%;
    max-width: 220px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    font-family: inherit;
}
.composer-body textarea {
    width: 100%;
    min-height: 110px;
    margin-top: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}
.composer-body textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 10px; }
.composer-count { font-size: 12.5px; color: #94a3b8; }
.post-me {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 8px;
    border-radius: 10px;
}
.user-post { border-color: #bfdbfe; box-shadow: 0 2px 12px rgba(37,99,235,.08); }
.post-like { font-weight: 700; }
.post-like.liked { color: #2563eb; }

/* ============ 次级方案页 ============ */
.plan-hero {
    margin-top: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%);
    padding: 44px 24px;
    text-align: center;
    color: #fff;
}
.plan-hero-inner { max-width: 960px; margin: 0 auto; }
.plan-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.plan-hero-path { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 20px; margin-bottom: 12px; }
.php-from, .php-to { font-size: 28px; font-weight: 800; }
.php-arrow { color: #f59e0b; font-size: 22px; }
.php-route {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.plan-hero-meta { font-size: 14px; opacity: .85; }

.plan-main { max-width: 1280px; margin: 0 auto; padding: 36px 40px 60px; }
.plan-switch {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 28px;
}
.plan-switch-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 7px 12px;
    border-radius: 10px;
}

/* 方案主卡 */
.plan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30,41,59,.08);
    overflow: hidden;
    margin-bottom: 40px;
}
.plan-card-loading { text-align: center; padding: 60px; color: #94a3b8; }
.plan-card-head {
    display: flex;
    gap: 20px;
    padding: 26px 28px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.pch-info { flex: 1; min-width: 280px; }
.pch-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pch-badge { padding: 4px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.pch-badge.mode { background: #2563eb; color: #fff; }
.pch-badge.budget { background: #059669; color: #fff; }
.pch-badge.days { background: #f59e0b; color: #fff; }
.pch-info h1 { font-size: 22px; margin-bottom: 8px; color: #1e293b; }
.pch-desc { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 12px; }
.pch-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #334155;
    background: rgba(255,255,255,.7);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
}
.pch-side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 200px; }
.pch-total { text-align: center; background: #fff; border: 1px solid #dbeafe; border-radius: 12px; padding: 14px 20px; }
.pch-total-label { display: block; font-size: 12px; color: #64748b; font-weight: 600; }
.pch-total-num { display: block; font-size: 30px; font-weight: 800; color: #059669; line-height: 1.3; }
.pch-total-sub { display: block; font-size: 12px; color: #94a3b8; }
.plan-like-btn {
    border: 2px solid #bfdbfe;
    background: #fff;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.plan-like-btn:hover { background: #eff6ff; transform: translateY(-1px); }
.plan-like-btn.liked { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.plan-like-btn b { font-size: 16px; }

.plan-card-body { padding: 10px 28px 28px; }
.plan-block { margin-top: 22px; }
.plan-block .modal-section-title { margin-bottom: 12px; }

/* 方案区段（住宿/购物推荐） */
.plan-section { margin-bottom: 44px; }
.plan-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.plan-section-tag {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37,99,235,.25);
}
.plan-section-head h2 { font-size: 22px; color: #1e293b; margin: 0; }
.plan-section-sub { font-size: 13px; color: #94a3b8; }
.plan-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 36px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}
.plan-empty a { color: #2563eb; font-weight: 600; }
.plan-other {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    font-size: 14px;
}
.plan-other a { color: #2563eb; font-weight: 700; }

@media (max-width: 768px) {
    .plan-form { padding: 16px; }
    .pf-swap { transform: rotate(90deg); width: 36px; height: 36px; margin: 0 auto; }
    .pf-swap:hover { transform: rotate(270deg); }
    .pf-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .pf-field { min-width: 0; }
    .plan-hero-path { font-size: 16px; }
    .php-from, .php-to { font-size: 22px; }
    .plan-main { padding: 24px 16px 40px; }
    .plan-card-head { padding: 20px; }
    .pch-side { min-width: 0; }
    .plan-switch { padding: 14px; gap: 14px; }
}

/* ============ 指定景点定制（首页表单 + 方案页） ============ */
.pf-spots-field { width: 100%; }
/* 首页指定景点面板（浅色表单背景） */
.pf-spots-tip { font-size: 12px; color: #94a3b8; font-weight: 400; margin-left: 6px; }
.pf-spots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pf-spots-empty { font-size: 12px; color: #94a3b8; }
.pf-spots-count { flex: 0 0 100%; width: 100%; font-size: 12px; color: #64748b; margin-top: 4px; }
.pf-spots-count b { color: #d97706; }

/* 景点 chip（首页 + 方案页通用） */
.spot-chip {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid #c7d2fe; background: #fff;
    color: #475569; border-radius: 999px; padding: 5px 12px; font-size: 13px;
    cursor: pointer; transition: all .18s; line-height: 1.4; user-select: none;
    flex-shrink: 0; white-space: nowrap;
}
.spot-chip:hover { border-color: #2563eb; background: #eff6ff; }
.spot-chip.sel { border-color: #2563eb; background: #2563eb; color: #fff; font-weight: 600; }
.spot-chip.unreach { opacity: .45; text-decoration: line-through; }
.spot-chip.unreach i { font-style: normal; font-size: 11px; color: #94a3b8; margin-left: 2px; }

/* 方案页景点定制面板 */
.spot-picker {
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.06));
    border: 1px dashed #c7d2fe; border-radius: 12px;
    padding: 12px 14px; margin: 10px 0 14px;
}
.spot-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-title { font-weight: 700; font-size: 14px; color: #1e3a5f; }
.sp-count { font-size: 12px; color: #64748b; }
.sp-count b { color: #2563eb; }
.spot-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-picker .spot-chip { border-color: #c7d2fe; background: #fff; color: #475569; }
.spot-picker .spot-chip:hover { border-color: #2563eb; background: #eff6ff; }
.spot-picker .spot-chip.sel { border-color: #2563eb; background: #2563eb; color: #fff; font-weight: 600; }
.spot-picker .spot-chip.unreach { opacity: .45; text-decoration: line-through; }
.spot-picker-tip { font-size: 12px; color: #94a3b8; margin-top: 8px; line-height: 1.6; }

/* 非核心天折叠条 */
.stops-skip { opacity: .72; cursor: pointer; transition: opacity .18s, background .18s; }
.stops-skip:hover { opacity: 1; background: #f8fafc; }
.stops-skip-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #94a3b8; background: #f1f5f9;
    border-radius: 999px; padding: 2px 10px; margin-top: 4px;
}
.stops-skip:hover .stops-skip-tag { color: #2563eb; background: #eff6ff; }

/* ============ 顺路推荐景点（方案页） ============ */
/* 顺路加游行（插在对应天后面） */
.stops-extra { background: linear-gradient(135deg, rgba(16,185,129,0.07), rgba(37,99,235,0.05)); border: 1px dashed #6ee7b7; border-radius: 12px; margin-top: 6px; }
.stops-extra .stops-day { background: #10b981; }
.stops-extra .stops-clock { color: #10b981; }
.stops-extra .stops-spot { color: #065f46; }
.stops-extra .stops-note { color: #64748b; }
.stops-extra-rm {
    flex: 0 0 auto; width: 24px; height: 24px; margin: auto 8px auto 0;
    border: none; border-radius: 50%; background: #e2e8f0; color: #64748b;
    font-size: 12px; line-height: 1; cursor: pointer; transition: all .18s;
}
.stops-extra-rm:hover { background: #fecaca; color: #dc2626; }
/* 未匹配天的加游景点（行程末尾汇总） */
.stops-tail-extra { margin-top: 10px; padding: 10px 12px; background: #f8fafc; border-radius: 10px; }
.stops-tail-label { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.stops-tail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stops-tail-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #065f46; background: #ecfdf5;
    border: 1px solid #a7f3d0; border-radius: 999px; padding: 3px 6px 3px 12px;
}
.stops-tail-chip button { border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 0 4px; }
.stops-tail-chip button:hover { color: #dc2626; }
/* 顺路推荐区块 */
.reco-block {
    margin-top: 14px; padding: 14px 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(37,99,235,0.06));
    border: 1px solid #d1fae5; border-radius: 14px;
}
.reco-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.reco-title { font-weight: 700; font-size: 15px; color: #065f46; }
.reco-sub { font-size: 12px; color: #94a3b8; }
.reco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reco-chip {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid #a7f3d0; background: #fff; color: #334155;
    border-radius: 999px; padding: 5px 12px; font-size: 13px;
    cursor: pointer; transition: all .18s; line-height: 1.4; user-select: none;
    flex-shrink: 0; white-space: nowrap;
}
.reco-chip:hover { border-color: #10b981; background: #ecfdf5; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(16,185,129,0.15); }
.reco-chip-add { color: #10b981; font-weight: 700; font-size: 14px; }
.reco-chip i { font-style: normal; font-size: 11px; color: #94a3b8; }
.reco-chip.off-route { border-color: #cbd5e1; background: #f8fafc; color: #475569; }
.reco-chip.off-route:hover { border-color: #3b82f6; background: #eff6ff; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(59,130,246,0.15); }
.reco-chip.off-route .reco-chip-add { color: #3b82f6; }
.reco-more { font-size: 12px; color: #94a3b8; margin-top: 8px; }

/* ============ 方案页住宿/购物：直链按钮 + 查看更多 ============ */
.plan-more-link { margin-left: auto; font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; white-space: nowrap; }
.plan-more-link:hover { text-decoration: underline; }
.accom-actions, .shop-actions { display: flex; align-items: center; gap: 8px; }
.accom-link-btn, .shop-link-btn {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 600; text-decoration: none;
    padding: 7px 12px; border-radius: 8px; transition: all .18s; white-space: nowrap;
}
.accom-link-btn { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }
.accom-link-btn:hover { background: #dbeafe; }
.shop-link-btn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.shop-link-btn:hover { background: #fef3c7; }

/* ============================================
   移动端适配（手机 / 平板竖屏）
   断点：≤1024px 汉堡导航；≤768px 手机单列；≤480px 小屏微调
   ============================================ */
body { -webkit-tap-highlight-color: transparent; }

@media (max-width: 1024px) {
    /* ---- 汉堡菜单按钮（原 nav-links 在 ≤1024 被隐藏，此处补交互入口） ---- */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
        background: #eff6ff;
        border: 1.5px solid #dbeafe;
        border-radius: 10px;
        color: #2563eb;
        font-size: 20px;
        cursor: pointer;
        font-family: inherit;
        flex-shrink: 0;
        transition: all .2s;
        line-height: 1;
    }
    .nav-toggle:hover { background: #dbeafe; }
    .nav-toggle.open { background: #2563eb; border-color: #2563eb; color: #fff; }
    .nav-actions { margin-left: 0; gap: 8px; }

    /* ---- 导航下拉面板 ---- */
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 16px 40px rgba(15,23,42,.14);
        padding: 8px 16px 14px;
        z-index: 998;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 13px 14px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 10px;
        color: #334155;
    }
    .nav-links a:hover,
    .nav-links a.active { background: #eff6ff; color: #2563eb; }
}

@media (max-width: 768px) {
    /* ---- Hero 自适应高度（表单堆叠后内容较长） ---- */
    .hero {
        height: auto;
        min-height: 480px;
        padding: 96px 0 56px;
        align-items: flex-start;
    }
    .hero-content { padding: 0 16px; width: 100%; box-sizing: border-box; }
    /* 流式字号 + 强制单行：任意手机宽度下标题完整显示不换行 */
    .hero-content h1 { font-size: clamp(19px, 6.2vw, 28px); letter-spacing: 1px; margin-bottom: 12px; white-space: nowrap; }
    .hero-content .subtitle { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
        margin-top: 28px;
    }
    .hero-stat .num { font-size: 24px; }
    .hero-stat .label { font-size: 12px; }

    /* ---- 首页表单：输入框 16px 防 iOS 聚焦缩放，加大触控区 ---- */
    .pf-field select,
    .pf-field input { font-size: 16px; padding: 12px; }
    .pf-field label { font-size: 12px; margin-bottom: 6px; }
    .budget-quick {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .budget-quick span {
        justify-content: center;
        padding: 10px 2px;
        font-size: 12.5px;
        white-space: nowrap;
        text-align: center;
    }
    .pf-submit {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 14px;
    }
    .pf-spots-tip { display: block; margin: 4px 0 0; line-height: 1.6; }

    /* ---- 城市组合框下拉：手机更高，选项更大 ---- */
    .city-drop { max-height: 55vh; padding: 10px; }
    .city-item { padding: 9px 12px; font-size: 14px; border-radius: 10px; }
    .city-item i { font-size: 11px; }

    /* ---- 筛选栏：住宿价格区间换行不溢出 ---- */
    .accom-filter-controls { flex-wrap: wrap; }
    .accom-filter-controls input[type=range] { flex: 1 1 140px; min-width: 120px; }
    .accom-filter-controls .sort-select { flex: 1 1 100%; }

    /* ---- 卡片网格：购物改单列，图片高度适配 ---- */
    .shop-grid { grid-template-columns: 1fr; }
    .route-card .route-image { height: 180px; }
    .route-card .route-body { padding: 16px; }
    .route-card .route-meta { gap: 10px; flex-wrap: wrap; }
    .route-card .route-title { font-size: 17px; }
    .accom-image { height: 160px; }
    .shop-image { height: 150px; }

    /* ---- 区块间距 ---- */
    .section,
    .shopping-section { padding: 48px 16px; }
    .community-section { padding: 48px 16px; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 14px; }
    .filter-tag { padding: 8px 14px; font-size: 13px; }

    /* ---- 方案页 ---- */
    .plan-hero { padding: 32px 16px; }
    .plan-hero-path { gap: 6px; font-size: 14px; }
    .php-from, .php-to { font-size: 20px; }
    .php-route { padding: 3px 10px; font-size: 12px; }
    .plan-main { padding: 20px 12px 36px; }
    .plan-switch { padding: 14px 12px; gap: 12px; }
    .plan-switch-group { width: 100%; }
    .ps-label { font-size: 12px; padding: 6px 10px; }
    .mode-tabs, .budget-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .mode-tab, .budget-tab {
        padding: 11px 2px;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
    }
    .plan-card { margin-bottom: 28px; border-radius: 14px; }
    .plan-card-head { padding: 18px 16px; gap: 14px; flex-direction: column; }
    .pch-info { min-width: 0; }
    .pch-info h1 { font-size: 19px; }
    .pch-facts { gap: 10px; padding: 8px 10px; }
    .pch-side { min-width: 0; width: 100%; }
    .pch-total { margin-bottom: 10px; }
    .pch-total-num { font-size: 26px; }
    .plan-like-btn { width: 100%; padding: 13px 16px; }
    .plan-card-body { padding: 4px 14px 20px; }
    .plan-section { margin-bottom: 32px; }
    .plan-section-head { gap: 10px; }
    .plan-section-tag { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
    .plan-section-head h2 { font-size: 19px; }
    .plan-section-sub { font-size: 12px; }

    /* ---- 行程 / 预算 / 景点 ---- */
    .stops-item { gap: 8px; padding: 9px 10px; }
    .stops-time { flex-basis: 64px; padding: 7px 2px; }
    .stops-spot { font-size: 13.5px; gap: 6px; }
    .stops-note { font-size: 12px; }
    .budget-item { padding: 9px 12px; font-size: 12.5px; }
    .spot-picker { padding: 10px; }
    .spot-picker-head { align-items: flex-start; }
    .spot-chip { padding: 6px 12px; font-size: 13px; }
    .plan-other { padding: 22px 16px; font-size: 13px; }

    /* ---- 社区发帖 ---- */
    .composer-head { flex-wrap: wrap; gap: 10px; }
    .composer-btn { width: 100%; padding: 11px; }
    .composer-title { flex: 1 1 100%; order: -1; }
    .post-card { padding: 18px; }

    /* ---- 页脚 ---- */
    .footer { padding: 44px 16px 20px; }
    .footer-inner { gap: 24px; margin-bottom: 28px; }
    .footer-bottom { font-size: 12px; padding-top: 18px; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 12px; }
    .navbar .logo { font-size: 19px; }
    .navbar .logo .logo-icon { width: 32px; height: 32px; font-size: 18px; border-radius: 9px; }
    .nav-toggle { width: 36px; height: 36px; font-size: 18px; }
    .nav-auth .btn { padding: 7px 10px; font-size: 12px; }
    .hero { padding: 88px 0 48px; }
    .hero-content h1 { font-size: clamp(18px, 6vw, 24px); }
    .budget-quick { grid-template-columns: 1fr; }
    .pf-row { gap: 8px; }
}

@media (max-width: 360px) {
    .mode-tabs, .budget-tabs { grid-template-columns: 1fr; }
}
