/* ==========================================================================
   一寸心官网 · 前台样式
   ========================================================================== */

:root {
  --ink: #2e2129;
  --ink-soft: #6b5563;
  --ink-light: #9c8492;
  --primary: #e0598a;
  --primary-dark: #c13f6d;
  --accent: #ef9dbd;
  --surface: #fff6fa;
  --surface-dark: #fde9f1;
  --line: #f7dbe6;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px rgba(120, 60, 90, .08);
  --shadow-sm: 0 6px 18px rgba(120, 60, 90, .06);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ------------------------------------------------------------ 顶部信息条 */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}

.topbar-sep { color: rgba(255, 255, 255, .28); }

.topbar-right { margin-left: auto; }

.topbar-right a { color: rgba(255, 255, 255, .6); }

.topbar-right a:hover { color: #fff; }

/* ------------------------------------------------------------ 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), #f27ea5);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(224, 89, 138, .28);
}

.brand-logo { height: 44px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-text strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .12em;
  font-weight: 700;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: .08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s, background .2s;
}

.nav a:hover { color: var(--ink); background: var(--surface); }

.nav a.active { color: var(--primary); font-weight: 600; }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(1100px 480px at 78% 12%, rgba(239, 157, 189, .30), transparent 62%),
    linear-gradient(135deg, #2a1e26 0%, #4a2734 48%, #8e2f56 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 55%;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  pointer-events: none;
}

.hero-image { background-blend-mode: normal; }

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(42, 22, 33, .82) 0%, rgba(42, 22, 33, .45) 55%, rgba(42, 22, 33, .15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 70px;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-bottom: 20px;
  letter-spacing: .03em;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, .80);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}

.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f07ba3);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 89, 138, .28);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224, 89, 138, .34); }

.btn-light { background: rgba(255, 255, 255, .94); color: var(--ink); }

.btn-light:hover { transform: translateY(-2px); background: #fff; }

.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: var(--surface); color: var(--ink); }

.btn-ghost:hover { background: var(--surface-dark); }

/* ------------------------------------------------------------ 特色条 */
.features {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.feature {
  position: relative;
  padding: 38px 32px 38px 0;
}

.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }

.feature-no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.feature h3 { font-size: 19px; margin-bottom: 6px; }

.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ------------------------------------------------------------ 通用区块 */
.section { padding: 88px 0; }

.section-alt { background: var(--surface); }

.section-tight { padding-top: 40px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 6px; }

.center-head { justify-content: center; text-align: center; }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--primary);
  margin: 0 0 8px;
  font-weight: 600;
}

.section-desc { color: var(--ink-light); font-size: 14px; margin: 0; }

.link-more { color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap; }

.link-more:hover { color: var(--primary-dark); }

.empty, .empty-block {
  padding: 46px;
  text-align: center;
  color: var(--ink-light);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-block .btn { margin-top: 12px; }

/* ------------------------------------------------------------ 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 89, 138, .25);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-dark);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-media img { transform: scale(1.05); }

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(320px 180px at 70% 20%, rgba(239, 157, 189, .35), transparent 65%),
    linear-gradient(135deg, #fbe4ee, #f5d2e1);
}

.ph i {
  font-family: var(--serif);
  font-style: normal;
  font-size: 54px;
  color: rgba(224, 89, 138, .35);
  letter-spacing: .1em;
}

.ph-lg i { font-size: 96px; }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  letter-spacing: .05em;
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.product-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price { font-family: var(--serif); font-size: 18px; color: var(--primary); font-weight: 700; }

.price-quote { font-size: 15px; color: var(--ink-soft); font-weight: 500; }

/* ------------------------------------------------------------ 关于我们 */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-grid-page { align-items: flex-start; }

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--surface-dark);
  box-shadow: var(--shadow);
}

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

.about-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  background:
    radial-gradient(420px 260px at 72% 18%, rgba(239, 157, 189, .42), transparent 62%),
    linear-gradient(140deg, #33232d, #8e2f56);
  color: #fff;
}

.about-ph span {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: rgba(255, 255, 255, .92);
}

.about-ph em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .62);
}

.about-text h2 { font-size: clamp(24px, 2.6vw, 32px); }

.rich { color: var(--ink-soft); font-size: 15.5px; }

.rich p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ CTA */
.cta {
  background: linear-gradient(120deg, #2a1e26 0%, #4a2734 60%, #8e2f56 100%);
  color: #fff;
  padding: 62px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }

.cta p { margin: 0; color: rgba(255, 255, 255, .68); }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 页脚 */
.site-footer { background: #221821; color: rgba(255, 255, 255, .66); padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { font-size: 14px; margin-bottom: 10px; }

.footer-col a:hover { color: #fff; }

.brand-light .brand-text strong { color: #fff; }

.brand-light .brand-text em { color: rgba(255, 255, 255, .5); }

.footer-desc { font-size: 14px; margin-top: 16px; max-width: 300px; color: rgba(255, 255, 255, .55); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  font-size: 13px;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .45);
}

/* ------------------------------------------------------------ 内页头 & 面包屑 */
.page-hero {
  padding: 74px 0 62px;
  background:
    radial-gradient(760px 320px at 82% 10%, rgba(239, 157, 189, .26), transparent 62%),
    linear-gradient(120deg, #2a1e26, #4a2734 70%, #8e2f56);
  color: #fff;
}

.page-hero h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }

.page-hero-sub { color: rgba(255, 255, 255, .70); margin: 0; }

.crumb { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }

.crumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  color: var(--ink-light);
  overflow: hidden;
  white-space: nowrap;
}

.crumb a:hover { color: var(--primary); }

.crumb em { font-style: normal; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ 筛选 / 搜索 */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .18s;
}

.filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }

.filter-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-form { display: flex; gap: 8px; }

.search-form input {
  width: 220px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 89, 138, .1); }

.search-form button {
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.search-form button:hover { background: var(--primary); }

.result-info { color: var(--ink-light); font-size: 14px; margin-bottom: 26px; }

.result-info strong { color: var(--primary); }

/* ------------------------------------------------------------ 分页 */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
}

.pager a:hover { border-color: var(--primary); color: var(--primary); }

.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------ 产品详情 */
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: flex-start;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-dark);
  border: 1px solid var(--line);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumb.active { border-color: var(--primary); }

.detail-cat {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--primary);
  background: rgba(224, 89, 138, .08);
  border-radius: 999px;
}

.detail-info h1 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 10px; }

.detail-sub { color: var(--ink-light); font-size: 14.5px; margin-bottom: 22px; }

.detail-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
}

.detail-price strong { font-size: 32px; }

.detail-summary {
  padding: 16px 18px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.detail-meta {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.detail-meta li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.detail-meta span { width: 84px; color: var(--ink-light); flex-shrink: 0; }

.detail-meta em { font-style: normal; color: var(--ink); }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-body { max-width: 880px; }

.detail-body-title {
  font-size: 22px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-body-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--primary);
}

/* ------------------------------------------------------------ 联系页 */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: flex-start;
}

.contact-info h2, .contact-form-wrap h2 { font-size: 22px; margin-bottom: 22px; }

.contact-info ul { list-style: none; margin: 0 0 26px; padding: 0; }

.contact-info li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.ci-label { width: 96px; color: var(--ink-light); flex-shrink: 0; font-size: 14px; }

.ci-value { color: var(--ink); word-break: break-word; }

a.ci-value:hover { color: var(--primary); }

.contact-note {
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-light);
}

.contact-note p { margin: 0; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 { font-size: 17px; margin-bottom: 10px; }

.contact-strong {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
  word-break: break-all;
}

.contact-card p:last-child { margin: 0; font-size: 13.5px; color: var(--ink-light); }

/* ------------------------------------------------------------ 表单 */
.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.form-row label i { color: var(--primary); font-style: normal; }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.form-row textarea { resize: vertical; line-height: 1.7; }

.form-row input:focus,
.form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 89, 138, .1); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 22px;
}

.alert p { margin: 0 0 4px; }

.alert p:last-child { margin: 0; }

.alert-ok { background: #eaf6ee; color: #1f6b3a; border: 1px solid #c9e6d4; }

.alert-error { background: #fdeceb; color: #e0598a; border: 1px solid #f6cfcc; }


/* ------------------------------------------------------------ 规格参数表 */
.specs-block {
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.specs-heading {
  margin: 0;
  padding: 14px 20px;
  font-size: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.specs-table th,
.specs-table td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

.specs-table th {
  width: 30%;
  min-width: 110px;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fffafc;
}

.specs-table td { color: var(--ink); }

@media (max-width: 560px) {
  .specs-table th { width: 38%; padding: 10px 14px; }
  .specs-table td { padding: 10px 14px; }
}


/* ------------------------------------------------------------ 服务流程 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow-step {
  position: relative;
  padding: 30px 22px 0 0;
}

.flow-step + .flow-step { padding-left: 22px; }

.flow-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--primary);
  margin-bottom: 10px;
}

.flow-step h3 { font-size: 17px; margin-bottom: 8px; }

.flow-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.flow-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #fff;
}

.flow-step + .flow-step::before { left: 22px; }

@media (max-width: 1000px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .flow-step { padding: 26px 18px 0 0; }
  .flow-step + .flow-step { padding-left: 18px; }
  .flow-step + .flow-step::before { left: 18px; }
}

@media (max-width: 620px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-step + .flow-step { padding-left: 0; border-left: none; }
  .flow-step + .flow-step::before { left: 0; }
  .flow-step { padding: 24px 0 0; }
}


/* ------------------------------------------------------------ 案例列表 / 详情 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 89, 138, .28);
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-dark);
  overflow: hidden;
}

.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.case-card:hover .case-media img { transform: scale(1.05); }

.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.case-body h3 { font-size: 18px; margin: 0 0 6px; }

.case-client { font-size: 13px; color: var(--ink-light); margin: 0 0 10px; }

.case-summary {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-body .link-more { margin-top: auto; }

.case-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.case-detail-head h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }

.case-cover {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-dark);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

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

.case-body-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 34px;
  align-items: start;
}

.case-side { display: flex; flex-direction: column; gap: 20px; }

.case-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.case-cta h4 { margin: 0 0 8px; font-size: 16px; }

.case-cta p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; }

.case-cta .btn { margin-bottom: 10px; }

.case-link { margin: 26px 0 0; }

/* ------------------------------------------------------------ FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; }

.faq-item[open] summary::after { content: "−"; }

.faq-answer { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-soft); }

.faq-answer p:last-child { margin-bottom: 0; }


/* ------------------------------------------------------------ Hero 轮播 */
.hero-slide {
  position: absolute;
  inset: 0;
  background-color: #2a1e26;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 0;
}

.hero-slide.active { opacity: 1; }

.hero-slider .hero-mask { z-index: 1; }

.hero-slider .hero-inner { z-index: 2; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .25s, background .25s;
}

.hero-dots button.active { width: 30px; background: #fff; }

@media (max-width: 560px) {
  .hero-dots { bottom: 18px; }
}


/* ------------------------------------------------------------ 报价计算器 */
.quote-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: start;
}

.quote-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.quote-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 0 0 16px;
}

.quote-step h2 span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.type-card { position: relative; }

.type-card input { position: absolute; opacity: 0; pointer-events: none; }

.type-inner {
  display: block;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.type-inner strong { display: block; font-size: 15px; }

.type-inner em {
  display: block;
  font-style: normal;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--primary);
  margin: 4px 0 6px;
}

.type-inner small { display: block; font-size: 12.5px; color: var(--ink-light); line-height: 1.55; }

.type-card input:checked + .type-inner {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(224, 89, 138, .12);
}

.pages-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.pages-row input {
  width: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  text-align: center;
}

.pages-row .hint { flex: 1; min-width: 200px; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.feature-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

.feature-check input { accent-color: var(--primary); }

.feature-check em { font-style: normal; font-size: 12.5px; color: var(--ink-light); margin-left: 6px; }

.feature-check:hover { border-color: var(--primary); }

.quote-side { position: sticky; top: 100px; }

.quote-result {
  background: linear-gradient(160deg, #2a1e26, #5c2440 55%, #8e2f56);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 22px 46px rgba(120, 60, 90, .22);
}

.quote-result-label { font-size: 12.5px; letter-spacing: .2em; color: rgba(255, 255, 255, .55); margin: 0 0 6px; }

.quote-amount { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 0 0 6px; }

.quote-range { font-size: 13px; color: rgba(255, 255, 255, .65); margin: 0 0 18px; }

.quote-lines {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  max-height: 240px;
  overflow-y: auto;
}

.quote-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
}

.quote-lines li:last-child { color: #fff; font-weight: 700; }

.quote-lines em { font-style: normal; white-space: nowrap; }

.quote-result .btn { margin-bottom: 10px; }

.quote-result .btn-primary { background: #fff; color: #8e2f56; box-shadow: none; }

.quote-result .btn-primary:hover { background: #fff5f9; }

.quote-result .btn-outline {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  background: transparent;
}

.quote-result .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

.quote-tip { font-size: 12px; color: rgba(255, 255, 255, .45); margin: 14px 0 0; }

/* ------------------------------------------------------------ 团队 */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--primary), #f7a3c0);
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
}

.team-card h3 { font-size: 16px; margin: 0 0 4px; }

.team-role { font-size: 13px; color: var(--primary); margin: 0 0 10px; }

.team-bio { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* 导航里的报价按钮 */
.nav a.nav-cta {
  margin-left: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(224, 89, 138, .24);
}

.nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

.nav a.nav-cta.active::after { display: none; }


/* ------------------------------------------------------------ 旗下产品 */
.own-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.own-card {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.own-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 89, 138, .28);
}

.own-media {
  width: 42%;
  flex-shrink: 0;
  background: var(--surface-dark);
  overflow: hidden;
}

.own-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.own-card:hover .own-media img { transform: scale(1.04); }

.own-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; }

.own-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

.own-head h3 { font-size: 18px; margin: 0; }

.own-price {
  font-size: 12px;
  color: var(--primary);
  background: rgba(224, 89, 138, .08);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.own-tagline { font-size: 13.5px; color: var(--primary); margin: 0 0 8px; }

.own-summary {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.own-body .link-more { margin-top: auto; }

@media (max-width: 1100px) {
  .nav a { padding: 10px 11px; font-size: 14.5px; }
}

@media (max-width: 900px) {
  .own-grid { grid-template-columns: 1fr; }
  .own-card { flex-direction: column; }
  .own-media { width: 100%; aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .own-body { padding: 18px 20px; }
}


/* ------------------------------------------------------------ 科技感动效层 */
.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 999;
  background: linear-gradient(90deg, var(--primary), #ff9ec4 55%, #ffd7e6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(255, 158, 196, .55);
  pointer-events: none;
}

.fx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}

.fx-in { opacity: 1; transform: none; }

/* Hero 粒子层 + 网格 */
.hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  animation: gridDrift 24s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

/* 顶栏“在线”状态点 */
.topbar-live { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7af0a8;
  box-shadow: 0 0 0 0 rgba(122, 240, 168, .7);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 240, 168, .55); }
  70% { box-shadow: 0 0 0 7px rgba(122, 240, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 240, 168, 0); }
}

/* 卡片聚光 + 倾斜 */
.own-card,
.case-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.own-card::after,
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, .55), rgba(255, 160, 196, .18) 45%, transparent 70%);
  mix-blend-mode: screen;
}

.own-card:hover::after,
.case-card:hover::after { opacity: .55; }

/* 产品卡片封面轻微高光 */
.own-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}

.own-card:hover .own-media::before { opacity: 1; }

.own-media { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  .hero-grid { animation: none; }
  .live-dot { animation: none; }
  .own-card, .case-card { transform: none !important; }
}


/* ------------------------------------------------------------ 可复制文本 / 轻提示 */
.copy-text,
.ci-copy {
  font-style: normal;
  cursor: pointer;
  border-bottom: 1px dashed rgba(224, 89, 138, .45);
  transition: color .18s, border-color .18s;
}

.copy-text:hover,
.ci-copy:hover { color: var(--primary); border-color: var(--primary); }

.fx-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  z-index: 1000;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #fff;
  background: rgba(42, 30, 38, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 32px rgba(42, 30, 38, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.fx-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .fx-toast { bottom: 20px; font-size: 13px; padding: 10px 16px; }
}

/* ------------------------------------------------------------ 更新日志时间线 */
.log-block {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 10px 24px 22px;
}

.log-list li {
  position: relative;
  margin-left: 7px;
  padding: 14px 0 14px 24px;
  border-left: 1px dashed var(--line);
}

.log-list li:last-child { border-left-color: transparent; }

.log-list li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(224, 89, 138, .12);
}

.log-list time {
  display: block;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 3px;
}

.log-list span { font-size: 14.5px; color: var(--ink-soft); }

/* ------------------------------------------------------------ 服务范围 */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.scope-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}

.scope-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin: 0 0 16px;
}

.scope-card h3 i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.scope-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.scope-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
}

.scope-do { border-top: 3px solid var(--primary); }
.scope-do h3 i { background: var(--primary); }
.scope-do li::before { content: "✓"; color: var(--primary); }

.scope-dont { border-top: 3px solid var(--ink-light); }
.scope-dont h3 i { background: var(--ink-light); }
.scope-dont li::before { content: "×"; color: var(--ink-light); }

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


/* ------------------------------------------------------------ 最近更新横条 */
.update-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.update-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.update-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.update-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0 2px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.update-list::-webkit-scrollbar { display: none; }

.update-list li { white-space: nowrap; }

.update-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.update-list time { font-size: 12px; color: var(--primary); letter-spacing: .04em; }

.update-list strong { color: var(--ink); font-weight: 600; }

.update-list a:hover span { color: var(--primary); }

@media (max-width: 720px) {
  .update-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0 16px; }
  .update-list { width: 100%; gap: 20px; }
}

/* ------------------------------------------------------------ 图片灯箱 */
.fx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 16, 21, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.fx-lightbox.open { opacity: 1; pointer-events: auto; }

.fx-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transform: scale(.97);
  transition: transform .22s ease;
}

.fx-lightbox.open img { transform: scale(1); }

.fx-lb-btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
}

.fx-lb-btn:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }

.fx-lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.fx-lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.fx-lb-close { top: 22px; right: 26px; font-size: 17px; }

.fx-lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}

.fx-lightbox img { cursor: zoom-out; }

.gallery-main img { cursor: zoom-in; }

@media (max-width: 620px) {
  .fx-lb-prev { left: 10px; }
  .fx-lb-next { right: 10px; }
  .fx-lb-btn { width: 40px; height: 40px; }
}


/* ------------------------------------------------------------ 折叠导航（兼容各浏览器） */
.site-header.nav-compact .header-inner { height: 66px; }

.site-header.nav-compact .nav-toggle { display: flex; }

.site-header.nav-compact .nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-left: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 16px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(120, 60, 90, .12);
  display: none;
}

.site-header.nav-compact .nav.is-open { display: flex; }

.site-header.nav-compact .nav a { padding: 13px 10px; border-radius: var(--radius-sm); }

.site-header.nav-compact .nav a.active::after { display: none; }


/* ------------------------------------------------------------ 科技感强化 */
:root { --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }

/* 顶栏装饰线：粉色渐变流光 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 89, 138, .75), rgba(255, 190, 215, .9), rgba(224, 89, 138, .75), transparent);
  background-size: 220% 100%;
  animation: headerLine 9s linear infinite;
}

@keyframes headerLine {
  from { background-position: 0 0; }
  to { background-position: 220% 0; }
}

/* Hero 大标题：渐变字 + 流光 */
.hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #ffe3ee 40%, #ffb3d1 65%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSheen 8s ease-in-out infinite;
}

@keyframes titleSheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.hero-eyebrow {
  font-family: var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* 小标题：等宽字 + 前缀斜杠 */
.section-eyebrow {
  font-family: var(--mono);
  letter-spacing: .18em;
}

.section-eyebrow::before {
  content: "// ";
  color: rgba(224, 89, 138, .55);
}

/* 主按钮：扫光 */
.btn-primary { position: relative; overflow: hidden; }

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}

.btn-primary:hover::after { left: 115%; }

/* 产品卡：悬停发光 + 左上角科技角标 */
.own-card,
.case-card {
  transition: transform .22s ease, box-shadow .3s ease, border-color .25s ease;
}

.own-card:hover,
.case-card:hover {
  border-color: rgba(224, 89, 138, .45);
  box-shadow: 0 18px 42px rgba(224, 89, 138, .18), 0 0 0 1px rgba(224, 89, 138, .12) inset;
}

.own-card::before,
.case-card::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(224, 89, 138, .65);
  border-left: 1px solid rgba(224, 89, 138, .65);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
  pointer-events: none;
}

.own-card:hover::before,
.case-card:hover::before { opacity: 1; }

/* 参数表：等宽小标题 */
.specs-table th {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* 日期/编号类文字等宽，增强“系统感” */
.update-list time,
.log-list time,
.stat-num,
.own-price { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .site-header::after,
  .hero h1 { animation: none; }
}


/* ------------------------------------------------------------ 回到顶部 */
.fx-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(224, 89, 138, .35);
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(120, 60, 90, .16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}

.fx-top.show { opacity: 1; transform: none; pointer-events: auto; }

.fx-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 620px) {
  .fx-top { right: 16px; bottom: 18px; width: 40px; height: 40px; }
}


/* 分类筛选计数 */
.filter-tabs a em {
  font-style: normal;
  font-size: 11.5px;
  opacity: .65;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}


.cat-icon { margin-right: 5px; opacity: .85; }
.cat-icon i { font-size: 12px; line-height: 1; }


/* ------------------------------------------------------------ 图标排版 */
.btn i { margin-right: 6px; font-size: .92em; }

.btn i:last-child { margin-right: 0; margin-left: 6px; }

.btn-block i { font-size: .92em; }

.link-more i { margin-left: 4px; font-size: .86em; opacity: .85; }

.footer-col li i {
  width: 16px;
  margin-right: 8px;
  color: rgba(224, 89, 138, .85);
  text-align: center;
  font-size: 13px;
}

.ci-label i {
  width: 16px;
  margin-right: 7px;
  color: var(--primary);
  text-align: center;
  font-size: 13.5px;
}

.fx-top i { font-size: 15px; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-body-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid, .detail-grid, .contact-layout, .quote-layout { grid-template-columns: 1fr; gap: 34px; }
  .quote-side { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 820px) {
  .header-inner { height: 66px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(120, 60, 90, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 10px; border-radius: var(--radius-sm); }
  .nav a.active::after { display: none; }
  .section { padding: 62px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { padding: 26px 0; }
  .feature + .feature { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar-inner span:nth-child(3) { display: none; }
  .topbar-sep { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .case-cover { aspect-ratio: 16 / 10; }
  .hero { min-height: 460px; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .brand-text em { display: none; }
  .cta-actions .btn { width: 100%; }
  .detail-actions .btn { flex: 1; }
}

/* ============================================================
   亮色主题覆盖（粉色更淡、去掉暗色区块）
   ============================================================ */
:root {
  --ink: #34262d;
  --ink-soft: #6f5b66;
  --ink-light: #a3909c;
  --primary: #ef8fb3;
  --primary-dark: #d96a91;
  --btn: #e878a0;
  --btn-hover: #d9608a;
  --accent: #f8c6d8;
  --surface: #fffafc;
  --surface-dark: #fdf1f6;
  --line: #f8e4ec;
  --shadow: 0 18px 44px rgba(150, 90, 115, .08);
  --shadow-sm: 0 6px 18px rgba(150, 90, 115, .06);
}

body { background: #fffdfe; }

/* 按钮：保证白字对比度，同时整体不刺眼 */
.btn-primary {
  background: var(--btn);
  box-shadow: 0 10px 24px rgba(216, 120, 152, .22);
}

.btn-primary:hover { background: var(--btn-hover); box-shadow: 0 14px 30px rgba(216, 120, 152, .28); }

/* 亮色 Hero */
.hero {
  background: linear-gradient(135deg, #fff9fc 0%, #ffeef5 42%, #ffe2ee 100%);
  color: var(--ink);
  min-height: 520px;
}

.hero-mask {
  background: radial-gradient(circle at 78% 22%, rgba(255, 214, 231, .55), transparent 58%),
              radial-gradient(circle at 12% 86%, rgba(255, 235, 243, .75), transparent 55%);
  opacity: 1;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(224, 89, 138, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 89, 138, .07) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 74%);
}

.hero h1 {
  background: linear-gradient(100deg, #7d2f4d 0%, #d16b95 42%, #ef9dbb 68%, #7d2f4d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-eyebrow { color: var(--primary-dark); }

.hero-sub { color: var(--ink-soft); }

/* 亮色前按钮在浅底上要有边界 */
.hero .btn-light,
.hero .btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(150, 90, 115, .08);
}

.hero .btn-light:hover { border-color: var(--primary); color: var(--primary-dark); }

/* CTA 改亮色 */
.cta {
  background: linear-gradient(120deg, #fff4f9 0%, #ffe8f1 55%, #ffdcea 100%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 { color: var(--ink); }

.cta p { color: var(--ink-soft); }

.cta .btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cta .btn-light:hover { color: var(--primary-dark); border-color: var(--primary); }

/* 页脚改亮色 */
.site-footer {
  background: linear-gradient(180deg, #fffbfd, #fdf1f6);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-col h4 { color: var(--ink); }

.footer-col a { color: var(--ink-soft); }

.footer-col a:hover { color: var(--primary-dark); }

.footer-desc { color: var(--ink-light); }

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--ink-light);
}

.brand-light .brand-text strong { color: var(--ink); }

.brand-light .brand-text em { color: var(--ink-light); }

/* 顶栏装饰线更淡 */
.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(239, 143, 179, .6), rgba(255, 205, 225, .85), rgba(239, 143, 179, .6), transparent);
}

/* 卡片/区块底色提亮 */
.section-alt { background: #fffafc; }

.own-card, .case-card, .team-card, .scope-card, .quote-step, .panel { background: #fff; }

/* 汉堡按钮（SVG） */
.nav-toggle { color: var(--ink); }

.nav-toggle svg { display: block; width: 22px; height: 16px; }

.nav-toggle .bar {
  fill: currentColor;
  transform-origin: 11px 8px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-open .bar-1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .bar-2 { opacity: 0; }
.nav-toggle.is-open .bar-3 { transform: translateY(-6px) rotate(-45deg); }

.site-header.nav-compact .nav-toggle { display: inline-flex !important; }

/* 兜底：≤1024px 一律显示汉堡，不依赖 JS */
@media (max-width: 1024px) {
  .header-inner { height: 66px; }

  .nav-toggle { display: inline-flex !important; }

  .site-header .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(150, 90, 115, .12);
    display: none;
  }

  .site-header .nav.is-open { display: flex; }

  .site-header .nav a { padding: 13px 10px; border-radius: var(--radius-sm); }

  .site-header .nav a.active::after { display: none; }
}

/* 内页页头（列表/关于/联系）改亮色 */
.page-hero {
  background:
    radial-gradient(760px 320px at 82% 10%, rgba(239, 143, 179, .18), transparent 62%),
    linear-gradient(120deg, #fffbfd, #ffeef5 58%, #ffe4ef);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { color: var(--ink); }

.page-hero .section-eyebrow { color: var(--primary-dark); }

.page-hero-sub { color: var(--ink-soft); }

/* 关于配图占位（未上传图片时）改亮色 */
.about-ph {
  background:
    radial-gradient(420px 260px at 72% 18%, rgba(239, 143, 179, .28), transparent 62%),
    linear-gradient(140deg, #fff7fb, #ffdcea);
  color: var(--ink-soft);
}

.about-ph span { color: var(--primary-dark); }

.about-ph em { color: var(--ink-light); }

/* ------------------------------------------------------------ 全站背景 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity, .12);
  pointer-events: none;
}

/* 让背景能从大色块里透出来 */
body { background-color: #fffdfe; }

.site-header { background: rgba(255, 255, 255, .86); }

.section-alt { background: rgba(255, 250, 252, .66); }

.page-hero {
  background:
    radial-gradient(760px 320px at 82% 10%, rgba(239, 143, 179, .14), transparent 62%),
    linear-gradient(120deg, rgba(255, 251, 253, .88), rgba(255, 238, 245, .8) 58%, rgba(255, 228, 239, .7));
  backdrop-filter: blur(2px);
}

.cta {
  background: linear-gradient(120deg, rgba(255, 244, 249, .88), rgba(255, 232, 241, .82) 55%, rgba(255, 220, 234, .78));
  backdrop-filter: blur(2px);
}

.site-footer {
  background: linear-gradient(180deg, rgba(255, 251, 253, .9), rgba(253, 241, 246, .94));
  backdrop-filter: blur(2px);
}

.hero {
  background: linear-gradient(135deg, rgba(255, 249, 252, .92) 0%, rgba(255, 238, 245, .86) 42%, rgba(255, 226, 238, .8) 100%);
}

/* 卡片保持不透明白底，保证文字清晰 */
.own-card, .case-card, .team-card, .scope-card, .contact-card, .quote-step, .detail-info, .specs-block, .log-block, .panel {
  background: #fff;
}

/* ------------------------------------------------------------ 分类卡片 */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cat-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(224, 89, 138, .14);
}

.cat-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(239, 143, 179, .16);
  color: var(--primary-dark);
  font-size: 15px;
  flex-shrink: 0;
}

.cat-chip-text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }

.cat-chip-text strong { font-size: 14px; font-weight: 600; color: var(--ink); }

.cat-chip-text em { font-style: normal; font-size: 11.5px; color: var(--ink-light); }

.cat-chip.active {
  background: linear-gradient(135deg, var(--primary), #f6a9c4);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(224, 89, 138, .22);
}

.cat-chip.active .cat-chip-icon { background: rgba(255, 255, 255, .24); color: #fff; }

.cat-chip.active .cat-chip-text strong { color: #fff; }

.cat-chip.active .cat-chip-text em { color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------------ 站点图 1:1 */
.own-card { align-items: stretch; }

.own-media {
  width: 240px;
  flex: 0 0 240px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.own-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1100px) {
  .own-media { width: 200px; flex-basis: 200px; }
}

@media (max-width: 900px) {
  .own-media { width: 100%; flex-basis: auto; aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------ 团队头像 */
.team-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 12px 26px rgba(150, 90, 115, .18);
  padding: 0;
}

@media (max-width: 560px) {
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; }
  .team-avatar-img { width: 76px; height: 76px; }
}

/* 分类切换加载态 */
#sitePanel { transition: opacity .18s ease; }

#sitePanel.is-loading { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ 分类轮播（2 列 × 3 行，左右翻页） */
.cat-carousel {
  position: relative;
  margin: 0 0 30px;
}

.cat-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}

.cat-track::-webkit-scrollbar { display: none; }

.cat-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: 12px;
  align-content: start;
}

.cat-page .cat-chip {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.cat-page .cat-chip-text { min-width: 0; }

.cat-page .cat-chip-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 10px 22px rgba(150, 90, 115, .18);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}

.cat-prev { left: -13px; }

.cat-next { right: -13px; }

.cat-nav:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }

.cat-nav:disabled { opacity: .3; cursor: default; }

.cat-carousel[data-pages]:not([data-pages="1"]) .cat-nav { display: inline-flex; }

@media (max-width: 640px) {
  .cat-track { gap: 10px; }
  .cat-page { gap: 10px; }
  .cat-nav { width: 30px; height: 30px; font-size: 15px; }
  .cat-prev { left: -8px; }
  .cat-next { right: -8px; }
  .cat-page .cat-chip { padding: 9px 12px 9px 10px; gap: 9px; }
  .cat-page .cat-chip-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
  .cat-page .cat-chip-text strong { font-size: 13px; }
  .cat-page .cat-chip-text em { font-size: 10.5px; }
}
