/* 易出片官网。一页静态站：顶栏 + 首屏 + 几段说明，没有构建步骤，改完直接传服务器。 */

@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/yellowtail.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

:root {
  --ink: #16242b;
  --ink-soft: #4d6670;
  --line: #d7e4ea;
  --page: #f4fafd;
  --panel: #ffffff;
  --accent: #1d7f93;
  --accent-deep: #14606f;
  --script: #ffb0c8;
  --radius: 0.85rem;
  --shadow: 0 1rem 2.5rem rgb(18 42 52 / 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* 整站一张背景图，滚动时不动；内容都是浮在上面的毛玻璃块 */
  background: var(--page) url("assets/hero.jpg") center / cover fixed no-repeat;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- 顶栏 */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.nav.scrolled {
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(0.75rem);
  box-shadow: 0 0.0625rem 0 rgb(18 42 52 / 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.brand img {
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-link,
.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.menu-link:hover,
.menu-button:hover {
  background: rgb(29 127 147 / 0.1);
}

.menu-button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 160ms ease;
}

.menu-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.menu-item {
  position: relative;
}

/* 下拉：鼠标移上去或键盘聚焦就展开。开合交给 CSS，JS 只管 Esc——
   用 JS 记 hover 状态的话，鼠标快速划过顶栏时会有面板关不掉 */
.panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  width: 16rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  gap: 0.15rem;
  animation: drop 160ms ease;
}

.has-panel:hover .panel,
.has-panel:focus-within .panel {
  display: grid;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

.panel a {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
}

.panel a:hover {
  background: rgb(29 127 147 / 0.09);
}

.panel strong {
  font-weight: 600;
}

.panel span {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.pill {
  margin-left: 0.4rem;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: background 160ms ease;
}

.pill:hover {
  background: var(--accent-deep);
}

.burger {
  display: none;
  padding: 0.4rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.burger svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero-text {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.hero h1.latin {
  margin: 0;
  font-family: "Yellowtail", "Segoe Script", cursive;
  font-size: clamp(3.2rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--script);
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: var(--ink);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 140ms ease, background 160ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.ghost {
  border: 1px solid rgb(255 255 255 / 0.85);
  background: rgb(255 255 255 / 0.55);
  color: var(--ink);
  backdrop-filter: blur(0.5rem);
}

.button.ghost:hover {
  background: rgb(255 255 255 / 0.78);
}

.button.big {
  padding: 0.95rem 2.4rem;
  font-size: 1.1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--ink);
  opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-hint svg {
  width: 2rem;
  height: 2rem;
}

@keyframes bob {
  50% {
    transform: translateY(0.4rem);
  }
}

/* ---------------------------------------------------------------- 内容段 */

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.section.soft {
  max-width: none;
  background: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(0.35rem);
}

.section.soft > * {
  max-width: 68rem;
  margin-inline: auto;
}

.section h2 {
  margin: 0 0 2.2rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
}

.hint {
  margin: 0 auto 1.8rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

.hint.small {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.steps,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.steps li,
.card,
.faq details,
.qr img {
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(0.75rem);
  border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 0.5rem 1.6rem rgb(18 42 52 / 0.1);
}

.steps li,
.card {
  padding: 1.6rem;
  border-radius: var(--radius);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(29 127 147 / 0.12);
  color: var(--accent-deep);
  font-weight: 600;
}

.steps h3,
.card h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.steps p,
.card p {
  margin: 0;
  color: var(--ink-soft);
}

.card.muted {
  background: rgb(255 255 255 / 0.55);
  box-shadow: none;
  color: var(--ink-soft);
}

.faq {
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.faq details {
  padding: 0.2rem 1.2rem;
  border-radius: var(--radius);
}

.faq summary {
  padding: 0.9rem 0;
  font-weight: 500;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--accent);
}

.faq p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.qr img {
  width: 13.75rem;
  height: 13.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  object-fit: contain;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- 窄屏 */

@media (max-width: 52rem) {
  .burger {
    display: inline-grid;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: clamp(1rem, 4vw, 3rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    min-width: 12rem;
  }

  .nav.open .menu {
    display: flex;
  }

  .panel {
    position: static;
    width: auto;
    box-shadow: none;
    padding: 0 0 0 0.6rem;
  }

  .pill {
    margin: 0.3rem 0 0;
    text-align: center;
  }
}
