/* ============================================
   上海丰匠服饰有限公司 · 官方静态网站样式
   设计语言:东方极简 / 中日融合 / 大面积留白
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #faf7f2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: #b73e3a; }
button { font-family: inherit; cursor: pointer; }

/* --- Variables --- */
:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #888;
  --paper: #faf7f2;
  --paper-2: #f1ece2;
  --line: #e6e0d2;
  --accent: #b73e3a;        /* 朱红 */
  --accent-soft: #d97766;
  --gold: #a98744;          /* 雅金 */
  --shadow: 0 8px 30px rgba(0,0,0,.06);
  --radius: 4px;
  --max: 1200px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
}

/* --- Layout --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--paper-2);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-title.left { text-align: left; }
.section-desc {
  color: var(--ink-soft);
  margin: 0;
}
.section-desc.left { text-align: left; }
.mt-32 { margin-top: 32px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.brand-en { font-size: 10px; letter-spacing: .2em; color: var(--ink-mute); margin-top: 2px; }

.nav { display: flex; gap: 36px; }
.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(20,20,20,.55), rgba(20,20,20,.25)),
    linear-gradient(135deg, #2a2622 0%, #4a3f33 60%, #6b5840 100%);
  z-index: -1;
}
.hero-bg::before {
  content: "匠";
  position: absolute;
  right: -8%;
  bottom: -22%;
  font-family: var(--serif);
  font-size: 60vmin;
  color: rgba(255,255,255,.04);
  font-weight: 700;
  line-height: 1;
}
.hero-content {
  width: 100%;
  padding: 80px 24px;
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold);
  margin: 0 0 24px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: .02em;
}
.accent { color: var(--accent-soft); }
.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 640px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--paper);
}
.stat-label {
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, #2a2622 0%, #4a3f33 100%);
  color: var(--paper);
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "FENGJIANG";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18vw;
  color: rgba(255,255,255,.03);
  font-weight: 700;
  letter-spacing: .05em;
  pointer-events: none;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin: 0 0 16px;
  position: relative;
}
.page-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .25s ease;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #952f2c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  border-color: rgba(255,255,255,.5);
  color: var(--paper);
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .3s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--serif);
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

/* --- Two Col --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lead {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 16px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Visual (decoration) --- */
.visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #3a3329 0%, #6b5840 100%);
}
.visual-card {
  position: absolute;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.visual-card.v1 {
  inset: 8% 12% auto auto;
  width: 56%;
  height: 64%;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, #c2a372 0%, #8b6e4a 100%);
}
.visual-card.v2 {
  inset: auto 8% 12% 8%;
  width: 52%;
  height: 40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 50%),
    linear-gradient(135deg, #b73e3a 0%, #6f2220 100%);
}
.visual-card.v3 {
  inset: 24% auto auto 6%;
  width: 28%;
  height: 36%;
  background: linear-gradient(180deg, #faf7f2 0%, #d6c9a8 100%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: #6b5840;
  font-size: 36px;
}
.visual-caption {
  position: absolute;
  right: 16px; bottom: 12px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .25em;
}

/* --- Numbers --- */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.number {
  padding: 32px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}
.number-num {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.number-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

/* --- Values --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.value {
  padding: 32px 0;
  border-top: 2px solid var(--ink);
}
.value-num {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .2em;
}
.value h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 8px 0 12px;
  font-weight: 600;
}
.value p { color: var(--ink-soft); margin: 0; }

/* --- Timeline --- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 24px 0;
  align-items: start;
}
.t-year {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 18px;
  position: relative;
}
.t-year::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 8px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--paper-2);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 6px;
  font-weight: 600;
}
.timeline p { color: var(--ink-soft); margin: 0; }

/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 28px;
  border-radius: var(--radius);
  position: relative;
  transition: all .3s ease;
}
.service:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.service h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.service p {
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-size: 14.5px;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--paper-2);
  border-radius: 2px;
  color: var(--ink-soft);
}

/* --- Workflow --- */
.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.step { text-align: center; position: relative; }
.step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.step h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; padding: 0 4px; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.info-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.info-label {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.info-value { color: var(--ink); font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .05em;
}
.contact-form label em { color: var(--accent); font-style: normal; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-feedback {
  margin: 8px 0 0;
  font-size: 14px;
  min-height: 1em;
}
.form-feedback.success { color: #2a7a3a; }
.form-feedback.error { color: var(--accent); }
.form-fallback {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 2px;
  font-size: 14px;
  color: #874d00;
}
.form-fallback a { color: var(--accent); text-decoration: underline; }

/* Honeypot —— 隐藏但保持表单语义完整 */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit 按钮 loading */
.contact-form button[type="submit"].is-loading {
  opacity: .7;
  pointer-events: none;
  position: relative;
}
.contact-form button[type="submit"].is-loading::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Map --- */
.map-section {
  padding: 0 0 96px;
  background: var(--paper);
}
.map-card {
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(135deg, #f1ece2 0%, #e6dcc4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.map-pin { font-size: 48px; }
.map-text h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
}
.map-text p { color: var(--ink-soft); margin: 0 0 12px; }

/* --- CTA --- */
.cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 80px 0;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  font-weight: 600;
}
.cta p {
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* --- Footer --- */
.site-footer {
  background: #14110e;
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.footer-col a:hover { color: var(--paper); }
.footer-col p { margin: 6px 0; font-size: 14px; }
.brand-footer .brand-cn { color: var(--paper); }
.brand-footer .brand-en { color: rgba(255,255,255,.5); }
.brand-footer .brand-mark { background: var(--paper); color: var(--ink); }
.footer-about { margin-top: 16px; max-width: 360px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Language switcher --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  margin-left: 8px;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  font-family: inherit;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { color: var(--ink); background: var(--paper-2); }
.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
}
[data-lang="ja"] .lang-btn,
[lang="ja-JP"] { font-feature-settings: "palt"; }

/* 日文模式下,字距/行距微调,提升可读性 */
[data-lang="ja"] body {
  line-height: 1.85;
  letter-spacing: .02em;
}
[data-lang="ja"] .hero-title { letter-spacing: .04em; }
[data-lang="ja"] .section-title { letter-spacing: .02em; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .checklist { grid-template-columns: 1fr; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .hero { min-height: 80vh; }
  .map-card { flex-direction: column; text-align: center; padding: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .header-inner { height: 64px; }
  .lang-switch { margin-left: 0; }
  .lang-btn { padding: 6px 8px; font-size: 11.5px; }
  .header-inner { gap: 12px; }
  .hero-title { font-size: 32px; line-height: 1.3; }
  .page-title { font-size: 30px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .info-block { grid-template-columns: 1fr; gap: 4px; }
  .timeline::before { left: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
  .t-year::after { right: auto; left: -27px; top: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .page-hero { padding: 80px 0 64px; }
}
