/* ==========================================================================
   上海依灵依数字科技有限公司 — 经典企业站（浅紫）
   浅底 / 白卡 / 圆角 / 紫色主色 —— 内容与功能不变
   ========================================================================== */

:root {
  --bg: #f7f3fb;
  --bg-soft: #faf6fd;
  --panel: #ffffff;
  --panel-hover: #fdf8ff;
  --line: #ece0f5;
  --line-2: #dcc7ec;
  --text: #3a2b45;
  --muted: #75647f;
  --dim: #9c8ba6;
  --accent: #a347c9;
  --accent-deep: #6a1b9a;
  --accent-soft: #f6ecfd;
  --accent-2: #6a1b9a;
  --deep: #2e1638;
  --mono: Consolas, "SFMono-Regular", Menlo, "Courier New", monospace;
  --container: 1200px;
  --header-h: 84px;
  --shadow: 0 6px 24px rgba(106, 27, 154, 0.06);
  --shadow-hover: 0 10px 30px rgba(106, 27, 154, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p { margin: 0; }

button, input, textarea, select { font-family: inherit; }

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

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: relative;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(106, 27, 154, 0.04);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent-deep);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.site-nav { margin-left: auto; }

.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 9px 6px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.25s, background-color 0.25s;
}

.nav-link svg { width: 12px; height: 12px; opacity: 0.7; transition: opacity 0.25s; }

.nav-link:hover { color: var(--accent); background: var(--accent-soft); }

.nav-link:hover svg { opacity: 1; }

.nav-link.active { color: var(--accent-deep); background: var(--accent-soft); font-weight: 500; }

.nav-link.active svg { opacity: 1; }

.auth-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.auth-link { font-size: 14px; color: var(--muted); transition: color 0.25s; white-space: nowrap; }

.auth-link:hover { color: var(--accent); }

.auth-link--primary { color: var(--accent); font-weight: 500; }

.auth-user {
  font-size: 13.5px;
  color: var(--accent-deep);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--accent-deep); }

.nav-toggle:hover { border-color: var(--accent); }

/* ---------------- 首页 Banner ---------------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: #2e1638;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #2e1638 url(../images/banner-home.jpg) center / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(46, 22, 56, 0.92) 0%, rgba(106, 27, 154, 0.72) 55%, rgba(163, 71, 201, 0.45) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 78px 24px 96px;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: #e9c8f7;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero h1 {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.35;
}

.hero h1 em { font-style: normal; color: #f0c9ff; }

.hero-desc {
  margin: 22px auto 0;
  max-width: 720px;
  color: #f0e3f8;
  font-size: 15.5px;
  line-height: 2;
}

.hero-actions { display: flex; gap: 16px; margin-top: 34px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 52px auto 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(46, 22, 56, 0.22);
  padding: 24px 8px;
}

.hero-stat {
  padding: 2px 14px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.hero-stat:last-child { border-right: 0; }

.hero-stat strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.15;
}

.hero-stat strong span { font-size: 15px; color: var(--accent); margin-left: 2px; }

.hero-stat p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------------- 内页 Banner ---------------- */
.page-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: #2e1638;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(46, 22, 56, 0.9) 0%, rgba(106, 27, 154, 0.72) 60%, rgba(163, 71, 201, 0.5) 100%);
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.page-banner .eyebrow { margin-bottom: 14px; color: #e9c8f7; }

.page-banner .eyebrow::before { background: rgba(255, 255, 255, 0.55); }

.page-banner h1 { font-size: 38px; letter-spacing: 2px; color: #ffffff; }

.page-banner p { margin: 14px auto 0; max-width: 640px; color: #f0e3f8; font-size: 14.5px; }

.page-banner.banner-about::before { background-image: url(../images/banner-about.jpg); }
.page-banner.banner-business::before { background-image: url(../images/banner-business.jpg); }
.page-banner.banner-research::before { background-image: url(../images/banner-research.jpg); }
.page-banner.banner-member::before { background-image: url(../images/banner-member.jpg); }
.page-banner.banner-careers::before { background-image: url(../images/banner-careers.jpg); }
.page-banner.banner-contact::before { background-image: url(../images/banner-contact.jpg); }

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

.section--tight { padding: 56px 0; }

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

.section-head {
  display: block;
  text-align: center;
  margin-bottom: 44px;
}

.section-head::before { content: none; }

.section-head-main { max-width: 780px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--accent-deep);
}

.section-sub { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--accent);
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #fff;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.link-more:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }

.link-more svg { width: 14px; height: 14px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(163, 71, 201, 0.25);
}

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

.btn-ghost {
  border-color: var(--line-2);
  color: var(--accent-deep);
  background: #ffffff;
}

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

.btn-line {
  border-color: var(--line-2);
  color: var(--muted);
  background: #ffffff;
}

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

.btn-block { width: 100%; }

/* 首页 Banner 内的按钮反色 */
.hero .btn-primary {
  background: #ffffff;
  color: var(--accent-deep);
  border-color: #ffffff;
  box-shadow: 0 8px 22px rgba(46, 22, 56, 0.25);
}

.hero .btn-primary:hover { background: #f6ecfd; border-color: #f6ecfd; color: var(--accent-deep); }

.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; }

/* ---------------- 网格布局 ---------------- */
.grid { display: grid; gap: 24px; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 通用卡片 ---------------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }

.card::after { content: none; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
  transition: background-color 0.3s;
}

.card:hover .card-icon { background: #f0e1fb; }

.card-icon svg { width: 23px; height: 23px; }

.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--accent-deep); }

.card p { color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------------- 公司简介 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #efe6f6;
}

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

.about-media:hover img { filter: brightness(1.03); }

.about-media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(46, 22, 56, 0.12);
}

.about-copy p { color: var(--muted); font-size: 14.5px; line-height: 2.05; }

.about-copy p + p { margin-top: 16px; }

.about-points { margin: 26px 0 0; display: grid; gap: 12px; }

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}

.about-points li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }

/* ---------------- 数据条 ---------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-bar-item { padding: 30px 22px; text-align: center; border-right: 1px solid var(--line); }

.stat-bar-item:last-child { border-right: 0; }

.stat-bar-item strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.15;
}

.stat-bar-item span { font-size: 13px; color: var(--muted); }

/* ---------------- 营业项目 ---------------- */
.service-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }

.service-no {
  font-size: 26px;
  font-weight: 600;
  color: #e3cdf2;
  line-height: 1;
  min-width: 42px;
  padding-top: 4px;
}

.service-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--accent-deep); }

.service-item .service-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-item p { color: var(--muted); font-size: 14px; }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }

.product-media { aspect-ratio: 16 / 10; overflow: hidden; background: #f3ecf9; }

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

.product-body { padding: 22px; }

.product-body h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--accent-deep); }

.product-body p { color: var(--muted); font-size: 13.8px; }

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

.case-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }

.case-media { aspect-ratio: 16 / 10; overflow: hidden; background: #f3ecf9; }

.case-media img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.45s; }

.case-card:hover .case-media img { filter: brightness(1.04); }

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

.case-tag {
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

.case-body h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--accent-deep); }

.case-body p { color: var(--muted); font-size: 13.8px; flex: 1; }

/* ---------------- 技术研发 ---------------- */
.tech-list { display: grid; gap: 14px; }

.tech-item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tech-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

.tech-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
}

.tech-item-icon svg { width: 19px; height: 19px; }

.tech-item h3 { font-size: 16px; margin-bottom: 6px; color: var(--accent-deep); }

.tech-item p { color: var(--muted); font-size: 13.8px; }

.timeline { border-left: 2px solid var(--line-2); padding-left: 24px; margin-top: 8px; }

.timeline-item { position: relative; padding-bottom: 24px; }

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
}

.timeline-year { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }

.timeline-item p { color: var(--muted); font-size: 14px; }

/* ---------------- 会员专栏 ---------------- */
.member-list { display: grid; gap: 14px; }

.member-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.member-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }

.member-no {
  font-size: 18px;
  font-weight: 600;
  color: #e3cdf2;
  letter-spacing: 1px;
}

.member-main h3 { font-size: 17px; margin-bottom: 6px; color: var(--accent-deep); }

.member-main p { color: var(--muted); font-size: 13.8px; }

.member-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }

.member-label {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
}

.member-label--soft { color: var(--muted); background: #f5f1f8; }

.member-download {
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.25s, color 0.25s;
}

.member-download:hover { background: var(--accent); color: #ffffff; }

.member-download svg { width: 15px; height: 15px; }

/* ---------------- 会员提示条 ---------------- */
.member-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.member-note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.member-note a { color: var(--accent); }

/* ---------------- 招聘 ---------------- */
.job-list { display: grid; gap: 12px; }

.job-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.3s;
}

.job-item:hover { border-color: var(--line-2); }

.job-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
}

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

.job-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 19px;
  color: var(--accent);
  line-height: 1;
}

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

.job-item summary:hover { color: var(--accent); }

.job-badge {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 8px;
  font-weight: 400;
}

.job-body { padding: 0 26px 24px; border-top: 1px solid var(--line); padding-top: 20px; }

.job-body h4 { font-size: 13.5px; color: var(--accent); margin: 16px 0 8px; letter-spacing: 0.5px; }

.job-body h4:first-child { margin-top: 0; }

.job-body ol, .job-body ul { margin: 0; padding-left: 20px; list-style: decimal; }

.job-body ul { list-style: disc; }

.job-body li { color: var(--muted); font-size: 14px; line-height: 1.95; }

.quote-band {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 26px 30px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 2;
}

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }

.contact-row:first-of-type { padding-top: 4px; }

.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-row-icon svg { width: 17px; height: 17px; }

.contact-row h4 { font-size: 12px; color: var(--dim); font-weight: 400; letter-spacing: 1px; margin-bottom: 2px; }

.contact-row p { font-size: 15px; color: var(--text); word-break: break-all; }

.contact-row p a:hover { color: var(--accent); }

.form-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field--full { grid-column: 1 / -1; }

.field label { font-size: 13px; color: var(--muted); }

.field label span { color: var(--accent); }

.field input, .field textarea, .field select {
  width: 100%;
  background: #fcfaff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.25s, background-color 0.25s;
}

.field textarea { resize: vertical; min-height: 118px; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(163, 71, 201, 0.1);
}

.field input::placeholder, .field textarea::placeholder { color: #b7a8c1; }

.form-tip { font-size: 12.5px; color: var(--dim); margin-top: 14px; }

.form-msg {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13.5px;
}

.form-msg.show { display: flex; }

.form-msg.ok { color: #2f7a4f; background: #eef8f1; border: 1px solid #cfe9d8; }

.form-msg.err { color: #b23b4e; background: #fdf0f2; border: 1px solid #f2cdd4; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-visual {
  position: relative;
  background: #2e1638 url(../images/banner-member.jpg) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 56px;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 22, 56, 0.55) 0%, rgba(46, 22, 56, 0.92) 100%);
}

.auth-visual-inner { position: relative; z-index: 2; max-width: 440px; }

.auth-visual-inner h2 { font-size: 28px; color: #ffffff; margin-bottom: 14px; }

.auth-visual-inner p { color: #e6d5ef; font-size: 14px; line-height: 1.95; }

.auth-visual-inner ul { margin-top: 24px; display: grid; gap: 12px; }

.auth-visual-inner li { display: flex; gap: 10px; align-items: flex-start; color: #f0e3f8; font-size: 14px; }

.auth-visual-inner li svg { width: 17px; height: 17px; color: #f0c9ff; flex-shrink: 0; margin-top: 4px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: var(--bg-soft);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(106, 27, 154, 0.09);
  padding: 38px 34px;
}

.auth-card h1 { font-size: 26px; margin-bottom: 8px; color: var(--accent-deep); }

.auth-card .auth-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }

.auth-card .field { margin-bottom: 18px; }

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-links a { color: var(--accent); }

.auth-extra {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.9;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--deep);
  color: #d8c9e3;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  padding: 56px 0 44px;
}

.footer-brand { display: flex; gap: 14px; align-items: flex-start; }

.footer-brand .brand-mark {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f0c9ff;
}

.footer-brand h3 { font-size: 18px; color: #ffffff; }

.footer-brand p { color: #b9a6c7; font-size: 13px; margin-top: 10px; max-width: 420px; }

.footer-contact { display: grid; gap: 12px; }

.footer-contact li { display: flex; gap: 12px; color: #c6b4d3; font-size: 13.5px; align-items: flex-start; }

.footer-contact svg { width: 15px; height: 15px; color: #d9a8f0; flex-shrink: 0; margin-top: 6px; }

.footer-contact a:hover { color: #f0c9ff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: #a48cb4;
  font-size: 12.5px;
}

.footer-bottom a:hover { color: #f0c9ff; }

.footer-info { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(46, 22, 56, 0.55);
}

.modal.show { display: flex; }

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(46, 22, 56, 0.3);
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.modal-icon svg { width: 24px; height: 24px; }

.modal-box h3 { font-size: 20px; margin-bottom: 10px; color: var(--accent-deep); }

.modal-box p { color: var(--muted); font-size: 14px; line-height: 1.85; }

.modal-actions { display: flex; gap: 12px; margin-top: 26px; }

.modal-actions .btn { flex: 1; padding: 12px 16px; font-size: 14px; }

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 13px 24px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  color: var(--accent-deep);
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(46, 22, 56, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }

/* ---------------- 内容排版 ---------------- */
.prose p { color: var(--muted); font-size: 14.5px; line-height: 2.05; }

.prose p + p { margin-top: 16px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.badge {
  font-size: 13px;
  color: var(--accent-deep);
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 5px 14px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

.split-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: #f3ecf9;
}

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

.figure-note { font-size: 12.5px; color: var(--dim); margin-top: 10px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: 0 16px 30px rgba(106, 27, 154, 0.1);
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 12px; font-size: 15px; }
  .auth-area { margin-left: 0; padding-left: 12px; }
  .brand-name { font-size: 15.5px; }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .about-grid, .split, .contact-grid, .auth-page { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-visual { display: none; }
  .auth-main { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-item:nth-child(2) { border-right: 0; }
  .stat-bar-item:nth-child(1), .stat-bar-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header-inner { gap: 8px; padding: 0 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-name { font-size: 13.5px; white-space: normal; max-width: 134px; line-height: 1.3; }
  .brand-sub { display: none; }
  .auth-link { font-size: 12.5px; }
  .auth-area { gap: 8px; padding-left: 8px; margin-left: 0; }
  .auth-user { max-width: 84px; font-size: 12px; }
  .nav-toggle { width: 38px; height: 34px; padding: 8px 9px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 56px 20px 56px; }
  .hero h1 { font-size: 26px; letter-spacing: 0.5px; }
  .hero-desc { font-size: 14px; margin-top: 16px; }
  .hero-actions { margin-top: 26px; gap: 12px; }
  .hero-stats { margin-top: 34px; padding: 18px 6px; }
  .hero-stat { padding: 2px 10px; }
  .hero-stat strong { font-size: 23px; }
  .hero-stat p { font-size: 11.5px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .section-title { font-size: 23px; }
  .page-banner { min-height: 230px; }
  .page-banner-inner { padding: 40px 20px; }
  .page-banner h1 { font-size: 26px; letter-spacing: 1px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .member-item { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .member-no { display: none; }
  .member-download { justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .auth-card { padding: 26px 20px; }
  .service-item { padding: 22px; gap: 14px; }
  .service-no { font-size: 20px; min-width: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card { padding: 24px 20px; }
  .stat-bar-item { padding: 22px 16px; }
  .stat-bar-item strong { font-size: 26px; }
  .auth-card h1 { font-size: 23px; }
  .modal-box { padding: 28px 22px 24px; }
  .quote-band { padding: 22px; }
}

@media (max-width: 380px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 12.5px; max-width: 104px; }
  .auth-area { gap: 6px; padding-left: 6px; }
  .auth-link { font-size: 12px; }
  .hero h1 { font-size: 23px; }
}

/* ---------------- 工程案例详情页 ---------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--muted); transition: color 0.25s; }

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span { color: var(--line-2); }

.breadcrumb em { font-style: normal; color: var(--accent-deep); }

.case-detail-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}

.case-detail-head .case-tag { margin-bottom: 14px; }

.case-detail-head h1 {
  font-size: 32px;
  color: var(--accent-deep);
  letter-spacing: 0.5px;
  max-width: 880px;
}

.case-detail-sub { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

.case-detail-figure {
  margin: 0 0 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f3ecf9;
}

.case-detail-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.case-detail-figure figcaption {
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--dim);
  background: #fff;
  border-top: 1px solid var(--line);
}

.case-section { margin-bottom: 30px; }

.case-section h2 {
  font-size: 20px;
  color: var(--accent-deep);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 14px;
  line-height: 1.4;
}

.case-section p { color: var(--muted); font-size: 14.5px; line-height: 2.05; }

.case-section p + p { margin-top: 12px; }

.case-scope-list { display: grid; gap: 10px; }

.case-scope-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.case-scope-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

.case-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  position: sticky;
  top: 24px;
}

.case-info-card h3 {
  font-size: 18px;
  color: var(--accent-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.case-info-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }

.case-info-row:last-of-type { border-bottom: 0; }

.case-info-row dt { font-size: 12px; color: var(--dim); letter-spacing: 1px; margin-bottom: 4px; }

.case-info-row dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.8; }

.case-info-card .btn { margin-top: 14px; }

.case-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--accent);
  transition: color 0.25s;
}

.case-more svg { width: 14px; height: 14px; transition: transform 0.25s; }

.case-more:hover { color: var(--accent-deep); }

.case-more:hover svg { transform: translateX(3px); }

@media (max-width: 980px) {
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-info-card { position: static; }
}

@media (max-width: 760px) {
  .case-detail-head { padding: 28px 0 26px; }
  .case-detail-head h1 { font-size: 24px; }
  .case-section h2 { font-size: 18px; }
  .case-info-card { padding: 22px 20px; }
}

/* ---------------- 联系我们：通栏布局与线性地图 ---------------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-strip-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.contact-strip-item:last-child { border-right: 0; }

.contact-strip-item .contact-row-icon { margin-bottom: 14px; }

.contact-strip-item h4 { font-size: 13px; color: var(--dim); font-weight: 400; letter-spacing: 1px; margin-bottom: 6px; }

.contact-strip-item p { font-size: 14px; color: var(--text); line-height: 1.9; word-break: break-all; }

.contact-strip-item p a:hover { color: var(--accent); }

.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-wrap { background: #fcf9fe; border-bottom: 1px solid var(--line); }

.map-wrap svg { display: block; width: 100%; height: auto; }

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
}

.map-address { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

.map-address svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 1180px) {
  .contact-strip { grid-template-columns: repeat(3, 1fr); }
  .contact-strip-item { border-bottom: 1px solid var(--line); }
  .contact-strip-item:nth-child(3n) { border-right: 0; }
  .contact-strip-item:nth-child(n+4) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip-item { border-right: 0; padding: 20px 22px; }
  .contact-strip-item:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .contact-strip-item:last-child { border-bottom: 0; }
  .map-footer { padding: 16px 18px; }
}

/* ---------------- 在线商城 ---------------- */
.page-banner.banner-shop::before {
  background-image: url(../images/banner-shop.jpg);
}

.shop-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.shop-top-main .section-title { font-size: 28px; }

.shop-top-main .section-sub { max-width: 680px; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--accent-deep);
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.cart-btn:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-hover); }

.cart-btn svg { width: 18px; height: 18px; color: var(--accent); }

.cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 11.5px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.cart-badge.is-zero { background: #c9b4d8; }

.shop-cats { display: grid; gap: 26px; }

.shop-cat-block {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shop-cat-cover {
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5eefb;
}

.shop-cat-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.shop-cat-cover:hover img { transform: scale(1.04); }

.shop-cat-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 22, 56, 0) 45%, rgba(46, 22, 56, 0.72) 100%);
}

.shop-cat-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 16px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(46, 22, 56, 0.45);
  color: #f0d9fd;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.shop-cat-title {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.shop-cat-main { display: flex; flex-direction: column; min-width: 0; }

.shop-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.shop-cat-head h3 { font-size: 19px; color: var(--accent-deep); }

.shop-cat-head p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 560px; }

.shop-more { flex-shrink: 0; padding: 8px 16px; font-size: 13px; white-space: nowrap; }

.shop-more svg { width: 14px; height: 14px; }

.category-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.category-products .product-body { padding: 11px 12px 14px; gap: 4px; }

.category-products .product-name { font-size: 13px; line-height: 1.5; }

.category-products .product-tagline { display: none; }

.category-products .product-tag { top: 8px; left: 8px; font-size: 10.5px; padding: 2px 8px; }

.category-products .product-price { font-size: 16px; padding-top: 8px; }

.category-products .product-price small { font-size: 11px; }

.category-products .product-actions { margin-top: 10px; gap: 6px; }

.category-products .product-actions .btn { padding: 7px 4px; font-size: 11.5px; gap: 4px; }

.product-list-head h1 { font-size: 30px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

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

.product-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.product-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5eefb; }

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

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

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(46, 22, 56, 0.72);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.product-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 20px; }

.product-name { font-size: 15.5px; line-height: 1.55; color: var(--accent-deep); }

.product-name a:hover { color: var(--accent); }

.product-tagline { font-size: 12.5px; color: var(--dim); line-height: 1.7; }

.product-price { margin-top: auto; padding-top: 12px; font-size: 20px; font-weight: 600; color: var(--accent-deep); }

.product-price small { font-size: 12px; font-weight: 400; color: var(--dim); margin-left: 6px; }

.product-actions { display: flex; gap: 8px; margin-top: 14px; }

.product-actions .btn { flex: 1; padding: 9px 10px; font-size: 13px; }

/* 商品详情 */
.product-detail-head .eyebrow { margin-bottom: 10px; }

.product-detail-head h1 { font-size: 30px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.product-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f5eefb; }

.product-figure figcaption { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

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

.service-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.service-cell svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.product-price-lg { font-size: 32px; font-weight: 600; color: var(--accent-deep); line-height: 1.2; }

.product-desc { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 2; }

.product-highlights { display: grid; gap: 9px; margin: 20px 0 6px; }

.product-highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.7; }

.product-highlights li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.qty-row { display: flex; align-items: center; gap: 14px; margin: 24px 0 6px; }

.qty-label { font-size: 13.5px; color: var(--muted); }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.qty-control button {
  width: 40px;
  height: 42px;
  border: 0;
  background: #fff;
  color: var(--accent-deep);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.qty-control button:hover { background: var(--accent-soft); }

.qty-control input {
  width: 58px;
  height: 42px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

.qty-control input:focus { outline: none; }

.qty-unit { font-size: 13.5px; color: var(--dim); }

.product-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

.product-cta .btn { flex: 1; min-width: 160px; padding: 14px 20px; font-size: 15px; }

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--dim);
}

.product-meta a { color: var(--accent); }

.product-meta em { font-style: normal; color: var(--text); font-family: var(--mono); font-size: 12.5px; }

.product-sections {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  margin-top: 56px;
  align-items: start;
}

.product-sec h2 {
  font-size: 20px;
  color: var(--accent-deep);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.spec-table th, .spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.spec-table th { width: 132px; background: #fcf9fe; color: var(--muted); font-weight: 400; }

.spec-table td { color: var(--text); }

.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.product-related { margin-top: 56px; }

.related-title { font-size: 22px; color: var(--accent-deep); margin-bottom: 22px; }

.shop-notfound {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shop-notfound h2 { font-size: 22px; color: var(--accent-deep); margin-bottom: 12px; }

.shop-notfound p { color: var(--muted); margin-bottom: 22px; }

/* 购物车抽屉 */
.cart-drawer { position: fixed; inset: 0; z-index: 150; display: none; }

.cart-drawer.show { display: block; }

.cart-mask { position: absolute; inset: 0; background: rgba(46, 22, 56, 0.45); }

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(46, 22, 56, 0.18);
  animation: cartIn 0.28s ease;
}

@keyframes cartIn {
  from { transform: translateX(30px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 { font-size: 17px; color: var(--accent-deep); }

.cart-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cart-close:hover { color: var(--accent); border-color: var(--accent); }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }

.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); font-size: 14px; }

.cart-empty .btn { margin-top: 18px; }

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 24px;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.cart-item h4 { font-size: 13.5px; color: var(--text); line-height: 1.55; margin-bottom: 4px; }

.cart-item-price { font-size: 13px; color: var(--accent-deep); }

.cart-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: #fff;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-qty button:hover { background: var(--accent-soft); }

.cart-qty span {
  min-width: 30px;
  text-align: center;
  font-size: 12.5px;
  line-height: 26px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cart-remove {
  align-self: start;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
}

.cart-remove:hover { color: #b23b4e; }

.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fcf9fe; }

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.cart-total-row strong { font-size: 22px; color: var(--accent-deep); font-weight: 600; }

.cart-note { margin-top: 12px; font-size: 11.5px; color: var(--dim); line-height: 1.7; text-align: center; }

body.cart-open { overflow: hidden; }

.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 13px 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--accent-deep);
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(46, 22, 56, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.shop-toast.show { opacity: 1; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-cat-block { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-sections { grid-template-columns: 1fr; gap: 32px; }
  .shop-cat-block { grid-template-columns: 1fr; }
  .shop-cat-cover { min-height: 220px; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
  .shop-top { align-items: flex-start; }
  .shop-top-main .section-title { font-size: 23px; }
  .shop-cat-block { padding: 16px; }
  .shop-cat-head { flex-direction: column; gap: 12px; }
  .category-products { grid-template-columns: 1fr; }
  .product-list-head h1 { font-size: 24px; }
  .product-detail-head h1 { font-size: 23px; }
  .product-price-lg { font-size: 27px; }
  .product-service { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-cta { flex-direction: column; }
  .product-cta .btn { min-width: 0; width: 100%; }
  .spec-table th { width: 104px; padding: 11px 12px; }
  .spec-table td { padding: 11px 12px; }
}
