/* 香云纱静态站 — 轻量样式 */
:root {
  --rust: #8B3A1A;
  --rust-hover: #a34724;
  --silk: #F5EFE0;
  --mud: #5C3D2E;
  --ink: #1a1208;
  --white: #fffdf9;
  --line: rgba(92, 61, 46, 0.18);
  --shadow: rgba(26, 18, 8, 0.12);
  --font-en: "Cormorant Garamond", Georgia, serif;
  --font-cn: "Noto Serif SC", "Songti SC", serif;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--silk);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 1rem;
  line-height: 1.7;
  padding-top: var(--nav-h);
}

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

a {
  color: var(--rust);
  text-decoration: none;
}
a:hover {
  color: var(--rust-hover);
}

h1, h2, h3, .heading-en {
  font-family: var(--font-en), var(--font-cn);
  font-weight: 400;
  color: var(--mud);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 0.75em; }
h3 { font-size: 1.1rem; margin: 0 0 0.5em; }

.heading-en {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.35rem;
}

/* —— 顶栏 —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: rgba(245, 239, 224, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 clamp(14px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-family: var(--font-en), var(--font-cn);
  font-size: 1.35rem;
  color: var(--mud);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand span {
  color: var(--rust);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(6px, 2vw, 22px);
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  color: var(--mud);
  letter-spacing: 0.06em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* —— 版心 —— */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 24px);
}

section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-lead {
  max-width: 52ch;
  color: var(--mud);
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 720px);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-height: 280px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--white) 0%, var(--silk) 100%);
}

.hero-text h1 {
  margin: 0 0 0.5rem;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--mud);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-block;
  font-family: var(--font-cn);
  font-size: 0.9rem;
  padding: 10px 22px;
  border: 1px solid var(--rust);
  background: var(--rust);
  color: var(--silk);
  cursor: pointer;
  border-radius: 2px;
}
.btn:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--rust);
}
.btn-ghost:hover {
  background: rgba(139, 58, 26, 0.08);
  color: var(--rust-hover);
}

/* —— 两栏 / 步骤 / 特性 —— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--rust);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  border-radius: 2px;
  box-shadow: 0 4px 14px var(--shadow);
}

.feature-card h3 {
  color: var(--rust);
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mud);
  opacity: 0.95;
}

/* —— about：资质 + 36 道 —— */
.heritage-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 2px;
  border-left: 4px solid var(--rust);
}

.steps-36 {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--mud);
}

.steps-36 li {
  break-inside: avoid;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(92, 61, 46, 0.15);
}

.story-block {
  max-width: 65ch;
}

.story-block p + p {
  margin-top: 1em;
}

/* —— products —— */
.products-intro {
  margin-bottom: 1.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.product-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mud);
  flex: 1;
}

.product-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--rust);
  letter-spacing: 0.08em;
}

/* —— forms —— */
.form {
  max-width: 560px;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--mud);
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(139, 58, 26, 0.35);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--mud);
  opacity: 0.85;
  margin-top: 0.75rem;
}

/* —— 悬浮按钮（View Catalog） —— */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: inline-block;
  padding: 10px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(26, 18, 8, 0.2);
  border-radius: 40px;
  background: transparent;
  white-space: nowrap;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.fab:hover {
  background-color: var(--ink);
  color: var(--silk);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* —— 弹窗 —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(12px, 3vw, 24px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 8, 0.45);
}

.modal-panel {
  position: relative;
  width: min(100%, 400px);
  max-height: min(88vh, 560px);
  overflow: auto;
  background: var(--silk);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.modal-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mud);
  cursor: pointer;
}
.modal-x:hover {
  color: var(--rust);
}

/* —— 页脚 —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--mud);
  opacity: 0.88;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-media {
    min-height: 220px;
    max-height: 42vh;
  }
  .hero-media img {
    max-height: 42vh;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-36 {
    columns: 2;
  }
  h2 {
    font-size: 1.75rem;
  }
  .heading-en {
    font-size: 0.7rem;
  }
  .section-lead {
    font-size: 0.95rem;
  }
  .heritage-box p {
    font-size: 0.95rem;
  }
  .story-block p {
    font-size: 0.95rem;
  }
  .product-card h3 {
    font-size: 1.1rem;
  }
  .product-card p {
    font-size: 0.9rem;
  }
  .form label {
    font-size: 0.9rem;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 52px;
  }
  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }
  .brand {
    font-size: 1.05rem;
  }
  .steps-36 {
    columns: 1;
    font-size: 0.9rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .heading-en {
    font-size: 0.65rem;
  }
  .section-lead {
    font-size: 0.9rem;
  }
  .heritage-box p {
    font-size: 0.9rem;
  }
  .story-block p {
    font-size: 0.9rem;
  }
  .product-card h3 {
    font-size: 1rem;
  }
  .product-card p {
    font-size: 0.85rem;
  }
  .product-meta {
    font-size: 0.75rem;
  }
  .form label {
    font-size: 0.85rem;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
  }
  .form-hint {
    font-size: 0.75rem;
  }
  .modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  .modal-panel {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .modal-panel h2 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .modal {
    transition: none;
  }
}
