/* =========================================================
   上海瑞亿仪器有限公司 — 内页组件
   依赖 main.css（设计变量 / 顶部栏 / 头部 / 页脚 / 按钮）
   ========================================================= */

/* ---------- 内页头部区 ---------- */
.page-hero {
  padding-block: 46px 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 300px at 82% -40%, #EDF4FB 0%, rgba(237, 244, 251, 0) 72%),
    linear-gradient(180deg, #FBFCFE, #FFFFFF);
}
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumb a { transition: color .2s var(--ease); }
.crumb a:hover { color: var(--blue-700); }
.crumb span { opacity: .45; }
.crumb em { font-style: normal; color: var(--ink-2); }
.page-hero h1 {
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--navy-900);
}
.page-hero p {
  margin-top: 12px;
  max-width: 660px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 主体两栏 ---------- */
.page-body {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-block: 52px 88px;
}

/* ---------- 侧边栏 ---------- */
.side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.side-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-50);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy-900);
}
.side-card__head svg { color: var(--blue-600); }

.side-nav { padding: 8px; }
.side-nav__group + .side-nav__group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.side-nav__t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.side-nav__t:hover { background: var(--blue-50); color: var(--blue-700); }
.side-nav__t.is-parent-active { color: var(--blue-700); font-weight: 500; }
.side-nav__t svg { flex: 0 0 auto; opacity: .5; transition: transform .25s var(--ease); }
.side-nav__t[aria-expanded="true"] svg { transform: rotate(180deg); }
.side-nav__sub { display: none; padding: 2px 0 8px; }
.side-nav__sub.is-open { display: block; }
.side-nav__sub a {
  display: block;
  padding: 7px 10px 7px 16px;
  margin-left: 4px;
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.side-nav__sub a:hover { color: var(--blue-700); border-color: var(--blue-500); padding-left: 19px; }
.side-nav__sub a.is-active {
  color: var(--blue-700);
  font-weight: 500;
  border-color: var(--blue-600);
}

.side-contact {
  padding: 18px 18px 20px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.side-contact__row { display: flex; gap: 9px; }
.side-contact__row svg { flex: 0 0 auto; margin-top: 4px; color: var(--blue-500); }
.side-contact b { color: var(--ink-2); font-weight: 500; }

.side-cta {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--blue-700));
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.7;
}
.side-cta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.side-cta .btn { width: 100%; margin-top: 16px; height: 42px; font-size: 13.5px; }

/* ---------- 内容区通用 ---------- */
.page-main { min-width: 0; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 32px;
}
.panel + .panel { margin-top: 22px; }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.panel__head h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
}
.panel__head span { font-size: 13px; color: var(--muted); }

.empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

/* ---------- 列表行（新闻 / 下载） ---------- */
.rows { border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 8px;
  transition: background .22s var(--ease), padding-left .22s var(--ease);
}
.row-link:hover { background: var(--blue-50); padding-left: 16px; }
.row-link__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .22s var(--ease);
}
.row-link:hover .row-link__dot { background: var(--blue-600); }
.row-link__title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .22s var(--ease);
}
.row-link:hover .row-link__title { color: var(--blue-700); }
.row-link__date {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row-link__act {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--blue-700);
}

/* ---------- 产品列表（内页 3 列） ---------- */
.prod-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 产品详情 ---------- */
.pd {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}
.pd__stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .92;
}
.pd__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pd__info h1 {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.01em;
}
.pd__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 6px;
}
.pd__specs {
  margin-top: 22px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pd__spec {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  font-size: 14px;
}
.pd__spec dt { flex: 0 0 82px; color: var(--muted); }
.pd__spec dd { margin: 0; color: var(--navy-900); word-break: break-word; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pd__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 文章 ---------- */
.art-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.art-head h1 {
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.008em;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.art-meta em { font-style: normal; }
.art-body {
  padding-top: 26px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
  overflow-wrap: break-word;
  word-break: break-word;
}
.art-body p { margin: 0 0 16px; }
.art-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0 18px; }
.art-body table { max-width: 100%; border-collapse: collapse; font-size: 14px; }
.art-body td, .art-body th { border: 1px solid var(--line); padding: 8px 10px; }
.art-body a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.field > label i { font-style: normal; color: #C0392B; margin-right: 3px; }
.input, .textarea, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C7C8C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.textarea {
  height: 148px;
  padding: 12px 14px;
  line-height: 1.75;
  resize: vertical;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(42, 130, 204, .13);
}
.input::placeholder, .textarea::placeholder { color: #A9B6C2; }
.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  padding-top: 6px;
}
.form-tip { font-size: 12.5px; color: var(--muted); }

/* ---------- 留言卡片 ---------- */
.msg-list { display: grid; gap: 16px; }
.msg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.msg:hover { border-color: #CBD9E6; box-shadow: var(--shadow-xs); }
.msg__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.msg__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
}
.msg__who { flex: 1; min-width: 0; }
.msg__who b { display: block; font-size: 14px; color: var(--navy-900); font-weight: 600; }
.msg__who span { font-size: 12px; color: var(--muted); }
.msg__date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg__title { margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.msg__body { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.msg__reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-50);
  border-left: 2px solid var(--blue-500);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.msg__reply b { color: var(--blue-700); font-weight: 600; margin-right: 6px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.pager a, .pager .pg-now {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-2);
  background: #fff;
  transition: all .2s var(--ease);
}
.pager a:hover { border-color: var(--blue-600); color: var(--blue-700); }
.pager .pg-now { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pager .pg-off { color: #B7C3CE; border-style: dashed; }
.pager__info { margin-left: auto; font-variant-numeric: tabular-nums; }
.pager__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pager__jump input[type="text"] {
  width: 52px;
  height: 34px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.pager__jump input[type="text"]:focus { border-color: var(--blue-600); }
.pager__jump input[type="submit"] {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pager__jump input[type="submit"]:hover { border-color: var(--blue-600); color: var(--blue-700); }

/* ---------- 单页正文（关于 / 联系） ---------- */
.single { display: grid; gap: 24px; }
.single__cover {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 83, 143, .06), rgba(42, 130, 204, .02)),
    var(--blue-50);
  padding: 34px 32px;
  display: grid;
  gap: 12px;
}
.single__cover h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.01em;
}
.single__cover p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.single__body { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.single__body p { margin: 0 0 16px; }
.single__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0 18px; }
.single__body table { max-width: 100%; border-collapse: collapse; font-size: 14px; }
.single__body td, .single__body th { border: 1px solid var(--line); padding: 9px 12px; }
.single__body a { color: var(--blue-700); }

/* ---------- 联系信息卡 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact-item:hover { border-color: #CBD9E6; transform: translateY(-2px); }
.contact-item__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.contact-item__body { min-width: 0; }
.contact-item__body span {
  display: block;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 5px;
}
.contact-item__body b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-all;
  line-height: 1.5;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .page-body { grid-template-columns: 232px minmax(0, 1fr); gap: 32px; }
  .prod-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .page-hero { padding-block: 34px 30px; }
  .page-body { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 72px; }
  .side { position: static; order: 2; }
  .page-main { order: 1; }
  .panel { padding: 24px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .prod-grid--3 { grid-template-columns: 1fr; }
  .prod__thumb { aspect-ratio: 16 / 11; }
  .prod__thumb img { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .row-link { gap: 12px; padding: 15px 4px; }
  .row-link__title { font-size: 14.5px; }
  .row-link__date { display: none; }
  .pager { gap: 8px; }
  .pager a, .pager .pg-now { height: 32px; padding: 0 11px; }
  .pager__info { margin-left: 0; width: 100%; }
  .art-foot { flex-direction: column; align-items: flex-start; }
}
