/* =========================================================
   猫福旅游 · 用户端 H5
   ========================================================= */
:root {
    --brand: #14b8a6;
    --brand-deep: #0d9488;
    --brand-soft: #e6f7f5;
    --coral: #ff7a45;
    --coral-soft: #fff0e8;
    --ink: #10262e;
    --ink-2: #5c7580;
    --ink-3: #97aab3;
    --line: #eaf1f3;
    --bg: #f5f8f9;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(16, 38, 46, .07);
    --shadow-lg: 0 14px 40px rgba(16, 38, 46, .14);
    /* 全站卡片统一：封面底色 + 底部渐变遮罩 */
    --card-ink: #0e2a30;
    --card-shade: linear-gradient(to top,
        rgba(4, 24, 30, .92) 0%, rgba(4, 24, 30, .68) 38%,
        rgba(4, 24, 30, .22) 72%, rgba(4, 24, 30, 0) 100%);
    --card-price: #ffc078;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: #e9eef0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

.app {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 84px;
    overflow-x: hidden;
}

/* ---------------- 顶部导航 ---------------- */
.navbar {
    position: sticky; top: 0; z-index: 40;
    height: 52px; display: flex; align-items: center; gap: 10px;
    padding: 0 16px; background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.navbar .back {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: #f1f6f7; color: var(--ink); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex: 0 0 30px;
}
.navbar .title { font-size: 16px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .right { font-size: 13px; color: var(--brand-deep); cursor: pointer; }

/* 首页头图区 */
.hero {
    position: relative;
    padding: 18px 16px 26px;
    background: linear-gradient(150deg, #0d9488 0%, #14b8a6 45%, #4fd1c5 100%);
    color: #fff;
    border-radius: 0 0 26px 26px;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; right: -40px; top: -50px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.hero::before {
    content: ''; position: absolute; right: 60px; bottom: -70px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.hero h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: .5px; position: relative; }
.hero p { margin: 0 0 16px; font-size: 13px; opacity: .88; position: relative; }

.search-box {
    position: relative; display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 24px; padding: 6px 6px 6px 16px;
    box-shadow: 0 8px 24px rgba(6, 66, 60, .22);
}
.search-box input {
    flex: 1; border: none; outline: none; font-size: 14px; height: 36px; color: var(--ink); background: transparent;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box button {
    border: none; background: linear-gradient(135deg, var(--coral), #ff9d6b);
    color: #fff; font-size: 14px; padding: 9px 18px; border-radius: 20px; cursor: pointer;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 20px 16px 4px; }
.section-head { display: flex; align-items: center; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.section-head .bar {
    width: 4px; height: 16px; border-radius: 3px; margin-right: 9px;
    background: linear-gradient(180deg, var(--brand), #5eead4);
}
.section-head .spacer { flex: 1; }
.section-head .more { font-size: 13px; color: var(--ink-3); }

/* 轮播 */
.swiper {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 16px 4px; -webkit-overflow-scrolling: touch;
}
.swiper::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 calc(100% - 32px); scroll-snap-align: center;
    border-radius: var(--radius); overflow: hidden; position: relative;
    height: 172px; background: linear-gradient(135deg, #14b8a6, #4fd1c5);
    box-shadow: var(--shadow);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .mask {
    position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px;
    background: var(--card-shade); color: #fff;
}
.slide .mask b { font-size: 16px; display: block; }
.slide .mask span { font-size: 12px; opacity: .85; }

/* 目的地宫格：封面铺满 + 底部遮罩压字 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dest {
    position: relative; display: block; aspect-ratio: 1 / 1; min-height: 76px;
    border-radius: 14px; overflow: hidden; background: var(--card-ink);
    box-shadow: var(--shadow); cursor: pointer;
}
.dest .pic {
    position: absolute; inset: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: linear-gradient(135deg, #d7f0ec, #b6e6de);
}
.dest .pic img { width: 100%; height: 100%; object-fit: cover; }
.dest::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: 1;
    background: var(--card-shade); pointer-events: none;
}
.dest .name {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 4px 7px; font-size: 12px; font-weight: 600; color: #fff;
    text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 目的地页：国家头图 / 省份横条 / 城市宫格（统一封面铺满 + 遮罩压字） ---------------- */
.region-group { margin-bottom: 18px; }
.region-group:last-child { margin-bottom: 4px; }

/* 国家头图 */
.region-hero {
    position: relative; display: block; height: 132px; margin: 0 16px 12px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--card-ink); box-shadow: var(--shadow); cursor: pointer;
}
.region-hero .pic { position: absolute; inset: 0; background: linear-gradient(135deg, #14b8a6, #4fd1c5); }
.region-hero .pic img { width: 100%; height: 100%; object-fit: cover; }
.region-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84%; z-index: 1;
    background: var(--card-shade); pointer-events: none;
}
.region-hero .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 14px 12px; color: #fff; }
.region-hero .cap h3 { margin: 0 0 3px; font-size: 18px; font-weight: 700; text-shadow: 0 1px 5px rgba(0, 0, 0, .5); }
.region-hero .cap .sum {
    font-size: 12px; color: rgba(255, 255, 255, .78);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 省份横条 */
.region-prov {
    position: relative; display: block; height: 78px; margin: 0 16px 10px;
    border-radius: 14px; overflow: hidden;
    background: var(--card-ink); box-shadow: var(--shadow); cursor: pointer;
}
.region-prov .pic { position: absolute; inset: 0; background: linear-gradient(135deg, #cdeee9, #9ddcd3); }
.region-prov .pic img { width: 100%; height: 100%; object-fit: cover; }
.region-prov::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96%; z-index: 1;
    background: var(--card-shade); pointer-events: none;
}
.region-prov .cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 14px 10px; display: flex; align-items: flex-end; color: #fff;
}
.region-prov .cap b { font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.region-prov .cap span {
    margin-left: auto; max-width: 58%; font-size: 12px; color: rgba(255, 255, 255, .78);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 城市宫格 */
.region-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 16px 14px; }

/* ---------------- 线路卡片：封面铺满整卡 + 底部渐变遮罩压字 ---------------- */
.line-list { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.line-card {
    position: relative; display: block; aspect-ratio: 16 / 9; min-height: 180px;
    background: var(--card-ink); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.line-card .pic { position: absolute; inset: 0; background: linear-gradient(135deg, #cdeee9, #9ddcd3); }
.line-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.line-card::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: 1;
    background: var(--card-shade); pointer-events: none;
}
.line-card .info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 14px 14px; display: flex; flex-direction: column;
}
.line-card .info h3 {
    margin: 0 0 5px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-card .info .sub {
    font-size: 12px; color: rgba(255, 255, 255, .75); margin-bottom: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.line-card .tags { display: none; }
.line-card .foot { display: flex; align-items: flex-end; margin-top: 0; }
.line-card .price { color: var(--card-price); font-weight: 700; font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.line-card .price small { font-size: 11px; font-weight: 400; }
.line-card .price em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .55); text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.line-card .price .ask { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.line-card .foot > div:last-child { color: rgba(255, 255, 255, .7) !important; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }

/* 首页 · 热门线路：一行两个 */
.line-list.line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.line-grid .line-card { aspect-ratio: 4 / 5; min-height: 190px; }
.line-grid .line-card .info { padding: 0 10px 10px; }
.line-grid .line-card .info h3 { margin-bottom: 4px; font-size: 13.5px; line-height: 1.32; }
.line-grid .line-card .info .sub { font-size: 11px; margin-bottom: 6px; }
.line-grid .line-card .price { font-size: 15px; }
.line-grid .line-card .price small { font-size: 10px; }
.line-grid .line-card .price em { font-size: 10px; margin-left: 4px; }
.line-grid .line-card .foot > div:last-child { font-size: 10px !important; }
.line-grid > .empty, .line-grid > .loading { grid-column: 1 / -1; }

.tag {
    display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px;
    background: var(--brand-soft); color: var(--brand-deep);
}
.tag.coral { background: var(--coral-soft); color: #d9581f; }
.tag.gray { background: #f1f5f6; color: var(--ink-2); }
.tag.solid { background: var(--brand); color: #fff; }

/* 大图卡（横向滚动推荐）：封面铺满 + 底部遮罩压字 */
.card-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; }
.card-scroll::-webkit-scrollbar { display: none; }
.card-scroll .card {
    position: relative; flex: 0 0 216px; aspect-ratio: 5 / 6; min-height: 200px;
    background: var(--card-ink); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.card-scroll .card .pic { position: absolute; inset: 0; background: linear-gradient(135deg, #cdeee9, #9ddcd3); }
.card-scroll .card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card-scroll .card::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: 1;
    background: var(--card-shade); pointer-events: none;
}
.card-scroll .card .body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 12px 12px;
}
.card-scroll .card h3 {
    margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-scroll .card .meta {
    font-size: 12px; color: rgba(255, 255, 255, .75); display: flex; align-items: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.card-scroll .card .meta .p {
    margin-left: auto; color: var(--card-price); font-weight: 700; font-size: 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ---------------- 筛选 ---------------- */
.filter-wrap { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 30; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; font-size: 13px; padding: 7px 14px; border-radius: 18px;
    background: #f2f6f7; color: var(--ink-2); border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}
.chip.on { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand); font-weight: 600; }

/* ---------------- 详情页 ---------------- */
/* 沉浸式悬浮导航：封面之上透明，滚动后变实心 */
.navbar.float {
    position: fixed; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 640px;
    background: transparent; border-bottom-color: transparent;
    backdrop-filter: none; color: #fff;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.navbar.float .back { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.navbar.float .title { opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.navbar.float.solid {
    background: rgba(255, 255, 255, .94); color: var(--ink);
    border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(16, 38, 46, .06);
    backdrop-filter: saturate(180%) blur(14px);
}
.navbar.float.solid .back { background: #f1f6f7; color: var(--ink); }
.navbar.float.solid .title { opacity: 1; transform: none; }

.detail-cover {
    position: relative; overflow: hidden;
    height: clamp(254px, 64vw, 344px);
    background: linear-gradient(135deg, #14b8a6, #4fd1c5);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .topshade {
    position: absolute; left: 0; right: 0; top: 0; height: 118px;
    background: linear-gradient(180deg, rgba(4, 24, 30, .58), rgba(4, 24, 30, 0));
}
.detail-cover .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 84%; background: var(--card-shade); }
.detail-cover .cap { position: absolute; left: 16px; right: 16px; bottom: 22px; color: #fff; }
.detail-cover .cap h1 {
    margin: 0 0 6px; font-size: 21px; line-height: 1.35; font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.detail-cover .cap .subline {
    font-size: 12.5px; color: rgba(255, 255, 255, .82); margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-cover .cap .meta { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-cover .cap .meta span {
    font-size: 11.5px; padding: 4px 10px; border-radius: 20px; color: #fff;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px);
}
.detail-cover .cap .meta span.hot {
    background: linear-gradient(135deg, var(--coral), #ff9d6b); border-color: transparent; font-weight: 600;
}

.detail-body {
    margin-top: -20px; border-radius: 22px 22px 0 0;
    background: var(--bg); position: relative; padding-top: 18px; padding-bottom: 6px;
}

/* 价格卡 */
.price-card {
    margin: 0 16px 12px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px;
}
.price-card .row { display: flex; align-items: flex-end; gap: 9px; }
.price-card .now { color: var(--coral); font-size: 27px; font-weight: 700; letter-spacing: -.6px; line-height: 1; }
.price-card .now small { font-size: 12px; font-weight: 400; }
.price-card .now.ask { font-size: 20px; letter-spacing: 0; }
.price-card .old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; padding-bottom: 3px; }
.price-card .save { margin-left: auto; padding-bottom: 2px; }
.price-card .save span {
    background: var(--coral-soft); color: #d9581f; font-size: 11px;
    padding: 4px 9px; border-radius: 8px; font-weight: 600;
}
.price-card .tip {
    margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line);
    font-size: 11.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.price-card .tip b { color: var(--ink-2); font-weight: 600; }

/* 行程速览三格 */
.facts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 0 16px 12px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px 6px;
}
.facts .fact { position: relative; text-align: center; padding: 0 4px; }
.facts .fact + .fact::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--line);
}
.facts .fact b {
    display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.facts .fact span { font-size: 11.5px; color: var(--ink-3); }

.panel {
    margin: 0 16px 14px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px;
}
.panel h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; }
.panel h3::before { content: ''; width: 4px; height: 14px; border-radius: 3px; background: var(--brand); margin-right: 8px; }
.panel .rich { font-size: 14px; line-height: 1.85; color: #2c454e; word-break: break-word; }
.panel .rich img { border-radius: 10px; margin: 10px 0; }
.panel .rich p { margin: 0 0 10px; }
.panel .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.panel .chips .tag { font-size: 12px; padding: 6px 12px; border-radius: 10px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13.5px; }
.info-grid .k { color: var(--ink-3); font-size: 12.5px; }
.info-grid .v { font-weight: 500; }

/* 行程时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: ''; position: absolute; left: 11px; top: 8px; bottom: 10px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, var(--brand), #dcf3ef);
}
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ''; position: absolute; left: -30px; top: 1px; width: 22px; height: 22px;
    border-radius: 50%; background: #fff; border: 5px solid var(--brand);
    box-shadow: 0 0 0 3px #e8f8f6;
}
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.tl-item .d {
    flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .4px;
    background: linear-gradient(135deg, var(--brand), #4fd1c5);
    padding: 3px 9px; border-radius: 8px;
}
.tl-item h4 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.tl-item p { margin: 0 0 9px; font-size: 13px; line-height: 1.78; color: var(--ink-2); }
.tl-item .ext { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.tl-item .ext .tag { font-size: 11.5px; padding: 4px 9px; border-radius: 8px; background: #f4f9f9; color: var(--ink-2); }

.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.thumb-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.thumb-grid.col4 { grid-template-columns: repeat(4, 1fr); }

/* 费用说明 */
.fee-box { border-radius: 12px; padding: 13px 14px; font-size: 13.5px; line-height: 1.85; }
.fee-box + .fee-box { margin-top: 10px; }
.fee-box h4 { margin: 0 0 7px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fee-box p { margin: 0; color: #35505a; }
.fee-box.in { background: #f1fbf9; }
.fee-box.in h4 { color: var(--brand-deep); }
.fee-box.out { background: #fff7f2; }
.fee-box.out h4 { color: #d9581f; }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 640px; z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    display: flex; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
    flex: 1; text-align: center; font-size: 11px; color: var(--ink-3);
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
}
.tabbar a .ico { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .55; }
.tabbar a.on { color: var(--brand-deep); font-weight: 600; }
.tabbar a.on .ico { filter: none; opacity: 1; }

/* 底部操作条（详情页） */
.action-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 640px; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    display: flex; gap: 12px; align-items: center;
    box-shadow: 0 -6px 20px rgba(16, 38, 46, .06);
}
.action-bar .ab-price { flex: 0 0 auto; line-height: 1.1; }
.action-bar .ab-price .p { color: var(--coral); font-weight: 700; font-size: 19px; letter-spacing: -.4px; }
.action-bar .ab-price .p small { font-size: 11px; font-weight: 600; }
.action-bar .ab-price .p.ask { font-size: 16px; }
.action-bar .ab-price .l { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.action-bar .tel {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
    font-size: 10.5px; color: var(--ink-2); gap: 2px; padding: 0 2px;
}
.action-bar .tel .ico { font-size: 18px; }
.action-bar .btn { flex: 1; padding: 12px 12px; font-size: 14.5px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 24px; font-size: 15px; font-weight: 600;
    padding: 12px 20px; cursor: pointer; transition: .15s;
}
.btn-primary { flex: 1; background: linear-gradient(135deg, var(--coral), #ff9d6b); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 69, .3); }
.btn-primary:active { transform: scale(.98); }
.btn-brand { background: linear-gradient(135deg, var(--brand), #4fd1c5); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; }

/* ---------------- 弹层 ---------------- */
.sheet-mask {
    position: fixed; inset: 0; background: rgba(6, 33, 38, .45); z-index: 80;
    display: flex; align-items: flex-end; justify-content: center;
    animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
    width: 100%; max-width: 640px; background: #fff; border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    animation: up .22s cubic-bezier(.2, .8, .3, 1); max-height: 88vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(24px) } to { transform: none } }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.sheet .close { position: absolute; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; font-size: 14.5px; outline: none; background: #fafdfd; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field textarea { resize: none; min-height: 76px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* 轻提示 */
.toast-box { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(16, 38, 46, .92); color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 10px; max-width: 320px; animation: fade .16s; }
.toast.ok { background: rgba(13, 148, 136, .95); }
.toast.err { background: rgba(200, 60, 60, .95); }

/* 空状态 / 加载 */
.empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 54px 20px; }
.empty .ico { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.loading { text-align: center; color: var(--ink-3); font-size: 13px; padding: 34px 0; }
.skeleton { background: linear-gradient(90deg, #eef4f5 25%, #e2ebed 37%, #eef4f5 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 50% } to { background-position: 0 50% } }

/* 面包屑 */
.crumb { padding: 12px 16px 0; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--brand-deep); }

/* 加载更多 / 上拉加载 */
.load-more { text-align: center; padding: 16px; font-size: 13px; color: var(--ink-3); }
.load-more.tap { cursor: pointer; color: var(--brand-deep); }
.load-more.done { color: #9bb0b8; padding-bottom: 26px; }
.load-more.loading::before {
    content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 7px;
    border: 2px solid rgba(20, 184, 166, .25); border-top-color: var(--brand);
    border-radius: 50%; vertical-align: -2px; animation: mf-spin .7s linear infinite;
}
@keyframes mf-spin { to { transform: rotate(360deg); } }

/* 页脚 */
.footer { padding: 26px 16px 30px; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 1.9; }

/* ---------------- 图片预览 ---------------- */
.img-viewer {
    position: fixed; inset: 0; z-index: 120; padding: 20px;
    background: rgba(6, 22, 26, .94);
    display: flex; align-items: center; justify-content: center;
    animation: fade .16s ease-out;
}
.img-viewer img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* ---------------- 回到顶部 ---------------- */
.to-top {
    position: fixed; right: 16px; bottom: 92px; z-index: 45;
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .95); color: var(--brand-deep); font-size: 17px;
    box-shadow: 0 6px 18px rgba(16, 38, 46, .16);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 641px) {
    .to-top { right: calc(50% - 320px + 16px); }
}

/* ---------------- 详情页骨架屏 ---------------- */
.sk-cover {
    height: clamp(254px, 64vw, 344px);
    background: linear-gradient(90deg, #e3edef 25%, #d3e1e4 37%, #e3edef 63%);
    background-size: 400% 100%; animation: shimmer 1.3s infinite;
}
.sk-body { margin-top: -20px; border-radius: 22px 22px 0 0; background: var(--bg); padding: 18px 16px 0; }
.sk-body .skeleton + .skeleton { margin-top: 12px; }

/* ---------------- 目的地页 v2：不显示国家，按省份分组 ---------------- */
.dpage { padding-bottom: 10px; }

/* 顶部渐变头图 */
.dhero {
    position: relative; margin: 0 0 4px; padding: 22px 18px 24px;
    background: linear-gradient(150deg, #0d9488 0%, #14b8a6 52%, #45d6c6 100%);
    color: #fff; border-radius: 0 0 24px 24px; overflow: hidden;
}
.dhero::before,
.dhero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255, 255, 255, .13);
}
.dhero::before { width: 168px; height: 168px; right: -52px; top: -58px; }
.dhero::after { width: 96px; height: 96px; right: 46px; bottom: -50px; }
.dhero .dtag {
    position: relative; display: inline-block; padding: 4px 10px; border-radius: 20px;
    background: rgba(255, 255, 255, .22); font-size: 12px; letter-spacing: .6px;
}
.dhero h1 {
    position: relative; margin: 12px 0 6px;
    font-size: 24px; font-weight: 700; letter-spacing: .6px;
}
.dhero p { position: relative; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .82); }

/* 省份分组 */
.dsec { padding: 18px 16px 0; }
.dsec:last-of-type { padding-bottom: 4px; }
.dsec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.dsec-head .bar {
    width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), #5eead4);
}
.dsec-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.dsec-head .cnt { font-size: 12px; color: var(--ink-3); }
.dsec-head .more { margin-left: auto; font-size: 12.5px; color: var(--brand-deep); }

/* 目的地卡片（2 列） */
.dcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dcard {
    position: relative; display: block; aspect-ratio: 4 / 3;
    border-radius: 16px; overflow: hidden; cursor: pointer;
    background: #123; box-shadow: var(--shadow);
}
.dcard .pic { position: absolute; inset: 0; }
.dcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.dcard .ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 44px; font-weight: 700; color: rgba(255, 255, 255, .94);
    letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.dcard .ph.p0 { background: linear-gradient(140deg, #0d9488, #6ee7d8); }
.dcard .ph.p1 { background: linear-gradient(140deg, #0e7490, #67e8f9); }
.dcard .ph.p2 { background: linear-gradient(140deg, #0f766e, #a7f3d0); }
.dcard .ph.p3 { background: linear-gradient(140deg, #155e75, #7dd3fc); }
.dcard .ph.p4 { background: linear-gradient(140deg, #115e59, #99f6e4); }
.dcard::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 1;
    background: linear-gradient(180deg, rgba(6, 32, 38, 0), rgba(6, 32, 38, .78));
    pointer-events: none;
}
.dcard .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 12px 11px; color: #fff; }
.dcard .cap b { display: block; font-size: 15px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.dcard .cap span { font-size: 11.5px; color: rgba(255, 255, 255, .8); }
.dcard .go {
    position: absolute; right: 10px; top: 10px; z-index: 2;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--brand-deep);
    font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
/* 没有下级的省份（或顶级目的地）：整条宽卡 */
.dcard.wide { grid-column: span 2; aspect-ratio: 16 / 7; }

/* 首屏骨架 */
.dsk { padding-bottom: 20px; }
.dsk-hero {
    height: 132px; margin: 0 0 18px; border-radius: 0 0 24px 24px;
    background: linear-gradient(90deg, #dbe9ec 25%, #cbdce0 37%, #dbe9ec 63%);
    background-size: 400% 100%; animation: shimmer 1.3s infinite;
}
.dsk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.dsk-card {
    aspect-ratio: 4 / 3; border-radius: 16px;
    background: linear-gradient(90deg, #e3edef 25%, #d3e1e4 37%, #e3edef 63%);
    background-size: 400% 100%; animation: shimmer 1.3s infinite;
}

@media (min-width: 641px) {
    .dcards, .dsk-grid { grid-template-columns: repeat(3, 1fr); }
    .dcard.wide { grid-column: span 3; aspect-ratio: 16 / 5; }
}
