/* ==========================================================================
   拓冰网站优化 - 内页专属样式
   覆盖：服务详情 / 案例 / 知识 / 价格 / FAQ / 联系 / 团队 / 时间轴 / 方案
   ========================================================================== */

/* ---------- 服务详情：特性矩阵 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feat-card .f-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 0, 16, 0.1);
  border: 1px solid rgba(228, 0, 16, 0.3);
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.feat-card h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}

.feat-card p {
  font-size: 13.5px;
  color: var(--silver-2);
  line-height: 1.7;
}

.feat-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feat-card:hover .f-ico {
  background: rgba(228, 0, 16, 0.2);
  border-color: var(--red);
}

/* ---------- 服务流程时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px);
}

.tl-item {
  position: relative;
  padding-bottom: 36px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--carbon);
  border: 2px solid var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.tl-item .tl-no {
  font-size: 12px;
  color: var(--red-bright);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.tl-item h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.tl-item p {
  font-size: 13.5px;
  color: var(--silver-2);
  line-height: 1.7;
}

/* ---------- 双栏图文（左图右文 / 反向） ---------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split-row.reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--carbon-line);
  position: relative;
}

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

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 0, 16, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.split-body h3 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 16px;
}

.split-body p {
  font-size: 14.5px;
  color: var(--silver-2);
  line-height: 1.9;
  margin-bottom: 16px;
}

.split-body .check-list {
  margin-top: 20px;
}

.split-body .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
  margin-bottom: 12px;
}

.split-body .check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--red-bright);
}

/* ---------- 案例详情 ---------- */
.case-detail-head {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.case-detail-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
}

.case-detail-head .cat {
  display: inline-block;
  font-size: 12px;
  color: var(--red-bright);
  border: 1px solid rgba(228, 0, 16, 0.4);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-family: var(--font-en);
  font-weight: 600;
}

.case-detail-head h1 {
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 12px;
}

.case-detail-head .desc {
  font-size: 14.5px;
  color: var(--silver-2);
  line-height: 1.8;
  max-width: 800px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--carbon-line);
}

.case-stats .cs-item strong {
  display: block;
  font-size: 30px;
  color: var(--red-bright);
  font-family: var(--font-en);
  font-weight: 800;
  line-height: 1;
}

.case-stats .cs-item span {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ---------- 价格方案 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 36px 30px;
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  transform: scale(1.03);
}

.price-card .price-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-en);
}

.price-card h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.price-card .p-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-card .p-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--red-bright);
  font-family: var(--font-en);
  line-height: 1;
}

.price-card .p-unit {
  font-size: 14px;
  color: var(--silver-2);
  margin-bottom: 24px;
}

.price-card .p-feat {
  flex: 1;
  margin-bottom: 24px;
}

.price-card .p-feat li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--carbon-line);
}

.price-card .p-feat li svg {
  flex-shrink: 0;
  stroke: var(--red-bright);
}

.price-card .p-feat li.off {
  color: var(--muted);
  opacity: 0.5;
}

.price-card .p-feat li.off svg {
  stroke: var(--muted);
}

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(228, 0, 16, 0.4);
}

.faq-item.open {
  border-color: var(--red);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  gap: 16px;
}

.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--red-bright);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 13.5px;
  color: var(--silver-2);
  line-height: 1.8;
}

/* ---------- 联系表单 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 36px 32px;
}

.contact-info .ci-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--carbon-line);
}

.contact-info .ci-item:last-child {
  border-bottom: none;
}

.contact-info .ci-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 0, 16, 0.1);
  border: 1px solid rgba(228, 0, 16, 0.3);
  flex-shrink: 0;
}

.contact-info .ci-ico svg {
  stroke: var(--red-bright);
}

.contact-info .ci-text h4 {
  font-size: 14px;
  color: var(--silver-bright);
  margin-bottom: 4px;
}

.contact-info .ci-text p {
  font-size: 13.5px;
  color: var(--silver-2);
}

.contact-form {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 36px 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--silver);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  background: var(--carbon);
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--red);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-tip {
  margin-top: 14px;
  font-size: 13px;
  min-height: 20px;
}

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

.team-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s ease;
  text-align: center;
}

.team-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card .t-photo {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.team-card .t-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: all 0.4s ease;
}

.team-card:hover .t-photo img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.team-card .t-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 7, 9, 0.6) 100%);
}

.team-card .t-body {
  padding: 22px 20px;
}

.team-card .t-body h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
}

.team-card .t-role {
  font-size: 12px;
  color: var(--red-bright);
  font-family: var(--font-en);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-card .t-body p {
  font-size: 12.5px;
  color: var(--silver-2);
  line-height: 1.6;
}

/* ---------- 荣誉/资质网格 ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.honor-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 30px;
  text-align: center;
  transition: all 0.35s ease;
}

.honor-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.honor-card .h-ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 0, 16, 0.1);
  border: 1px solid rgba(228, 0, 16, 0.3);
  border-radius: 50%;
}

.honor-card .h-ico svg {
  stroke: var(--red-bright);
}

.honor-card h4 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.honor-card p {
  font-size: 13px;
  color: var(--silver-2);
}

/* ---------- 发展历程（横向） ---------- */
.history-line {
  position: relative;
  padding: 20px 0;
}

.history-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 24px);
}

.h-track {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.h-node {
  flex: 1;
  text-align: center;
  position: relative;
}

.h-node .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--carbon);
  border: 3px solid var(--red);
  margin: 0 auto 16px;
  box-shadow: 0 0 16px var(--red-glow);
  position: relative;
  z-index: 1;
}

.h-node .year {
  font-size: 22px;
  font-weight: 800;
  color: var(--red-bright);
  font-family: var(--font-en);
  margin-bottom: 8px;
}

.h-node p {
  font-size: 12.5px;
  color: var(--silver-2);
  line-height: 1.6;
  padding: 0 8px;
}

/* ---------- 知识/技术文章正文列表 ---------- */
.know-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.know-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.know-card .k-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--red-bright);
  border: 1px solid rgba(228, 0, 16, 0.3);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
  letter-spacing: 1px;
  font-family: var(--font-en);
}

.know-card h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
}

.know-card p {
  font-size: 13px;
  color: var(--silver-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.know-card .k-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.know-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ---------- 代码块（编程技术页） ---------- */
.code-block {
  background: var(--dark-bg);
  border: 1px solid var(--carbon-line);
  border-left: 3px solid var(--red);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver);
  overflow-x: auto;
}

.code-block .k {
  color: var(--red-bright);
}

.code-block .s {
  color: #7EC699;
}

.code-block .c {
  color: var(--muted);
  font-style: italic;
}

/* ---------- 数据指标行 ---------- */
.data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- CTA 小卡 ---------- */
.mini-cta {
  background: var(--carbon-texture), linear-gradient(135deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mini-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.mini-cta h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}

.mini-cta p {
  font-size: 14px;
  color: var(--silver-2);
  margin-bottom: 24px;
}

/* ---------- 合作伙伴网格 ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.partner-cell {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-sm);
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--silver-2);
  font-weight: 600;
  transition: all 0.3s ease;
}

.partner-cell:hover {
  border-color: var(--red);
  color: var(--silver-bright);
  transform: translateY(-3px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .feat-grid,
  .honor-grid,
  .know-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .case-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .split-row,
  .split-row.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split-row.reverse .split-media {
    order: 0;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: none;
  }
  .h-track {
    flex-direction: column;
    gap: 30px;
  }
  .history-line::before {
    display: none;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-detail-head {
    padding: 28px;
  }
  .case-detail-head h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .feat-grid,
  .honor-grid,
  .know-grid,
  .team-grid,
  .case-stats,
  .data-row {
    grid-template-columns: 1fr;
  }
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
