/* 艾科仪器 · 内页样式（配合 home-v3.css） */

.inner { min-height: 60vh; }

/* ---------- 页头 ---------- */

.page-head { padding: 54px 0 32px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 11.5px;
  color: var(--muted);
}

.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--signal); }
.crumbs span { color: #b3b7b0; }

.page-head h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.page-lead {
  max-width: 44em;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-body { padding: 38px 0 84px; }

/* ---------- 侧栏布局 ---------- */

.with-side {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.side {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.side::-webkit-scrollbar { width: 4px; }
.side::-webkit-scrollbar-thumb { background: var(--line); }

.side-title {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--signal);
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--graphite);
  transition: color 0.2s;
}

.side-nav a:hover { color: var(--ink); }

.side-nav a.is-active {
  color: var(--signal);
  font-weight: 600;
}

.side-nav a.is-active::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.side-card {
  margin-top: 26px;
  padding: 18px 18px 20px;
  background: var(--tile);
}

.side-card .rail-label { margin-bottom: 6px; }

.side-card a {
  display: block;
  font-family: var(--num);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.side-card p { margin-top: 6px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.side-card .side-more { margin-top: 12px; font-family: var(--font); font-size: 12px; color: var(--signal); }

/* ---------- 产品网格 ---------- */

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.p-grid .prod { padding: 14px 14px 18px; }

.p-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 分页 ---------- */

.pages { margin-top: 30px; }

.pages ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pages li { list-style: none; }

.pages li a,
.pages li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-family: var(--num);
  font-size: 12.5px;
  color: var(--graphite);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pages li a:hover { border-color: var(--signal); color: var(--signal); }

.pages li.active a {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pages li:first-child a,
.pages li:first-child span {
  border: 0;
  padding-left: 0;
  color: var(--muted);
}

/* ---------- 产品详情 ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: start;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 38px;
  background: var(--tile);
  border-top: 3px solid var(--ink);
}

.product-stage::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 84px;
  height: 3px;
  background: var(--signal);
}

.product-stage img {
  width: 100%;
  max-width: 520px;
  mix-blend-mode: multiply;
}

.product-info .prod-model {
  margin-top: 0;
  font-family: var(--num);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--signal);
}

.product-info h1 {
  margin-top: 8px;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.product-intro {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--graphite);
}

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.product-facts { margin-top: 30px; border-top: 1px solid var(--line); }

.product-facts div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.product-facts dt { color: var(--muted); }
.product-facts dd { color: var(--ink); }
.product-facts a:hover { color: var(--signal); }

.block { margin-top: 62px; padding-top: 30px; border-top: 1px solid var(--line); }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.block-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- 正文排版 ---------- */

.prose {
  max-width: 920px;
  font-size: 14px;
  line-height: 1.95;
  color: #3f4642;
  word-break: break-word;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.prose h1 { margin: 30px 0 14px; font-size: 26px; }
.prose h2 { margin: 30px 0 12px; font-size: 21px; }
.prose h3 { margin: 24px 0 10px; font-size: 17px; }
.prose h4 { margin: 20px 0 8px; font-size: 15px; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); }

.prose a { color: var(--signal); border-bottom: 1px solid rgba(224, 70, 27, 0.35); }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 4px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.prose table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.7;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--tile); color: var(--ink); font-weight: 600; }

.prose blockquote {
  margin: 18px 0;
  padding: 10px 18px;
  border-left: 2px solid var(--signal);
  background: var(--surface);
  color: var(--graphite);
}

/* ---------- 文章列表 ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.article-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.article-list h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s;
}

.article-list li:hover h3 { color: var(--signal); }

.article-list p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list time {
  font-family: var(--num);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.article-side .side-title { margin-bottom: 8px; }

/* ---------- 文章详情 ---------- */

.article-detail { max-width: 880px; margin-inline: auto; }

.article-head h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.article-meta a:hover { color: var(--signal); }

.article-detail .prose { max-width: none; margin-top: 28px; font-size: 15px; line-height: 2; }

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--graphite);
}

.article-nav a:hover { color: var(--signal); }
.article-nav span { color: var(--muted); }

/* ---------- 搜索 ---------- */

.search-form-big {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin-top: 24px;
  border-bottom: 2px solid var(--ink);
}

.search-form-big input {
  flex: 1;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.search-form-big button {
  flex: none;
  height: 38px;
  margin-bottom: 4px;
  padding: 0 18px;
  border: 0;
  background: var(--signal);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.search-form-big button:hover { background: var(--signal-deep); }

.search-result {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.search-result-media {
  display: grid;
  place-items: center;
  width: 150px;
  height: 118px;
  padding: 8px;
  background: var(--tile);
}

.search-result-media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.search-result h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.search-result h2 a:hover { color: var(--signal); }
.search-result p { margin-top: 7px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.search-result .prod-model { margin-top: 0; }

.search-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}

.search-empty strong { display: block; margin-bottom: 8px; font-size: 18px; color: var(--ink); }

/* ---------- 联系页 ---------- */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}

.info-list { border-top: 1px solid var(--line); }

.info-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt { font-size: 11.5px; color: var(--muted); }
.info-list dd { font-size: 14.5px; color: var(--ink); }
.info-list a:hover { color: var(--signal); }

.contact-aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.contact-qr {
  padding: 10px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.contact-qr img { width: 132px; height: 132px; }
.contact-qr figcaption { margin-top: 7px; font-size: 10.5px; color: var(--muted); }

.contact-note {
  padding: 18px 20px;
  background: var(--tile);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.contact-note strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink); }

/* ---------- 404 / 提示 ---------- */

.nf { padding: 76px 0 100px; }

.nf .nf-code {
  margin: 0;
  font-family: var(--num);
  font-size: clamp(88px, 14vw, 168px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--signal);
}

.nf h1 { margin-top: 12px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.nf p { max-width: 34em; margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--graphite); }
.nf .actions { margin-top: 28px; }

.msg-page { padding: 96px 0 120px; text-align: center; }
.msg-page .msg-title { font-size: 22px; font-weight: 700; line-height: 1.6; }
.msg-page p { margin-top: 12px; font-size: 13.5px; color: var(--graphite); }
.msg-page a { color: var(--signal); border-bottom: 1px solid rgba(224, 70, 27, 0.35); }

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .with-side { grid-template-columns: 1fr; gap: 30px; }
  .side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .article-side { display: none; }
  .side-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
  .side-card { max-width: 320px; }

  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid--4 { grid-template-columns: repeat(2, 1fr); }

  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .product-stage { width: 100%; max-width: 560px; margin-inline: auto; }

  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-side .side-nav { grid-template-columns: repeat(2, 1fr); }

  .contact-page { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .page-head { padding: 36px 0 22px; }
  .page-head h1 { font-size: 27px; }
  .page-body { padding: 28px 0 60px; }

  .crumbs { margin-bottom: 16px; font-size: 11px; }

  .side-nav { grid-template-columns: 1fr; }

  .p-grid,
  .p-grid--4 {
    display: block;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .p-grid .prod { padding: 14px 0; }

  .product-stage { padding: 24px; }
  .product-info h1 { font-size: 24px; }

  .block { margin-top: 44px; padding-top: 24px; }
  .block-head h2 { font-size: 19px; }

  .article-list li { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .article-list time { margin-top: 2px; }

  .article-detail .prose { font-size: 14.5px; }

  .search-result { grid-template-columns: 1fr; gap: 12px; }
  .search-result-media { width: 100%; height: 170px; }

  .nf { padding: 50px 0 70px; }
  .nf h1 { font-size: 26px; }

  /* 手机端：分类改为横滑标签 */
  .side-title { margin-bottom: 10px; }

  .side-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar { display: none; }

  .side-nav a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid var(--line);
    white-space: nowrap;
    font-size: 12px;
  }

  .side-nav a.is-active { border-color: var(--signal); }

  .side-nav a.is-active::after { display: none; }

  .side-card { display: none; }

  /* 手机端：产品卡改为左图右文 */
  .p-grid .prod {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .p-grid .prod-media {
    grid-row: 1 / 3;
    width: 104px;
    padding: 6px;
    aspect-ratio: 1 / 1;
  }

  .p-grid .prod-media img { width: 100%; height: 100%; }

  .p-grid .prod-model { align-self: end; margin-top: 0; }

  .p-grid .prod h3 { align-self: start; margin-top: 2px; font-size: 14px; }
}
