/* =====================================================================
   Travel Buddy — Buddy 站点改版组件
   依据《入境游网站结构以及内容（草稿）》：双层导航/启发式搜索/分类 Icon 栏/
   卡片轮播与收藏/60-40 详情布局/Sticky 预订卡/Community 论坛
   ===================================================================== */

/* ---------- 双层导航头 ---------- */
.site-header .header-row1 { border-bottom: 1px solid var(--line); }
/* 头部内容（品牌+导航+操作区）实测约1370px，容器须比正文 1260 更宽才放得下 */
.site-header .container { max-width: 1440px; }
.site-header .hr1-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--header-h); }
/* 文档导航一行放下：紧凑化尺寸 */
.site-header .brand { font-size: 1.22rem; }
.site-header .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.site-header .brand-logo { height: 32px; max-width: 170px; }
.site-header .nav { gap: 1px; }
.site-header .nav > li > a { padding: 9px 9px; font-size: .87rem; }
.site-header .header-actions { gap: 6px; }
.site-header .pref-btn { padding: 7px 10px; font-size: .84rem; }
.site-header .btn-gold.btn-sm { padding: 8px 13px; font-size: .84rem; }
@media (max-width: 1560px) {
    /* 窄桌面：币种/语言折叠为图标，保证一行放下 */
    .site-header .pref-btn .pref-label { display: none; }
    .site-header .pref-btn { padding: 8px; }
}
@media (max-width: 1240px) {
    /* 更窄：主导航收入抽屉（抽屉含全部分类与页面入口） */
    .site-header .nav { display: none; }
    .site-header .menu-toggle { display: block; }
}
@media (max-width: 620px) {
    /* 手机：头部只保留 汉堡+品牌+偏好图标，Become a Buddy 在抽屉内保留入口 */
    .site-header .header-actions .btn-gold { display: none; }
}
.cat-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.cat-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 13px; border-radius: 999px; font-size: .92rem; font-weight: 600;
    color: var(--ink-2); white-space: nowrap; border: 1px solid transparent;
}
.cat-link:hover { background: var(--cream-2); color: var(--ink); }
.cat-link.active { background: var(--ink); color: #fff; }
.cat-link svg { width: 11px; height: 11px; fill: currentColor; flex: 0 0 11px; }
.cat-others { position: relative; }
.cat-others-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
    background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .2s ease; z-index: 1201;
}
.cat-others:hover .cat-others-menu, .cat-others:focus-within .cat-others-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cat-others-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.cat-others-menu a:hover { background: var(--cream); }
.cat-others-menu svg { width: 17px; height: 17px; fill: var(--gold-dark); flex: 0 0 17px; }

.header-link { font-weight: 600; font-size: .93rem; padding: 8px 10px; border-radius: 8px; }
.header-link:hover { background: var(--cream-2); }

/* 语言/货币切换器 */
.pref-switcher { position: relative; }
.pref-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
    font: 600 .88rem var(--sans); color: var(--ink-2); cursor: pointer;
}
.pref-btn:hover { border-color: var(--gold); }
.pref-btn svg { width: 16px; height: 16px; fill: currentColor; }
.pref-btn .chev { width: 13px; height: 13px; }
.pref-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 190px;
    background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .2s ease; z-index: 1201;
}
.pref-switcher:hover .pref-menu, .pref-switcher:focus-within .pref-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pref-group { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.pref-item {
    display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none;
    font: 500 .9rem var(--sans); color: var(--ink-2); border-radius: 7px; cursor: pointer;
}
.pref-item:hover { background: var(--cream); }
.pref-item.active { background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; }
.pref-item small { color: var(--muted); font-weight: 400; }

/* ---------- Hero：产品图片切片展示 ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); padding: clamp(64px, 9vw, 110px) 0; }
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.hero-mosaic .hm { background-size: cover; background-position: center; filter: saturate(.92); animation: hmShift 28s ease-in-out infinite alternate; }
.hero-mosaic .hm:nth-child(2n) { animation-delay: -8s; }
.hero-mosaic .hm:nth-child(3n) { animation-delay: -16s; }
@keyframes hmShift { 0% { transform: scale(1.06) translateY(0); } 100% { transform: scale(1.14) translateY(-10px); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.72), rgba(17,17,17,.45) 45%, rgba(17,17,17,.82)); }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { display: inline-block; color: var(--gold); font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .hero-sub { color: rgba(255,255,255,.82); font-size: 1.06rem; max-width: 640px; }
.hero-search {
    display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap;
    background: #fff; border-radius: 999px; box-shadow: var(--shadow-2);
    padding: 10px 10px 10px 18px; margin-top: 28px; max-width: 860px;
}
.hs-field { display: flex; flex-direction: column; gap: 1px; padding: 4px 10px; min-width: 150px; flex: 1; }
.hs-field label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.hs-field select, .hs-field input { border: 0; background: transparent; font: 500 .95rem var(--sans); color: var(--body); outline: none; }
.hs-sep { width: 1px; background: var(--line); margin: 8px 0; }
.hs-go { flex: 0 0 auto; border-radius: 999px; }
@media (max-width: 720px) { .hero-search { border-radius: 22px; } .hs-sep { display: none; } .hs-field { min-width: 100%; } }

/* ---------- 分类 Icon 栏：一行显示，放不下的分类收进行尾 More 胶囊（锚定下拉菜单，不出滚动条） ---------- */
.cat-bar-wrap { margin-bottom: 26px; }
.cat-bar {
    display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; overflow: hidden;
    padding: 6px 2px 10px;
}
.cat-icon {
    flex: 0 0 auto; width: 148px; border: 1px solid var(--line); background: #fff;
    border-radius: 16px; padding: 14px 12px 12px; text-align: left; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; transition: all .2s ease; position: relative;
}
.cat-icon:hover { border-color: var(--gold); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.cat-icon .ci { width: 38px; height: 38px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; }
.cat-icon .ci svg { width: 20px; height: 20px; fill: var(--gold-dark); }
.cat-icon b { font: 700 .95rem var(--sans); color: var(--ink); }
.cat-icon small { font-size: .74rem; color: var(--muted); line-height: 1.35; min-height: 2em; }
.cat-icon.active { background: var(--ink); border-color: var(--ink); }
.cat-icon.active b { color: #fff; }
.cat-icon.active small { color: rgba(255,255,255,.6); }
.cat-icon.active .ci { background: rgba(255,255,255,.12); }
.cat-icon.active .ci svg { fill: var(--gold); }

/* More：行尾方形卡片，与分类卡同构（居中布局：图标 + 标题 + chevron/计数底行） */
.cat-more-btn {
    width: 148px; align-items: center; text-align: center; gap: 6px;
    white-space: nowrap;
}
.cat-more-btn .cm-title { font: 700 .95rem var(--sans); color: var(--ink); }
.cat-more-btn .ci { transition: all .2s ease; }
.cat-more-btn .ci svg { transition: transform .25s ease; }
.cat-more-btn.open .ci svg { transform: rotate(180deg); }
.cat-more-btn .cm-foot { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 20px; }
.cat-more-btn .cm-chev { width: 14px; height: 14px; fill: var(--gold-dark); transition: transform .25s ease; }
.cat-more-btn.open .cm-chev { transform: rotate(180deg); }
.cat-more-btn .cm-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px;
    border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark);
    font: 700 .74rem var(--sans); padding: 0 6px;
}
.cat-more-btn .cm-count[hidden] { display: none; }
/* 收起态文案 “More”，展开态换 “Show less”；当前筛选在面板内时整卡墨色（与选中分类同语言） */
.cat-more-btn .cm-less { display: none; }
.cat-more-btn.open .cm-more { display: none; }
.cat-more-btn.open .cm-less { display: inline; }
.cat-more-btn.active .cm-title { color: #fff; }
.cat-more-btn.active .cm-chev { fill: var(--gold); }
.cat-more-btn.active .cm-count { background: rgba(255,255,255,.16); color: var(--gold); }

/* 展开面板：白色圆角大框，内部沿用分类卡片的同构样式换行平铺 */
.cat-more-panel {
    display: none; position: relative; margin-top: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow-1); padding: 10px 14px 14px;
}
.cat-more-panel.open { display: block; animation: catMoreIn .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes catMoreIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.cat-more-title {
    display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px;
    font: 600 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.cat-more-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cat-more-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-more-panel .cat-icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .cat-more-btn .cm-chev, .cat-more-btn .ci svg, .cat-icon, .cat-more-panel.open { transition: none; animation: none; }
}
@media (max-width: 640px) {
    /* 手机：紧凑卡片保证一行能放 2 个左右 + More */
    .cat-icon { width: 106px; padding: 10px 9px 9px; gap: 4px; }
    .cat-icon .ci { width: 32px; height: 32px; border-radius: 10px; }
    .cat-icon .ci svg { width: 17px; height: 17px; }
    .cat-icon b { font-size: .88rem; }
    .cat-icon small { display: none; }
    .cat-more-btn { width: 106px; gap: 4px; }
    .cat-more-btn .cm-title { font-size: .88rem; }
    .cat-more-panel { padding: 8px 10px 10px; }
    .cat-more-grid { gap: 8px; }
}

/* ---------- 产品网格卡片 ---------- */
.bcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1240px) { .bcard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .bcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bcard-grid { grid-template-columns: 1fr; } }
.bcard {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; transition: all .25s ease;
}
.bcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.bcard.faded { display: none; }
.bcard.pop-in { animation: bcardIn .35s ease both; }
@keyframes bcardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
/* 底部预留 26px 留白带：供右下角头像的下半截落脚，避免压住缩略图与正文 */
.bcard-media { position: relative; padding-bottom: 26px; }
.bcard-slide { display: block; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.bcard-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bcard-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.92); box-shadow: var(--shadow-1);
    display: none; place-items: center; color: var(--ink);
}
.bcard-nav svg { width: 15px; height: 15px; fill: currentColor; }
.bcard-nav.prev { left: 10px; } .bcard-nav.next { right: 10px; }
.bcard:hover .bcard-nav, .bcard:focus-within .bcard-nav { display: grid; }
.bcard-fav {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(17,17,17,.45); backdrop-filter: blur(4px);
    display: grid; place-items: center; transition: all .2s ease;
}
.bcard-fav svg { width: 18px; height: 18px; fill: #fff; transition: all .2s ease; }
.bcard-fav:hover { transform: scale(1.1); }
.bcard-fav .ico-on { display: none; }
.bcard-fav.on { background: #fff; }
.bcard-fav.on .ico-on { display: block; fill: #ff385c; animation: favPop .3s ease; }
.bcard-fav.on .ico-off { display: none; }
@keyframes favPop { 0% { transform: scale(.4); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.bcard-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px 0; }
.bcard-thumbs .bthumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 3 / 2; }
.bcard-thumbs .bthumb img { width: 100%; height: 100%; object-fit: cover; }
.bcard-thumbs .bthumb.active { border-color: var(--gold); }
.bcard-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bcard-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-chip { display: inline-block; background: var(--gold-soft); color: var(--gold-dark); font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.dur-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.dur-chip svg { width: 12px; height: 12px; fill: var(--muted); }
.bcard-title { font-family: var(--sans); font-size: .97rem; font-weight: 700; line-height: 1.4; margin: 0; }
.bcard-title a { color: var(--ink); }
.bcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; color: var(--muted); }
.bcard-meta .rate { display: inline-flex; align-items: center; gap: 4px; }
.bcard-meta .rate svg { width: 13px; height: 13px; fill: var(--star); }
.bcard-meta .loc { display: inline-flex; align-items: center; gap: 4px; }
.bcard-meta .loc svg { width: 13px; height: 13px; fill: var(--muted); }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.bcard-foot .price { font: 700 1.06rem var(--sans); color: var(--ink); }
.bcard-foot .price small { font-size: .76rem; font-weight: 500; color: var(--muted); }
.grid-empty { text-align: center; padding: 50px 0; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- 详情页 60/40 ---------- */
.tour-detail-head { padding: 30px 0 6px; }
.td-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.td-topmeta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.td-topmeta .rate { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.td-topmeta svg { width: 14px; height: 14px; fill: var(--gold-dark); }
.td-topmeta .rate svg { fill: var(--star); }
.td-topmeta > span { display: inline-flex; align-items: center; gap: 5px; }
.detail-layout-6040 { display: grid; grid-template-columns: minmax(0, 60fr) minmax(300px, 40fr); gap: 34px; align-items: start; }
@media (max-width: 980px) { .detail-layout-6040 { grid-template-columns: 1fr; } }
.facts-line { display: flex; flex-wrap: wrap; gap: 12px; }
.facts-line .fact { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.facts-line .fact svg { width: 17px; height: 17px; fill: var(--gold-dark); margin-bottom: 4px; }
.facts-line .fact b { font: 700 .95rem var(--sans); color: var(--ink); line-height: 1.3; }
.facts-line .fact small { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Host 卡片 */
.host-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.host-card .avatar { width: 74px; height: 74px; border-radius: 50%; flex: 0 0 74px; object-fit: cover; }
.host-info .host-by { color: var(--muted); font-size: .88rem; }
.host-info .host-by b { color: var(--ink); font-size: 1rem; }
.host-rating { font-size: .9rem; color: var(--body); margin: 4px 0 6px; }
.host-quote { font-style: italic; color: var(--muted); margin: 0; line-height: 1.6; }
.host-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.host-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 7px; background: #fff; }
.host-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.host-chip b { display: block; font-size: .9rem; color: var(--ink); }
.host-chip small { font-size: .74rem; color: var(--muted); }

/* Fee Inclusion */
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .inc-grid { grid-template-columns: 1fr; } }
.inc-col { border-radius: 16px; padding: 18px 20px; }
.inc-yes { background: rgba(46, 139, 87, .07); border: 1px solid rgba(46, 139, 87, .18); }
.inc-no { background: rgba(192, 57, 43, .05); border: 1px solid rgba(192, 57, 43, .15); }
.inc-col h3 { font-family: var(--sans); font-size: 1rem; }
.inc-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.inc-col li { display: flex; gap: 9px; align-items: flex-start; font-size: .93rem; line-height: 1.5; }
.inc-col li svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; }
.inc-yes li svg { fill: var(--green); }
.inc-no li svg { fill: var(--danger); }

/* 评价汇总 */
.review-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.review-summary .big { font: 700 2.2rem var(--serif); color: var(--ink); }
.ravatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 700 1.05rem var(--serif); flex: 0 0 42px; }
.r-stars { margin: 2px 0 6px; letter-spacing: 2px; font-size: .85rem; color: var(--star); }

/* ---------- Sticky Booking Widget ---------- */
.booking-widget {
    position: sticky; top: calc(var(--header-h) + 16px);
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow-2); padding: 22px; max-width: 420px; margin-left: auto;
}
@media (max-width: 980px) { .booking-widget { position: static; margin: 0 auto; max-width: 560px; } }
.bw-price { display: flex; align-items: baseline; gap: 7px; }
.bw-price .from { color: var(--muted); font-size: .95rem; }
.bw-price .amount { font: 700 2.1rem var(--sans); color: var(--ink); }
.bw-price .per { color: var(--muted); font-size: .95rem; }
.bw-rating { color: var(--muted); font-size: .9rem; margin: 2px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bw-step { font: 700 .8rem var(--sans); letter-spacing: .1em; color: var(--ink); margin: 14px 0 8px; text-transform: uppercase; }
.bw-step small { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.bw-field { margin-bottom: 10px; }
.bw-field label { display: block; font-size: .84rem; font-weight: 600; color: var(--body); margin-bottom: 4px; }
.bw-field label small { color: var(--muted); font-weight: 500; }
.bw-field input, .bw-field select, .bw-field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    font: 500 .95rem var(--sans); background: var(--cream); outline: none; transition: border .15s;
}
.bw-field input:focus, .bw-field select:focus, .bw-field textarea:focus { border-color: var(--gold); background: #fff; }
.bw-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; background: var(--gold-soft); border-radius: 12px; }
.bw-total small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.bw-total .est { font: 700 1.3rem var(--sans); color: var(--ink); }
.bw-note { text-align: center; font-size: .84rem; color: var(--muted); margin: 8px 0 12px; font-style: italic; }
.bw-cta { width: 100%; font-size: 1.02rem; }
.bw-assure { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bw-assure span { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.bw-assure svg { width: 14px; height: 14px; fill: var(--green); flex: 0 0 14px; margin-top: 2px; }

/* ---------- Community ---------- */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
@media (max-width: 980px) { .community-layout { grid-template-columns: 1fr; } .community-side { order: -1; } }
.community-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.post-wall { column-count: 2; column-gap: 18px; }
@media (max-width: 720px) { .post-wall { column-count: 1; } }
.post-card { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font: 700 1.05rem var(--serif); flex: 0 0 40px; }
.p-meta b { display: block; color: var(--ink); font-size: .95rem; }
.p-meta small { color: var(--muted); font-size: .78rem; }
.p-text { margin: 0 0 12px; line-height: 1.65; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gold-dark); background: var(--gold-soft); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.p-tag svg { width: 12px; height: 12px; fill: currentColor; }
.p-like { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; cursor: pointer; }
.p-like svg { width: 15px; height: 15px; fill: #ff385c; }
.p-like.on svg { animation: favPop .3s ease; }
.p-reply { margin-top: 12px; background: var(--cream); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.p-reply b { display: block; color: var(--gold-dark); font-size: .8rem; margin-bottom: 3px; }
.post-box { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 2px solid var(--gold); border-radius: 18px; box-shadow: var(--shadow-1); padding: 20px; }
.post-box h3 { font-size: 1.15rem; }
.post-box label { display: block; font-size: .8rem; font-weight: 700; color: var(--body); margin: 10px 0 4px; }
.post-box input, .post-box textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    font: 500 .92rem var(--sans); background: var(--cream); resize: vertical;
}
.post-box input:focus, .post-box textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.post-box .btn { margin-top: 14px; }
.post-box small.text-muted { display: block; text-align: center; margin-top: 8px; }

/* ---------- 团队简介 ---------- */
.team-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .team-band { grid-template-columns: 1fr; } }
.team-copy p { color: var(--body); }
.team-stats { display: flex; gap: 30px; margin: 22px 0; flex-wrap: wrap; }
.team-stats b { display: block; font: 700 1.7rem var(--serif); color: var(--ink); }
.team-stats span { font-size: .84rem; color: var(--muted); }
.team-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--cream-2); border: 1px solid var(--line); }

/* ---------- 社交登录 ---------- */
.social-login { margin-top: 18px; }
.sl-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin-bottom: 12px; }
.sl-sep::before, .sl-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 10px 14px; font: 600 .92rem var(--sans); color: var(--ink); cursor: pointer;
    transition: all .15s ease;
}
.sl-btn:hover { border-color: var(--gold); box-shadow: var(--shadow-1); }
.sl-btn svg { width: 17px; height: 17px; }

/* hidden 属性优先级保护（如 grid-empty 由 JS 控制显隐） */
.grid-empty[hidden] { display: none !important; }
.bcard-slide img[hidden] { display: none !important; }

/* 缩略图最多 4 张（第 5 张通过左右箭头查看），保持 1 大 4 小设计 */
.bcard-thumbs .bthumb:nth-child(n+5) { display: none; }
.bcard-thumbs:has(.bthumb:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }

/* =====================================================================
   《主页面设计.docx》验收补齐：Hero 产品联动切片轮播 / 搜索坞 Who /
   卡片带队头像与 City 标签 / Buddy 横向滚动卡片
   ===================================================================== */

/* ---------- Hero：70%-80% 视野大画幅，图片切片平滑切换 ---------- */
.hero.hero-deck {
    position: relative; overflow: hidden; background: var(--ink);
    height: clamp(560px, 78vh, 860px); padding: 0;
}
@media (max-width: 720px) { .hero.hero-deck { height: max(560px, 86vh); } }
.hero-slides { position: absolute; inset: 0; }
/* 切片背景图从模板内联 custom property 取值：--slide-img=PC 图（默认），
   后台配了移动端图时模板追加 --slide-img-m，≤720px 竖屏改用竖图（var 未定义自动回退 PC 图） */
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: flex-end;
    background-image: var(--slide-img, none);
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
@media (max-width: 720px) {
    .hero-slide { background-image: var(--slide-img-m, var(--slide-img, none)); }
}
.hero-slide.active { opacity: 1; visibility: visible; }
/* 视频切片：铺满 + 封面裁切（开场背景视频 + 后台「轮播图管理」视频切片通用；
   选择器必须命中所有 .hero-slide 内的视频，否则视频按原始尺寸参与 flex 布局会把版面撑爆） */
.hero-slide video.hs-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; background: var(--ink);
}
.hs-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.55), rgba(17,17,17,.18) 45%, rgba(17,17,17,.85)); }
.hs-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 112px; }
.hero-deck .hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px; padding: 6px 16px; backdrop-filter: blur(6px); margin-bottom: 16px;
}
.hero-deck h1 { max-width: 760px; text-shadow: 0 3px 24px rgba(17,17,17,.5); margin-bottom: 12px; }
.hero-deck .hero-sub { max-width: 600px; margin-bottom: 22px; }
.hero-deck .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-host {
    position: absolute; right: 26px; bottom: 96px; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.94); border-radius: 999px; padding: 6px 18px 6px 7px;
    box-shadow: var(--shadow-2); backdrop-filter: blur(6px);
}
.hero-host img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.hero-host .hh-txt b { display: block; font: 700 .92rem var(--sans); color: var(--ink); line-height: 1.25; }
.hero-host .hh-txt small { color: var(--muted); font-size: .78rem; }
@media (max-width: 720px) { .hero-host { right: 16px; bottom: 110px; padding: 5px 14px 5px 6px; } }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
    background: rgba(17,17,17,.35); backdrop-filter: blur(6px); cursor: pointer;
    display: grid; place-items: center; transition: all .2s ease;
}
.hero-arrow:hover { background: rgba(17,17,17,.6); }
.hero-arrow svg { width: 18px; height: 18px; fill: #fff; }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
@media (max-width: 720px) { .hero-arrow { display: none; } }
.hero-dots {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 4;
    display: flex; gap: 9px;
}
.hero-dots button {
    width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
    background: rgba(255,255,255,.45); cursor: pointer; transition: all .25s ease;
}
.hero-dots button.on { width: 26px; background: var(--gold); }

/* ---------- 搜索坞：悬浮于 Hero 底部（Where/When/Category/Who） ---------- */
.search-dock { position: relative; z-index: 6; margin-top: -54px; }
.search-dock .hero-search { margin-top: 0; max-width: 980px; padding: 10px 10px 10px 20px; }
@media (max-width: 720px) { .search-dock { margin-top: -30px; } }

/* ---------- 产品卡片：City 胶囊标签 + 带队 Buddy 右下角圆形头像 ---------- */
/* inline-block + 省略号：cityChip 可能输出种子长区域描述，超宽截断防撑爆标签行 */
.loc-chip { display: inline-block; max-width: 12em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; line-height: 1.4; font-size: .78rem; color: var(--muted); font-weight: 600; }
.loc-chip svg { width: 12px; height: 12px; fill: var(--muted); margin-right: 4px; vertical-align: -1px; }
.bcard-meta .byhost { color: var(--muted); font-size: .82rem; }
/* badge 恢复为照片左上角金色胶囊浮层（与 tour-card 一致），不占用文档流、不再把媒体区撑高 */
.bcard .badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--gold); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
/* 头像骑压照片右下角：一半覆盖图片、一半落在媒体区底部留白带（26/2=23，bottom=26-23=3） */
.bcard-host {
    position: absolute; right: 12px; bottom: 3px; z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; padding: 2px;
    background: #fff; box-shadow: var(--shadow-1);
}
.bcard-host img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ---------- Buddy 横向滚动卡片（模块6） ---------- */
.host-scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4);
    gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 4px 18px; scrollbar-width: none;
}
.host-scroller::-webkit-scrollbar { display: none; }
@media (max-width: 1080px) { .host-scroller { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .host-scroller { grid-auto-columns: 86%; } }
.hosttile {
    scroll-snap-align: start; background: #fff; border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    transition: all .25s ease;
}
.hosttile:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.hosttile .ht-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.hosttile .ht-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hosttile h3 { font-family: var(--sans); font-size: 1.08rem; margin: 0; color: var(--ink); }
.ht-langs { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-size: .82rem; font-weight: 600; }
.ht-langs svg { width: 13px; height: 13px; fill: currentColor; }
.ht-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-tags span {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold-soft); color: var(--gold-dark);
    border-radius: 999px; padding: 3px 11px; font-size: .74rem; font-weight: 600;
}
.ht-tags svg { width: 11px; height: 11px; fill: currentColor; }
.ht-quote { margin: 2px 0 4px; color: var(--body); font-style: italic; font-size: .92rem; line-height: 1.6; flex: 1; }
.ht-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ht-rate { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.ht-rate svg { width: 14px; height: 14px; fill: var(--star); }
.ht-rate small { color: var(--muted); font-weight: 500; }

/* ---------- 自定义日期选择器（替换原生 input[type=date]，固定 yyyy-mm-dd 显示） ---------- */
input.dp-input { cursor: pointer; }
.hs-field input.dp-input { cursor: pointer; }
.dp-pop {
    position: fixed; z-index: 9999; display: none; width: 272px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-2); padding: 10px; user-select: none;
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-head b { font: 700 .92rem var(--sans); color: var(--ink); }
.dp-nav {
    border: 0; background: var(--cream); color: var(--ink); width: 28px; height: 28px;
    border-radius: 8px; font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.dp-nav:hover { background: var(--gold-soft); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { font: 600 .66rem var(--sans); color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.dp-day {
    border: 0; background: none; font: 500 .84rem var(--sans); color: var(--body);
    border-radius: 8px; padding: 7px 0; cursor: pointer;
}
.dp-day:hover { background: var(--gold-soft); color: var(--ink); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.dp-day.sel { background: var(--gold); color: #fff; font-weight: 700; }
.dp-day.off { color: #c6c1ba; cursor: not-allowed; }
.dp-day.off:hover { background: none; color: #c6c1ba; }

