/* ==========================================================================
   爱城旅行 · 前台布局
   ========================================================================== */

/* ---------------- 顶部 ---------------- */
.site-top {
  background: var(--ink-deep);
  color: rgba(247, 244, 236, .72);
  font-size: 12.5px;
}
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.site-top a { color: rgba(247, 244, 236, .72); }
.site-top a:hover { color: #fff; }
.site-top .tl { display: flex; align-items: center; gap: 7px; }
.site-top .tr { display: flex; align-items: center; gap: 16px; }
.site-top .sp { color: rgba(247, 244, 236, .25); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .seal { width: 38px; height: 38px; font-size: 14px; letter-spacing: -1px; }
.brand .bt { line-height: 1.15; }
.brand .bt .n { font-family: var(--f-serif); font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: .06em; }
.brand .bt .e { font-size: 10px; color: var(--text-4); letter-spacing: .18em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--r-s);
  transition: all var(--t-fast);
}
.site-nav a:hover { color: var(--ink); background: var(--ink-tint); }
.site-nav a.on { color: var(--ink); font-weight: 600; }
.site-nav a.on::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 0;
  height: 2px;
  background: var(--dan);
}

.hd-search {
  position: relative;
  width: 232px;
  flex: none;
}
.hd-search .input { height: 34px; padding-left: 33px; font-size: 13px; background: var(--surface-2); border-color: var(--line); }
.hd-search .input:focus { background: #fff; }
.hd-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

.hd-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.hd-ico {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  border-radius: var(--r-s);
  transition: all var(--t-fast);
}
.hd-ico:hover { background: var(--ink-tint); color: var(--ink); }
.hd-ico .dot-num { position: absolute; top: 3px; right: 2px; }

.hd-user { position: relative; }
.hd-user .u-btn {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 10px 0 8px;
  border-radius: var(--r-s);
  color: var(--text-2);
  font-size: 13px;
  transition: background var(--t-fast);
}
.hd-user .u-btn:hover { background: var(--ink-tint); }
.hd-user .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--ink);
  background: var(--ink-tint);
  flex: none;
  overflow: hidden;
}
.hd-user .av img { width: 100%; height: 100%; object-fit: cover; }
.u-menu {
  position: absolute;
  right: 0; top: 44px;
  width: 178px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-3);
  padding: 6px;
  display: none;
  z-index: 400;
}
.u-menu.open { display: block; animation: popin .16s ease; }
.u-menu a, .u-menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: var(--r-s);
  text-align: left;
}
.u-menu a:hover, .u-menu button:hover { background: var(--ink-tint); color: var(--ink); }
.u-menu .div { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------------- 通栏区块 ---------------- */
.page { min-height: calc(100vh - 400px); padding: 28px 0 56px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head .sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--text-inv);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: flex; align-items: center; gap: 48px; padding-top: 54px; padding-bottom: 54px; }
.hero .ht { flex: 1; min-width: 0; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247, 244, 236, .5);
  margin-bottom: 16px;
}
.hero .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--dan); }
.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: #e0a290; }
.hero .hd { font-size: 14.5px; line-height: 1.9; color: rgba(247, 244, 236, .68); max-width: 480px; }
.hero .hb { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--dan); border-color: var(--dan); }
.hero .btn-primary:hover { background: var(--dan-deep); border-color: var(--dan-deep); }
.hero .btn-ghost { border-color: rgba(247, 244, 236, .3); color: rgba(247, 244, 236, .9); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .07); }

.hero-stats { display: flex; gap: 34px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(247, 244, 236, .14); }
.hero-stats .hs .v { font-family: var(--f-serif); font-size: 25px; color: #fff; }
.hero-stats .hs .k { font-size: 12px; color: rgba(247, 244, 236, .5); margin-top: 2px; }

.hero-art { width: 320px; flex: none; color: rgba(247, 244, 236, .3); }
.hero-art svg { width: 100%; height: auto; stroke: currentColor; fill: none; stroke-width: 1.2; }
@media (max-width: 900px) { .hero-art { display: none; } .hero h1 { font-size: 30px; } }

/* ---------------- 快捷入口 ---------------- */
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.quick {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 20px;
  background: var(--surface);
  transition: background var(--t-fast);
}
.quick:hover { background: var(--ink-tint); }
.quick .qi { color: var(--ink); flex: none; }
.quick .qt { font-family: var(--f-serif); font-size: 15px; color: var(--text); }
.quick .qd { font-size: 12px; color: var(--text-3); margin-top: 1px; }
@media (max-width: 860px) { .quick-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- 商品卡 ---------------- */
.goods {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.goods:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.goods .gp { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.goods .gp img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.goods:hover .gp img { transform: scale(1.035); }
.goods .gp .cat {
  position: absolute; left: 9px; top: 9px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text-2);
}
.goods .gb { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.goods .gt {
  font-family: var(--f-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  min-height: 43px;
}
.goods:hover .gt { color: var(--ink); }
.goods .gs { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.goods .gtags { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.goods .gf { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.goods .price { font-family: var(--f-serif); font-size: 19px; color: var(--dan); line-height: 1; }
.goods .price small { font-size: 12px; }
.goods .mprice { font-size: 12px; color: var(--text-4); text-decoration: line-through; margin-left: 5px; }
.goods .sale { font-size: 11.5px; color: var(--text-3); }
.goods .shop { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-3); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 横向商品条 */
.goods-row { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.goods-row img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-s); flex: none; background: var(--surface-2); }

/* ---------------- 打卡卡片 ---------------- */
.spot {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.spot:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.spot .sp-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.spot .sp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spot:hover .sp-img img { transform: scale(1.035); }
.spot .rg {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 8px;
  background: rgba(20, 56, 64, .86);
  color: #fff;
  font-size: 11.5px;
}
.spot .sb { padding: 14px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.spot .st { font-family: var(--f-serif); font-size: 15.5px; color: var(--text); line-height: 1.45; }
.spot:hover .st { color: var(--ink); }
.spot .sd { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin-top: 7px; }
.spot .sf { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; font-size: 11.5px; color: var(--text-3); }
.spot .sf .mm { display: flex; gap: 12px; }
.spot .sf .mm span { display: inline-flex; align-items: center; gap: 3px; }

/* ---------------- 城市向导 · 线路卡片扩展 ---------------- */
.spot .sp-img .days {
  position: absolute; right: 0; top: 0;
  padding: 4px 10px 4px 8px;
  background: var(--dan);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom-left-radius: var(--r-s);
}
.spot .sf .ap {
  color: var(--dan);
  border: 1px solid var(--dan);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
}

/* ---------------- 城市向导 · 线路详情结构块 ---------------- */
.sec-head .st h2 { display: flex; align-items: center; gap: 10px; }
.sec-head .pill {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--dan);
  background: rgba(178, 74, 48, .1);
  border-radius: 999px;
  padding: 2px 10px;
}
.sec-t .cnt {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 8px;
}

/* 行程时间轴 */
.itin { position: relative; padding-left: 4px; }
.itin-row {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
.itin-row:first-child { border-top: 0; padding-top: 4px; }
.it-badge {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: .02em;
}
.it-body { flex: 1; min-width: 0; }
.it-title {
  font-family: var(--f-serif);
  font-size: 15.5px;
  color: var(--text);
  margin-bottom: 5px;
}
.it-txt { font-size: 13px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.it-spots {
  margin-top: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-3);
}

/* 住宿 / 美食 / 景区 列表 */
.route-cols .card { height: 100%; }
.rlist { list-style: none; padding: 0; margin: 0; }
.rlist li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.rlist li:first-child { border-top: 0; padding-top: 0; }
.rlist li b { font-weight: 600; font-size: 13.5px; color: var(--text); }
.rlist li .rt {
  align-self: flex-start;
  font-size: 11px; color: var(--dan);
  background: rgba(178, 74, 48, .09);
  border-radius: 999px; padding: 1px 8px;
}
.rlist li i { font-style: normal; font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------------- 城市向导 · 发布线路动态列表 ---------------- */
.rl-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.rl-row .input { flex: 1 1 180px; min-width: 0; }
.rl-row .input.f-w-sm { flex: 0 0 88px; }
.rl-row .textarea.rl-full { flex: 1 1 100%; }
.rl-row .rl-del { flex: 0 0 auto; align-self: center; }

/* ---------------- 城市向导 · 线路类型选择 ---------------- */
.type-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.type-card {
  position: relative;
  flex: 1 1 260px;
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 16px 15px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.type-card:hover { border-color: var(--line-strong); }
.type-card.on { border-color: var(--dan); background: rgba(178, 74, 48, .05); }
.type-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.type-card .tc-ic {
  position: absolute; left: 16px; top: 16px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.type-card.on .tc-ic { color: var(--dan); }
.type-card .tc-t { font-family: var(--f-serif); font-size: 15.5px; color: var(--text); }
.type-card.on .tc-t { color: var(--dan); }
.type-card .tc-d { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ---------------- 城市向导 · 类型标签 ---------------- */
.rt-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; line-height: 1.6;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.rt-tag.scenic { color: var(--ink); background: rgba(31, 74, 82, .1); }
.rt-tag.city { color: var(--dan); background: rgba(178, 74, 48, .1); }
.sp-top {
  position: absolute; right: 0; top: 0;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px 4px 8px;
  background: var(--dan);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border-bottom-left-radius: var(--r-s);
}

/* ---------------- 城市向导 · 付费置顶档位 ---------------- */
.top-plans { display: flex; gap: 10px; flex-wrap: wrap; }
.top-plan {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.top-plan:hover { border-color: var(--line-strong); }
.top-plan.on { border-color: var(--dan); background: rgba(178, 74, 48, .06); }
.top-plan .tp-d { font-size: 13px; color: var(--text); }
.top-plan .tp-p { font-family: var(--f-serif); font-size: 16px; color: var(--dan); }

/* ---------------- 店铺卡 ---------------- */
.shopcard {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: all var(--t);
}
.shopcard:hover { border-color: var(--ink); box-shadow: var(--sh-2); }
.shopcard .lg {
  width: 48px; height: 48px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}
.shopcard .sn { font-family: var(--f-serif); font-size: 15px; color: var(--text); }
.shopcard .sm { font-size: 12px; color: var(--text-3); margin-top: 3px; display: flex; gap: 10px; }

/* ---------------- 文章条 ---------------- */
.art-item {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.art-item:last-child { border-bottom: none; }
.art-item .ad { flex: none; width: 56px; text-align: center; font-family: var(--f-serif); color: var(--text-3); }
.art-item .ad .dd { font-size: 22px; color: var(--text); line-height: 1.1; }
.art-item .ad .mm { font-size: 11.5px; margin-top: 2px; }
.art-item .ab { flex: 1; min-width: 0; }
.art-item .at { font-family: var(--f-serif); font-size: 15.5px; color: var(--text); }
.art-item:hover .at { color: var(--ink); }
.art-item .as { font-size: 12.5px; color: var(--text-3); margin-top: 5px; line-height: 1.7; }

/* ---------------- 商品详情 ---------------- */
.pd-top { display: grid; grid-template-columns: 460px 1fr; gap: 34px; }
@media (max-width: 960px) { .pd-top { grid-template-columns: 1fr; } }

.pd-gallery .main {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--surface);
}
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.pd-gallery .thumbs img {
  width: 64px; height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: border-color var(--t-fast);
  background: var(--surface-2);
}
.pd-gallery .thumbs img:hover { border-color: var(--line-strong); }
.pd-gallery .thumbs img.on { border-color: var(--ink); border-width: 1.6px; }

.pd-title { font-size: 25px; line-height: 1.45; }
.pd-sub { font-size: 13.5px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
.pd-price-box {
  margin-top: 18px;
  padding: 17px 20px;
  background: linear-gradient(180deg, #fdf7f4, #fbf9f5);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.pd-price-box .pl { font-size: 12px; color: var(--text-3); }
.pd-price-box .pv { font-family: var(--f-serif); font-size: 34px; color: var(--dan); line-height: 1.15; }
.pd-price-box .pv small { font-size: 16px; }
.pd-price-box .pm { font-size: 13px; color: var(--text-4); text-decoration: line-through; margin-left: 8px; }
.pd-price-box .pr { display: flex; gap: 26px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

.pd-attrs { margin-top: 20px; }
.pd-attrs .ar { display: flex; gap: 14px; padding: 9px 0; font-size: 13.5px; }
.pd-attrs .ar .k { width: 62px; flex: none; color: var(--text-3); }
.pd-attrs .ar .v { color: var(--text); flex: 1; }

.pd-buy { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; height: 40px; }
.qty button { width: 36px; display: flex; align-items: center; justify-content: center; color: var(--text-2); background: var(--surface-2); transition: all var(--t-fast); }
.qty button:hover { background: var(--ink-tint); color: var(--ink); }
.qty input { width: 54px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; font-size: 14px; }

.pd-promise { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.pd-promise span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.pd-promise .icon { color: var(--ok); }

.pd-body { display: grid; grid-template-columns: 1fr 296px; gap: 28px; margin-top: 40px; }
@media (max-width: 960px) { .pd-body { grid-template-columns: 1fr; } }
.rich {
  font-size: 14px;
  line-height: 2;
  color: var(--text-2);
}
.rich h3 { font-size: 17px; margin: 26px 0 10px; color: var(--text); }
.rich h4 { font-size: 15px; margin: 20px 0 8px; color: var(--text); }
.rich p { margin: 0 0 14px; }
.rich img { margin: 14px 0; border-radius: var(--r-s); border: 1px solid var(--line); }
.rich ul { margin: 0 0 14px; padding-left: 4px; }
.rich ul li { position: relative; padding-left: 15px; margin-bottom: 6px; }
.rich ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 1px; background: var(--dan); }
.rich blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--ink);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.side-card + .side-card { margin-top: 18px; }
.side-card .sh { padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-serif); font-size: 14.5px; }
.side-card .sb { padding: 14px 16px; }

/* ---------------- 结算 / 订单预览 ---------------- */
.addr-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--surface);
}
.addr-item:hover { border-color: var(--ink); }
.addr-item.on { border-color: var(--ink); border-width: 1.6px; background: var(--ink-tint); }
.addr-item .an { font-size: 14px; font-weight: 500; }
.addr-item .aa { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.65; }
.addr-item .df { margin-left: 6px; }

.settle-sum {
  position: sticky;
  top: 88px;
}
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: var(--text-2); }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.sum-line.total .v { font-family: var(--f-serif); font-size: 24px; color: var(--dan); }

/* ---------------- 支付页 ---------------- */
.pay-wrap { max-width: 620px; margin: 40px auto; }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pay-hd {
  padding: 20px 26px;
  background: #1677ff;
  color: #fff;
  display: flex; align-items: center; gap: 11px;
}
.pay-hd .lg { font-family: var(--f-serif); font-size: 18px; letter-spacing: .04em; }
.pay-hd .sm { font-size: 12px; opacity: .82; margin-left: auto; }
.pay-amount { text-align: center; padding: 34px 20px 26px; border-bottom: 1px dashed var(--line); }
.pay-amount .l { font-size: 13px; color: var(--text-3); }
.pay-amount .v { font-family: var(--f-serif); font-size: 44px; color: var(--text); margin-top: 6px; line-height: 1.1; }
.pay-amount .v small { font-size: 20px; }
.pay-way { padding: 8px 26px 4px; }
.pay-way-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.pay-way-item:last-child { border-bottom: none; }
.pay-way-item .pi { width: 34px; height: 34px; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: #1677ff; }
.pay-way-item .pn { font-size: 14px; }
.pay-way-item .pd2 { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.pay-way-item .check { margin-left: auto; }
.pay-ft { padding: 20px 26px 26px; }
.pay-note { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.8; text-align: center; }

/* ---------------- 我的中心 ---------------- */
.mine { display: grid; grid-template-columns: 208px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .mine { grid-template-columns: 1fr; } }
.mine-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.mine-side .ms-hd { padding: 20px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.mine-side .ms-hd .av {
  width: 54px; height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
  color: var(--ink);
  background: var(--ink-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif);
  font-size: 19px;
}
.mine-side .ms-hd .nn { font-size: 14.5px; font-weight: 500; }
.mine-side .ms-hd .mm { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.mine-nav { padding: 8px; }
.mine-nav .mg { padding: 10px 10px 5px; font-size: 11px; color: var(--text-4); letter-spacing: .1em; }
.mine-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: var(--r-s);
  transition: all var(--t-fast);
}
.mine-nav a:hover { background: var(--ink-tint); color: var(--ink); }
.mine-nav a.on { background: var(--ink); color: #fff; }
.mine-nav a .n { margin-left: auto; font-size: 11.5px; opacity: .7; }

/* ---------------- 订单条 ---------------- */
.order-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; margin-bottom: 16px; }
.order-card .oh {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.order-card .oh .no { color: var(--text-2); font-family: var(--f-mono); }
.order-card .ob { padding: 6px 16px; }
.order-card .oi { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.order-card .oi:last-child { border-bottom: none; }
.order-card .oi img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line); flex: none; background: var(--surface-2); }
.order-card .of {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}

/* ---------------- 登录页 ---------------- */
.auth-page { min-height: 100vh; display: flex; }
.auth-art {
  width: 44%;
  background: var(--ink-deep);
  color: var(--text-inv);
  padding: 54px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-art::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.auth-art > * { position: relative; z-index: 2; }
.auth-art .brand .bt .n { color: #fff; }
.auth-art .brand .bt .e { color: rgba(247, 244, 236, .45); }
.auth-art .brand .seal { border-color: #e0a290; color: #e0a290; }
.auth-art h2 { font-size: 29px; color: #fff; line-height: 1.5; margin-top: auto; letter-spacing: .04em; }
.auth-art .ad { margin-top: 15px; font-size: 13.5px; line-height: 1.95; color: rgba(247, 244, 236, .62); max-width: 400px; }
.auth-art .feats { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; }
.auth-art .feats .f { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(247, 244, 236, .75); }
.auth-art .feats .f .icon { color: #e0a290; }
.auth-art .fo { margin-top: auto; padding-top: 34px; font-size: 11.5px; color: rgba(247, 244, 236, .35); letter-spacing: .04em; }

.auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
  overflow-y: auto;
}
.auth-box { width: 100%; max-width: 396px; }
.auth-box.wide { max-width: 640px; }
.auth-box h1 { font-size: 25px; margin-bottom: 6px; }
.auth-box .as { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 0; font-size: 13.5px; color: var(--text-2); background: var(--surface); }
.auth-tabs a.on { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .auth-art { display: none; } }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(247, 244, 236, .6);
  padding: 46px 0 0;
  font-size: 13px;
}
.site-footer a { color: rgba(247, 244, 236, .6); }
.site-footer a:hover { color: #fff; }
.site-footer .fg { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 15px; letter-spacing: .06em; }
.site-footer .fl { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.site-footer .fd { font-size: 12.5px; line-height: 1.95; max-width: 320px; }
.site-footer .brand .bt .n { color: #fff; }
.site-footer .brand .bt .e { color: rgba(247, 244, 236, .4); }
.site-footer .brand .seal { border-color: rgba(224, 162, 144, .8); color: #e0a290; }
.site-footer .fb {
  border-top: 1px solid rgba(247, 244, 236, .12);
  padding: 16px 0 22px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px;
  color: rgba(247, 244, 236, .4);
  flex-wrap: wrap;
}
/* 页脚四栏：品牌列 + 三个链接列 */
.site-footer .fg > .fc { min-width: 0; }
.site-footer .fc .brand { margin-bottom: 14px; }
.site-footer .fseal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 12px; }
.site-footer .fseal a { position: relative; }
.site-footer .fseal a + a::before {
  content: ''; position: absolute; left: -9px; top: 50%;
  width: 1px; height: 11px; margin-top: -5.5px;
  background: rgba(247, 244, 236, .18);
}
.site-footer .fb .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .fb .faddr { flex-basis: 100%; padding-top: 4px; }
.site-footer .fb .beian a { color: rgba(247, 244, 236, .6); }
.site-footer .fb .beian a:hover { color: #fff; }
.site-footer .fl li { line-height: 1.5; }

@media (max-width: 980px) {
  .site-footer { padding: 36px 0 0; }
  .site-footer .fg { grid-template-columns: 1fr 1fr; gap: 26px 30px; padding-bottom: 28px; }
  .site-footer .fg > .fc:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .site-footer .fg { grid-template-columns: 1fr; }
  .site-footer .fb .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------- 移动端导航 ---------------- */
.m-nav-btn { display: none; }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .hd-search { width: 150px; }
  .m-nav-btn { display: flex; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    gap: 0;
    box-shadow: var(--sh-2);
  }
  .site-nav.open a { padding: 11px 6px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .site-nav.open a.on::after { display: none; }
}

/* ==========================================================================
   商品详情页 · 内容增强模块
   ========================================================================== */
.pd-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.pd-facts .pf {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; font-size: 12.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}
.pd-facts .pf .icon { color: var(--dan); flex: none; }

.pd-main-col { min-width: 0; }

/* 品牌故事 */
.story-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--dan-wash), rgba(255, 255, 255, 0));
  border: 1px solid var(--line-2); border-left: 3px solid var(--dan);
  border-radius: var(--r-sm);
}
.story-box .sicon { flex: none; color: var(--dan); opacity: .85; }
.story-box .rich { flex: 1; min-width: 0; }

/* 参数表 */
.param-box { border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.ptb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptb th, .ptb td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.ptb tr:last-child th, .ptb tr:last-child td { border-bottom: none; }
.ptb tr:nth-child(odd) { background: var(--surface-2); }
.ptb th {
  width: 132px; font-weight: 500; color: var(--text-3);
  background: transparent; white-space: nowrap;
}
.ptb td { color: var(--text-1); }

.detail-rich { min-height: 120px; white-space: pre-wrap; }
.detail-rich:empty::after { content: '暂无详情'; color: var(--text-3); }

/* 收货地址卡片（地址簿 / 结算页） */
.addr-card {
  position: relative; padding: 15px 16px;
  border: 1.4px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .16s, box-shadow .16s;
}
.addr-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.addr-card.on { border-color: var(--dan); background: var(--dan-wash); }
.addr-card .ac-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.addr-card .an { font-size: 14.5px; font-weight: 600; }
.addr-card .aa { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.addr-card .ac-acts {
  display: flex; gap: 14px; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .addr-grid { grid-template-columns: 1fr; } }
