@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/noto-serif-sc-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-serif-sc-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-latin-700.woff2") format("woff2");
}

@layer reset, gazette, blocks;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    margin: 0;
    background: #f2f4f7;
    color: #1c2430;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h1, h2, h3, p {
    margin-top: 0;
  }

  a {
    color: #9b0e24;
  }

  table {
    border-collapse: collapse;
  }

  button, input {
    font: inherit;
  }
}

@layer gazette {
  :root {
    --seal: #c8102e;
    --seal-deep: #9b0e24;
    --gold: #8c6a2f;
    --gold-on-red: #f0d7a2;
    --mist: #f2f4f7;
    --ink: #1c2430;
    --muted: #3e4a59;
    --bar: #141a22;
    --line: #d5dbe3;
    --white: #fff;
    --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --shell: 1120px;
  }

  body {
    font-family: var(--sans);
    background: var(--mist);
    color: var(--ink);
  }

  .skip {
    position: absolute;
    left: 0.75rem;
    top: -3.5rem;
    z-index: 5;
    background: var(--white);
    color: var(--seal);
    padding: 0.4rem 0.7rem;
    border-radius: 1px;
  }

  .skip:focus {
    top: 0.75rem;
  }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  .shell {
    width: min(var(--shell), calc(100% - 2rem));
    margin-inline: auto;
  }

  .utility {
    background: var(--seal);
    color: var(--white);
    font-size: 0.82rem;
  }

  .utility a {
    color: var(--white);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
  }

  .utility__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
  }

  .utility__name,
  .utility__reach {
    margin: 0;
  }

  .utility__reach {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .masthead {
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 5.25rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
  }

  .seal {
    width: 56px;
    height: 56px;
    flex: none;
    animation: seal-in 0.55s ease both;
  }

  .brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .brand__short {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
  }

  .brand__legal {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .tabs {
    display: flex;
    align-items: center;
  }

  .tabs__toggle {
    display: none;
    background: var(--seal);
    color: var(--white);
    border: 0;
    border-radius: 1px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
  }

  .tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tabs__list a {
    display: block;
    padding: 0.4rem 0.7rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 1px;
    font-size: 0.92rem;
  }

  .tabs__list a[aria-current="page"] {
    background: var(--seal);
    color: var(--white);
  }

  .tabs__list a:hover {
    background: var(--seal-deep);
    color: var(--white);
  }
}

@layer blocks {
  .hero {
    background: var(--seal);
    color: var(--white);
  }

  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 0 2.6rem;
  }

  .hero h1 {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 18ch;
  }

  .hero p {
    margin: 0 0 1.1rem;
    max-width: 42rem;
    color: #fff7f7;
  }

  .hero__cta {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-on-red);
    padding-bottom: 0.1rem;
    font-weight: 700;
  }

  .hero__cta:hover {
    color: var(--gold-on-red);
  }

  .reg-table {
    width: 100%;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--gold);
    border-radius: 1px;
  }

  .reg-table caption {
    caption-side: top;
    text-align: left;
    padding: 0.55rem 0.8rem 0;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--seal);
  }

  .reg-table th,
  .reg-table td {
    padding: 0.55rem 0.8rem;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
  }

  .reg-table th {
    width: 42%;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
  }

  .reg-table a {
    color: var(--seal-deep);
  }

  .strip {
    background: var(--white);
    border-bottom: 1px solid var(--gold);
  }

  .strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .strip__grid p {
    margin: 0;
    padding: 0.9rem 0.8rem;
    border-left: 1px solid var(--gold);
  }

  .strip__grid p:first-child {
    border-left: 0;
  }

  .strip__grid span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
  }

  .strip__grid strong {
    display: block;
    margin-top: 0.2rem;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  .strip__grid a {
    color: inherit;
  }

  .band {
    padding: 1.6rem 0 1.8rem;
  }

  .band--plain {
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .g-title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .g-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    margin-top: 0.2rem;
    background: var(--seal);
    flex: none;
  }

  .g-sub {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1.4rem 0 0.45rem;
    font-family: var(--serif);
    font-size: 1.15rem;
  }

  .g-sub::before {
    content: "";
    width: 3px;
    height: 0.95em;
    background: var(--seal);
  }

  .lead {
    max-width: 46rem;
    margin-bottom: 1rem;
  }

  .scope {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .scope__row {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .scope__num {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--seal);
    font-size: 1.15rem;
  }

  .scope__body h3 {
    margin: 0;
    font-size: 1.02rem;
  }

  .scope__body p {
    margin: 0.25rem 0 0.35rem;
  }

  .text-link {
    color: var(--seal-deep);
    font-weight: 700;
    text-underline-offset: 0.15em;
  }

  .brief {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
  }

  .brief p {
    max-width: 46rem;
  }

  .brief__addr {
    margin: 0;
    padding: 0.2rem 0 0.2rem 0.9rem;
    border-left: 3px solid var(--gold);
  }

  .brief__addr h3 {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: 1.05rem;
  }

  .g-btn {
    display: inline-block;
    margin-top: 0.4rem;
    background: var(--seal);
    color: var(--white);
    text-decoration: none;
    border-radius: 1px;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
  }

  .g-btn:hover {
    background: var(--seal-deep);
    color: var(--white);
  }

  .contact-bar {
    background: var(--ink);
    color: var(--white);
  }

  .contact-bar a {
    color: var(--white);
  }

  .contact-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .contact-bar p {
    margin: 0;
  }

  .sheet {
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .sheet__inner {
    padding: 1.3rem 0 2.2rem;
  }

  .sheet__inner > p,
  .sheet__head .lead,
  .plain-list,
  .faq,
  .note {
    max-width: 46rem;
  }

  .crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .crumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--gold);
  }

  .crumb a {
    color: var(--seal-deep);
  }

  .info-table,
  .table-wrap {
    width: 100%;
  }

  .info-table {
    margin: 0.4rem 0 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--seal);
  }

  .info-table caption {
    caption-side: top;
    text-align: left;
    padding: 0.45rem 0;
    font-family: var(--serif);
    font-weight: 700;
  }

  .info-table th,
  .info-table td {
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .info-table th {
    width: 34%;
    background: var(--mist);
    font-weight: 600;
  }

  .plain-list,
  .link-list {
    margin: 0.3rem 0 1rem;
    padding-left: 1.1rem;
  }

  .link-list {
    list-style: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .link-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
  }

  .file-name {
    color: var(--muted);
    font-size: 0.85rem;
  }

  .note {
    padding-left: 0.75rem;
    border-left: 3px solid var(--gold);
    color: var(--muted);
  }

  .faq {
    margin: 0;
  }

  .faq dt {
    margin-top: 0.9rem;
    font-weight: 700;
  }

  .faq dd {
    margin: 0.2rem 0 0;
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.2rem;
  }

  .foot {
    background: var(--ink);
    color: #e7ebf0;
  }

  .foot a {
    color: #fff;
  }

  .foot__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.1fr 1fr;
    gap: 1.4rem;
    padding: 1.6rem 0 1.3rem;
  }

  .foot h2 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--gold-on-red);
  }

  .foot p,
  .foot li {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
  }

  .foot ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .foot__legal {
    font-weight: 700;
  }

  .uscc-bar {
    background: var(--bar);
    border-top: 1px solid var(--gold);
    color: #f4f6f8;
    font-size: 0.82rem;
  }

  .uscc-bar__inner {
    padding: 0.75rem 0 0.9rem;
  }

  .uscc-bar p {
    margin: 0;
    overflow-wrap: anywhere;
  }

  .uscc-bar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.35rem;
  }

  .uscc-bar a {
    color: #fff;
  }
}

@keyframes seal-in {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal {
    animation: none;
  }
}

@media (max-width: 959px) {
  .masthead__inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .tabs {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .tabs__toggle {
    display: inline-block;
    align-self: flex-start;
  }

  .tabs__list {
    display: none;
    margin-top: 0.55rem;
  }

  .tabs__list.is-open {
    display: grid;
  }

  .tabs__list a {
    padding: 0.55rem 0.7rem;
  }

  .hero__grid,
  .brief,
  .foot__grid,
  .strip__grid {
    grid-template-columns: 1fr;
  }

  .reg-table th {
    white-space: normal;
  }

  .strip__grid p,
  .strip__grid p:first-child {
    border-left: 0;
    border-top: 1px solid var(--gold);
  }

  .strip__grid p:first-child {
    border-top: 0;
  }

  .contact-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: none;
  }

  .utility__inner {
    flex-direction: column;
    gap: 0.2rem;
  }

  .info-table th {
    width: 42%;
  }
}

@media (max-width: 560px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-top: 0;
    padding-bottom: 0.1rem;
  }

  .info-table td {
    padding-top: 0.1rem;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
}
