/* 宝鸡华艺刻章 —— 网站样式
   想改主色：搜索 #d7212a 全部替换即可 */

:root {
  --red: #d7212a;
  --red-d: #b01820;
  --ink: #2b2a28;
  --sub: #5f5c56;
  --mute: #8a867e;
  --line: #e8e5df;
  --bg: #f3f2ef;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.8; color: var(--sub);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.16em; }
.m-only { display: none; }

/* ================= 页头 ================= */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { line-height: 0; }
.logo img { height: 36px; width: auto; border-radius: 5px; transition: transform .3s; }
.logo:hover img { transform: rotate(-2deg) scale(1.04); }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a {
  position: relative; padding: 8px 15px; font-size: 16px; font-weight: 600; letter-spacing: .06em;
  color: #55524c; transition: color .25s;
}
.menu a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 1px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left center; transition: transform .3s;
}
.menu a:hover, .menu a.on { color: var(--red); }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); }
.top-call {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  transition: background-color .25s, transform .25s;
}
.top-call:hover { background: var(--red-d); transform: translateY(-1px); }

/* ================= 首屏 ================= */
.hero { padding: 28px 0 44px; }
.hero-card {
  position: relative; overflow: hidden; background: #fff; border-radius: 22px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -28px rgba(0, 0, 0, .22);
  padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
}
/* 右下角淡淡的印章水印 */
.hero-card::after {
  content: "华艺\A 刻章"; white-space: pre; position: absolute; right: -18px; bottom: -34px; z-index: 0;
  font-family: var(--serif); font-weight: 900; font-size: 150px; line-height: 1.02; letter-spacing: .08em;
  color: rgba(215, 33, 42, .055); transform: rotate(-9deg); pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.15; font-weight: 800; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.slogan { margin-top: 14px; font-size: clamp(16px, 2.1vw, 22px); font-weight: 700; color: var(--red); letter-spacing: .04em; }
.pickup {
  display: inline-block; margin-top: 18px; padding: 2px 18px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .04em;
}
.sub { margin-top: 14px; font-size: 15px; color: var(--mute); }

.cta { display: grid; gap: 12px; }
.call-btn {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 10px;
  background: var(--red); color: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 10px 24px -8px rgba(215, 33, 42, .55);
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.call-btn:hover { background: #e0353d; transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(215, 33, 42, .6); }
.call-btn > .i { font-size: 20px; }
.call-btn b { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: .03em; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.call-btn em {
  display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  line-height: 22px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .55);
}
.call-btn em .i { font-size: 12px; }
.wx-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px;
  background: #f1f0ed; color: var(--ink); border-radius: 12px; font-size: 18px; font-weight: 700; letter-spacing: .06em;
  transition: background-color .25s, transform .25s;
}
.wx-btn .i { color: #1aad19; font-size: 22px; }
.wx-btn:hover { background: #e7e5e1; transform: translateY(-3px); }

/* ================= 通用标题 ================= */
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.3; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; background: var(--red); border-radius: 2px; }
.sec-head p, .lead { margin-top: 14px; color: var(--mute); }

/* ================= 印章材质 ================= */
.materials { padding: 6px 0 64px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 26px -18px rgba(0, 0, 0, .25);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.pic { display: block; overflow: hidden; background: var(--bg); }
.pic img, .gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-body { padding: 16px 20px 22px; }
.card h3 { font-size: 20px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.card .tagline { margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--red); }
.card p:last-child { margin-top: 8px; font-size: 14.5px; line-height: 1.85; }

/* 可放大图片的小放大镜 */
a.zoom { cursor: zoom-in; position: relative; }
a.zoom::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 58% no-repeat;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; pointer-events: none;
}
a.zoom:hover::after { opacity: 1; transform: scale(1); }

/* ================= 白色主体 ================= */
.band { background: #fff; box-shadow: 0 -3px 0 rgba(0, 0, 0, .04); padding: 64px 0 52px; }
.blk { margin-bottom: 64px; }
.blk:last-child { margin-bottom: 0; }

/* 印章图样 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin-top: 28px; }
.gallery a.zoom {
  display: block; overflow: hidden; border-radius: 12px; background: var(--bg);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.gallery figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink); text-align: center; }

/* 购买流程 */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin-top: 32px; }
.step {
  position: relative; overflow: hidden; text-align: center; padding: 34px 22px 30px;
  background: #fff; color: var(--ink); border: 1px solid #e9e6e0; border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  animation: stepOn 7.5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.step::after {
  content: attr(data-n); position: absolute; right: 8px; top: -6px; font-size: 68px; font-weight: 800; line-height: 1;
  letter-spacing: -.02em; color: rgba(150, 146, 140, .16); pointer-events: none;
}
.step-ico {
  position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--red); color: #fff;
  animation: icoOn 7.5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.step-ico .i { width: 28px; height: 28px; }
.step-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red);
  animation: ring 2.5s ease-out infinite; animation-delay: var(--d, 0s);
}
.step strong { display: block; font-size: 21px; font-weight: 800; line-height: 1.6; letter-spacing: .06em; color: inherit; }
.step span.d { display: block; margin-top: 4px; font-size: 15px; line-height: 1.85; color: inherit; opacity: .85; }
.arrow { display: flex; align-items: center; justify-content: center; width: 60px; color: var(--red); }
.arrow .i { margin: 0 -4px; animation: chev 1.4s ease-in-out infinite; }
.arrow .i:nth-child(2) { animation-delay: .18s; }
.arrow .i:nth-child(3) { animation-delay: .36s; }

@keyframes stepOn {
  0%        { background: #fff; color: #2b2a28; border-color: #e9e6e0; transform: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .05); }
  6%, 30%   { background: #d7212a; color: #fff; border-color: #d7212a; transform: translateY(-10px); box-shadow: 0 18px 34px rgba(215, 33, 42, .38); }
  38%, 100% { background: #fff; color: #2b2a28; border-color: #e9e6e0; transform: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .05); }
}
@keyframes icoOn {
  0%        { background: #d7212a; color: #fff; }
  6%, 30%   { background: #fff; color: #d7212a; }
  38%, 100% { background: #d7212a; color: #fff; }
}
@keyframes ring { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes chev { 0%, 100% { opacity: .2; transform: translateX(-4px); } 50% { opacity: 1; transform: translateX(3px); } }
@keyframes chevV { 0%, 100% { opacity: .2; transform: rotate(90deg) translateX(-4px); } 50% { opacity: 1; transform: rotate(90deg) translateX(3px); } }

/* 标签 */
h3.sub-h { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags li { padding: 0 15px; line-height: 34px; font-size: 14.5px; background: var(--bg); color: var(--sub); border-radius: 8px; }
.tags.red li { background: #fdecec; color: var(--red-d); }
.blk > p strong { color: var(--ink); }

/* 联系我们 */
.contact {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  margin-top: 28px; background: var(--bg); border-radius: 26px; padding: clamp(24px, 4vw, 48px);
}
.tel-label { color: var(--mute); font-size: 15px; }
.tel-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
a.tel { font-size: clamp(32px, 5.6vw, 52px); font-weight: 800; line-height: 1.25; letter-spacing: .02em; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carrier { white-space: nowrap; padding: 0 12px; line-height: 28px; border-radius: 8px; background: #e7f0ff; color: #1b64d8; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.info { margin: 14px 0 22px; }
.info div { display: flex; gap: 16px; line-height: 2; }
.info dt { width: 4em; flex: none; color: var(--mute); }
.info dd { color: var(--ink); font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent; font-size: 16px; font-weight: 700; letter-spacing: .04em; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.qr-tile { max-width: 230px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 18px; }
.qr-tile img { width: 100%; border-radius: 10px; }
.qr-cap { margin-top: 12px; text-align: center; font-size: 14px; color: var(--mute); }

/* ================= 页脚 ================= */
.foot { padding: 18px 24px 26px; text-align: center; font-size: 14px; color: var(--mute); }

/* ================= 手机底部快捷栏 ================= */
.dock { display: none; }

/* ================= 放大弹窗 ================= */
.lb { border: 0; padding: 0; background: transparent; width: min(92vw, 780px); max-width: none; overflow: visible; }
.lb::backdrop { background: rgba(24, 22, 20, .82); }
.lb figure { position: relative; }
.lb img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lb figcaption { margin-top: 12px; text-align: center; color: #fff; font-size: 14.5px; line-height: 1.6; }
.lb button {
  position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #333; font-size: 26px; line-height: 44px; text-align: center; cursor: pointer;
}
.lb button:hover { background: #fff; }
.lb .lb-x { top: 12px; right: 12px; }
.lb .lb-prev { top: 50%; left: 12px; margin-top: -22px; }
.lb .lb-next { top: 50%; right: 12px; margin-top: -22px; }

/* ================= 滚动出现动画 ================= */
.js .rv { opacity: 0; }
.js .rv.in { opacity: 1; animation: rise .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: var(--rd, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ================= 仅电脑（有鼠标）的悬停效果 ================= */
@media (hover: hover) {
  .card:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 24px 42px -18px rgba(0, 0, 0, .3); position: relative; z-index: 2; }
  .card:hover .pic img { transform: scale(1.07); }
  .gallery a.zoom:hover { transform: translateY(-6px); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .25); }
  .gallery a.zoom:hover img { transform: scale(1.07); }
}

/* ================= 平板 ================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .arrow { width: 44px; }
}
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
}

/* ================= 手机 ================= */
@media (max-width: 720px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .wrap { padding: 0 18px; }
  .pc-only { display: none; }
  .m-only { display: inline; }

  /* 页头：不吸顶，导航横向可滑动 */
  .top { position: static; }
  .top-in { height: auto; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-top: 10px; padding-bottom: 4px; }
  .logo img { height: 32px; }
  .top-call { height: 36px; padding: 0 14px; font-size: 14px; }
  .menu { order: 3; width: 100%; margin: 0 -6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: none; padding: 6px 12px; font-size: 15px; }
  .menu a::after { left: 12px; right: 12px; }

  .hero { padding: 16px 0 28px; }
  .hero-card { padding: 26px 20px 24px; border-radius: 18px; gap: 22px; }
  .hero-card::after { font-size: 96px; right: -14px; bottom: -22px; }
  .hero h1 { font-size: clamp(30px, 10.5vw, 52px); }
  .slogan { font-size: 15px; letter-spacing: .02em; }
  .pickup { font-size: 15px; margin-top: 14px; }
  .sub { font-size: 14px; }
  .call-btn { padding: 14px 12px; gap: 8px; }
  .call-btn > .i { display: none; }
  .call-btn b { font-size: clamp(21px, 6vw, 26px); }
  .call-btn em { font-size: 11px; padding: 0 8px; line-height: 20px; }

  .materials { padding-bottom: 44px; }
  /* 材质卡片：手机上一列排开 */
  .cards { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }

  .band { padding: 44px 0 36px; }
  .blk { margin-bottom: 46px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .gallery figcaption { font-size: 13.5px; }

  /* 流程：竖排 */
  .flow { grid-template-columns: 1fr; }
  .arrow { width: auto; height: 40px; }
  .arrow .i { margin: 0 -5px; animation-name: chevV; transform: rotate(90deg); }
  .step { padding: 28px 18px 24px; }

  .tags li { font-size: 14px; line-height: 32px; padding: 0 13px; }
  .contact { padding: 24px 20px; border-radius: 20px; }
  .btns .btn { flex: 1 1 100%; }
  .qr-tile { max-width: 210px; }

  .foot { padding: 6px 18px 12px; text-align: center; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .dock a {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
    border-radius: 12px; font-size: 16px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  }
  .dock .d-call { background: var(--red); color: #fff; }
  .dock .d-wx { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
  .dock .d-wx .i { color: #1aad19; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .step-ico, .step-ico::after, .arrow .i { animation: none; }
  .js .rv { opacity: 1; }
  .js .rv.in { animation: none; }
  .card, .gallery a.zoom, .call-btn, .wx-btn, .logo img { transition: none; }
}
