:root {
  --opc-blue: #1d4ed8;
  --opc-cyan: #0891b2;
  --opc-emerald: #059669;
  --opc-ink: #0f172a;
  --opc-muted: #64748b;
  --opc-line: rgba(148, 163, 184, 0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

.opc-nav-enhanced {
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body.opc-page-scrolled .opc-nav-enhanced {
  background-color: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.opc-nav-link {
  position: relative;
  transition: color 180ms ease, background-color 180ms ease;
}

.opc-nav-link:after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--opc-blue), var(--opc-cyan));
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.opc-nav-link:hover:after,
.opc-nav-link.is-opc-active:after {
  opacity: 1;
  transform: scaleX(1);
}

body.opc-home-page main {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f8fafc 100%);
}

body.opc-home-page {
  overflow-x: hidden;
}

.opc-home-hero {
  min-height: min(720px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #0f172a;
}

.opc-home-hero > div {
  width: 100%;
}

.opc-home-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(120deg, rgba(14, 165, 233, 0.18), transparent 40%, rgba(16, 185, 129, 0.1));
  background-size: 56px 56px, 56px 56px, 100% 100%;
  opacity: 0.42;
}

.opc-home-hero > img,
.opc-home-hero .opc-hero-bg {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.06);
  animation: opc-hero-zoom 20s ease-in-out infinite alternate;
}

.opc-home-hero .opc-hero-copy {
  position: relative;
}

.opc-home-hero .opc-hero-copy:before {
  content: "";
  position: absolute;
  left: 0;
  top: -22px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #34d399);
}

.opc-home-hero h1 {
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.opc-home-hero .opc-hero-note {
  border: 1px solid rgba(147, 197, 253, 0.28) !important;
  background: rgba(15, 23, 42, 0.42) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.opc-home-hero .opc-home-cta {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.opc-home-hero .opc-home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.opc-home-section {
  position: relative;
}

.opc-home-section:nth-of-type(3),
.opc-home-section:nth-of-type(5),
.opc-home-section:nth-of-type(7) {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.92));
}

.opc-home-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.opc-home-card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 38%, rgba(8, 145, 178, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
}

.opc-home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
}

.opc-home-card:hover:before {
  opacity: 1;
}

.opc-home-card > * {
  position: relative;
  z-index: 1;
}

.opc-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12) !important;
}

.opc-service-card {
  min-height: 100%;
}

.opc-service-card svg,
.opc-question-card svg {
  transition: transform 180ms ease;
}

.opc-service-card:hover svg,
.opc-question-card:hover svg {
  transform: translateY(-1px) scale(1.06);
}

.opc-honor-card img {
  cursor: zoom-in;
  transition: transform 240ms ease, filter 240ms ease;
}

.opc-honor-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.04);
}

.opc-news-card img {
  transition: transform 420ms ease, filter 420ms ease;
}

.opc-news-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04);
}

.opc-reveal-lite.is-visible {
  animation: opc-rise-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.opc-lightbox-target {
  cursor: zoom-in;
}

.opc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.opc-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.opc-lightbox__panel {
  width: min(1040px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 14px;
  transform: translateY(10px) scale(0.985);
  transition: transform 200ms ease;
}

.opc-lightbox.is-open .opc-lightbox__panel {
  transform: translateY(0) scale(1);
}

.opc-lightbox__image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.opc-lightbox__caption {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.opc-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 24px;
  line-height: 1;
  transition: background-color 180ms ease;
}

.opc-lightbox__close:hover {
  background: rgba(37, 99, 235, 0.86);
}

.opc-nav-accounting-primary {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

.opc-accounting-priority-module {
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 34%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.opc-accounting-priority-module__label {
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.opc-accounting-priority-module h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.18;
  font-weight: 900;
}

.opc-accounting-priority-module p {
  margin-top: 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.opc-accounting-priority-module__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.opc-accounting-priority-module__stats span {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  font-size: 13px;
}

.opc-accounting-priority-module__stats strong {
  display: block;
  color: #1d4ed8;
  font-size: 22px;
  line-height: 1.1;
}

.opc-accounting-priority-module__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.opc-accounting-footer-links {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.opc-accounting-footer-links h2 {
  color: #0f172a;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.opc-accounting-footer-links p {
  max-width: 760px;
  margin-top: 12px;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

.opc-accounting-footer-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.opc-accounting-footer-links__grid a {
  padding: 10px 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.opc-caishui-authority {
  width: min(1180px, calc(100vw - 40px));
  margin: 56px auto 72px;
  padding: 32px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.13), transparent 30%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.opc-caishui-authority__eyebrow {
  margin: 0 0 10px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.opc-caishui-authority h2 {
  max-width: 880px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
}

.opc-caishui-authority h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 900;
}

.opc-caishui-authority p,
.opc-caishui-authority li,
.opc-caishui-authority dd {
  color: #475569;
  font-size: 15px;
  line-height: 1.82;
}

.opc-caishui-authority__intro > p:last-child {
  max-width: 960px;
  margin-top: 14px;
}

.opc-caishui-authority__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.opc-caishui-authority__metrics article,
.opc-caishui-authority__grid article,
.opc-caishui-authority__block,
.opc-caishui-authority__links {
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.opc-caishui-authority__metrics article {
  padding: 18px;
}

.opc-caishui-authority__metrics strong {
  display: block;
  color: #1d4ed8;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
}

.opc-caishui-authority__metrics span {
  display: block;
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
}

.opc-caishui-authority__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.opc-caishui-authority__grid article,
.opc-caishui-authority__block,
.opc-caishui-authority__links {
  padding: 22px;
}

.opc-caishui-authority__grid b {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
}

.opc-caishui-authority__block,
.opc-caishui-authority__links {
  margin-top: 18px;
}

.opc-caishui-authority__block ol {
  margin: 0;
  padding-left: 20px;
}

.opc-caishui-authority__cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.opc-caishui-authority__cases article {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.opc-caishui-authority__cases b {
  color: #0f172a;
}

.opc-caishui-authority dl {
  margin: 0;
}

.opc-caishui-authority dt {
  margin-top: 14px;
  color: #0f172a;
  font-weight: 900;
}

.opc-caishui-authority dt:first-child {
  margin-top: 0;
}

.opc-caishui-authority dd {
  margin: 6px 0 0;
}

.opc-caishui-authority__links a {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

@keyframes opc-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes opc-hero-zoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.075);
  }
}

@media (max-width: 768px) {
  .opc-nav-link:after {
    display: none;
  }

  .opc-home-hero {
    min-height: auto;
  }

  .opc-home-hero * {
    min-width: 0;
    max-width: 100%;
  }

  body.opc-home-page main > section:first-of-type > div,
  .opc-home-hero > div {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.opc-home-page main > section:first-of-type h1,
  .opc-home-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    white-space: normal !important;
    font-size: 21px !important;
    line-height: 1.24 !important;
    text-wrap: auto !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body.opc-home-page main > section:first-of-type h1 br,
  .opc-home-hero h1 br {
    display: block !important;
  }

  .opc-home-hero p,
  .opc-home-hero .opc-hero-note {
    max-width: calc(100vw - 32px) !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal !important;
  }

  .opc-home-hero .opc-hero-note {
    padding: 14px !important;
  }

  .opc-home-hero .opc-home-cta {
    flex: 1 1 100%;
    justify-content: center;
  }

  .opc-accounting-priority-module {
    padding: 18px;
  }

  .opc-accounting-priority-module__stats {
    grid-template-columns: 1fr;
  }

  .opc-accounting-footer-links {
    width: min(100vw - 32px, 1180px);
    padding: 40px 0 54px;
  }

  .opc-caishui-authority {
    width: min(100vw - 32px, 1180px);
    margin: 36px auto 52px;
    padding: 20px;
    border-radius: 22px;
  }

  .opc-caishui-authority__metrics,
  .opc-caishui-authority__grid,
  .opc-caishui-authority__cases {
    grid-template-columns: 1fr;
  }

  body.opc-home-page main > section:first-of-type [class*="grid-cols-2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .opc-stat-card {
    padding: 20px !important;
  }

  .opc-home-hero:after {
    background-size: 38px 38px, 38px 38px, 100% 100%;
    opacity: 0.3;
  }

  .opc-lightbox {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .opc-home-hero > img,
  .opc-home-hero .opc-hero-bg,
  .opc-reveal-lite.is-visible {
    animation: none !important;
  }

  .opc-home-card,
  .opc-honor-card img,
  .opc-news-card img,
  .opc-lightbox,
  .opc-lightbox__panel {
    transition: none !important;
  }
}
