/* 格外吉祥 · 站点样式
   配色沿用品牌三色：藏青 #0e3467 / 金黄 #F3D58E / 橘红 #ff4e00 */
:root {
  --navy: #0e3467;
  --navy-deep: #0a2a55;
  --gold: #F3D58E;
  --orange: #ff4e00;
  --cyan: #a3effd;
  --cream: #fbf7f0;
  --ink: #22303f;
  --muted: #6b7d8f;
  --line: #e6ecef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 52, 103, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶栏 ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--navy); letter-spacing: .5px; }
.brand .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--orange)); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 2px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; color: #33475b; flex-wrap: wrap; }
.nav nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav nav a:hover, .nav nav a.on { color: var(--orange); border-bottom-color: var(--orange); }
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
}
.cart-btn .badge { background: var(--orange); color: #fff; font-size: 12px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ============ 首屏 ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #17457f 100%);
  color: #fff; padding: 62px 0 70px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(243,213,142,.35), transparent 65%);
}
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: 1px; line-height: 1.25; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { margin-top: 14px; font-size: 17px; color: #cfe0f2; max-width: 620px; }
.hero .tags { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .tags span { border: 1px solid rgba(243,213,142,.5); color: var(--gold); font-size: 13px; padding: 5px 14px; border-radius: 999px; }

/* ============ 板块入口 ============ */
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 46px 0 18px; }
.section-title h2 { font-size: 24px; font-weight: 900; color: var(--navy); }
.section-title .en { color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-title .more { margin-left: auto; font-size: 14px; color: var(--orange); font-weight: 700; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 22px 20px 18px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(14,52,103,.14); }
.cat-card .ico { font-size: 26px; }
.cat-card h3 { margin-top: 10px; font-size: 18px; font-weight: 900; color: var(--navy); }
.cat-card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); min-height: 42px; }
.cat-card .go { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--orange); }

/* ============ 商品卡 ============ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard .thumb {
  height: 168px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: 1px;
  background: linear-gradient(140deg, #17457f, #0e3467);
}
.pcard .thumb.food { background: linear-gradient(140deg, #e08b3c, #b8560f); }
.pcard .thumb.yunnan { background: linear-gradient(140deg, #4d8a5a, #23563a); }
.pcard .thumb.english { background: linear-gradient(140deg, #2b7fa8, #12556f); }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.pcard .sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); flex: 1; }
.pcard .price { margin-top: 10px; color: var(--orange); font-weight: 900; font-size: 20px; }
.pcard .price small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.pcard .acts { margin-top: 12px; display: flex; gap: 8px; }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 800; padding: 11px 18px; border-radius: 10px; transition: .16s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16407b; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-line { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ============ 分类页头部 ============ */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.page-head h1 { font-size: 26px; font-weight: 900; color: var(--navy); }
.page-head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.filters a { font-size: 13.5px; font-weight: 700; color: #3c5670; background: var(--cream); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============ 详情页 ============ */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; margin-top: 30px; }
.detail .gallery { border-radius: var(--radius); min-height: 380px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; letter-spacing: 2px; background: linear-gradient(140deg, #17457f, #0e3467); }
.detail .gallery.food { background: linear-gradient(140deg, #e08b3c, #b8560f); }
.detail .gallery.yunnan { background: linear-gradient(140deg, #4d8a5a, #23563a); }
.detail .gallery.english { background: linear-gradient(140deg, #2b7fa8, #12556f); }
.detail h1 { font-size: 28px; font-weight: 900; color: var(--navy); }
.detail .sub { color: var(--muted); margin-top: 8px; }
.detail .price-box { margin-top: 18px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.detail .price-box .now { color: var(--orange); font-size: 32px; font-weight: 900; }
.detail .meta { margin-top: 14px; font-size: 13.5px; color: #44586c; }
.detail .meta div { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.detail .desc { margin-top: 18px; font-size: 14.5px; color: #33475b; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 18px; font-weight: 800; color: var(--navy); cursor: pointer; }
.qty span { width: 46px; text-align: center; font-weight: 800; }
.buy-row { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ============ 购物车 / 下单 ============ */
.cart-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 24px; }
.citem { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: 0; }
.citem .name { font-weight: 800; color: var(--navy); }
.citem .spec { font-size: 12.5px; color: var(--muted); }
.citem .num { margin-left: auto; color: var(--orange); font-weight: 900; }
.citem .del { color: var(--muted); font-size: 13px; cursor: pointer; background: none; border: 0; font-family: inherit; }
.citem .del:hover { color: var(--orange); }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-top: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; padding: 11px 13px;
  border: 2px solid var(--line); border-radius: 10px; outline: none; background: #fdfefe;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.summary { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.summary .total { color: var(--orange); font-size: 26px; font-weight: 900; }
.tip { font-size: 13px; color: var(--muted); margin-top: 12px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty a { color: var(--orange); font-weight: 800; }
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 成功页 ============ */
.done { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 30px; text-align: center; margin-top: 34px; }
.done .ok { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--orange)); margin: 0 auto 16px; }
.done h1 { font-size: 24px; font-weight: 900; color: var(--navy); }
.done .no { margin-top: 14px; font-size: 18px; font-weight: 900; color: var(--orange); letter-spacing: 1px; }

/* ============ 页脚 ============ */
footer.site { margin-top: 60px; background: var(--navy); color: #b9cbdf; padding: 34px 0 28px; font-size: 13.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer.site a:hover { color: var(--gold); }
footer.site .copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: #8fa6bd; }

@media (max-width: 900px) {
  .cats, .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .hero h1 { font-size: 30px; }
}
