:root {
  --paper: #f7f0e4;
  --paper-deep: #efe4d2;
  --ink: #1d2b31;
  --ink-soft: rgba(29, 43, 49, 0.74);
  --accent: #1f7c7d;
  --accent-deep: #144e57;
  --thread: #c89d55;
  --card: rgba(255, 251, 245, 0.76);
  --line: rgba(29, 43, 49, 0.1);
  --shadow: 0 24px 70px rgba(34, 38, 37, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --site-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 124, 125, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(200, 157, 85, 0.2), transparent 20%),
    linear-gradient(180deg, #fbf7ef 0%, #f2e7d7 52%, #efe3d0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.hero,
.section,
.footer {
  width: var(--site-width);
  margin: 0 auto;
}

.hero {
  padding: 28px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(31, 42, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand__wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px 13px;
  border: 1px solid rgba(31, 124, 125, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 124, 125, 0.12), rgba(31, 124, 125, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(20, 78, 87, 0.08);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  line-height: 1;
  white-space: nowrap;
}

.brand__english {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(29, 43, 49, 0.68);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__link,
.topbar__cta {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.topbar__link {
  color: var(--ink-soft);
}

.topbar__link:hover,
.topbar__link:focus-visible {
  background: rgba(31, 124, 125, 0.08);
  color: var(--ink);
}

.topbar__cta {
  color: #fff9f1;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 24px rgba(20, 78, 87, 0.24);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 34px;
  align-items: center;
  padding-top: 40px;
}

.hero__copy {
  animation: rise-in 0.7s ease-out both;
}

.hero__eyebrow,
.section__eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero__copy h1,
.section__heading h2,
.statement__panel h2 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  max-width: 9.3em;
}

.hero__lead {
  max-width: 38rem;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero__actions,
.contact-card__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button:hover,
.button:focus-visible,
.topbar__cta:hover,
.topbar__cta:focus-visible {
  transform: translateY(-2px);
}

.button--solid {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 26px rgba(20, 78, 87, 0.2);
}

.button--ghost {
  border-color: rgba(20, 78, 87, 0.18);
  background: rgba(255, 252, 248, 0.52);
}

.contact-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  width: 100%;
  margin-top: 10px;
}

.contact-card__actions .button {
  width: 100%;
  min-width: 0;
  padding-right: 18px;
  padding-left: 18px;
  white-space: nowrap;
}

.contact-card--accent .button--solid {
  color: var(--accent-deep);
  background: #fffaf4;
  box-shadow: 0 14px 24px rgba(9, 42, 48, 0.22);
}

.contact-card--accent .button--ghost {
  color: #fffaf4;
  border-color: rgba(255, 250, 244, 0.46);
  background: rgba(255, 250, 244, 0.12);
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero__highlights li {
  padding: 12px 16px;
  border: 1px solid rgba(20, 78, 87, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 18px;
  align-items: end;
  min-height: 600px;
  animation: rise-in 0.85s ease-out both;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: rgba(255, 252, 247, 0.62);
}

.hero-card img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-card:hover img,
.gallery-card:hover img {
  transform: scale(1.04);
}

.hero-card--tall {
  aspect-ratio: 0.82;
}

.hero-card--wide {
  margin-bottom: 48px;
  aspect-ratio: 0.9;
}

.hero-badge {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: float-badge 7s ease-in-out infinite;
}

.hero-badge strong {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-badge span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-badge--left {
  left: -14px;
  bottom: 92px;
}

.hero-badge--right {
  right: -8px;
  top: 48px;
  animation-delay: 1.2s;
}

.section {
  padding: 72px 0 0;
}

.section__heading {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.section__heading h2,
.statement__panel h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  max-width: 13em;
}

.contact .section__heading h2 {
  max-width: none;
  font-size: 3rem;
  white-space: nowrap;
}

.section__heading--split {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: end;
}

.section__summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.intro__grid,
.contact__layout {
  display: grid;
  gap: 18px;
}

.intro__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-card,
.service-card,
.contact-card,
.statement__panel {
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-card {
  padding: 28px;
}

.intro-card h3,
.service-card h3,
.contact-card h3 {
  margin: 0 0 12px;
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.35rem;
}

.intro-card p,
.service-card p,
.statement__panel p,
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.72);
  box-shadow: var(--shadow);
}

.gallery-card img {
  aspect-ratio: 3 / 4;
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.gallery-card strong {
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.06rem;
}

.gallery-card span {
  color: var(--ink-soft);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 28px;
}

.service-card__index,
.contact-card__label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.statement__panel {
  position: relative;
  padding: 42px;
  overflow: hidden;
}

.statement__panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 124, 125, 0.16), transparent 68%);
}

.statement__panel h2 {
  margin-bottom: 18px;
}

.contact__layout {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
}

.contact-card {
  padding: 28px;
}

.contact-card--accent {
  background:
    linear-gradient(150deg, rgba(20, 78, 87, 0.96), rgba(31, 124, 125, 0.86)),
    #144e57;
  color: #fdf7f0;
}

.contact-card--accent .contact-card__label,
.contact-card--accent p {
  color: rgba(253, 247, 240, 0.8);
}

.contact-card--accent h3 {
  max-width: 11em;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 56px;
  color: rgba(29, 43, 49, 0.62);
  font-size: 0.92rem;
}

.footer__icp {
  color: rgba(29, 43, 49, 0.72);
  text-decoration: none;
}

.footer__filings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__police {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer__police img {
  width: 18px;
  height: 20px;
  object-fit: contain;
}

.footer__icp:hover,
.footer__icp:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1080px) {
  .hero__content,
  .intro__grid,
  .gallery__grid,
  .service-list,
  .contact__layout,
  .section__heading--split {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card--wide {
    margin-bottom: 0;
  }

  .hero-badge--left {
    left: 12px;
    bottom: 18px;
  }

  .hero-badge--right {
    right: 12px;
    top: 18px;
  }

  .contact-card--accent h3,
  .section__heading h2,
  .statement__panel h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --site-width: min(100vw - 20px, 100%);
    --radius-xl: 26px;
    --radius-lg: 22px;
  }

  .hero {
    padding-top: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 30px;
  }

  .brand {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand__wordmark {
    padding: 11px 18px 12px;
    font-size: 1.08rem;
    letter-spacing: 0.12em;
  }

  .brand__english {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .topbar__link,
  .topbar__cta {
    width: 100%;
    text-align: center;
  }

  .hero__content {
    gap: 22px;
    padding-top: 26px;
  }

  .hero__copy h1 {
    font-size: clamp(1.88rem, 8vw, 2.35rem);
    line-height: 1.14;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.76;
  }

  .hero__visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-card--tall,
  .hero-card--wide {
    aspect-ratio: 1;
  }

  .hero-badge {
    position: static;
    min-width: 0;
    animation: none;
  }

  .section {
    padding-top: 56px;
  }

  .section__heading h2,
  .statement__panel h2 {
    font-size: clamp(1.72rem, 8vw, 2.5rem);
  }

  .contact .section__heading h2 {
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .intro-card,
  .service-card,
  .contact-card,
  .statement__panel {
    padding: 22px;
  }

  .contact-card__actions {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    padding-bottom: 40px;
  }
}
