/* ===========================================================
   公共组件 —— 三页共享（header / footer / eyebrow / button / card / details）
   与 tokens.css 一起被 index.html、category.html、detail.html 引用
   =========================================================== */

/* ---------- 顶栏 ---------- */
.site-header {
  position: relative;
  z-index: 40;
  height: var(--h-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand__name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--accent);
  vertical-align: 4px;
}
.brand__tag {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.site-nav a {
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }

/* 导航下拉 */
.site-nav__drop { position: relative; display: inline-flex; align-items: center; }
.site-nav__drop > a { display: inline-flex; align-items: center; gap: 5px; }
.site-nav__caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .7;
}
.site-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 172px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  z-index: 50;
}
.site-nav__drop:hover .site-nav__menu { display: block; }
.site-nav__menu a {
  display: block;
  padding: 8px 16px;
  font-size: 12.5px;
  white-space: nowrap;
  border-bottom: 0;
}
.site-nav__menu a:hover { background: var(--bg-warm); border-bottom-color: transparent; }

/* ---------- 眉标 / 小节标题 ---------- */
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow--center { text-align: center; }
.section-head { margin-bottom: 24px; }
.section-head__sub {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .02em;
}
.section-head--center { text-align: center; }
.section-head--center .section-head__sub { margin-inline: auto; max-width: 620px; }

.serif { font-family: var(--font-serif); }
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .18s, color .18s, border-color .18s;
}
.btn--solid {
  background: var(--accent);
  color: #fdf6f1;
}
.btn--solid:hover { background: var(--accent-dark); }
.btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--ghost:hover { background: var(--accent); color: #fdf6f1; }

/* ---------- 菜卡（首页精选 / 分类页网格共用） ---------- */
.dish-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fdf8f4;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.dish-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.dish-card__media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-warm);
}
.dish-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-card__body { padding: 12px 14px 16px; }
.dish-card__no {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
}
.dish-card__title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.dish-card__meta {
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent);
}
.dish-card__note {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 折叠问答 ---------- */
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.faq-item[open] summary::before { background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-warm-deep); }
.faq-item[open] summary { color: var(--accent); font-weight: 600; }
.faq-item p {
  margin: 0 0 12px;
  padding-left: 25px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--accent);
  color: #f7ece4;
  padding: 40px 0 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px 40px;
  padding-bottom: 26px;
}
.site-footer__col { flex: 1 1 180px; min-width: 168px; }
.site-footer__col--brand { flex: 1.4 1 240px; }
.site-footer__list {
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer__icp {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(247, 236, 228, .72);
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fdf4ee;
}
.site-footer__tag {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(247, 236, 228, .72);
}
.site-footer__links { display: grid; gap: 12px; align-content: start; }
.site-footer__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 26px; }
.site-footer__label {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(247, 236, 228, .66);
}
.site-footer a {
  font-size: 12px;
  color: rgba(247, 236, 228, .92);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__about {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(247, 236, 228, .78);
  max-width: 620px;
}
.site-footer__bottom {
  border-top: 1px solid rgba(247, 236, 228, .22);
  padding: 16px 0 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(247, 236, 228, .66);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--accent); }

/* ---------- 通用：可访问性 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 10px; }
