/* Aurora Studio 共享样式
   被多页面站点里的每个页面引用，用来演示 /full/ 下的多文件资源加载。 */

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --text: #172033;
  --muted: #5d6780;
  --line: #e1e6f0;
  --brand: #3355ff;
  --brand-soft: rgba(51, 85, 255, 0.1);
  --accent: #0aa2a2;
  --shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  --radius: 16px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1020;
  --bg-soft: #121830;
  --card: #151c33;
  --text: #e8ecf8;
  --muted: #9aa5c4;
  --line: #242d4a;
  --brand: #7c95ff;
  --brand-soft: rgba(124, 149, 255, 0.16);
  --accent: #37d4c8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
}

.site-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--text); }
.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--brand); }

main {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 72px;
}

.hero {
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(720px 320px at 12% -10%, var(--brand-soft), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { border-color: var(--brand); color: var(--brand); }
.button-primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}
.button-primary:hover { color: #fff; opacity: 0.92; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

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

.card h2, .card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
}

section.block { margin-top: clamp(34px, 5vw, 56px); }

section.block > h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.5px;
}

section.block > p.lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.tree {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
}
.tree .dir { color: var(--brand); font-weight: 600; }
.tree .note { color: var(--muted); }

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.callout strong { color: var(--text); }
.callout code { font-family: var(--mono); font-size: 13px; }

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.module {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.module-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.module-name { font-weight: 650; }

.module-version {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.module p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.search {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.search input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
}
.search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  position: relative;
  padding: 18px 20px 18px 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

pre.code {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: #0b1020;
  color: #c9d6ff;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}

.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
  .hero { padding: 24px; }
  .steps li { padding: 54px 18px 18px; }
  .steps li::before { top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter span { transition: none; }
}
