/*
 * RHCEV V3 visual upgrade.
 * This file is intentionally layered after the V2 static fixes so V1/V2 remain
 * untouched and V3 can keep the original extracted assets while using a cleaner
 * modern presentation system.
 */
:root {
  --v3-orange: #ff6818;
  --v3-orange-dark: #e95008;
  --v3-ink: #111318;
  --v3-ink-soft: #2f3540;
  --v3-muted: #68717f;
  --v3-line: #e8edf2;
  --v3-bg: #f5f7fa;
  --v3-surface: #ffffff;
  --v3-green: #2eb67d;
  --v3-radius-lg: 32px;
  --v3-radius-md: 22px;
  --v3-shadow: 0 24px 70px rgba(17, 19, 24, 0.12);
  --v3-soft-shadow: 0 16px 44px rgba(17, 19, 24, 0.08);
}

body.v3-site {
  background: var(--v3-bg);
  color: var(--v3-ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.v3-site a {
  text-decoration: none;
}

body.v3-site #hds.nex_hd_common {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(14, 15, 18, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

body.v3-site .nex_tour_header {
  width: min(1180px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
}

body.v3-site .nex_tour_logo {
  height: 74px;
}

body.v3-site .nex_tour_logo img {
  max-height: 44px;
}

body.v3-site .nex_tour_nav ul li {
  height: 74px;
  line-height: 74px;
}

body.v3-site .nex_tour_nav ul li a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.v3-site .nex_tour_nav ul li a:hover {
  color: #fff !important;
}

body.v3-site .nex_tour_nav ul li a:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: -18px auto 0;
  background: var(--v3-orange);
  border-radius: 99px;
  transition: width 0.24s ease;
}

body.v3-site .nex_tour_nav ul li a:hover:after {
  width: 24px;
}

body.v3-site .nexfooter {
  margin-top: 0;
  background: #10131a;
}

body.v3-site .nexfooter:before,
body.v3-site .nexfooter:after {
  opacity: 0.28;
}

body.v3-site .nex_sidetool_bar_btm {
  display: none !important;
}

body.v3-home .nex_sliderbox {
  top: 0;
  min-height: 720px;
}

body.v3-home .flexslider,
body.v3-home .flexslider .bd li {
  min-height: 720px;
}

body.v3-home .nex_slider_inner {
  margin-top: 118px;
}

body.v3-home .nexxqbox_l,
body.v3-home .nexxqbox_l[style] {
  width: 440px !important;
  padding: 56px !important;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 42px 0 42px 0;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(18px);
}

body.v3-home .nexxqbox_l h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

body.v3-home .nexxqbox_l h1 em i {
  color: var(--v3-orange);
}

body.v3-home .nex_index_advancebox {
  margin-top: 0 !important;
  padding-top: 78px;
}

body.v3-home .nex_index_common_title h2,
body.v3-home .nex_index_common_title_d h2 {
  letter-spacing: 0.02em;
}

body.v3-home .nex_ict_mid {
  height: auto;
  line-height: 1.16;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.v3-home .nex_adv_btm_inner,
body.v3-home .nex_services_box ul li a {
  border: 1px solid rgba(17, 19, 24, 0.05);
  box-shadow: var(--v3-soft-shadow);
}

body.v3-home .nex_adv_top a,
body.v3-home .nex_wgl_layout_img,
body.v3-home .nex_news_img a {
  border-radius: 24px 0 24px 0;
}

.v3-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px 0 16px 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.v3-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.v3-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--v3-orange), #ff8d3b);
  box-shadow: 0 18px 38px rgba(255, 104, 24, 0.28);
}

.v3-btn-primary:hover {
  background: linear-gradient(135deg, #ff7d2e, var(--v3-orange-dark));
}

.v3-btn-secondary {
  color: var(--v3-ink) !important;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 19, 24, 0.08);
}

.v3-btn-secondary:hover {
  color: var(--v3-orange) !important;
  background: #fff;
  box-shadow: var(--v3-soft-shadow);
}

.v3-section-title {
  margin-bottom: 34px;
  text-align: center;
}

.v3-section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  color: var(--v3-ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.v3-section-title p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--v3-muted);
}

.v3-product .nex_quote_bg,
.v3-driver .nex_quote_bg {
  display: none;
}

.v3-product #wp,
.v3-driver #wp {
  width: 100%;
  background: var(--v3-bg);
}

.v3-product-page,
.v3-driver-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 104, 24, 0.10), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(46, 182, 125, 0.08), transparent 26%),
    var(--v3-bg);
}

.v3-product-hero,
.v3-driver-hero {
  position: relative;
  padding: 76px 0 56px;
  background: linear-gradient(135deg, #111318 0%, #171c24 48%, #262b31 100%);
  color: #fff;
}

.v3-product-hero:before,
.v3-driver-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 104, 24, 0.18) 0, transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 92px);
  pointer-events: none;
}

.v3-product-hero .v3-shell,
.v3-driver-hero .v3-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
}

.v3-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.v3-hero-copy h1 span {
  color: var(--v3-orange);
}

.v3-hero-copy p {
  margin: 24px 0 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
}

.v3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.v3-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.v3-hero-proof span {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 0 18px 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.v3-hero-proof strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 18px;
}

.v3-hero-media {
  position: relative;
}

.v3-hero-media img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 36px 0 36px 0;
  box-shadow: var(--v3-shadow);
}

.v3-hero-media:after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 160px;
  height: 160px;
  border-radius: 34px 0 34px 0;
  border: 1px solid rgba(255, 104, 24, 0.5);
  background: rgba(255, 104, 24, 0.12);
  z-index: -1;
}

.v3-product-nav-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.v3-product-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 26px 0 26px 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--v3-soft-shadow);
}

.v3-product-nav a {
  display: block;
  padding: 18px 14px;
  border: 1px solid var(--v3-line);
  border-radius: 18px 0 18px 0;
  color: var(--v3-ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  background: #fff;
}

.v3-product-nav a:hover,
.v3-product-nav a.is-active {
  color: #fff;
  background: var(--v3-orange);
  border-color: var(--v3-orange);
}

.v3-product-main {
  padding: 78px 0 86px;
}

.v3-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.v3-product-panel,
.v3-fit-panel,
.v3-benefit-panel,
.v3-support-card,
.v3-path-card {
  background: var(--v3-surface);
  border: 1px solid rgba(17, 19, 24, 0.06);
  border-radius: var(--v3-radius-lg) 0 var(--v3-radius-lg) 0;
  box-shadow: var(--v3-soft-shadow);
}

.v3-product-panel {
  padding: 42px;
}

.v3-product-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.v3-product-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--v3-muted);
}

.v3-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.v3-feature-item {
  padding: 22px;
  border-radius: 20px 0 20px 0;
  background: #f8fafc;
  border: 1px solid var(--v3-line);
}

.v3-feature-item b {
  display: block;
  margin-bottom: 8px;
  color: var(--v3-ink);
  font-size: 17px;
}

.v3-feature-item span {
  display: block;
  color: var(--v3-muted);
  font-size: 14px;
  line-height: 1.7;
}

.v3-fit-panel {
  padding: 30px;
}

.v3-fit-panel h3,
.v3-benefit-panel h3,
.v3-support-card h3,
.v3-path-card h3 {
  margin: 0 0 18px;
  color: var(--v3-ink);
  font-size: 22px;
  font-weight: 900;
}

.v3-fit-panel ul,
.v3-benefit-panel ul {
  margin: 0;
  padding: 0;
}

.v3-fit-panel li,
.v3-benefit-panel li {
  position: relative;
  list-style: none;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--v3-line);
  color: var(--v3-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.v3-fit-panel li:first-child,
.v3-benefit-panel li:first-child {
  border-top: 0;
}

.v3-fit-panel li:before,
.v3-benefit-panel li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v3-orange);
}

.v3-benefits {
  padding: 0 0 92px;
}

.v3-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v3-benefit-panel {
  padding: 30px;
}

.v3-product-compare {
  padding: 86px 0;
  background: #fff;
}

.v3-compare-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.v3-compare-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 24px 0 24px 0;
  color: var(--v3-ink);
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 19, 24, 0.06);
}

.v3-compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v3-soft-shadow);
}

.v3-compare-card.is-active {
  border-color: rgba(255, 104, 24, 0.55);
  box-shadow: 0 20px 50px rgba(255, 104, 24, 0.14);
}

.v3-compare-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.v3-compare-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.v3-compare-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 900;
}

.v3-compare-card p {
  margin: 0 0 18px;
  color: var(--v3-muted);
  font-size: 14px;
  line-height: 1.75;
}

.v3-compare-card span {
  margin-top: auto;
  color: var(--v3-orange);
  font-weight: 900;
}

.v3-driver-hero .v3-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1fr);
}

.v3-driver-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.v3-driver-stats div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px 0 22px 0;
  background: rgba(255, 255, 255, 0.07);
}

.v3-driver-stats strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.v3-driver-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.v3-timeline {
  padding: 86px 0 72px;
  background: var(--v3-bg);
}

.v3-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.v3-step {
  overflow: hidden;
  border-radius: 28px 0 28px 0;
  background: #fff;
  box-shadow: var(--v3-soft-shadow);
}

.v3-step img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.v3-step div {
  padding: 24px;
}

.v3-step em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--v3-orange);
  font-weight: 900;
}

.v3-step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.v3-step p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 14px;
  line-height: 1.75;
}

.v3-support {
  padding: 86px 0;
  background: #fff;
}

.v3-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v3-support-card {
  padding: 32px;
}

.v3-support-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 18px 0 18px 0;
  color: var(--v3-orange);
  background: rgba(255, 104, 24, 0.10);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.v3-support-card p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 15px;
  line-height: 1.8;
}

.v3-path {
  padding: 86px 0;
  color: #fff;
  background: linear-gradient(135deg, #111318, #1f242d);
}

.v3-path .v3-section-title h2,
.v3-path .v3-section-title p {
  color: #fff;
}

.v3-path .v3-section-title p {
  color: rgba(255, 255, 255, 0.72);
}

.v3-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v3-path-card {
  padding: 34px;
  color: var(--v3-ink);
}

.v3-path-card p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 15px;
  line-height: 1.85;
}

.v3-cta-band {
  padding: 36px 0;
  background: linear-gradient(135deg, var(--v3-orange), #ff8e3c);
}

.v3-cta-band .v3-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.v3-cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.v3-cta-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

@media (max-width: 1024px) {
  body.v3-site .nex_tour_header,
  .v3-shell {
    width: min(92vw, 720px);
  }

  .v3-product-hero .v3-shell,
  .v3-driver-hero .v3-shell,
  .v3-product-grid,
  .v3-product-nav,
  .v3-benefit-grid,
  .v3-compare-grid,
  .v3-step-grid,
  .v3-support-grid,
  .v3-path-grid {
    grid-template-columns: 1fr;
  }

  .v3-hero-media img {
    height: 360px;
  }

  .v3-compare-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  body.v3-site #hds.nex_hd_common {
    position: relative;
  }

  body.v3-site .nex_tour_header {
    width: 100% !important;
    padding: 14px 18px 12px !important;
  }

  body.v3-site .nex_tour_nav ul {
    gap: 20px;
  }

  .v3-shell {
    width: calc(100% - 36px);
  }

  .v3-product-hero,
  .v3-driver-hero {
    padding: 48px 0 42px;
  }

  body.v3-home .nex_sliderbox,
  body.v3-home .flexslider,
  body.v3-home .flexslider .bd li {
    min-height: 640px;
  }

  body.v3-home .nex_slider_inner {
    margin-top: 0;
    padding: 0 18px !important;
  }

  body.v3-home .nexxqbox_l,
  body.v3-home .nexxqbox_l[style] {
    left: 18px !important;
    right: 18px !important;
    bottom: 34px !important;
    width: auto !important;
    padding: 24px !important;
  }

  body.v3-home .nexxqbox_l h1 {
    font-size: 26px !important;
  }

  .v3-hero-copy h1 {
    font-size: 38px;
  }

  .v3-hero-copy p {
    font-size: 15px;
  }

  .v3-hero-proof,
  .v3-driver-stats,
  .v3-feature-grid {
    grid-template-columns: 1fr;
  }

  .v3-hero-media img {
    height: 300px;
    border-radius: 28px 0 28px 0;
  }

  .v3-product-panel {
    padding: 28px;
  }

  .v3-product-main,
  .v3-product-compare,
  .v3-timeline,
  .v3-support,
  .v3-path {
    padding: 58px 0;
  }

  .v3-product-nav-wrap {
    margin-top: 0;
    padding-top: 18px;
    background: var(--v3-bg);
  }

  .v3-product-nav {
    overflow-x: auto;
    display: flex;
    padding: 10px;
  }

  .v3-product-nav a {
    min-width: 142px;
  }

  .v3-step img {
    height: 210px;
  }

  .v3-cta-band .v3-shell {
    display: block;
  }

  .v3-cta-band .v3-btn {
    margin-top: 18px;
  }
}
