/* JSCBSD public site */
:root {
  --brand: #153a58;
  --brand-strong: #0f2a40;
  --blue: #2269a9;
  --teal: #187a78;
  --amber: #b7791f;
  --red: #b94b2b;
  --ink: #17202a;
  --text: #273445;
  --muted: #627184;
  --soft: #f5f7fa;
  --soft-2: #eef3f7;
  --surface: #ffffff;
  --line: #dce4ec;
  --line-strong: #c7d3df;
  --shadow-sm: 0 1px 2px rgba(15, 42, 64, .06);
  --shadow: 0 10px 28px rgba(15, 42, 64, .08);
  --shadow-lg: 0 18px 44px rgba(15, 42, 64, .12);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  --header-h: 70px;
  --speed: .2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8fafc 0, var(--soft) 360px, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--speed), background var(--speed), border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}

a:hover {
  color: var(--teal);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-strong);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(220, 228, 236, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.topbar {
  background: var(--brand-strong);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar a {
  color: #fff;
  font-weight: 700;
}

.navbar {
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
}

.brand:hover {
  color: var(--brand);
}

.brand-logo,
.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.brand-name,
.brand strong {
  display: block;
  color: var(--brand-strong);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub,
.brand strong + span,
.brand > span > span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: #364558;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--brand-strong);
  background: #eaf2f8;
  outline: none;
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-toggle {
  display: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 76px 24px 70px;
  color: #fff;
  background-color: var(--brand-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 42, 64, .98) 0, rgba(15, 42, 64, .94) 54%, rgba(22, 62, 86, .86) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, .06) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 36px);
  background-repeat: no-repeat, repeat, repeat;
  background-size: cover, auto, auto;
  background-position: center, center, center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber), var(--red));
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 420px;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(34, 105, 169, .24);
  border-radius: var(--radius-sm);
  background: #edf5fb;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .11) !important;
  color: #fff !important;
}

.hero h1 {
  margin-top: 18px;
  color: #fff;
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero h1 .highlight {
  color: #f2c46d;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero .lead {
  margin-top: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.btn,
.hero-actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn:hover,
.hero-actions .btn:hover {
  color: var(--brand-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 42, 64, .10);
}

.btn.primary,
.btn.btn-primary,
.hero-actions .btn-primary {
  border-color: #c58a32;
  background: #d99a3c;
  color: #1c2430;
}

.btn.primary:hover,
.btn.btn-primary:hover,
.hero-actions .btn-primary:hover {
  color: #111827;
  background: #e2aa53;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: var(--radius);
  background: rgba(9, 28, 42, .78);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px;
}

.hero-panel h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
}

.panel-item dt {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 800;
}

.panel-item dd {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.panel-item a {
  color: #f2c46d;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 68px 24px;
}

.section + .section {
  border-top: 1px solid rgba(220, 228, 236, .65);
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-header p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.about-wrap,
.info-panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-wrap {
  max-width: 960px;
  padding: 28px 30px;
  border-left: 4px solid var(--teal);
}

.about-wrap p {
  max-width: 840px;
  color: #39485a;
}

.about-wrap p + p {
  margin-top: 10px;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-icon,
.icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #e7f1f7;
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.service-card:nth-child(2) .card-icon,
.service-card:nth-child(2) .icon {
  background: #f8eddc;
  color: #8a5819;
}

.service-card:nth-child(3) .card-icon,
.service-card:nth-child(3) .icon {
  background: #e5f3ef;
  color: #12645f;
}

.service-card:nth-child(4) .card-icon,
.service-card:nth-child(4) .icon {
  background: #f6e9e4;
  color: #91412b;
}

.card h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-action {
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.card-action:hover {
  color: var(--teal);
}

.service-card {
  border-top: 4px solid var(--blue);
}

.service-card:nth-child(2) {
  border-top-color: var(--amber);
}

.service-card:nth-child(3) {
  border-top-color: var(--teal);
}

.service-card:nth-child(4) {
  border-top-color: var(--red);
}

.portal-section {
  max-width: none;
  background: var(--soft-2);
}

.portal-section > .section-header,
.portal-section > .grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.portal-card {
  background: #fff;
}

.info-panel {
  padding: 24px;
}

.info-panel h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
}

.contact-grid,
.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid div,
.contact-list div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.contact-grid dt,
.contact-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-grid dd,
.contact-list dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.info-panel .actions,
.section > .actions {
  margin-top: 18px;
}

.page-main {
  min-height: calc(100vh - 160px);
}

.page-hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 58px 24px 42px;
  text-align: center;
  background:
    linear-gradient(180deg, #fff 0, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 180px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--muted);
}

.gradient-text {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-hero .qrcode-panel {
  margin: 26px auto 0;
}

.qrcode-panel {
  max-width: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.qrcode-panel img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.card .actions,
.page-hero .actions {
  margin-top: 18px;
}

.select-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.select-line select {
  min-width: 220px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.footer {
  background: var(--brand-strong);
  color: rgba(255, 255, 255, .75);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer a {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.footer a:hover {
  color: #f2c46d;
}

.animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.news-hero {
  min-height: 0;
  padding: 58px 24px 46px;
}

.news-hero .hero-copy {
  max-width: var(--max);
  margin: 0 auto;
}

.news-hero h1 {
  margin-top: 14px;
  font-size: 34px;
}

.news-hero .lead {
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 16px;
}

.article-body {
  line-height: 1.9;
  font-size: 16px;
}

.article-body p {
  margin: 16px 0;
}

@media (max-width: 1040px) {
  .brand-sub,
  .brand strong + span,
  .brand > span > span:last-child {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    max-width: 680px;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    display: none;
  }

  .navbar {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name,
  .brand strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 16px 14px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    justify-content: center;
  }

  .hero {
    min-height: 0;
    padding: 50px 18px 48px;
  }

  .hero::before {
    background-size: cover, auto, auto;
    background-position: center, center, center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lead {
    font-size: 16px;
  }

  .panel-grid,
  .grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 18px;
  }

  .section-header h2 {
    font-size: 25px;
  }

  .about-wrap,
  .info-panel,
  .card {
    padding: 20px;
  }

  .page-hero {
    padding: 44px 18px 34px;
  }

  .page-hero h1,
  .news-hero h1 {
    font-size: 28px;
  }

  .actions,
  .hero-actions {
    align-items: stretch;
  }

  .actions .btn,
  .hero-actions .btn,
  .select-line .btn,
  .select-line select {
    width: 100%;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .animate {
    opacity: 1;
    transform: none;
  }
}
