/* stylelint-disable no-descending-specificity */
:root {
  --teal: #08a7a1;
  --teal-dark: #087f7c;
  --blue: #1f7de7;
  --ink: #07162f;
  --muted: #526176;
  --line: #d7e5ee;
  --card: rgb(255 255 255 / 92%);
  --shadow: 0 14px 34px rgb(13 48 88 / 10%);
  --radius: 16px;

  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  /* stylelint-disable declaration-colon-newline-after, value-list-comma-newline-after */
  background: radial-gradient(circle at 82% 16%, rgb(9 167 161 / 8%), transparent 27rem),
    radial-gradient(circle at 18% 54%, rgb(31 125 231 / 6%), transparent 31rem), #f8fbfe;
  /* stylelint-enable declaration-colon-newline-after, value-list-comma-newline-after */
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0.38;
  /* stylelint-disable-next-line declaration-colon-newline-after, value-list-comma-newline-after */
  background-image: linear-gradient(120deg, rgb(8 167 161 / 4.5%) 0 1px, transparent 1px 46px),
    linear-gradient(30deg, rgb(31 125 231 / 4%) 0 1px, transparent 1px 58px);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) auto minmax(250px, 0.72fr);
  gap: 22px;
  align-items: center;
  min-height: 58px;
  padding: 0 38px;
  background: rgb(255 255 255 / 90%);
  border-bottom: 1px solid rgb(197 215 227 / 70%);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, min-height 0.2s ease;
}

.site-header.is-scrolled {
  min-height: 54px;
  box-shadow: 0 10px 24px rgb(24 58 91 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark,
.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.brand-mark svg {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 1.35vw, 28px);
  height: 58px;
  font-size: 15px;
  font-weight: 720;
  color: #17243a;
  white-space: nowrap;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #1c2740;
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: var(--teal);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--teal);
}

.nav a.active::after,
.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.search {
  display: flex;
  align-items: center;
  width: min(220px, 100%);
  min-width: 170px;
  height: 34px;
  padding: 0 11px;
  color: #60708a;
  background: rgb(255 255 255 / 92%);
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  box-shadow: inset 0 1px 4px rgb(13 48 88 / 4%);
}

.search svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #60708a;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.search input {
  min-width: 0;
  width: 100%;
  margin-left: 8px;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 34px;
  padding: 0 14px;
  color: #fff;
  font-weight: 760;
  font-size: 12px;
  background: linear-gradient(135deg, #08aaa4, #058f8c);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgb(8 167 161 / 20%);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 34px clamp(48px, 9.2vw, 150px) 28px;
  overflow: hidden;
  border-bottom: 1px solid rgb(197 215 227 / 68%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* stylelint-disable-next-line declaration-colon-newline-after, value-list-comma-newline-after */
  background-image: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 90%) 36%, rgb(255 255 255 / 34%) 72%),
    url('../img/standards/hero.webp');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -18vw;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  content: '';
  background: radial-gradient(circle, rgb(31 125 231 / 14%), transparent 63%);
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #030712;
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.title-line,
.title-accent {
  display: block;
}

.title-line {
  color: #030712;
  white-space: nowrap;
}

.title-accent {
  color: var(--teal);
}

.hero-copy {
  max-width: 500px;
  margin: 18px 0 0;
  color: #4b5b72;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #09aca5, #078e8c);
  box-shadow: 0 13px 26px rgb(8 167 161 / 22%);
}

.btn.secondary {
  color: #07162f;
  background: rgb(255 255 255 / 86%);
  border-color: #d8e3eb;
  box-shadow: 0 8px 20px rgb(15 47 78 / 8%);
}

.trust-list {
  display: flex;
  gap: clamp(14px, 2.3vw, 34px);
  flex-wrap: wrap;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: #243249;
  font-size: 13px;
  font-weight: 720;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  border: 2px solid rgb(8 167 161 / 45%);
  border-radius: 50%;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 16px;
  justify-self: end;
  width: min(500px, 100%);
  padding: 12px;
  transform: translateY(10px);
}

.hero-panel article {
  min-height: 100px;
  padding: 16px 18px 14px;
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(179 220 236 / 78%);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgb(35 103 178 / 10%);
  backdrop-filter: blur(14px);
}

.hero-panel h2 {
  margin: 9px 0 4px;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.24;
}

.hero-panel p {
  margin: 0;
  color: #44546a;
  font-size: 12px;
  line-height: 1.5;
}

.panel-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--teal);
  border: 2.5px solid currentcolor;
  border-radius: 12px;
}

.panel-icon.people {
  border-radius: 50% 50% 10px 10px;
}

.panel-icon.spatial {
  color: #337cef;
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgb(51 124 239 / 13%);
}

.panel-icon.genome {
  border-radius: 18px 6px;
  transform: rotate(-12deg);
}

.panel-icon.micro {
  border-style: dotted;
  border-radius: 50%;
}

.section {
  width: min(1200px, calc(100% - 120px));
  margin: 0 auto;
  padding: 40px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 900;
  color: #091b38;
}

.section-title span {
  width: min(130px, 14vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b9c6d4);
}

.section-title span:last-child {
  background: linear-gradient(90deg, #b9c6d4, transparent);
}

.ornament::before,
.ornament::after {
  width: 8px;
  height: 8px;
  content: '';
  background: #b9c6d4;
  border-radius: 50%;
}

.standard-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.standard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgb(207 222 233 / 85%);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(16 55 91 / 4%);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.22s ease;
}

.standard-card.accent-cohort {
  --accent: #099e9c;
}

.standard-card.accent-spatial {
  --accent: #2176da;
}

.standard-card.accent-genome {
  --accent: #05a9b8;
}

.standard-card.accent-metagenome {
  --accent: #15986d;
}

.standard-card.accent-yeast {
  --accent: #e5971a; /* 琥珀金 */
}

.standard-card.accent-sample {
  --accent: #785dfa; /* 皇家紫 */
}

.standard-card.accent-croissant {
  --accent: #08a7a1; /* 深青色 */
}

/* Card Metadata (Version and Date) */
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgb(15 47 78 / 4%);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.meta-ver {
  color: var(--teal-dark);
}

.meta-dot {
  opacity: 0.5;
}

.meta-date {
  color: #60708a;
}

.standard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.standard-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  content: '';
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.standard-card:hover::before {
  opacity: 1;
}

.standard-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgb(207 222 233 / 40%);
}

.standard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.standard-body h3 {
  margin: 0 0 10px;
  color: #0a1b3b;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.standard-body p {
  margin: 0 0 18px;
  color: #526176;
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 500;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto; /* Push to bottom of card body */
  padding-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 11px;
  color: #087f7c;
  font-size: 11.5px;
  font-weight: 780;
  background: rgb(8 167 161 / 6%);
  border: 1px solid rgb(8 167 161 / 20%);
  border-radius: 8px;
}

.tag-row.blue span {
  color: #1563bc;
  background: rgb(31 125 231 / 6%);
  border-color: rgb(31 125 231 / 25%);
}

.tag-row.green span {
  color: #11744f;
  background: rgb(21 152 109 / 8%);
  border-color: rgb(21 152 109 / 20%);
}

/* Stretched link — covers entire card */
.arrow-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 0; /* hide the › character; arrow drawn via ::after below */
}

/* Visual arrow rendered via card ::after so pointer-events don't block content */
.standard-card::after {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 1;
  content: '\203a';
  color: #8a97a8;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.standard-card:hover::after {
  color: var(--accent);
  transform: translateX(3px);
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 8px;
}

.module-card {
  min-height: 440px;
  padding: clamp(28px, 2.6vw, 40px);
  background: var(--card);
  border: 1px solid rgb(205 221 232 / 95%);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgb(16 55 91 / 8%);
}

.foundation {
  position: relative;
  display: grid;
  grid-template:
    'title title title' auto
    'left image right' 1fr
    / 1fr minmax(0, 1.15fr) 1fr;
  gap: 22px 20px;
  align-items: center;
  overflow: hidden;
}

.foundation-title {
  grid-area: title;
  max-width: 520px;
}

.module-card h2 {
  margin: 0;
  color: #07162f;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.25;
  font-weight: 900;
}

.feature-list {
  display: grid;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list.left {
  grid-area: left;
}

.feature-list.right {
  grid-area: right;
}

.feature-list li {
  position: relative;
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.feature-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  content: '';
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(8 167 161 / 8%);
}

.feature-list b {
  color: #083c44;
  font-size: 16px;
  font-weight: 900;
}

.feature-list span {
  color: #546273;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.layer-image {
  grid-area: image;
  width: min(100%, 350px);
  margin: auto;
  filter: drop-shadow(0 18px 26px rgb(28 119 204 / 18%));
}

.croissant {
  position: relative;
  display: grid;
  align-content: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.croissant:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgb(16 55 91 / 12%);
}

.croissant-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 780;
}

.croissant:hover .croissant-action-link {
  color: var(--blue) !important;
}

.croissant-heading p {
  margin: 12px 0 0;
  color: #526176;
  font-size: 15px;
  line-height: 1.65;
}

.croissant-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  margin-top: 42px;
}

.croissant-flow i {
  display: none;
}

.flow-item {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 18px 10px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(239 248 255 / 76%));
  border: 1px solid rgb(8 167 161 / 22%);
  border-radius: 9px;
}

.flow-item:nth-child(1) {
  grid-column: 1 / span 2;
}

.flow-item:nth-child(2) {
  grid-column: 3 / span 2;
}

.flow-item:nth-child(3) {
  grid-column: 5 / span 2;
}

.flow-item:nth-child(4) {
  grid-column: 2 / span 2;
}

.flow-item:nth-child(5) {
  grid-column: 4 / span 2;
}

.flow-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.flow-item b {
  margin-top: 10px;
  color: #058d91;
  font-size: 14px;
  font-weight: 900;
}

.flow-item:nth-of-type(2) b,
.flow-item:nth-of-type(3) b {
  color: #136ee8;
}

.flow-item:nth-of-type(4) b {
  color: #6857e8;
}

.flow-item span {
  color: #34455d;
  font-size: 12px;
  font-weight: 680;
}

.case-strip {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 2px dashed rgb(8 167 161 / 24%);
}

.case-strip h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

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

.case-grid span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 10px;
  color: #2d3c54;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  background: rgb(255 255 255 / 86%);
  border: 1px solid #dbe6ee;
  border-radius: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(1360px, calc(100% - 64px));
  margin: 18px auto 34px;
  padding: 26px 0 0;
  color: #506176;
  font-size: 13px;
  border-top: 1px solid rgb(197 215 227 / 80%);
}

.footer b {
  color: var(--ink);
}

.footer p {
  margin: 8px 0 0;
}

.footer a {
  color: var(--teal-dark);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    top: 58px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 48px));
    height: auto;
    padding: 18px;
    background: rgb(255 255 255 / 98%);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

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

  .nav a {
    min-height: 38px;
  }

  .nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-left: clamp(42px, 7vw, 90px);
  }

  .hero-panel {
    width: min(460px, 100%);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 58px 28px 42px;
  }

  .hero-panel {
    justify-self: start;
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .hero-bg {
    /* stylelint-disable-next-line declaration-colon-newline-after, value-list-comma-newline-after */
    background-image: linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 84%)),
      url('../img/standards/hero.webp');
    background-position: center top;
  }

  .section {
    width: min(100% - 32px, 720px);
    padding: 40px 0;
  }

  .standard-card {
    grid-template-columns: 1fr;
  }

  .standard-card img {
    height: 170px;
  }

  .arrow-link {
    position: absolute;
    right: 16px;
    top: 174px;
    height: 54px;
    font-size: 44px;
  }

  .foundation {
    grid-template:
      'title'
      'left'
      'image'
      'right'
      / 1fr;
  }

  .feature-list,
  .feature-list.right {
    gap: 20px;
    margin-top: 26px;
  }

  .layer-image {
    width: min(100%, 300px);
  }

  .croissant-flow,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .flow-item:nth-child(n) {
    grid-column: auto;
  }

  .flow-item {
    min-height: 116px;
  }

  .footer {
    flex-direction: column;
    width: min(100% - 32px, 720px);
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .hero {
    width: 100vw;
    max-width: 100vw;
  }

  main,
  .hero {
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand,
  .hero-content {
    min-width: 0;
  }

  .brand {
    white-space: normal;
  }

  .brand span:last-child {
    white-space: normal;
    line-height: 1.25;
  }

  .hero {
    padding: 44px 20px 36px;
  }

  .hero-content,
  .hero-actions,
  .hero-copy {
    width: 100%;
    max-width: min(340px, calc(100vw - 40px));
  }

  .hero-panel {
    grid-template-columns: 1fr;
    width: min(340px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    padding: 0;
  }

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

  .title-line {
    white-space: normal;
    word-break: keep-all;
  }

  .hero-copy,
  .standard-body p,
  .croissant-heading p {
    font-size: 15px;
  }

  .btn {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .standard-body {
    padding: 24px 20px 22px;
  }

  .tag-row span {
    min-height: 32px;
    padding: 0 13px;
    font-size: 13px;
  }

  .module-card {
    padding: 24px 20px;
  }
}
