/* 珠宝设计 · 公共组件（三页共用） */

*,
*::before,
*::after { box-sizing: border-box; }

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

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

/* ------------------------------------------------------------ 站点头部 */
.site-header {
  height: var(--h-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 40;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.brand svg { width: 24px; height: 24px; flex: none; }
.brand--light { color: #fdf3e9; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

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

/* ------------------------------------------------------------ 检索框 */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.field svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.field input:focus { outline: none; }
.search-hint {
  position: absolute;
  left: 50px;
  right: 20px;
  font-size: 14.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity .12s ease;
}
.field:has(input:focus) .search-hint,
.field.has-value .search-hint { opacity: 0; }

.btn-search {
  flex: none;
  height: 52px;
  padding: 0 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff9f3;
  font: inherit;
  font-size: 15px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .18s ease;
}
.btn-search:hover { background: var(--accent-deep); }

.search-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-deep);
  min-height: 18px;
}

/* ------------------------------------------------------------ 通用标题行 */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 14px;
}
.sec-head h2 {
  position: relative;
  flex: none;
  font-size: 26px;
  letter-spacing: .02em;
  padding-left: 14px;
}
.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 3px;
  background: var(--accent-deep);
}
.sec-head p {
  flex: 1 1 auto;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.sec-head--tight { padding-bottom: 10px; }

/* ------------------------------------------------------------ 卡片 / 表格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}
.cat-tile:hover,
.cat-tile:focus-visible {
  border-color: var(--accent-soft);
  background: #fffaf3;
}
.cat-thumb {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { min-width: 0; }
.cat-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.cat-tile h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  line-height: 1.35;
}
.cat-tile p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.table-wrap { min-width: 0; }
.table-wrap + .table-wrap { margin-top: 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
}
.data-table th,
.data-table td {
  padding: 7px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  background: var(--accent-deep);
  color: #fdf4ec;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .04em;
  border-bottom: 0;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num,
.data-table th.num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table td:first-child { font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: #fdf8f1; }

/* ------------------------------------------------------------ 页脚 */
.site-footer {
  min-height: var(--h-footer);
  background: var(--footer-bg);
  color: #f3dcd5;
  padding: 20px 0 24px;
}
.footer-inner {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px 40px;
  padding-top: 8px;
}
.footer-inner > * { flex: 1 1 180px; min-width: 170px; }
.footer-inner > .footer-brand { flex: 1.4 1 240px; }
.footer-brand p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #e8c8bf;
  max-width: 30em;
}
.footer-links h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: #e8c8bf;
  margin-bottom: 8px;
}
.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
  font-size: 12.5px;
}
.footer-links a { color: #f6e5de; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  font-size: 12px;
  line-height: 1.8;
  color: #e8c8bf;
  text-align: right;
}

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

/* ------------------------------------------------------------ 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: #fffaf3;
}

/* 窄屏通用收缩 */
@media (max-width: 1100px) {
  .site-nav { gap: 14px; font-size: 12.5px; }
}
