/* ============================================================
   极仓云官网 · 业务页深色组件
   仅补充 home-v2.css 未覆盖的业务类，配色复用其变量
   主色由 theme-red.css / theme-gold.css 控制
   ============================================================ */

/* ============== Page Hero ============== */
.pagehero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    radial-gradient(ellipse at 15% 20%, var(--accent-glow), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.pagehero__inner { max-width: 820px; }
.breadcrumb {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.pagehero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}
.pagehero p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 700px;
}

/* soft band */
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ============== Product split ============== */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product--rev .product__media { order: 2; }
.product__media {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-deep), var(--bg-card));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product__media-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}
.product__media-label { position: relative; text-align: center; color: #fff; padding: 24px; }
.product__media-label .big {
  display: block;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product__media-label span:not(.big) {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 2px;
}
.product__body h3 { margin: 0 0 18px; font-size: 26px; font-weight: 800; color: var(--text); }
.product__body p { color: var(--text-dim); line-height: 1.8; margin: 0 0 20px; font-size: 15px; }
.product__body b { color: var(--text); font-weight: 600; }
.product__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.product__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.product__list .tick { color: var(--accent); font-weight: 800; flex: none; }
.product__list b { color: var(--text); }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}

/* ============== Honors ============== */
.honors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.honor {
  padding: 28px 22px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.honor:hover { border-color: var(--accent); transform: translateY(-3px); }
.honor__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
}
.honor h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.honor p { margin: 0; font-size: 13px; color: var(--text-mute); }

/* ============== Mission & Vision ============== */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.mv__card::before {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 22px;
  border-radius: 2px;
}
.mv__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.mv__card p { margin: 0; color: var(--text-dim); line-height: 1.8; font-size: 15px; }

/* ============== Timeline ============== */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tl {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.tl:hover { border-color: var(--accent); transform: translateY(-3px); }
.tl__year { font-size: 22px; font-weight: 900; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.5px; }
.tl h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.tl p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ============== Contact ============== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card__icon {
  width: 44px; height: 44px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
}
.info-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.info-card p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ============== Form ============== */
.form { padding: 32px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 120px; }
.form__note { margin: 4px 0 0; font-size: 12px; color: var(--text-mute); }
.form__msg { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.form__msg.ok { color: #4ade80; }
.form__msg.err { color: #f87171; }

/* ============== Buttons variants ============== */
.btn--light { background: #fff; color: #111; }
.btn--light:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--outline:hover { background: var(--accent-soft); }

/* ============== News list (cms.js) ============== */
.news__item {
  display: block;
  padding: 26px 28px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.news__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.news__date { font-size: 13px; color: var(--text-mute); margin-bottom: 10px; letter-spacing: 0.5px; }
.news__item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--text); }
.news__item p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ============== Cases (cms.js) ============== */
.case { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.case__cover {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.case__cover--1 { background: linear-gradient(135deg, var(--accent-deep), var(--bg-soft)); }
.case__cover--2 { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.case__cover--3 { background: linear-gradient(135deg, #2a2a2a, var(--accent-deep)); }
.case__cover--img { background-size: cover; background-position: center; }
.case__cover__tag { background: rgba(0, 0, 0, 0.45); padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.case__body { padding: 22px 24px 26px; }
.case__cat {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.case__body h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--text); }
.case__body p { margin: 0 0 14px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.case__meta { display: grid; gap: 6px; font-size: 13px; color: var(--text-mute); }

/* ============== Article (news detail) ============== */
.news__hero {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.article__content { color: var(--text-dim); }
.article__content :where(h2, h3) { color: var(--text); margin: 28px 0 12px; }
.article__content p { margin: 0 0 16px; line-height: 1.9; }
.article__content img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }
.article__content a { color: var(--accent); }
.article__content ul, .article__content ol { padding-left: 22px; line-height: 1.8; }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .product, .mv, .contact { grid-template-columns: 1fr; }
  .product--rev .product__media { order: 0; }
  .honors { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .honors { grid-template-columns: 1fr; }
  .product__media { min-height: 240px; }
}

/* ============== Page Hero 后台横幅背景 ============== */
.pagehero.has-banner {
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}
.pagehero.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.78));
}
.pagehero.has-banner .pagehero__inner { position: relative; z-index: 1; }

/* ============== Product Catalog 产品中心 ============== */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 16px); }
.catalog__search { margin-bottom: 18px; }
.catalog__search input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog__search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.catalog__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.catalog__cats li {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dim);
  font-size: 15px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.catalog__cats li:hover { color: var(--text); background: var(--bg-card); }
.catalog__cats li.is-active { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.pcard__cover {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--bg-soft));
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}
.pcard__body { padding: 20px 22px 22px; }
.pcard__cat {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.pcard__body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.pcard__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__more { color: var(--accent); font-weight: 600; font-size: 13px; }
.catalog__empty { text-align: center; color: var(--text-mute); padding: 40px 0; }

/* 产品详情弹窗 */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-bg.hidden { display: none; }
.prod-modal {
  width: 720px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.prod-modal .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.prod-modal .close { cursor: pointer; font-size: 26px; color: var(--text-dim); line-height: 1; }
.prod-modal .close:hover { color: var(--accent); }
.prod-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin: 4px 0 14px;
}
.prod-main {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.prod-summary { color: var(--text-dim); font-size: 15px; line-height: 1.8; margin: 0 0 16px; }
.prod-desc { color: var(--text-dim); font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.prod-desc :where(h2, h3) { color: var(--text); margin: 20px 0 10px; }
.prod-desc img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }
.prod-desc a { color: var(--accent); }
.prod-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.prod-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: transform 0.3s;
}
.prod-gallery a:hover img { transform: scale(1.04); }
.prod-files h4 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.prod-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prod-files li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.prod-files li a:hover { border-color: var(--accent); color: var(--accent); }
.prod-files__size { color: var(--text-mute); font-size: 12px; }

@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog__side { position: static; }
  .catalog__cats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .prod-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .catalog__grid { grid-template-columns: 1fr; }
}
