/* ========== R&D Center pages (builds on about.css) ========== */

/* Banner */
.rd-hero {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 0 120px;
  gap: 16px;
}
.rd-hero.full { height: 360px; }
.rd-hero.detail { height: 320px; }
.rd-hero::before {
  content:''; position:absolute; inset:0;
  background: url('../../assets/ss.media.yidingyi.com.cn/site_res/223/20240625094624_Gdy6FOvc.jpg') center/cover;
  z-index: 0;
}
.rd-hero::after {
  content:''; position:absolute; inset:0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.rd-hero > * { position: relative; z-index: 2; }
.rd-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.73);
}
.rd-hero .breadcrumb .current { color: #fff; font-weight: 600; }
.rd-hero .breadcrumb i { width: 14px; height: 14px; stroke: rgba(255,255,255,0.6); }
.rd-hero h1 { color: #fff; font-size: 48px; font-weight: 800; }
.rd-hero.detail h1 { font-size: 40px; }
.rd-hero .sub-tag {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
}
.rd-hero .sub-tag .label {
  font-size: 14px; letter-spacing: 3px; color: rgba(255,255,255,0.85); font-weight: 600;
}
.rd-hero .sub-tag::after { content:''; display:block; width: 48px; height: 2px; background: #CC0000; }
.rd-hero .hero-tagline { color: rgba(255,255,255,0.8); font-size: 16px; }

/* Section utilities */
.rd-sec { padding: 96px 120px; }
.rd-sec.muted { background: #F7F8FA; }
.rd-sec.white { background: #FFFFFF; }
.rd-sec-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}
.rd-sec-header {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.rd-sec-header .pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(204,0,0,0.08);
  color: #CC0000; font-size: 12px; font-weight: 700; letter-spacing: 2px;
}
.rd-sec-header h2 { color: #1A1A1A; font-size: 36px; font-weight: 800; }
.rd-sec-header .sub { color: #6B7280; font-size: 15px; }

/* Stats grid */
.rd-stats-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.rd-stat {
  background: #F7F8FA; border-radius: 12px;
  padding: 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .3s, background .3s;
}
.rd-stat:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.05); border: 1px solid #E5E7EB; }
.rd-stat .v { color: #CC0000; font-size: 40px; font-weight: 800; line-height: 1; }
.rd-stat .l { color: #1A1A1A; font-size: 15px; font-weight: 600; }
.rd-stat .desc { color: #6B7280; font-size: 13px; }

/* Card grids */
.rd-card-grid {
  width: 100%; max-width: 1200px;
  display: grid; gap: 24px;
}
.rd-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rd-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.rd-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.rd-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.rd-card:hover { transform: translateY(-4px); border-color: #CC0000; box-shadow: 0 16px 32px rgba(0,0,0,.06); }
.rd-card .ic-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-card .ic-wrap.solid { background: #CC0000; color: #fff; }
.rd-card .ic-wrap i { width: 24px; height: 24px; }
.rd-card h3 { color: #1A1A1A; font-size: 20px; font-weight: 700; }
.rd-card p { color: #6B7280; font-size: 14px; line-height: 1.7; }
.rd-card .read-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #CC0000; font-size: 13px; font-weight: 600;
}

/* Honor card on overview */
.rd-honor-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.rd-honor {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: transform .3s, border-color .3s;
  text-decoration: none; color: inherit;
}
.rd-honor:hover { transform: translateY(-4px); border-color: #CC0000; }
.rd-honor.cta { background: #CC0000; color: #fff; border: none; }
.rd-honor.cta:hover { background: #a30000; }
.rd-honor .seal {
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-honor.cta .seal { background: rgba(255,255,255,0.18); color: #fff; }
.rd-honor .seal i { width: 24px; height: 24px; }
.rd-honor .name { color: #1A1A1A; font-size: 16px; font-weight: 700; }
.rd-honor.cta .name { color: #fff; }
.rd-honor .meta { color: #6B7280; font-size: 12px; }
.rd-honor.cta .meta { color: rgba(255,255,255,0.85); }

/* Two-col overview */
.rd-overview {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.rd-overview .ov-left { display: flex; flex-direction: column; gap: 20px; }
.rd-overview .ov-left .pill {
  align-self: flex-start;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
}
.rd-overview .ov-left h2 { color: #1A1A1A; font-size: 32px; font-weight: 800; line-height: 1.3; }
.rd-overview .ov-left .lead { color: #4B5563; font-size: 15px; line-height: 1.8; }
.rd-overview .ov-left .points { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.rd-overview .ov-left .points .row {
  display: flex; align-items: center; gap: 10px;
  color: #1A1A1A; font-size: 14px;
}
.rd-overview .ov-left .points .row i {
  width: 18px; height: 18px; color: #CC0000; flex-shrink: 0;
}
.rd-overview .ov-right {
  background: #F7F8FA; border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.rd-overview .ov-right h3 { color: #1A1A1A; font-size: 20px; font-weight: 700; }
.rd-overview .ov-right .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.rd-overview .ov-right .grid .cell {
  background: #fff; border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.rd-overview .ov-right .grid .cell .v { color: #CC0000; font-size: 24px; font-weight: 800; }
.rd-overview .ov-right .grid .cell .l { color: #6B7280; font-size: 13px; }

/* Architecture layered diagram */
.arch-diagram {
  width: 100%; max-width: 1200px;
  background: #F7F8FA; border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.arch-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 28px; border-radius: 8px;
  background: #fff; border: 1px solid #E5E7EB;
}
.arch-row.top { background: #CC0000; border-color: #CC0000; }
.arch-row.bottom { background: #1A1A2E; border-color: #1A1A2E; }
.arch-row .label-block { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.arch-row .label-block .lbl { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.arch-row .label-block .desc { font-size: 12px; color: #6B7280; }
.arch-row.top .label-block .lbl, .arch-row.bottom .label-block .lbl { color: #fff; }
.arch-row.top .label-block .desc, .arch-row.bottom .label-block .desc { color: rgba(255,255,255,0.85); }
.arch-row .chips { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.arch-row .chip {
  padding: 4px 12px; border-radius: 999px;
  background: #F3F4F6; color: #1A1A1A; font-size: 12px;
}
.arch-row.top .chip, .arch-row.bottom .chip { background: rgba(255,255,255,0.18); color: #fff; }

/* Process steps row */
.process-row {
  width: 100%; max-width: 1200px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.process-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.process-step .num {
  width: 56px; height: 56px; border-radius: 999px;
  background: #CC0000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.process-step h4 { color: #1A1A1A; font-size: 16px; font-weight: 700; }
.process-step p { color: #6B7280; font-size: 12px; }

/* Vertical timeline (history page) */
.rd-timeline {
  width: 100%; max-width: 980px;
  background: #fff; border-radius: 16px; padding: 56px 64px;
  display: flex; flex-direction: column; gap: 0;
}
.rd-tl-row { display: grid; grid-template-columns: 100px 32px 1fr; }
.rd-tl-year { padding-right: 24px; display: flex; align-items: flex-start; justify-content: flex-end; }
.rd-tl-year span { color: #CC0000; font-size: 28px; font-weight: 800; }
.rd-tl-track { position: relative; width: 32px; }
.rd-tl-track::before {
  content:''; position:absolute; top:0; bottom:0; left:15px;
  width: 2px; background: #E5E5E5;
}
.rd-tl-row.last .rd-tl-track::before { display: none; }
.rd-tl-dot {
  position: absolute; top: 8px; left: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #CC0000; box-shadow: 0 0 0 4px #FFDADA;
}
.rd-tl-content {
  padding: 0 0 36px 24px;
}
.rd-tl-row.last .rd-tl-content { padding-bottom: 0; }
.rd-tl-content h3 { color: #1A1A1A; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.rd-tl-content p { color: #6B7280; font-size: 14px; line-height: 1.8; }

/* Cert detail layout */
.cert-detail {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start;
}
.cert-card-big {
  background: #fff; border-radius: 16px; padding: 48px 32px;
  border: 1px solid #E5E7EB;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.cert-card-big .seal-large {
  width: 100px; height: 100px; border-radius: 999px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  display: inline-flex; align-items: center; justify-content: center;
}
.cert-card-big .seal-large i { width: 56px; height: 56px; }
.cert-card-big h3 { color: #1A1A1A; font-size: 22px; font-weight: 800; line-height: 1.4; }
.cert-card-big .meta-tag {
  padding: 4px 14px; border-radius: 999px;
  background: #CC0000; color: #fff; font-size: 12px; font-weight: 700;
}
.cert-card-big .yr { color: #6B7280; font-size: 13px; }

.cert-info {
  display: flex; flex-direction: column; gap: 24px;
}
.cert-info .pill {
  align-self: flex-start;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
}
.cert-info h2 { color: #1A1A1A; font-size: 30px; font-weight: 800; line-height: 1.3; }
.cert-info .lead { color: #4B5563; font-size: 15px; line-height: 1.85; }
.cert-info .info-table {
  background: #F7F8FA; border-radius: 12px;
  display: grid; grid-template-columns: 100px 1fr;
  gap: 8px 24px;
  padding: 24px;
}
.cert-info .info-table .key { color: #6B7280; font-size: 13px; padding: 6px 0; }
.cert-info .info-table .val { color: #1A1A1A; font-size: 14px; font-weight: 600; padding: 6px 0; }

/* Filter bar (查看全部资质) */
.rd-filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.rd-filter-tab {
  padding: 8px 22px; border-radius: 100px;
  background: #fff; color: #555;
  border: 1.5px solid #DDD;
  font-size: 14px; cursor: pointer;
  transition: all .25s;
}
.rd-filter-tab:hover { border-color: #CC0000; color: #CC0000; }
.rd-filter-tab.active {
  background: #CC0000; color: #fff; border-color: #CC0000;
  font-weight: 600;
}

.rd-cert-gallery {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.rd-cert-tile {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.rd-cert-tile:hover { transform: translateY(-3px); border-color: #CC0000; box-shadow: 0 12px 24px rgba(0,0,0,.05); }
.rd-cert-tile .level-pill {
  position: absolute; top: 16px; right: 16px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.rd-cert-tile .level-pill.national { background: #FEE2E2; color: #B91C1C; }
.rd-cert-tile .level-pill.provincial { background: #FFEDD5; color: #C2410C; }
.rd-cert-tile .level-pill.city { background: #DBEAFE; color: #1D4ED8; }
.rd-cert-tile .level-pill.industry { background: #DCFCE7; color: #166534; }
.rd-cert-tile .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-cert-tile .ic i { width: 18px; height: 18px; }
.rd-cert-tile h4 { color: #1A1A1A; font-size: 14px; font-weight: 700; line-height: 1.4; }
.rd-cert-tile .yr { color: #999; font-size: 12px; }

/* CTA bar */
.rd-cta-bar {
  width: 100%; max-width: 1200px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rd-cta-bar .left { display: flex; flex-direction: column; gap: 4px; }
.rd-cta-bar .left .t { color: #1A1A1A; font-size: 15px; font-weight: 700; }
.rd-cta-bar .left .s { color: #6B7280; font-size: 13px; }
.rd-cta-bar .actions { display: flex; gap: 12px; }
.rd-cta-bar .btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid #E5E7EB; color: #6B7280;
  font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.rd-cta-bar .btn-outline:hover { border-color: #CC0000; color: #CC0000; }
.rd-cta-bar .btn-red {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  background: #CC0000; color: #fff;
  font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.rd-cta-bar .btn-red:hover { background: #a30000; }

/* Responsive */
@media (max-width: 1024px) {
  .rd-hero { padding: 0 24px; height: 280px; }
  .rd-hero h1 { font-size: 32px; }
  .rd-hero.detail h1 { font-size: 28px; }
  .rd-sec { padding: 64px 24px; }
  .rd-stats-grid, .rd-card-grid.cols-4, .rd-cert-gallery { grid-template-columns: repeat(2, 1fr); }
  .rd-card-grid.cols-3, .rd-honor-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-overview, .cert-detail { grid-template-columns: 1fr; gap: 32px; }
  .arch-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
  .arch-row .label-block { width: 100%; }
  .process-row { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .process-step { flex-basis: calc(50% - 16px); }
  .rd-timeline { padding: 32px 24px; }
  .rd-tl-row { grid-template-columns: 70px 24px 1fr; }
  .rd-tl-year span { font-size: 22px; }
  .rd-cta-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .rd-stats-grid, .rd-card-grid.cols-3, .rd-card-grid.cols-4, .rd-card-grid.cols-2,
  .rd-honor-grid, .rd-cert-gallery { grid-template-columns: 1fr; }
  .process-step { flex-basis: 100%; }
}
