/* ============================================================
   上海禀赋文化传播集团 — 官网静态页
   美术基调：简约 / 温暖 / 文艺
   配色：米白暖底 + 暖棕墨色 + 陶土橘点缀
   ============================================================ */

:root {
  --bg: #faf6ef;            /* 页面底色：米白 */
  --bg-soft: #f3ecdf;       /* 浅一档的暖色块 */
  --card: #fffdf8;          /* 卡片底 */
  --ink: #3c342b;           /* 主文字：暖棕墨 */
  --ink-soft: #877a69;      /* 次级文字 */
  --accent: #b26e3f;        /* 点缀色：陶土橘 */
  --accent-deep: #8f5527;
  --line: #e6dcc8;          /* 分隔线 */
  --footer-bg: #2e2822;     /* 页脚深棕 */
  --radius: 14px;
  --shadow-warm: 0 24px 48px -30px rgba(96, 70, 40, 0.4);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--bg);
  /* 柔和的暖色光晕，避免大面积纯色显得生硬 */
  background-image:
    radial-gradient(900px 480px at 88% -6%, rgba(178, 110, 63, 0.07), transparent 70%),
    radial-gradient(760px 420px at -8% 30%, rgba(178, 110, 63, 0.05), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

section { scroll-margin-top: 84px; }

/* ---------- 通用文字样式 ---------- */

h1, h2, h3 { font-weight: 600; line-height: 1.35; }

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: 0.06em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 16px;
}

.section { padding-block: 96px; }

.section-head { max-width: 640px; }

/* 照片统一暖色滤镜，让不同来源的图片色调一致 */
.framed-photo img,
.product-photo img,
.hero-photo img,
.hero-photo-small img {
  filter: saturate(0.94) sepia(0.05);
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: #faf6ef;
  font-size: 16px;
  flex: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-name small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  /* 用背景渐变做下划线动画 */
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  padding-bottom: 4px;
  transition: color 0.25s ease, background-size 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}

.phone-pill {
  flex: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.phone-pill:hover {
  background: var(--accent);
  color: #faf6ef;
}

/* ---------- 首屏 ---------- */

.hero {
  padding-block: 110px 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent-deep);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 26px;
}

.hero h1 .dot {
  color: var(--accent);
  margin-inline: 0.12em;
}

.hero-lead {
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #faf6ef;
  font-size: 15px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 13px 32px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.hero-points {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-points li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* 首屏右侧照片拼贴 */

.hero-visual {
  position: relative;
  padding: 0 8px 26px 0;
}

.hero-photo {
  margin-left: auto;
  width: min(100%, 400px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* 主图后面的错位描边框，增加纸感层次 */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 26px -14px -12px auto;
  width: min(100%, 400px);
  height: 82%;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.55;
  z-index: -1;
}

.hero-photo-small {
  position: absolute;
  left: -6px;
  bottom: -10px;
  width: 46%;
  border-radius: var(--radius);
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.hero-photo-small img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 竖排小字：文艺点题 */
.hero-vertical {
  position: absolute;
  top: 4%;
  left: -34px;
  writing-mode: vertical-rl;
  letter-spacing: 0.5em;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 关于我们 ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about-copy h2 { margin-bottom: 24px; }

.about-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-features {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.about-features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--accent-deep);
}

.feature-icon svg { width: 21px; height: 21px; }

.about-features h3 {
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.about-features p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.about-visual { padding-bottom: 30px; }

.framed-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.framed-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-caption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- 产品系列 ---------- */

.products {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.product-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 36px -30px rgba(96, 70, 40, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-warm);
}

.product-photo { overflow: hidden; }

.product-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-photo img {
  transform: scale(1.045);
}

.product-body {
  padding: 26px 26px 30px;
}

.product-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

.product-body h3 {
  font-size: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.product-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.product-note {
  margin-top: 34px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- 匠心工艺 ---------- */

.craft-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.craft-visual .framed-photo img {
  aspect-ratio: 4 / 5;
}

.craft-copy h2 { margin-bottom: 16px; }

.craft-steps {
  list-style: none;
  margin-top: 34px;
}

.craft-steps li {
  display: flex;
  gap: 22px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.craft-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-no {
  flex: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
}

.craft-steps h3 {
  font-size: 16.5px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.craft-steps p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 联系我们 ---------- */

.contact-panel {
  background: linear-gradient(160deg, #f8f2e6, #f3ead9);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 32px;
}

.contact-panel h2 { margin-bottom: 12px; }

.contact-lead {
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.contact-phone {
  display: block;
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  margin-bottom: 34px;
  transition: color 0.25s ease;
}

.contact-phone:hover { color: var(--accent); }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #c9bca6;
}

.footer-inner {
  padding-block: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 15px; }

.footer-name {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #e8ddc9;
}

.footer-copy,
.footer-beian {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.footer-beian a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-beian a:hover {
  color: #e8ddc9;
  border-color: #e8ddc9;
}

/* ---------- 滚动渐显动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .product-card,
  .product-photo img,
  .btn-primary { transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero { padding-block: 72px 80px; }

  .hero-inner,
  .about-inner,
  .craft-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual { max-width: 520px; }

  .hero-vertical { display: none; }

  .craft-visual { max-width: 460px; }

  .section { padding-block: 72px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }

  /* 窄屏下收紧头部，避免品牌名与电话按钮拥挤 */
  .header-inner { gap: 14px; }

  .brand-name { font-size: 17px; letter-spacing: 0.1em; }

  .brand-name small { display: none; }

  .phone-pill { padding: 6px 14px; font-size: 13px; }
}

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

  .hero-cta .btn-ghost { display: none; }

  .hero-points { flex-wrap: wrap; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-brand { margin-right: 0; }
}
