/* components.css — 三页共用组件：页头、页脚、按钮、面包屑、卡片骨架 */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; margin: 0; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--accent); color: #fff8ec; padding: 8px 16px; border-radius: 4px;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- 页头 ---------------- */
.site-header {
  height: 73px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.header-inner { display: flex; align-items: center; height: 100%; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark { width: 36px; height: 36px; color: var(--accent-3); }

.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }

.brand-sub {
  font-size: 12.5px; color: var(--ink-3); padding-left: 14px; margin-left: 8px;
  border-left: 1px solid var(--line); letter-spacing: .06em; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; }

.site-nav a { font-size: 14.5px; color: var(--ink-2); padding: 6px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

.header-cta {
  margin-left: 4px; font-size: 14.5px; font-weight: 700; color: var(--accent-3);
  border-bottom: 1px solid currentColor; padding: 3px 0; white-space: nowrap;
}
.header-cta:hover { color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 6px; background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: #fff7e9; border: 1px solid transparent;
}
.btn:hover { background: var(--accent-3); }
.btn-ghost { background: transparent; color: var(--accent-3); border-color: var(--accent-2); }
.btn-ghost:hover { background: var(--accent); color: #fff7e9; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--ink-2); }

/* ---------------- 区块标题 ---------------- */
.section-title { text-align: center; font-size: 30px; line-height: 1.3; letter-spacing: .06em; position: relative; display: inline-flex; align-items: center; gap: 18px; }
.section-title::before, .section-title::after {
  content: ""; width: 34px; height: 1px; background: var(--accent-2); opacity: .55;
}
.section-lead { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 8px; }

.section-head { display: flex; flex-direction: column; align-items: center; }

/* ---------------- 卡片骨架 ---------------- */
.media { overflow: hidden; background: var(--card-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--deep); color: #f2e2c9; position: relative; overflow: hidden; }
.footer-bamboo { position: absolute; right: 0; bottom: 0; width: 260px; opacity: .5; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; padding: 26px 24px 34px; }

.footer-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { color: #f0dcbb; width: 34px; height: 34px; }
.footer-brand span { font-family: var(--serif); font-size: 22px; color: #fdf3e2; letter-spacing: .04em; }
.footer-divider { width: 1px; height: 22px; background: rgba(242, 226, 201, .35); }
.footer-links { display: flex; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; font-size: 13.5px; }
.footer-col { flex: 1 1 150px; min-width: 140px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-top: 7px; }
.footer-links a { color: #e9d4b4; }
.footer-links a:hover { color: #fff6e6; text-decoration: underline; text-underline-offset: 4px; }
.footer-links .footer-group { display: block; font-size: 12px; letter-spacing: .16em; color: rgba(242, 226, 201, .55); margin: 0 0 6px; }

.footer-desc { font-size: 13px; color: rgba(242, 226, 201, .72); margin-top: 14px; }
.footer-bottom {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(242, 226, 201, .18);
  font-size: 12.5px; color: rgba(242, 226, 201, .62); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
