/* =========================================================
   Nasma · 品牌官网样式
   配色取自品牌标识：雾青 / 沙杏 / 午夜蓝 / 米白
   纯静态，无外部依赖，手机端优先适配
   ========================================================= */

:root {
  --sand: #f5dcc0;
  --sand-deep: #eecfa9;
  --sand-soft: #faece0;
  --teal: #a9c9c9;
  --teal-soft: #e2eeee;
  --ink: #3b4a5a;
  --ink-2: #55677a;
  --muted: #8794a3;
  --line: #eae6df;
  --bg: #faf8f4;
  --cream: #fdfbf5;
  --white: #ffffff;
  --radius: 22px;
  --radius-s: 13px;
  --maxw: 1160px;
  --shadow-s: 0 4px 16px rgba(59, 74, 90, 0.06);
  --shadow-m: 0 16px 40px rgba(59, 74, 90, 0.10);
  --shadow-l: 0 30px 70px rgba(59, 74, 90, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(59, 74, 90, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; }
.brand-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--ink);
}
.brand-text span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: right .28s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--ink);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); background: #31404f; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  position: relative;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.nav-toggle i::before { content: ""; left: -9px; top: -6px; }
.nav-toggle i::after { content: ""; left: -9px; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(245, 220, 192, .55), transparent 65%),
    radial-gradient(700px 420px at 8% 88%, rgba(169, 201, 201, .42), transparent 62%),
    linear-gradient(180deg, #fdfbf5 0%, #f7f3ec 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 74px 0 66px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-2);
  background: linear-gradient(180deg, transparent 63%, rgba(245, 220, 192, .9) 63%);
  padding: 0 3px;
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 30em;
}
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn-primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: var(--shadow-m);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); background: #31404f; }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .glow {
  position: absolute;
  inset: 8%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%);
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(400px, 82%);
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(59, 74, 90, .16));
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

/* ---------- 通用区块 ---------- */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  font-weight: 800;
}
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- 品牌标识 ---------- */
.identity {
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(169, 201, 201, .18), transparent 58%),
    linear-gradient(180deg, #3b4a5a, #334150);
  color: #fff;
}
.identity .section-tag { color: var(--sand); }
.identity .section-head p { color: rgba(255, 255, 255, .68); }

.identity-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: stretch;
}
.identity-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  place-items: center;
  gap: 26px;
}
.identity-main img { width: min(320px, 80%); }
.identity-marks {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.identity-marks .mk {
  background: var(--cream);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  place-items: center;
}
.identity-marks .mk img { width: 74px; }
.identity-marks .mk.on-dark { background: #2c3947; }

.identity-side { display: grid; gap: 20px; }
.id-block {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.id-block h3 {
  font-size: 15px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
  margin-bottom: 16px;
}
.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
}
.wordmark small {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
  margin-top: 6px;
}
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.swatch { text-align: center; }
.swatch i {
  display: block;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  margin-bottom: 9px;
}
.swatch b { display: block; font-size: 12.5px; font-weight: 600; }
.swatch span { display: block; font-size: 11px; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.id-note { font-size: 14.5px; color: rgba(255, 255, 255, .66); line-height: 1.85; }

/* ---------- 产品线 ---------- */
.product-line .section-head { margin-bottom: 48px; }
.pline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--teal);
}
.p-figure {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fdfbf5, #f6f2ea);
  border-radius: var(--radius-s);
  padding: 10px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.p-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* 实拍图占位（拿到产品照片后，把 .p-empty 换成 <img> 即可） */
.p-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed rgba(59, 74, 90, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
}
.p-empty svg { width: 46px; height: 46px; opacity: .5; }
.p-empty i { font-style: normal; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.p-card h3 { font-size: 18px; margin-bottom: 8px; }
.p-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.p-tag {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--teal-soft);
  padding: 5px 13px;
  border-radius: 999px;
}
.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.p-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.p-more svg { width: 15px; height: 15px; transition: transform .2s; }
.p-card:hover .p-more svg { transform: translateX(4px); }

.pline-note {
  margin-top: 34px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 品牌故事 ---------- */
.story { background: var(--white); }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}
.story-mark {
  background: linear-gradient(180deg, #fdfbf5, #f5efe4);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  place-items: center;
}
.story-mark img { width: min(260px, 70%); }
.story h2 { font-size: clamp(25px, 3vw, 35px); font-weight: 800; line-height: 1.34; }
.story p { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.story-list { margin-top: 24px; display: grid; gap: 12px; }
.story-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.story-list li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--teal);
}
.story-company {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.story-company b { color: var(--ink); }

/* ---------- 联系 ---------- */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 54px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.3; }
.contact-info > p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.contact-items { margin-top: 32px; display: grid; gap: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 18px 20px;
}
.contact-item .ci-ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-soft);
  color: var(--ink);
}
.contact-item .ci-ico svg { width: 19px; height: 19px; }
.contact-item b { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-item span { font-size: 16px; font-weight: 600; }
.contact-item span.pending { color: #a9b2bd; font-weight: 500; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-m);
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.field label i { color: #cf7a6a; font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238794a3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(169, 201, 201, .28);
}
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg {
  margin-top: 16px;
  font-size: 14.5px;
  border-radius: var(--radius-s);
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: .3s;
}
.form-msg.show { max-height: 240px; padding: 14px; }
.form-msg.ok { background: rgba(169, 201, 201, .22); color: #3f6b63; border: 1px solid rgba(169, 201, 201, .7); }
.form-msg.err { background: rgba(207, 122, 106, .1); color: #a95a4a; border: 1px solid rgba(207, 122, 106, .35); }
.form-msg .copy-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.form-msg textarea {
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  min-height: 86px;
  border: 1px dashed rgba(63, 107, 99, .4);
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink-2);
  resize: vertical;
}

/* ---------- 产品详情页 ---------- */
.page-hero {
  background: linear-gradient(180deg, #fdfbf5, #f5f1ea);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13.5px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 8px; color: #c8ccd3; }
.crumb b { color: var(--ink); font-weight: 600; }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 30px;
}

.pd-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #fdfbf5, #f4f0e8);
  border: 1px solid var(--line);
  padding: 18px;
}
.pd-media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.pd-info .kicker {
  font-size: 12.5px;
  letter-spacing: .24em;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 600;
}
.pd-info h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 14px;
}
.pd-info .lead { color: var(--ink-2); font-size: 16.5px; }

.pd-points { margin: 26px 0; display: grid; gap: 13px; }
.pd-points li {
  list-style: none;
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  align-items: flex-start;
}
.pd-points li svg { flex: none; width: 19px; height: 19px; color: var(--teal); margin-top: 4px; }

.pd-specs {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  margin: 26px 0 14px;
  background: var(--white);
}
.pd-specs table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pd-specs th, .pd-specs td { padding: 12px 18px; text-align: left; }
.pd-specs tr + tr { border-top: 1px solid var(--line); }
.pd-specs th { width: 38%; color: var(--muted); font-weight: 500; background: var(--bg); }
.pd-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.pd-back:hover { color: var(--ink); }
.pd-back svg { width: 16px; height: 16px; }

.pd-cta {
  margin: 20px 0 90px;
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 82% 12%, rgba(169, 201, 201, .22), transparent 62%),
    linear-gradient(135deg, #3b4a5a, #2f3c49);
  color: #fff;
  padding: 50px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.pd-cta h3 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; }
.pd-cta p { color: rgba(255, 255, 255, .62); margin-top: 8px; font-size: 15px; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #334150;
  color: rgba(255, 255, 255, .62);
  padding: 56px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; }
.footer-brand strong { color: #fff; font-size: 19px; letter-spacing: .02em; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; letter-spacing: .06em; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- 滚动进入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 58px 0 54px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(300px, 70%); }
  .identity-grid, .story-inner, .contact-inner { grid-template-columns: 1fr; gap: 34px; }
  .pline-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    padding: 8px 24px 18px;
  }
  .site-header.open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links a::after { display: none; }
  .nav-cta { display: none; }

  section { padding: 64px 0; }
  .brand-text span { display: none; }
  .pline-grid { grid-template-columns: 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .identity-card { padding: 26px 20px; }
  .story-mark { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
