/* PC services: static first paint; mobile continues using the existing sections. */
.rs-services, .rs-industries { display: none; }
@media (min-width: 769px) {
  body.rs-page-home:has(.rs-services) .part1,
  body.rs-page-home:has(.rs-services) .part2,
  body.rs-page-home:has(.rs-services) .part3 { display: none !important; }
  .rs-services, .rs-industries {
    --rs-service-navy: #153c5d;
    --rs-service-blue: #1769c6;
    --rs-service-text: #53667a;
    display: block;
    color: var(--rs-service-navy);
    font-family: "Microsoft YaHei", "Noto Sans CJK SC", "PingFang SC", sans-serif;
    text-align: left;
  }
  .rs-services *, .rs-industries * { box-sizing: border-box; font-family: inherit; }
  .rs-services h2, .rs-services h3, .rs-services p,
  .rs-industries h2, .rs-industries h3, .rs-industries h4, .rs-industries p { margin: 0; }
  .rs-services a, .rs-industries a { text-decoration: none; color: inherit; }
  .rs-services { background: #f5f7fa; padding: 56px 0 48px; }
  .rs-services__inner { width: calc(100% - 128px); max-width: 1440px; margin: 0 auto; }
  .rs-services__head, .rs-industries__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .rs-services .rs-services__eyebrow, .rs-industries .rs-services__eyebrow { color: #6f839b; font-size: 11px; font-weight: 600; letter-spacing: 3px; margin-bottom: 10px; }
  .rs-services h2, .rs-industries h2 { font-size: 34px; line-height: 1.4; font-weight: 700; }
  .rs-services .rs-services__lead { font-size: 16px; line-height: 1.8; color: var(--rs-service-text); margin-top: 8px; }
  .rs-services__all { flex-shrink: 0; color: var(--rs-service-blue); font-size: 15px; font-weight: 600; }
  .rs-services__all span { margin-left: 12px; }
  .rs-services__tabs { display: grid; grid-template-columns: repeat(7, 1fr); margin: 28px 0 22px; border: 1px solid #dce5ef; border-radius: 6px; overflow: hidden; background: #fff; }
  .rs-services__tab { min-width: 0; padding: 17px 8px; text-align: center; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--rs-service-navy); border-right: 1px solid #e2e8f0; }
  .rs-services__tab:last-child { border: 0; }
  .rs-services__tab:hover { background: #eaf1f8; }
  .rs-services__tab.is-active { background: var(--rs-service-navy); color: #fff; }
  .rs-services__panel { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 20px; height: 520px; }
  .rs-services__panel[hidden] { display: none !important; }
  .rs-services__feature { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: var(--rs-service-navy); }
  .rs-services__photo { height: 207px; flex-shrink: 0; background: #cbd7df url('/static/home/images/service-featured-20260914-hd.webp') center 35% / cover no-repeat; }
  #rs-service-panel-systems .rs-services__photo { background-image: url('/static/home/images/service-systems-20260914-hd.webp'); }
  #rs-service-panel-green .rs-services__photo { background-image: url('/static/home/images/service-green-20260914-hd.webp'); background-position: center 45%; }
  #rs-service-panel-products .rs-services__photo { background-image: url('/static/home/images/service-products-20260914-hd.webp'); background-position: center 45%; }
  #rs-service-panel-service .rs-services__photo { background-image: url('/static/home/images/service-service-20260914-hd.webp'); }
  #rs-service-panel-qualifications .rs-services__photo { background-image: url('/static/home/images/service-qualifications-20260914-hd.webp'); background-position: center 55%; }
  #rs-service-panel-laboratory .rs-services__photo { background-image: url('/static/home/images/service-laboratory-20260914-hd.webp'); }
  .rs-services__intro { flex: 1; display: flex; align-items: flex-start; flex-direction: column; padding: 24px 26px; color: #fff; }
  .rs-services .rs-services__feature-label { font-size: 12px; letter-spacing: 1px; color: #bacfdf; margin-bottom: 10px; }
  .rs-services__intro h3 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; font-weight: 600; color: #fff; }
  .rs-services__intro > p:not(.rs-services__feature-label) { color: #dbe7f1; font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
  .rs-services a.rs-services__consult { display: inline-flex; align-items: center; gap: 22px; padding: 11px 22px; margin-top: auto; border-radius: 4px; color: #fff; background: #e93726; font-size: 15px; font-weight: 600; }
  .rs-services__consult:hover { background: #c72b1e; color: #fff; }
  .rs-services__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 16px; }
  .rs-services__cards:has(> a:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-services__cards:has(> a:nth-child(3):last-child) { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .rs-services__cards:has(> a:nth-child(3):last-child) > a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 2px 16px; align-content: center; }
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > svg { grid-row: 1 / 4; margin: 4px 0 0; }
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > strong,
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > h3,
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > p { grid-column: 2; }
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > p { margin: 3px 0 0; }
  .rs-services__cards:has(> a:nth-child(3):last-child) > a > span { grid-column: 3; grid-row: 1 / 4; align-self: center; margin: 0; }
  .rs-home-service-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid #dce5ef; border-radius: 6px; padding: 22px; color: var(--rs-service-navy); transition: border-color .16s ease, box-shadow .16s ease; }
  .rs-home-service-card:hover { border-color: #91b4d9; box-shadow: 0 4px 16px #153c5d0b; color: var(--rs-service-navy); }
  .rs-home-service-card > svg { width: 33px; height: 33px; margin-bottom: 15px; color: var(--rs-service-blue); }
  .rs-home-service-card > strong { display: block; font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.4px; }
  .rs-home-service-card h3 { font-size: 16px; font-weight: 600; line-height: 1.6; margin-top: 6px; }
  .rs-home-service-card p { color: var(--rs-service-text); font-size: 13px; line-height: 1.8; margin: 8px 0 15px; }
  .rs-home-service-card__link { color: var(--rs-service-blue); font-size: 13px; margin-top: auto; }
  .rs-home-service-card__link > span { margin-left: 10px; }
  .rs-industries { background: #f7f8fa; padding: 50px 0 56px; border-top: 1px solid #e8ecf0; }
  .rs-industries h2 { font-size: 28px; }
  .rs-industries__head > p { font-size: 14px; color: var(--rs-service-text); }
  .rs-industries__layout { display: grid; grid-template-columns: 25% minmax(0, 1fr); margin-top: 28px; background: #fff; }
  .rs-industries__grid { display: flex; flex-direction: column; padding: 12px; gap: 4px; background: #f0f3f6; }
  .rs-industry-card { position: relative; min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 98px; padding: 20px 18px; color: var(--rs-service-navy); border-left: 3px solid transparent; }
  .rs-industry-card + .rs-industry-card::before { content: ""; position: absolute; top: -3px; left: 15px; right: 18px; height: 1px; background: #cdd7e1; pointer-events: none; }
  .rs-industry-card > svg { width: 26px; height: 26px; color: #64819a; }
  .rs-industry-card__name { font-size: 17px; line-height: 1.6; font-weight: 600; }
  .rs-industry-card:hover { background: #f5f7f9; }
  .rs-industry-card[aria-selected="true"] { background: var(--rs-service-navy); color: #fff; border-left-color: #2789d9; }
  .rs-industry-card[aria-selected="true"] > svg { color: #a7d6fa; }
  .rs-industries__stage { display: grid; min-width: 0; }
  /* All panels share one grid cell so switching never changes section height. */
  .rs-industry-detail { visibility: hidden; pointer-events: none; grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 104px; padding: 34px 38px 28px; background: #fff; }
  .rs-industry-detail:first-child, .rs-industry-detail:target { visibility: visible; pointer-events: auto; }
  .rs-industries__stage:has(.rs-industry-detail:target) .rs-industry-detail:not(:target),
  .rs-industries--interactive .rs-industry-detail { visibility: hidden; pointer-events: none; }
  .rs-industries--interactive .rs-industry-detail.is-active { visibility: visible; pointer-events: auto; }
  .rs-industry-detail > header { padding-bottom: 23px; border-bottom: 1px solid #e6ebef; margin-bottom: 24px; }
  .rs-industry-detail .rs-industry-detail__eyebrow { font-size: 11px; color: #6d8295; letter-spacing: 2px; margin-bottom: 8px; }
  .rs-industry-detail h3 { font-size: 28px; line-height: 1.4; font-weight: 600; }
  .rs-industry-detail .rs-industry-detail__summary { font-size: 14px; margin: 8px 0 0; color: #64788a; }
  .rs-industry-detail__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; }
  .rs-industry-detail h4 { font-size: 15px; margin-bottom: 10px; font-weight: 600; }
  .rs-industry-detail p { font-size: 14px; line-height: 1.9; color: var(--rs-service-text); margin-bottom: 22px; }
  .rs-industry-detail__links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 8px; }
  .rs-industry-detail__links a { display: inline-flex; flex: 0 1 auto; align-items: center; max-width: 100%; min-height: 42px; color: #205d93; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 9px 12px; font-size: 13px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
  .rs-industry-detail__links a:hover, .rs-industry-detail__links a:focus-visible { color: #114d82; background: #e5f0fb; border-color: #6d9dc9; text-decoration: underline; text-underline-offset: 3px; }
  .rs-industry-detail__case:hover { color: #0d70c4; text-decoration: underline; }
  .rs-industry-detail .rs-industry-detail__note { font-size: 12px; margin: 10px 0 22px; color: #6f8191; }
  .rs-industry-detail__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e6ebef; padding-top: 20px; margin-top: auto; }
  .rs-industry-detail__cases { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
  .rs-industry-detail__case-label { display: block; flex-basis: 100%; color: #718293; font-size: 11px; }
  .rs-industry-detail a.rs-industry-detail__case { display: inline-block; max-width: 100%; color: #245f97; padding: 5px 12px; background: #f4f6f8; border: 1px solid #d8e0e7; border-radius: 999px; font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .rs-industry-detail a.rs-industry-detail__case:hover, .rs-industry-detail a.rs-industry-detail__case:focus-visible { color: #154d7d; background: #e9f0f7; border-color: #92aec8; }
  .rs-industry-detail a.rs-industry-detail__consult { flex-shrink: 0; display: inline-flex; align-items: center; gap: 20px; padding: 12px 18px; background: #e93726; color: #fff; font-size: 14px; border-radius: 3px; }
  .rs-industry-detail a.rs-industry-detail__consult:hover { background: #c72b1e; }
  .rs-services :focus-visible, .rs-industries :focus-visible { outline: 3px solid #2580df; outline-offset: 3px; }
  .rs-services__tab:focus-visible { outline-offset: -4px; }
  #rs-services, #rs-industries { scroll-margin-top: 104px; }
  @media (max-width: 1200px) {
    .rs-industry-detail, #rs-services, #rs-industries { scroll-margin-top: 176px; }
    .rs-services__panel { grid-template-columns: 29% minmax(0, 1fr); gap: 16px; height: 570px; }
    .rs-services__cards { gap: 12px; }
    .rs-home-service-card { padding: 18px 15px; }
    .rs-home-service-card > strong { font-size: 21px; }
    .rs-home-service-card h3 { font-size: 15px; }
    .rs-services__intro { padding: 23px 20px; }
    .rs-services__intro h3 { font-size: 22px; }
    .rs-services__tab { font-size: 15px; }
    .rs-industries__grid { padding: 8px; }
    .rs-industry-card { padding: 18px 12px; gap: 8px; grid-template-columns: 23px minmax(0, 1fr); }
    .rs-industry-card__name { font-size: 15px; }
    .rs-industry-detail { padding: 28px 24px; }
    .rs-industry-detail__body { gap: 22px; }
  }
  @media (max-width: 950px) {
    .rs-services__panel { grid-template-columns: 28% minmax(0, 1fr); height: 740px; }
    .rs-services__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); }
    .rs-industries__head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .rs-industries__layout { grid-template-columns: 27% minmax(0, 1fr); }
    .rs-industry-card { grid-template-columns: 1fr; gap: 8px; }
    .rs-industry-detail__body { grid-template-columns: 1fr; gap: 0; }
    .rs-industry-detail__footer { align-items: flex-start; flex-direction: column; }
    .rs-services__tab { font-size: 13px; padding-inline: 3px; }
    .rs-services__photo { height: 230px; }
  }
  @media (prefers-reduced-motion: reduce) { .rs-home-service-card { transition: none; } }
}
