/* 跃界 · 全局样式 */
:root {
  --bg-deep: #071018;
  --bg-mid: #0c1a24;
  --bg-soft: #122633;
  --surface: rgba(18, 38, 51, 0.72);
  --line: rgba(148, 196, 180, 0.18);
  --text: #e8f2ef;
  --muted: #8aa39a;
  --brand: #5eead4;
  --brand-dim: #2a9d8f;
  --accent: #e8c468;
  --accent-soft: rgba(232, 196, 104, 0.15);
  --danger: #f07178;
  --radius: 14px;
  --max: 1120px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(42, 157, 143, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(232, 196, 104, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(14, 90, 110, 0.35), transparent 55%),
    linear-gradient(165deg, #071018 0%, #0c1a24 45%, #08141c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 24, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.logo span {
  color: var(--brand);
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(94, 234, 212, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-dim), #1a7a72);
  color: #04120f;
  box-shadow: 0 8px 28px rgba(42, 157, 143, 0.35);
}

.btn-primary:hover {
  color: #04120f;
  box-shadow: 0 12px 32px rgba(94, 234, 212, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-accent {
  background: var(--accent-soft);
  border-color: rgba(232, 196, 104, 0.35);
  color: var(--accent);
}

.btn-accent:hover {
  background: rgba(232, 196, 104, 0.25);
  color: var(--accent);
}

/* —— 首页 Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: end;
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 8%;
  right: -8%;
  background: rgba(42, 157, 143, 0.35);
}

.hero-orb-2 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 15%;
  left: -5%;
  background: rgba(232, 196, 104, 0.18);
  animation-delay: -4s;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 58%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(232, 196, 104, 0.2);
  border-radius: 50%;
  animation: spin 36s linear infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 20%, var(--brand) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.9s ease both;
}

.hero-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero-desc {
  margin: 0 0 2rem;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.02rem;
  animation: fadeUp 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s ease 0.32s both;
}

/* —— 区块通用 —— */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36em;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 38, 51, 0.45), transparent);
}

/* —— 功能入口网格 —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-link {
  display: block;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature-link:hover {
  border-color: rgba(94, 234, 212, 0.45);
  transform: translateY(-3px);
  color: inherit;
  background: rgba(18, 38, 51, 0.95);
}

.feature-link h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

/* —— 列表条目（软件 / 资源 / 教程） —— */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.item:hover {
  border-color: rgba(94, 234, 212, 0.4);
}

.item-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.item-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--brand);
  font-size: 0.75rem;
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-hint {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* —— 页面头（内页） —— */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
}

.page-hero p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
}

/* —— 教程详情 —— */
.tutorial-grid {
  display: grid;
  gap: 1rem;
}

.tutorial {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tutorial h3 {
  margin: 0 0 0.5rem;
}

.tutorial p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tutorial-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.92rem;
}

.tutorial-steps li {
  margin-bottom: 0.4rem;
}

/* —— 在线工具：生图 —— */
.tool-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tool-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tool-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.tool-form textarea,
.tool-form select,
.tool-form input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 16, 24, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.tool-form textarea:focus,
.tool-form select:focus,
.tool-form input:focus {
  outline: none;
  border-color: var(--brand);
}

.tool-preview {
  min-height: 320px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 38, 51, 0.9), rgba(7, 16, 24, 0.85)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(94, 234, 212, 0.03) 8px,
      rgba(94, 234, 212, 0.03) 16px
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.tool-preview canvas {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.tool-preview .hint {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28em;
}

.tool-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 0 10px 10px 0;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: 0.08em;
}

/* —— 动画 —— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— 响应式 —— */
@media (max-width: 860px) {
  .feature-grid,
  .tool-panel {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(7, 16, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .item {
    grid-template-columns: 1fr;
  }

  .item .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
