:root {
  color-scheme: light;
  --red: #b3191f;
  --deep-red: #8f1116;
  --blue: #1d5fa8;
  --dark-blue: #174c86;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --page: #f4f6f9;
  --soft-blue: #eef6ff;
  --green: #1b7f4f;
  --danger: #b3261e;
  --shadow: 0 10px 26px rgba(25, 54, 92, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.utility-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e4e7ec;
  color: #5f6b7a;
  font-size: 13px;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(135deg, rgba(29, 95, 168, 0.08) 0 2px, transparent 2px 18px);
}

.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.25);
  font-size: 28px;
  font-weight: 700;
}

.site-brand h1 {
  margin: 0;
  color: var(--deep-red);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 800;
}

.site-brand p {
  margin: 7px 0 0;
  color: #47617e;
  font-size: 14px;
}

.header-contact {
  min-width: 206px;
  border-left: 4px solid var(--red);
  padding: 10px 0 10px 16px;
  text-align: left;
}

.header-contact span,
.header-contact strong {
  display: block;
}

.header-contact span {
  color: var(--muted);
  font-size: 13px;
}

.header-contact strong {
  margin-top: 6px;
  color: var(--dark-blue);
  font-size: 18px;
}

.site-nav {
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(29, 95, 168, 0.22);
}

.nav-inner {
  min-height: 48px;
  display: flex;
  align-items: stretch;
}

.nav-inner a {
  min-width: 112px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: var(--dark-blue);
}

.page-main {
  padding: 24px 0 30px;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}

.hero-news {
  min-height: 478px;
  border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(23, 76, 134, 0.9), rgba(29, 95, 168, 0.74)),
    url("data:image/svg+xml,%3Csvg width='900' height='520' viewBox='0 0 900 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18'%3E%3Cpath d='M92 120h705M92 190h705M92 260h705M92 330h705M92 400h705'/%3E%3Cpath d='M158 70v385M302 70v385M446 70v385M590 70v385M734 70v385'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.14'%3E%3Crect x='112' y='92' width='170' height='96' rx='3'/%3E%3Crect x='352' y='184' width='300' height='116' rx='3'/%3E%3Crect x='166' y='326' width='220' height='84' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  padding: 36px;
  color: #ffffff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-title p {
  width: 94px;
  margin: 0 0 20px;
  border-left: 5px solid #ffffff;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 700;
}

.hero-title h2 {
  max-width: 620px;
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-links a {
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.payment-card,
.notice-panel,
.guide-panel,
.service-section,
.process-section,
.reminder-panel,
.faq-panel,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.payment-form,
.qr-panel {
  padding: 24px;
}

.section-heading {
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}

.section-heading p {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 7px 0 0;
  color: var(--dark-blue);
  font-size: 24px;
  letter-spacing: 0;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid #cfd8e3;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.12);
}

.form-error {
  min-height: 21px;
  margin: -2px 0 12px;
  color: var(--danger);
  font-size: 14px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  width: 100%;
  color: #ffffff;
  background: var(--red);
}

.primary-button:hover {
  background: var(--deep-red);
}

.secondary-button {
  color: var(--dark-blue);
  background: var(--soft-blue);
  border: 1px solid #cfe0f2;
}

.primary-button:disabled {
  cursor: default;
  background: var(--green);
  opacity: 0.9;
}

.summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-box div {
  min-height: 72px;
  border: 1px solid var(--line);
  padding: 11px;
  background: #f8fbff;
}

.summary-full {
  grid-column: 1 / -1;
}

.summary-box span,
.summary-box strong {
  display: block;
}

.summary-box span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.summary-box strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.pay-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pay-qr-card {
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 12px;
}

.pay-qr-card h3 {
  margin: 0 0 10px;
  color: var(--dark-blue);
  font-size: 16px;
  text-align: center;
}

.qr-wrap {
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 12px;
  background: #ffffff;
}

.qr-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-fallback {
  position: absolute;
  inset: 12px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.qr-fallback span {
  border-radius: 2px;
  background: #172033;
}

.qr-fallback span:nth-child(2n) {
  opacity: 0.18;
}

.qr-fallback span:nth-child(5n + 1),
.qr-fallback span:nth-child(7),
.qr-fallback span:nth-child(19) {
  outline: 8px solid #172033;
  outline-offset: -13px;
  background: transparent;
}

.qr-note {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

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

.action-row .primary-button {
  width: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-top: 20px;
}

.notice-panel,
.guide-panel {
  padding: 22px 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
}

.panel-title h2 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 22px;
}

.panel-title a {
  color: var(--muted);
  font-size: 14px;
}

.panel-title span {
  color: var(--muted);
  font-size: 13px;
}

.notice-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.notice-list li {
  min-height: 42px;
  border-bottom: 1px dashed #d7dee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notice-list a {
  overflow: hidden;
  color: #26374d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  display: inline-block;
  vertical-align: middle;
  background: var(--red);
}

.notice-list time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.guide-panel ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: #344054;
  line-height: 2;
}

.service-section,
.process-section {
  margin-top: 20px;
  padding: 22px 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.service-card {
  min-height: 128px;
  border: 1px solid #d7e4f2;
  border-top: 4px solid var(--blue);
  background: #fbfdff;
  padding: 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.service-card strong,
.service-card span {
  display: block;
}

.service-card strong {
  color: var(--dark-blue);
  font-size: 18px;
}

.service-card span {
  margin-top: 12px;
  color: #53657a;
  font-size: 14px;
  line-height: 1.7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
}

.process-list div {
  min-height: 150px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 20px;
}

.process-list div:last-child {
  border-right: 0;
}

.process-list b,
.process-list strong,
.process-list span {
  display: block;
}

.process-list b {
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}

.process-list strong {
  margin-top: 14px;
  color: var(--dark-blue);
  font-size: 17px;
}

.process-list span {
  margin-top: 10px;
  color: #53657a;
  font-size: 14px;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 20px;
}

.reminder-panel,
.faq-panel,
.contact-panel {
  padding: 22px 24px;
}

.reminder-panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #344054;
  line-height: 2;
}

.faq-panel dl {
  margin: 14px 0 0;
}

.faq-panel dt {
  color: var(--dark-blue);
  font-weight: 700;
}

.faq-panel dd {
  margin: 6px 0 14px;
  color: #53657a;
  line-height: 1.7;
}

.contact-panel p {
  margin: 14px 0 16px;
  color: #53657a;
  line-height: 1.8;
}

.contact-row {
  min-height: 52px;
  border-top: 1px dashed #d7dee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contact-row span {
  color: var(--muted);
  font-size: 14px;
}

.contact-row strong {
  color: var(--dark-blue);
  font-size: 15px;
  text-align: right;
}

.site-footer {
  margin-top: 10px;
  border-top: 4px solid var(--blue);
  background: #ffffff;
  color: #667085;
  font-size: 13px;
}

.site-footer .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .header-inner,
  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .header-inner {
    padding: 18px 0;
  }

  .site-brand h1 {
    font-size: 28px;
  }

  .header-contact {
    border-left: 0;
    border-top: 3px solid var(--red);
    padding: 12px 0 0;
  }

  .nav-inner {
    overflow-x: auto;
  }

  .portal-hero,
  .content-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-news {
    min-height: 360px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list div:nth-child(2) {
    border-right: 0;
  }

  .process-list div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    background: #eef2f7;
  }

  .container {
    width: min(100% - 16px, 560px);
  }

  .utility-bar {
    font-size: 12px;
  }

  .utility-inner {
    min-height: auto;
    gap: 4px;
    padding: 7px 0;
  }

  .site-emblem {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    font-size: 21px;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.24);
  }

  .site-header {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
      repeating-linear-gradient(135deg, rgba(29, 95, 168, 0.07) 0 2px, transparent 2px 16px);
  }

  .header-inner {
    gap: 12px;
    min-height: auto;
    padding: 14px 0;
  }

  .site-brand {
    gap: 10px;
    width: 100%;
  }

  .site-brand h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .site-brand p {
    margin-top: 4px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .header-contact {
    width: 100%;
    min-width: 0;
    background: #fff7f7;
    border-top: 0;
    border-left: 3px solid var(--red);
    padding: 9px 12px;
  }

  .header-contact strong {
    font-size: 15px;
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(29, 95, 168, 0.18);
  }

  .nav-inner {
    width: 100%;
    padding-left: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-inner a {
    min-width: 86px;
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
  }

  .page-main {
    padding: 10px 0 20px;
  }

  .portal-hero {
    gap: 10px;
  }

  .hero-news,
  .payment-form,
  .qr-panel,
  .notice-panel,
  .guide-panel,
  .service-section,
  .process-section,
  .reminder-panel,
  .faq-panel,
  .contact-panel {
    padding: 18px;
  }

  .hero-news {
    min-height: 0;
    border: 0;
    padding: 22px 18px;
    box-shadow: 0 6px 18px rgba(25, 54, 92, 0.12);
  }

  .hero-title p {
    width: auto;
    margin-bottom: 14px;
    font-size: 15px;
  }

  .hero-title h2 {
    font-size: 27px;
    line-height: 1.24;
  }

  .hero-title span {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  .quick-links {
    gap: 8px;
    margin-top: 22px;
  }

  .quick-links a {
    min-height: 44px;
    justify-content: start;
    padding: 0 14px;
    place-items: center start;
    font-size: 14px;
  }

  .payment-card,
  .notice-panel,
  .guide-panel,
  .service-section,
  .process-section,
  .reminder-panel,
  .faq-panel,
  .contact-panel {
    box-shadow: 0 5px 16px rgba(25, 54, 92, 0.08);
  }

  .section-heading {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .field {
    margin-bottom: 13px;
  }

  .field input,
  .field select {
    height: 46px;
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    min-height: 46px;
    font-size: 15px;
  }

  .quick-links,
  .pay-qr-grid,
  .service-grid,
  .process-list,
  .summary-box,
  .action-row {
    grid-template-columns: 1fr;
  }

  .summary-box div {
    min-height: auto;
  }

  .summary-full {
    grid-column: auto;
  }

  .pay-qr-grid {
    gap: 12px;
  }

  .pay-qr-card {
    padding: 14px;
  }

  .pay-qr-card h3 {
    font-size: 15px;
  }

  .qr-wrap {
    width: min(260px, 100%);
    padding: 10px;
  }

  .qr-fallback {
    inset: 10px;
  }

  .qr-note {
    margin: 12px 0 16px;
    font-size: 12px;
  }

  .process-list div,
  .process-list div:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .process-list div:last-child {
    border-bottom: 0;
  }

  .process-list b {
    font-size: 22px;
  }

  .process-list strong {
    margin-top: 10px;
  }

  .service-section,
  .process-section,
  .content-grid,
  .info-grid {
    margin-top: 10px;
  }

  .service-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .service-card {
    min-height: auto;
    padding: 15px;
  }

  .service-card strong {
    font-size: 16px;
  }

  .service-card span {
    margin-top: 8px;
    font-size: 13px;
  }

  .panel-title {
    align-items: flex-end;
    gap: 10px;
  }

  .panel-title h2 {
    font-size: 19px;
  }

  .panel-title span {
    font-size: 12px;
  }

  .notice-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }

  .notice-list a {
    white-space: normal;
    line-height: 1.55;
  }

  .guide-panel ol,
  .reminder-panel ul {
    padding-left: 20px;
    line-height: 1.85;
  }

  .faq-panel dd {
    margin-bottom: 12px;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
  }

  .contact-row strong {
    text-align: left;
  }

  .site-footer {
    margin-top: 0;
  }

  .site-footer .container {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
  }
}

@media (max-width: 380px) {
  .site-brand h1 {
    font-size: 20px;
  }

  .hero-title h2 {
    font-size: 24px;
  }

  .payment-form,
  .qr-panel,
  .notice-panel,
  .guide-panel,
  .service-section,
  .process-section,
  .reminder-panel,
  .faq-panel,
  .contact-panel {
    padding: 15px;
  }

  .action-row {
    gap: 8px;
  }
}
