/* ============================================================
   陶艺制作 · 公共组件
   ============================================================ */

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

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

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.01em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--clay-soft); color: var(--clay-deep); }

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

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px) saturate(1.05);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 21.12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.brand svg { width: 32px; height: 32px; }
.brand:hover { color: var(--clay-deep); }

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

.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border-radius: 50%;
  color: var(--ink-2);
  flex: 0 0 auto;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-search:hover { background: var(--surface-2); color: var(--clay-deep); }
.nav-search svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: background var(--dur) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav-toggle:hover { border-color: var(--clay); }

/* ---------------------------------------------------------- section */
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section-alt.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16.32px;
  line-height: 1.85;
}
.section-head .eyebrow { margin-bottom: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.72px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--clay); color: #fff9f0; }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-deep); background: var(--clay-soft); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay-deep);
  font-weight: 600;
  font-size: 14.72px;
  cursor: pointer;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--clay-soft);
  color: var(--clay-deep);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.tag-glaze { background: var(--glaze-soft); color: #465a4a; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.thumb {
  overflow: hidden;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--paper-3);
  aspect-ratio: 16 / 10;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-43 { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------- footer */
.site-footer {
  background: #43301f;
  color: #ece1d0;
  margin-top: 0;
}
.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-block: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 240px;
}
.footer-col { flex: 1 1 160px; min-width: 140px; }
.footer-col h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #c9b9a3;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.footer-col a { font-size: 12.5px; color: #e7dac8; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand svg { width: 40px; height: 40px; flex: 0 0 auto; }
.footer-brand .footer-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fdf6ea;
  white-space: nowrap;
}
.footer-brand .footer-tagline {
  margin-top: 3px;
  padding-left: 12px;
  border-left: 1px solid rgba(236, 225, 208, 0.35);
  font-size: 12.8px;
  line-height: 1.5;
  color: #c9b9a3;
  white-space: nowrap;
}
.footer-note {
  font-size: 12.8px;
  line-height: 1.75;
  color: #b7a58d;
  margin: 0;
}
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4e8d5;
  color: #43301f;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-social a:hover { background: #fff9ef; }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 6px 8px;
  border-top: 1px solid rgba(236, 225, 208, 0.14);
  font-size: 11.52px;
  color: #9c8a74;
}
.footer-col h3 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9c8a74;
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14.72px; color: #ded3c3; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------- breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span[aria-current] { color: var(--ink); }
.breadcrumb .sep { color: var(--muted-2); }

/* ---------------------------------------------------------- misc */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.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;
}

@media (max-width: 1120px) {
  .site-nav a { padding-inline: 9px; font-size: 14.08px; }
  .site-header .wrap { gap: 14px; }
  .footer-brand .footer-tagline { display: none; }
}

@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; min-height: 0; }
  .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 4px 0 2px;
    flex-direction: row;
    align-items: center;
    gap: 2px 14px;
    background: none;
    border-bottom: none;
    box-shadow: none;
  }
  .site-nav a { padding: 5px 0; border-bottom: none; font-size: 12.5px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--clay-deep); }
  .site-footer .footer-top { flex-direction: column; gap: 20px; padding-block: 26px; }
  .footer-brand, .footer-col { flex: 1 1 auto; width: 100%; min-width: 0; }
  .footer-brand .footer-tagline { display: inline; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 48px; }
  .site-footer .footer-top { padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
