:root {
  --ink: #172027;
  --muted: #64717d;
  --line: #dfe7ea;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #097a7d;
  --coral: #db5f47;
  --gold: #c3943f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

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

.inline-link {
  color: var(--teal);
  font-weight: 800;
}

.site-header {
  align-items: center;
  background: rgba(247, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

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

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a,
.site-footer a {
  color: #31404a;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  min-height: 78vh;
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.82) 42%, rgba(247, 250, 249, 0.18) 76%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  max-width: 650px;
  padding: clamp(72px, 12vw, 150px) clamp(22px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.tag {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.18;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-copy p:not(.eyebrow),
.intro > p,
.split p {
  color: #2f3c45;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 18px;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
}

.text-link {
  color: var(--teal);
  display: inline-flex;
  font-weight: 800;
  margin-top: 8px;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(22px, 5vw, 72px);
}

.compact-section {
  padding-bottom: clamp(28px, 4vw, 48px);
  padding-top: clamp(34px, 5vw, 58px);
}

.intro,
.split {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 84px);
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
}

.intro {
  background:
    linear-gradient(135deg, rgba(9, 122, 125, 0.08), rgba(219, 95, 71, 0.06)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.intro-title h2 {
  margin-bottom: 0;
  max-width: 620px;
}

.intro-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 32, 39, 0.08);
  padding: clamp(22px, 4vw, 34px);
}

.intro-panel p {
  color: #2f3c45;
  font-size: 18px;
  margin-bottom: 20px;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-points span {
  background: #eef5f2;
  border: 1px solid #cfe0de;
  border-radius: 999px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 12px;
}

.section-heading {
  max-width: 760px;
}

.about-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.about-section p:not(.section-kicker) {
  color: #2f3c45;
  font-size: 18px;
  max-width: 760px;
}

.about-section .button {
  margin-top: 8px;
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 39, 0.12);
  display: block;
  object-fit: cover;
  width: 100%;
}

.work-grid,
.anime-grid,
.compliance-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.work-card,
.compliance-grid article,
.service-list div,
.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.work-card p,
.compliance-grid p,
.policy-card p,
.policy-card li {
  color: var(--muted);
}

.anime-grid .work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.anime-card {
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.anime-card:hover {
  border-color: rgba(9, 122, 125, 0.42);
  box-shadow: 0 16px 36px rgba(23, 32, 39, 0.1);
  transform: translateY(-3px);
}

.anime-cover {
  aspect-ratio: 4 / 3;
  background: #eef5f2;
  border-bottom: 1px solid var(--line);
  display: block;
  object-fit: cover;
  width: 100%;
}

.placeholder-cover {
  filter: saturate(0.7);
}

.anime-body {
  padding: 22px;
}

.read-more {
  color: var(--teal);
  display: inline-flex;
  font-weight: 800;
  margin-top: 18px;
}

dl {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

dt {
  color: var(--muted);
}

dd {
  font-weight: 800;
  margin: 0;
}

.service-list {
  display: grid;
  gap: 12px;
}

.company-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
}

.company-panel div {
  display: grid;
  gap: 8px;
  grid-template-columns: 120px 1fr;
  padding: 18px 20px;
}

.company-panel div + div {
  border-top: 1px solid var(--line);
}

.company-panel span {
  color: var(--muted);
}

.service-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.service-list span {
  color: var(--muted);
  text-align: right;
}

.compliance {
  background: #eef5f2;
}

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

.policy-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 56px 22px 80px;
}

.policy-main h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.policy-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.certificate-section {
  margin-top: 46px;
}

.certificate-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.certificate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.certificate-card img {
  aspect-ratio: 4 / 3;
  background: #eef5f2;
  border: 1px dashed #b9c9cb;
  border-radius: 8px;
  display: block;
  margin: 14px 0;
  object-fit: contain;
  width: 100%;
}

.certificate-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.detail-main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 42px 22px 88px;
}

.back-link {
  color: var(--teal);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 24px;
}

.detail-hero {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
}

.detail-hero h1 {
  font-size: clamp(40px, 7vw, 82px);
}

.detail-hero > img {
  aspect-ratio: 4 / 3;
  background: #eef5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.detail-meta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  padding: 18px;
}

.viewer-section {
  margin-top: 54px;
}

.viewer-frame {
  background: #10181d;
  border-radius: 8px;
  margin-top: 18px;
  padding: clamp(12px, 3vw, 28px);
}

.viewer-frame img {
  background: var(--white);
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}

.site-footer {
  align-items: center;
  background: #10181d;
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 30px clamp(22px, 5vw, 72px);
}

.site-footer p,
.site-footer a {
  color: #b8c5cc;
  margin: 4px 0 0;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .intro,
  .split,
  .service-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-panel div {
    grid-template-columns: 1fr;
  }

  .intro,
  .split,
  .detail-hero,
  .about-section,
  .work-grid,
  .anime-grid,
  .compliance-grid,
  .policy-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    gap: 14px;
  }

  .hero {
    min-height: 720px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.82) 56%, rgba(247, 250, 249, 0.28) 100%);
  }

  .service-list span {
    text-align: left;
  }
}
