/* ========== 全局重置与基础 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text);
}

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

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-sm {
    padding: 8px 24px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    transition: var(--transition);
}

.logo i {
    font-size: 1.75rem;
    color: var(--accent);
}

.header.scrolled .logo {
    color: var(--text);
}

.nav {
    display: flex;
    gap: 32px;
    flex-wrap: nowrap;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    flex: none;
}

/* 仅在三横线（移动端）菜单中显示的导航项 */
.nav a.nav-mobile-only {
    display: none;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: white;
}

.header.scrolled .nav a {
    color: var(--text);
}

.header.scrolled .nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

.header-actions .btn:hover {
    background: var(--accent) !important;
    color: white !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.header.scrolled .menu-toggle {
    color: var(--text);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease 0.2s both;
}

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

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 60px;
    padding: 6px;
    max-width: 560px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeUp 0.8s ease 0.4s both;
}

.search-box .search-icon {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-left: 16px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 8px;
    font-family: inherit;
    min-width: 0;
    background: transparent;
}

.search-box .btn {
    padding: 12px 32px;
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-stats div {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-stats span {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

/* ========== 目的地 ========== */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.dest-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.dest-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

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

.dest-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.dest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.dest-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dest-info {
    padding: 24px;
}

.dest-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.dest-info h3 span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.dest-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 8px 0 16px;
}

.dest-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.dest-meta i {
    margin-right: 6px;
    color: var(--accent);
}

/* ========== 中国国内目的地 ========== */
.china {
    background: var(--bg-alt);
}

.china-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.china-card {
    opacity: 1 !important;
    transform: none !important;
}

.china-card .dest-img {
    height: 180px;
}

/* 省份弹窗内的地级市卡片：紧凑配图 */
.prov-city-card .dest-img {
    height: 96px;
}

.prov-city-card .dest-info {
    padding: 8px 10px !important;
}

.china-card .dest-info {
    padding: 16px;
}

.china-card .dest-info h3 {
    font-size: 1.1rem;
}

.china-card .dest-info p {
    font-size: 0.85rem;
    margin: 4px 0 10px;
}

.china-card .dest-meta {
    font-size: 0.8rem;
    gap: 12px;
}

.china-card.visible {
    animation: none !important;
}

/* ========== 旅游套餐 ========== */
.tours {
    background: var(--bg-alt);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tour-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.tour-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light), var(--shadow);
    transform: scale(1.05);
}

.tour-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

.tour-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
}

.tour-card.featured .tour-badge {
    background: var(--primary);
}

.tour-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.tour-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.tour-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.tour-features {
    text-align: left;
    margin-bottom: 24px;
}

.tour-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-features li i {
    color: var(--primary);
    flex-shrink: 0;
}

.tour-price {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.tour-price span {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
}

/* ========== 特色服务 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: var(--border);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-card-lg {
    text-align: left !important;
    padding: 32px !important;
}

.feature-card-lg h3 {
    text-align: center;
}

.feature-card-lg p {
    text-align: center;
    margin-bottom: 20px;
}

.feature-detail {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-detail li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}

.feature-detail li:last-child {
    border-bottom: none;
}

.feature-detail li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-detail li strong {
    color: var(--text);
    font-weight: 600;
}

/* ========== 数据统计 ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 900;
}

.stat-item p {
    margin-top: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ========== 用户评价 ========== */
.testimonials {
    background: var(--bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-user span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== 真实交互地图 ========== */
.real-map-section {
    margin: 4px 0 22px;
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.real-map-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.real-map-head .rm-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
}

.real-map-head .rm-title i {
    color: var(--primary);
    margin-right: 4px;
}

.real-map-head .map-open-link {
    margin-left: auto;
}

.real-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    z-index: 0;
}

.real-map .leaflet-container {
    font-family: inherit;
}

.real-map-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.rm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #475569;
}

.rm-chip b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
}

.rm-chip.is-start b {
    background: #16a34a;
}

.rm-chip.is-end b {
    background: #dc2626;
}

.rm-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
}

.rm-pin.is-start {
    background: #16a34a;
}

.rm-pin.is-end {
    background: #dc2626;
}

.rm-pin-wrap,
.rm-arrow-wrap {
    background: none !important;
    border: none !important;
}

.rm-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid #2563eb;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.map-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
}

@media (max-width: 768px) {
    .real-map {
        height: 320px !important;
    }
}

/* ========== 特色服务 CTA ========== */
.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    transition: var(--transition);
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.feature-btn-ghost {
    background: transparent;
    color: var(--primary);
}

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

/* ========== 发布评价 ========== */
.review-box {
    margin-top: 40px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.review-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-box h3 i {
    color: var(--primary);
}

.review-box-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.review-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: #f8fafc;
    transition: var(--transition);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.review-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== 联系与订阅 ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item span {
    font-weight: 600;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    outline: none;
    transition: var(--transition);
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form .form-row {
    display: flex;
    gap: 16px;
}

.contact-form .form-row input {
    flex: 1;
}

/* ========== 底部 ========== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

/* ========== 遮罩 ========== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== 线路方案 ========== */
.routes {
    background: var(--bg);
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.route-item {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.route-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.route-img {
    width: 280px;
    min-height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.route-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.route-content {
    padding: 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.route-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 12px;
}

.route-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.route-content h3 span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.route-content > p {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.route-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.route-highlights span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.route-highlights i {
    color: var(--primary);
    margin-right: 4px;
}

.route-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.route-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.route-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
}

.route-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.route-link i {
    transition: var(--transition);
}

.route-item:hover .route-link i {
    transform: translateX(4px);
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

/* ========== 城市旅行百科入口（城市弹窗内、城市名下方） ========== */
.city-guide-entry {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 62%, #10265c 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.city-guide-entry::after {
    content: '';
    position: absolute;
    right: -46px;
    top: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.city-guide-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}
.city-guide-entry .cge-ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.city-guide-entry .cge-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}
.city-guide-entry .cge-txt b {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.city-guide-entry .cge-txt small {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}
.city-guide-entry .cge-go {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .city-guide-entry {
        gap: 10px;
        margin: 12px 0 16px;
        padding: 12px 14px;
    }
    .city-guide-entry .cge-ico {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 16px;
    }
    .city-guide-entry .cge-txt b { font-size: 0.94rem; }
    .city-guide-entry .cge-txt small { font-size: 0.72rem; }
    .city-guide-entry .cge-go {
        padding: 7px 10px;
        font-size: 0.72rem;
    }
    .city-guide-entry .cge-go i { display: none; }
}

.modal-body .modal-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 32px;
}

.modal-body .modal-hero {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 32px;
}

.modal-body .modal-section {
    margin-bottom: 28px;
}

.modal-body .modal-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .modal-section p,
.modal-body .modal-section li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.itinerary-day {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.itinerary-day h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.itinerary-day p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-price-box {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: var(--radius);
    padding: 20px 28px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.modal-price-box .price {
    font-size: 1.75rem;
    font-weight: 900;
}

.modal-price-box .price small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.modal-price-box .includes {
    font-size: 0.85rem;
    opacity: 0.9;
}

.modal-price-box .includes i {
    margin-right: 4px;
}

/* 弹窗滚动条 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

body.modal-open {
    overflow: hidden;
}

/* 可选方案点击样式 */
.option-item {
    transition: var(--transition);
}

.option-item:hover {
    background: var(--primary-light) !important;
    transform: translateX(4px);
}

.btn-back:hover {
    color: var(--primary-dark) !important;
}

/* 搜索框禁用状态 */
.search-box .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .dest-grid,
    .tour-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .china-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .route-img {
        width: 200px;
    }
}

/* 平板：顶部导览收紧字号与间距，保证一行放得下不拥挤 */
@media (min-width: 769px) and (max-width: 1240px) {
    .header {
        padding: 12px 0;
    }

    .header .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.25rem;
        gap: 6px;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 0.82rem;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 920px) {
    .nav {
        gap: 10px;
    }

    .nav a {
        font-size: 0.78rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stats div {
        flex: 1;
        min-width: 100px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 8px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        color: var(--text) !important;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .nav a.nav-mobile-only {
        display: block;
    }

    .nav a:hover {
        background: var(--bg-alt);
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .search-box {
        flex-wrap: wrap;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.95);
    }

    .search-box .search-icon {
        display: none;
    }

    .search-box input {
        width: 100%;
        padding: 12px 16px;
    }

    .search-box .btn {
        width: 100%;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .dest-grid,
    .tour-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .china-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .china-card .dest-img {
        height: 160px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .tour-card.featured {
        transform: none;
    }

    .tour-card.featured:hover {
        transform: translateY(-6px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    /* 线路方案响应式 */
    .route-item {
        flex-direction: column;
    }

    .route-img {
        width: 100%;
        height: 200px;
    }

    .route-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .route-highlights {
        flex-direction: column;
        gap: 8px;
    }

    /* 弹窗响应式 */
    .modal-content {
        padding: 24px;
    }

    .modal-body .modal-hero {
        height: 180px;
    }

    .modal-body h2 {
        font-size: 1.5rem;
    }

    .modal-price-box {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .modal {
        padding: 0;
    }

    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ========== 弹窗打开时防止页面跳动 ========== */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* ========== 优化动画性能 - GPU 加速 ========== */
.hero-bg {
    will-change: transform;
    backface-visibility: hidden;
}

.hero-content h1,
.hero-content p,
.search-box,
.hero-stats {
    will-change: transform, opacity;
}

.dest-card,
.tour-card,
.feature-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.dest-img img,
.route-img img {
    will-change: transform;
}

.modal-content {
    will-change: transform, opacity;
}

/* ========== 尊重用户减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        animation: none !important;
    }

    .hero-content h1,
    .hero-content p,
    .search-box,
    .hero-stats {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .dest-card,
    .tour-card,
    .feature-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== 图片加载占位优化 ========== */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
}

/* ========== 焦点可见性优化（无障碍） ========== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== 触摸设备优化 ========== */
@media (hover: none) {
    .dest-card:hover,
    .tour-card:hover,
    .feature-card:hover {
        transform: none;
    }

    .dest-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }
}

/* ========== 弹窗滚动条 ========== */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ========== 富详情弹窗增强样式 ========== */

/* 时间线（每日行程） */
.itinerary-day {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
}
.itinerary-day h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.itinerary-day h4 .day-tag {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.itinerary-day > p { color: var(--text-light); font-size: 0.9rem; }

/* 每日时间线 */
.day-timeline {
    position: relative;
    margin-top: 16px;
    padding-left: 28px;
}
.day-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .time {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
}
.timeline-item .activity {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.timeline-item .detail {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}
.timeline-item .meta-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.timeline-item .meta-tag {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}
.timeline-item .meta-tag.ticket { background: #fef3c7; color: #d97706; }
.timeline-item .meta-tag.tip { background: #fce7f3; color: #be185d; }
.timeline-item .meta-tag.duration { background: #d1fae5; color: #047857; }

/* 路线可视化 */
.route-visual {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
}
.route-visual-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.route-pins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.route-pin {
    background: white;
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
}
.route-pin .pin-num {
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.route-arrow { color: var(--primary); font-size: 0.9rem; font-weight: bold; }

/* 酒店推荐 */
.hotel-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: var(--transition);
}
.hotel-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}
.hotel-tier-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    text-align: center;
    gap: 2px;
}
.hotel-tier-badge.economy { background: linear-gradient(135deg, #10b981, #059669); }
.hotel-tier-badge.comfort { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hotel-tier-badge.luxury { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hotel-info { flex: 1; min-width: 0; }
.hotel-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hotel-info .price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.hotel-info .area { font-size: 0.8rem; color: var(--text-light); margin-bottom: 4px; }
.hotel-info .highlight { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }

/* 双栏信息卡（交通/美食/小贴士） */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.info-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px;
}
.info-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.info-card h5 i { color: var(--primary); }
.info-card ul { list-style: none; padding: 0; }
.info-card li {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    padding: 4px 0 4px 18px;
    position: relative;
}
.info-card li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: bold;
}
.transport-item { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.transport-item:last-child { border-bottom: none; }
.transport-item .label { font-weight: 600; color: var(--text); font-size: 0.88rem; margin-bottom: 2px; }
.transport-item .value { font-size: 0.85rem; color: var(--text-light); }

/* 预算参考 */
.budget-bar {
    margin-top: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: var(--radius);
    padding: 20px;
}
.budget-bar h5 {
    font-weight: 700;
    color: #d97706;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.budget-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.budget-item {
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.budget-item .label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 2px; }
.budget-item .value { font-size: 0.95rem; font-weight: 700; color: var(--primary); }

/* 小贴士警告框 */
.tips-warn {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 16px;
}
.tips-warn h5 {
    color: #dc2626;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tips-warn ul li { color: #991b1b; font-size: 0.85rem; line-height: 1.7; padding: 2px 0; }

/* 响应式 */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .hotel-card { flex-direction: column; }
    .hotel-tier-badge {
        width: 100%; height: 40px;
        flex-direction: row;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    .day-timeline { padding-left: 22px; }
    .timeline-item::before { left: -18px; width: 10px; height: 10px; }
    .route-pins { gap: 4px; }
    .route-pin { font-size: 0.75rem; padding: 4px 10px; }
}

/* 可选项悬停 */
.option-item { transition: var(--transition); }
.option-item:hover { background: var(--primary-light) !important; transform: translateX(4px); }
.btn-back:hover { color: var(--primary-dark) !important; }

/* ========== 爆点环线板块 ========== */
.loops-section { padding: 80px 0; background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #fee2e2 100%); }
.loops-section h2 { text-align: center; font-size: 2.2rem; font-weight: 900; margin-bottom: 16px; }
.loops-section .section-desc { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: 1rem; }

.loop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; }
.loop-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: var(--transition);
    cursor: pointer; border: 1px solid rgba(239,68,68,0.1);
}
.loop-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(239,68,68,0.15); }
.loop-cover {
    height: 180px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ef4444, #f59e0b); font-size: 5rem; color: white;
    position: relative; overflow: hidden;
}
.loop-cover::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}
.loop-tag {
    position: absolute; top: 12px; left: 12px;
    background: white; color: #ef4444; font-weight: 700; font-size: 0.75rem;
    padding: 4px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.loop-info { padding: 20px; }
.loop-info h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.loop-info .loop-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.loop-info .loop-meta span::before { content: '•'; margin-right: 8px; color: var(--primary); }
.loop-info .loop-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loop-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--border); }
.loop-footer .price { font-size: 1.3rem; font-weight: 800; color: #ef4444; }
.loop-footer .price small { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.loop-footer .btn { background: linear-gradient(135deg, #ef4444, #f59e0b); color: white; padding: 8px 20px; font-size: 0.85rem; border-radius: 20px; font-weight: 600; }

/* 环线弹窗 */
.loop-day { border-left: 4px solid #ef4444 !important; }
.loop-tag { background: linear-gradient(135deg, #ef4444, #f59e0b) !important; }
.loop-route .route-visual { background: linear-gradient(135deg, #fef3c7 0%, #fee2e2 100%) !important; }

/* ========== 城市分类筛选 ========== */
.dest-filter { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.dest-filter .filter-btn {
    padding: 10px 22px; border-radius: 24px; font-size: 0.9rem; font-weight: 500;
    background: var(--bg-alt); color: var(--text-light); border: none; cursor: pointer;
    transition: var(--transition);
}
.dest-filter .filter-btn:hover { background: var(--primary-light); color: var(--primary); }
.dest-filter .filter-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(37,99,235,0.3); }

.dest-card.hidden { display: none; }

/* 响应式 */
@media (max-width: 768px) {
    .loop-grid { grid-template-columns: 1fr; }
    .loops-section h2 { font-size: 1.6rem; }
    .dest-filter { gap: 8px; }
    .dest-filter .filter-btn { padding: 8px 16px; font-size: 0.82rem; }
}

/* ========== SVG 互动地图 ========== */
.map-container { background: #f8fafc; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 1px solid #e2e8f0; }
.map-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.map-title i { color: #ef4444; }
.loop-map { width: 100%; height: auto; max-width: 600px; margin: 0 auto; display: block; cursor: pointer; }
.china-outline { fill: #e2e8f0; stroke: #cbd5e1; stroke-width: 1.5; }
.route-path-bg { fill: none; stroke: white; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.route-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 4; animation: dash 1.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.map-node { cursor: pointer; transition: transform 0.2s; }
.node-ring { fill: #fef3c7; stroke: #f59e0b; stroke-width: 2; transition: all 0.2s; }
.node-dot { fill: #ef4444; stroke: white; stroke-width: 2; }
.node-label { font-size: 12px; fill: #334155; font-weight: 600; font-family: -apple-system, sans-serif; }
.map-node:hover .node-ring { fill: #fde68a; stroke: #ef4444; }
.map-node.active .node-ring { fill: #ef4444; stroke: #dc2626; }
.map-node.active .node-dot { fill: white; }
.itinerary-day.highlight { animation: highlightDay 1.2s ease; }
@keyframes highlightDay {
    0% { background: #fef3c7; }
    100% { background: transparent; }
}

/* ========== 环线封面横幅 ========== */
.loop-banner {
    height: 240px; background-size: cover; background-position: center;
    border-radius: var(--radius); position: relative; overflow: hidden;
    margin-bottom: 20px;
}
.loop-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(239,68,68,0.75), rgba(245,158,11,0.6));
}
.loop-banner-overlay { position: relative; z-index: 1; color: white; padding: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.loop-banner-tag { background: white; color: #ef4444; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; align-self: flex-start; margin-bottom: 8px; }
.loop-banner h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.loop-banner-meta { display: flex; gap: 16px; font-size: 0.9rem; opacity: 0.95; margin-bottom: 8px; }
.loop-banner-price { font-size: 1.4rem; font-weight: 800; }
.loop-banner-price small { font-size: 0.8rem; font-weight: 500; opacity: 0.9; }

/* 环线卡片升级 */
.loop-card .loop-cover { background-size: cover; background-position: center; position: relative; }
.loop-card .loop-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4)); }
.loop-card .loop-cover > * { position: relative; z-index: 2; }

/* ========== 酒店图片卡片 ========== */
.hotel-card.with-image { display: flex; gap: 16px; padding: 16px; }
.hotel-card.with-image .hotel-img { width: 140px; height: 100px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.hotel-card.with-image .hotel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hotel-card.with-image:hover .hotel-img img { transform: scale(1.08); }
.hotel-card.with-image .hotel-info { flex: 1; }
.hotel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.hotel-top h5 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.hotel-price { font-size: 1.1rem; font-weight: 800; color: #ef4444; margin-bottom: 4px; }

/* ========== 机票卡片 ========== */
.airfare-card { background: #eff6ff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; border: 1px solid #bfdbfe; }
.airfare-card h5 { color: #2563eb; margin-bottom: 12px; font-size: 0.95rem; }
.airfare-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.88rem; border-bottom: 1px dashed #bfdbfe; }
.airfare-item:last-child { border-bottom: none; }
.airfare-item .from { font-weight: 600; color: #1e40af; min-width: 60px; }
.airfare-item .to { font-weight: 600; color: #1e40af; min-width: 60px; }
.airfare-item .price { font-weight: 800; color: #ef4444; margin-left: auto; }
.airfare-item .time { color: var(--text-light); font-size: 0.8rem; }

/* ========== 环线亮点标签 ========== */
.loop-hl { background: #fee2e2; color: #dc2626; }
.loop-day { border-left: 4px solid #ef4444; padding-left: 16px; margin: 12px 0; }

/* 响应式 */
@media (max-width: 640px) {
    .loop-banner { height: 200px; }
    .loop-banner h2 { font-size: 1.3rem; }
    .hotel-card.with-image { flex-direction: column; }
    .hotel-card.with-image .hotel-img { width: 100%; height: 140px; }
    .loop-map { height: 350px; }
    .map-node text { font-size: 10px; }
}

/* ========== 真实地图（高德嵌入） ========== */
.amap-wrapper { position: relative; }
.amap-placeholder { width: 100%; padding-bottom: 60%; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid #e2e8f0; background: #f1f5f9; }
.amap-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.svg-overlay { pointer-events: none; }
.svg-overlay .map-pin { pointer-events: auto; position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 10; }
.svg-overlay .pin-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #ef4444; border: 3px solid white;
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; margin: 0 auto;
}
.svg-overlay .pin-dot::after {
    content: ''; position: absolute; left: 50%; bottom: -6px;
    transform: translateX(-50%); width: 12px; height: 12px; background: #ef4444;
    transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.svg-overlay .map-pin:hover .pin-dot { transform: scale(1.2); box-shadow: 0 6px 16px rgba(239,68,68,0.7); }
.svg-overlay .map-pin.active .pin-dot { background: #10b981; border-color: white; }
.svg-overlay .pin-label {
    margin-top: 8px; background: rgba(255,255,255,0.95);
    color: #1e293b; padding: 4px 10px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center;
}
.map-tip { font-size: 0.8rem; color: var(--text-light); margin-top: 10px; text-align: center; }

/* 老 SVG 地图清理 */
.sloop-map, .china-outline { display: none !important; }

/* ========== 城市行程 Day 卡片标题必须是景点名（已在数据层解决） ========== */
.itinerary-day h4 .day-tag { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }

/* 酒店卡片更突出预订按钮 */
.hotel-card a.hotel-book { display: inline-block; margin-top: 8px; padding: 6px 14px; background: var(--primary); color: white; border-radius: 16px; font-size: 0.78rem; text-decoration: none; }
.hotel-card a.hotel-book:hover { background: var(--primary-dark); }

/* ========== 机票卡片升级 ========== */
.airfare-card { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; border: 1px solid #93c5fd; }
.airfare-card h5 { color: #1e40af; margin-bottom: 12px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.airfare-card h5::before { content: '✈️'; font-size: 1.2rem; }
.airfare-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px dashed #bfdbfe; }
.airfare-item:last-child { border-bottom: none; }
.airfare-item .from, .airfare-item .to { font-weight: 700; color: #1e3a8a; }
.airfare-item .arrow { color: #64748b; }
.airfare-item .price { font-weight: 800; color: #dc2626; margin-left: auto; font-size: 1rem; }
.airfare-item .time { color: var(--text-light); font-size: 0.78rem; margin-left: 12px; }

/* 环线封面图（确保有背景） */
.loop-card .loop-cover { background-size: cover !important; background-position: center !important; }

/* ========== 酒店卡片可点击链接样式 ========== */
a.hotel-card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.hotel-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,99,235,0.15); }
.hotel-card .booking-link { margin-top: 10px; padding: 6px 14px; background: linear-gradient(135deg, var(--primary), #6366f1); color: white; border-radius: 16px; font-size: 0.78rem; text-decoration: none; display: inline-block; font-weight: 600; transition: transform 0.15s; }
.hotel-card .booking-link:hover { transform: scale(1.05); }
.hotel-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* ========== 环线卡片封面 - 国家标签 ========== */
.loop-card .loop-cover-country-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(0,0,0,0.55); color: white;
    padding: 4px 10px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
    backdrop-filter: blur(4px);
}
.loop-card .loop-cover { position: relative; }

/* ========== 环线 Banner ========== */
.loop-banner {
    height: 280px; background-size: cover; background-position: center;
    border-radius: 16px; overflow: hidden; position: relative;
    margin-bottom: 16px;
}
.loop-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.15) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: white;
}
.loop-banner-country {
    display: inline-block; width: fit-content;
    background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 10px;
    font-size: 0.75rem; margin-bottom: 8px;
}
.loop-banner-overlay h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.loop-banner-meta { display: flex; gap: 16px; font-size: 0.85rem; opacity: 0.9; margin-bottom: 8px; }
.loop-banner-price { font-size: 1.25rem; font-weight: 800; color: #fbbf24; }
.loop-banner-price small { font-size: 0.8rem; opacity: 0.9; margin-left: 2px; }
.loop-banner-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.loop-guide-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px;
    background: rgba(255,255,255,0.92); color: #1d4ed8;
    font-size: 0.76rem; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform .2s ease, background .2s ease;
}
.loop-guide-link:hover { transform: translateY(-1px); background: #fff; }

/* ========== SVG 路线地图 ========== */
.loop-map-section {
    background: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 16px;
    border: 1px solid #f1f5f9;
}
.loop-map-title {
    font-size: 0.95rem; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.loop-map-title i { color: var(--primary); }
.map-badge {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; color: white; font-weight: 600;
}
.map-open-link {
    margin-left: auto; font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600;
    padding: 6px 12px; border: 1px solid var(--primary); border-radius: 14px; transition: all 0.2s;
}
.map-open-link:hover { background: var(--primary); color: white; }

.loop-map-svg-wrap {
    position: relative; height: 320px; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}
.loop-map-svg { width: 100%; height: 100%; display: block; }

.loop-map-nodes {
    position: absolute; inset: 0; pointer-events: none;
}
.loop-svg-pin {
    position: absolute; pointer-events: auto; cursor: pointer;
    transform: translate(-50%, -50%); z-index: 10;
    transition: transform 0.2s;
}
.loop-svg-pin:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 20;
}
.pin-number {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary); color: white; font-size: 0.78rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2.5px solid white; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    margin: 0 auto 6px;
    position: relative;
}
.pin-number::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 7px solid var(--primary);
}
.pin-label-text {
    background: rgba(0,0,0,0.8); color: white; font-size: 0.72rem; padding: 3px 8px;
    border-radius: 10px; white-space: nowrap; text-align: center;
    backdrop-filter: blur(3px); font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}
.pin-day-label {
    background: var(--primary); color: white; font-size: 0.62rem; padding: 1px 6px;
    border-radius: 8px; display: inline-block; margin-top: 2px;
    font-weight: 700; letter-spacing: 0.5px;
}

/* 路书风格: 路线分段里程标注 */
.route-segment-label {
    position: absolute; pointer-events: none;
    background: rgba(255,255,255,0.92); color: #1e293b;
    font-size: 0.65rem; font-weight: 700; padding: 1px 6px;
    border-radius: 8px; border: 1px dashed var(--primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.loop-map-tip {
    font-size: 0.78rem; color: #64748b; margin-top: 10px;
    background: #f8fafc; padding: 8px 12px; border-radius: 8px;
}

/* ========== 城市地图预览 ========== */
.city-map-preview {
    height: 200px; border-radius: 12px; position: relative; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}
.city-map-pin {
    position: absolute; transform: translate(-50%, -50%); text-align: center;
}
.city-map-pin .pin-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.city-map-pin .pin-label {
    background: rgba(0,0,0,0.75); color: white; font-size: 0.72rem;
    padding: 2px 8px; border-radius: 8px; white-space: nowrap;
    backdrop-filter: blur(2px);
}

/* ========== 机票卡片（可点击购票） ========== */
.flight-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 14px; padding: 14px 18px; margin-bottom: 14px;
    border: 1px solid #93c5fd;
}
.flight-card h5 {
    color: #1e40af; margin-bottom: 10px; font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px; font-weight: 700;
}
.flight-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: white; border-radius: 10px; margin-bottom: 8px;
    font-size: 0.88rem; text-decoration: none; color: inherit;
    transition: all 0.15s; border: 1px solid transparent;
}
.flight-item:hover { border-color: var(--primary); transform: translateX(4px); }
.flight-item .from, .flight-item .to { font-weight: 700; color: #1e3a8a; }
.flight-item .arrow { color: #64748b; }
.flight-item .price { font-weight: 800; color: #dc2626; margin-left: auto; font-size: 0.95rem; }
.flight-item .time { color: var(--text-light); font-size: 0.75rem; }
.flight-item .buy-btn {
    background: var(--primary); color: white; padding: 5px 12px;
    border-radius: 14px; font-size: 0.75rem; font-weight: 600;
}

/* ========== 火车卡片 ========== */
.train-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px; padding: 14px 18px; margin-bottom: 14px;
    border: 1px solid #86efac;
}
.train-card h5 {
    color: #166534; margin-bottom: 10px; font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px; font-weight: 700;
}
.train-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: white; border-radius: 10px; margin-bottom: 8px;
    font-size: 0.88rem; text-decoration: none; color: inherit;
    transition: all 0.15s; border: 1px solid transparent;
}
.train-item:hover { border-color: #22c55e; transform: translateX(4px); }
.train-item .from, .train-item .to { font-weight: 700; color: #166534; }
.train-item .price { font-weight: 800; color: #dc2626; margin-left: auto; font-size: 0.95rem; }
.train-item .dur { color: #64748b; font-size: 0.75rem; }
.train-item .buy-btn {
    background: #22c55e; color: white; padding: 5px 12px;
    border-radius: 14px; font-size: 0.75rem; font-weight: 600;
}

/* ========== 环线行程 Day 联动高亮 ========== */
.itinerary-day.loop-day[data-day] {
    scroll-behavior: smooth; transition: box-shadow 0.3s;
}

/* ========== 亮点标签 ========== */
.loop-hl {
    background: #fef3c7; color: #b45309;
}

/* ========== 环线卡片封面 ========== */
.loop-card .loop-cover {
    position: relative; overflow: hidden;
}
.loop-card .loop-cover::after {
    /* 去掉之前的文字覆盖层，只保留柔和渐变 */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* ========== 城市详情：景点与美食照片 ========== */
.rich-photo-section h3 { margin-bottom: 14px; }
.rich-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rich-photo-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.rich-photo-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f1f5f9;
}
.rich-photo-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
}
.rich-photo-card figcaption strong {
    font-size: 0.94rem;
    color: var(--text);
}
.rich-photo-card figcaption span {
    font-size: 0.76rem;
    color: var(--text-light);
}
.rich-photo-card.img-fail { display: none; }
.rich-food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.rich-food-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.rich-food-card img {
    flex: 0 0 96px;
    width: 96px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}
.rich-food-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rich-food-info strong { font-size: 0.94rem; color: var(--text); }
.rich-food-info p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.45;
    color: var(--text-light);
}
.rich-food-info em {
    margin-top: auto;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}
@media (max-width: 760px) {
    .rich-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rich-photo-card img { height: 120px; }
    .rich-food-grid { grid-template-columns: 1fr; }
}

/* 景点 / 美食卡片：点击进入详情页 */
.rich-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.rich-link figure, .rich-link .rich-food-card { margin: 0; height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
.rich-link:hover figure, .rich-link:hover .rich-food-card { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .12); }
.rich-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ========== 二级页面（城市 / 环线详情）：电脑端、平板全屏覆盖 ========== */
.modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.modal-overlay {
    background: rgba(7, 12, 21, 0.55);
}

.modal-content {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: clamp(56px, 6vw, 78px) clamp(18px, 4vw, 56px) 96px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none;
    will-change: auto;
    background: var(--bg);
}

.modal.active .modal-content {
    transform: none;
}

.modal-content > :not(.modal-close) {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

/* 关闭按钮固定右上角，滚动时不消失 */
.modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2100;
}

.modal-body .modal-hero {
    height: clamp(240px, 34vw, 400px);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 52px 16px 88px;
    }
}
/* ========== MYL 国家公园板块 ========== */
.npark-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 30px 0 16px;
    color: var(--text);
}
.npark-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}
.npark-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.npark-cover-ico {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.88);
}
.npark-cover .dest-price { z-index: 2; }
.npark-tags {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
}
@media (max-width: 768px) {
    .npark-group-title { margin: 22px 0 12px; }
}
