/* ==========================================================================
   咔嚓资源分享 · 浅蓝主题样式
   ========================================================================== */

:root {
  --bg-0: #f8fcff;
  --bg-1: #eaf5ff;
  --bg-2: #d8ecff;
  --ink: #0f3355;
  --ink-2: #35597d;
  --muted: #5b7fa3;
  --brand: #2f8cff;
  --brand-deep: #1365d6;
  --brand-ink: #0b4ea8;
  --brand-soft: #d6ebff;
  --brand-wash: #eef7ff;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --line: rgba(88, 157, 255, 0.22);
  --line-strong: rgba(88, 157, 255, 0.4);
  --shadow-sm: 0 8px 24px -14px rgba(23, 89, 166, 0.35);
  --shadow: 0 22px 50px -26px rgba(23, 89, 166, 0.5);
  --shadow-lg: 0 34px 70px -32px rgba(23, 89, 166, 0.55);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --header-h: 74px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 8% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(110% 80% at 92% 0%, #dcedff 0%, rgba(220, 237, 255, 0) 55%),
    linear-gradient(180deg, #f8fcff 0%, #eaf5ff 46%, #dceeff 100%);
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}

.blob-a {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(94, 183, 255, 0.5), rgba(94, 183, 255, 0) 68%);
}

.blob-b {
  width: 520px;
  height: 520px;
  top: 32%;
  left: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(120, 205, 255, 0.38), rgba(120, 205, 255, 0) 70%);
}

.blob-c {
  width: 620px;
  height: 620px;
  bottom: -320px;
  right: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(92, 151, 255, 0.22), rgba(92, 151, 255, 0) 70%);
}

.grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(73, 145, 235, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 38%, transparent 72%, rgba(0, 0, 0, 0.45));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 38%, transparent 72%, rgba(0, 0, 0, 0.45));
  opacity: 0.7;
}

::selection { background: rgba(47, 140, 255, 0.22); color: var(--brand-ink); }

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

code {
  padding: 0.12em 0.4em;
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--brand-ink);
  background: rgba(47, 140, 255, 0.1);
  border-radius: 6px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(47, 140, 255, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================ 顶部导航 ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(247, 252, 255, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(250, 253, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(20, 82, 160, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #54b9ff 0%, #2f7cff 100%);
  border-radius: 13px;
  box-shadow: 0 10px 22px -10px rgba(35, 118, 235, 0.75);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; }
.brand-mark.small svg { width: 21px; height: 21px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.brand-text small { margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.main-nav a {
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a:hover { color: var(--brand-deep); background: rgba(255, 255, 255, 0.8); }
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #3f9dff, #2a76ef);
  box-shadow: 0 8px 18px -10px rgba(29, 108, 226, 0.85);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #42a4ff 0%, #2c78f0 100%);
  box-shadow: 0 14px 26px -14px rgba(28, 108, 226, 0.8);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #56b2ff 0%, #337ff7 100%);
  box-shadow: 0 18px 32px -14px rgba(28, 108, 226, 0.85);
}

.btn-ghost {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #fff; color: var(--brand-ink); }

.btn-soft {
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.1);
  border-color: rgba(47, 140, 255, 0.16);
}
.btn-soft:hover { background: rgba(47, 140, 255, 0.16); color: var(--brand-ink); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--brand-deep); background: #fff; border-color: var(--line-strong); }
.icon-btn.danger:hover { color: #d64545; border-color: rgba(214, 69, 69, 0.35); }

/* ============================ 页面 / 视图 ============================ */

.view { display: none; }
.view.active { display: block; animation: viewIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brand-deep);
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #3fa0ff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(63, 160, 255, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 160, 255, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(63, 160, 255, 0.05); }
}

/* ============================ 首屏 ============================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 28px;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.grad-text {
  background: linear-gradient(100deg, #2f8cff 0%, #22b3ff 55%, #2f7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lede {
  max-width: 520px;
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-strong);
}

.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 27px;
  font-weight: 900;
  color: var(--brand-deep);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* 首屏右侧装饰卡片 */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 10px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(87, 176, 255, 0.3), rgba(87, 176, 255, 0) 68%);
  border-radius: 50%;
  z-index: -1;
}

.hub-card {
  width: 340px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  box-shadow: 0 40px 80px -34px rgba(22, 85, 160, 0.55), inset 0 1px 0 #fff;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.hero-visual:hover .hub-card { transform: rotate(0deg) translateY(-4px); }

.hub-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(88, 157, 255, 0.14);
}

.hub-dots { display: flex; gap: 5px; }
.hub-dots i { width: 7px; height: 7px; border-radius: 50%; background: #b8d8f8; }
.hub-dots i:first-child { background: #7cc0ff; }

.hub-title {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hub-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2f9e6b;
}
.hub-status i { width: 6px; height: 6px; border-radius: 50%; background: #36c98b; box-shadow: 0 0 0 3px rgba(54, 201, 139, 0.16); }

.hub-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
}
.avatar-ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #4cb4ff, #2f7cff);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px -10px rgba(31, 109, 226, 0.7);
}
.hub-profile strong { font-size: 16px; }
.hub-profile p { margin-top: 2px; font-size: 12px; color: var(--muted); }

.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(88, 157, 255, 0.14);
  border-radius: 13px;
}
.hub-tile .tile-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  border-radius: 9px;
}
.hub-tile em { font-size: 10px; font-style: normal; font-weight: 700; color: var(--ink-2); }
.tone-blue .tile-ico { background: linear-gradient(135deg, #58b7ff, #2f7cff); }
.tone-cyan .tile-ico { background: linear-gradient(135deg, #5fd8ff, #2ea5e8); }
.tone-indigo .tile-ico { background: linear-gradient(135deg, #7aa8ff, #4a72ef); }
.tone-sky .tile-ico { background: linear-gradient(135deg, #6cc6ff, #3b8ef0); }

.hub-bars { display: grid; gap: 7px; margin-top: 15px; }
.hub-bars span {
  position: relative;
  display: block;
  height: 6px;
  background: rgba(47, 140, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
.hub-bars span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(64, 160, 255, 0.75), rgba(64, 160, 255, 0.2));
  border-radius: 99px;
}

.float-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 18px 36px -20px rgba(20, 82, 160, 0.6);
  backdrop-filter: blur(10px);
  animation: floatY 5s ease-in-out infinite;
}
.float-chip b { font-size: 12px; font-weight: 800; color: var(--brand-deep); }
.float-chip small { font-size: 9.5px; color: var(--muted); }
.chip-a { top: 6px; left: -8px; }
.chip-b { bottom: 48px; right: -18px; animation-delay: -1.6s; }
.chip-c { bottom: -4px; left: 18px; animation-delay: -3.1s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================ 通用区块 ============================ */

.section { padding: 54px 0 8px; }
.section:last-child { padding-bottom: 64px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin-top: 7px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.section-head p { max-width: 430px; font-size: 14px; color: var(--muted); text-align: right; }

/* ============================ 快捷入口 ============================ */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.entry-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--tone-glow, rgba(47, 140, 255, 0.14)), transparent 66%);
  border-radius: 50%;
  pointer-events: none;
}
.entry-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.entry-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 12px 22px -12px var(--tone-shadow, rgba(28, 108, 226, 0.8));
}
.entry-card.tone-blue { --tone-glow: rgba(47, 140, 255, 0.18); --tone-shadow: rgba(28, 108, 226, 0.8); }
.entry-card.tone-cyan { --tone-glow: rgba(46, 176, 230, 0.18); --tone-shadow: rgba(31, 150, 205, 0.75); }
.entry-card.tone-indigo { --tone-glow: rgba(90, 120, 240, 0.18); --tone-shadow: rgba(76, 100, 220, 0.7); }
.entry-card.tone-sky { --tone-glow: rgba(70, 160, 245, 0.18); --tone-shadow: rgba(40, 130, 220, 0.7); }
.entry-card.tone-teal { --tone-glow: rgba(46, 190, 180, 0.16); --tone-shadow: rgba(32, 160, 150, 0.65); }
.entry-card.tone-purple { --tone-glow: rgba(130, 110, 240, 0.16); --tone-shadow: rgba(110, 90, 220, 0.65); }

.entry-card.tone-blue .entry-ico { background: linear-gradient(135deg, #55b6ff, #2f7cff); }
.entry-card.tone-cyan .entry-ico { background: linear-gradient(135deg, #5edcff, #2aa9e6); }
.entry-card.tone-indigo .entry-ico { background: linear-gradient(135deg, #8aa7ff, #4c6de8); }
.entry-card.tone-sky .entry-ico { background: linear-gradient(135deg, #79c8ff, #3b8ef0); }
.entry-card.tone-teal .entry-ico { background: linear-gradient(135deg, #67e0d2, #27b3a5); }
.entry-card.tone-purple .entry-ico { background: linear-gradient(135deg, #b09cff, #7561e8); }

.entry-body { display: flex; flex-direction: column; min-width: 0; }
.entry-body strong { font-size: 16px; font-weight: 800; }
.entry-body small {
  margin-top: 3px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--brand);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.entry-card:hover .entry-arrow { transform: translateX(4px); opacity: 1; }

.entry-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.1);
  border-radius: 99px;
}

/* ============================ 资源卡片 ============================ */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.resource-grid.single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.resource-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 22px -12px rgba(28, 108, 226, 0.7);
}
.tone-magisk { background: linear-gradient(135deg, #55b6ff, #2f7cff); }
.tone-kernel { background: linear-gradient(135deg, #5edcff, #2aa9e6); }
.tone-apatch { background: linear-gradient(135deg, #8aa7ff, #4c6de8); }
.tone-tool { background: linear-gradient(135deg, #67e0d2, #27b3a5); }
.tone-doc { background: linear-gradient(135deg, #b09cff, #7561e8); }
.tone-sys { background: linear-gradient(135deg, #79c8ff, #3b8ef0); }
.tone-schedule { background: linear-gradient(135deg, #8fa8ff, #5a6cf0); }

.resource-cat {
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.09);
  border-radius: 99px;
}

.resource-card h3 { margin-top: 15px; font-size: 17px; font-weight: 800; }
.resource-card > p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span {
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(88, 157, 255, 0.14);
  border-radius: 99px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.08);
  border: 1px solid rgba(47, 140, 255, 0.14);
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.mini-btn:hover { color: #fff; background: var(--brand); transform: translateY(-1px); }
.mini-btn::before {
  content: "↗";
  font-size: 11px;
  opacity: 0.75;
}
.mini-btn.doc::before { content: "◎"; }
.mini-btn.github::before { content: "↓"; }

/* ============================ 精选调度资源 ============================ */

.featured-resource {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  align-items: center;
  gap: 30px;
  padding: 34px 38px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(88, 156, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 244, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.featured-eyebrow {
  display: inline-block;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.1);
  border-radius: 99px;
}
.featured-copy h3 {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.featured-copy p { max-width: 560px; margin-top: 9px; font-size: 14px; color: var(--ink-2); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.featured-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(145deg, #78baff, #4f7cf0);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 40px -24px rgba(32, 108, 226, 0.8);
}
.featured-visual::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -80px;
  right: -50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.featured-visual::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  bottom: -70px;
  left: -30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.featured-char {
  position: relative;
  z-index: 1;
  font-size: 82px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 40, 120, 0.25);
}
.featured-visual small {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
}

/* ============================ ROOT 宣传条 ============================ */

.root-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 42px;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(74, 165, 255, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.root-banner-copy .eyebrow { color: var(--brand-deep); }
.root-banner-copy h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.01em; }
.root-banner-copy p { max-width: 480px; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.root-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.root-preview { display: grid; gap: 10px; }
.root-preview-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 14px 28px -22px rgba(20, 82, 160, 0.6);
  transition: transform 0.2s ease;
}
.root-preview-row:hover { transform: translateX(4px); }
.root-preview-row .rp-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(135deg, #58b7ff, #2f7cff);
}
.root-preview-row .rp-body { display: flex; flex-direction: column; min-width: 0; }
.root-preview-row strong { font-size: 14px; font-weight: 800; }
.root-preview-row small { font-size: 11.5px; color: var(--muted); }
.root-preview-row .rp-arrow { margin-left: auto; color: var(--brand); font-size: 15px; opacity: 0.6; }

/* ============================ CTA 双卡 ============================ */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cta-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.cta-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  color: #fff;
  background: linear-gradient(135deg, #55b6ff, #2f7cff);
  border-radius: 15px;
  box-shadow: 0 14px 26px -14px rgba(28, 108, 226, 0.8);
}
.cta-icon svg { width: 25px; height: 25px; }
.cta-qq .cta-icon { background: linear-gradient(135deg, #5edcff, #2aa9e6); }
.cta-coolapk .cta-icon { background: linear-gradient(135deg, #8aa7ff, #4c6de8); }
.cta-card h3 { font-size: 18px; font-weight: 800; }
.cta-card p { margin-top: 5px; font-size: 13.5px; color: var(--ink-2); }
.cta-actions { margin-top: 15px; }

/* ============================ 常用跳转（首页） ============================ */

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.quick-link:hover { color: var(--ink); background: #fff; transform: translateY(-2px); border-color: var(--line-strong); }
.quick-link .ql-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6fc0ff, #3b8ef0);
  border-radius: 10px;
}
.quick-link span { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quick-link .ql-arrow { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ============================ 子页头部 ============================ */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 0 30px;
}
.page-head h1 {
  margin-top: 9px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-head p { max-width: 620px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.page-count {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.page-count strong { font-size: 16px; color: var(--brand-deep); }

/* ============================ 资源筛选 ============================ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.1); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-box input {
  width: 100%;
  padding: 13px 0;
  font-size: 14px;
  background: transparent;
  border: 0;
  outline: none;
}
.search-box input::placeholder { color: #90aac4; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--brand-deep); background: #fff; }
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, #42a4ff, #2c78f0);
  border-color: transparent;
  box-shadow: 0 10px 20px -12px rgba(28, 108, 226, 0.85);
}

.empty-state { padding: 70px 20px; text-align: center; }
.empty-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 30px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}
.empty-state h3 { margin-top: 16px; font-size: 18px; }
.empty-state p { margin-top: 5px; font-size: 14px; color: var(--muted); }

/* ============================ ROOT 卡片 ============================ */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.notice-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}
.notice p { font-size: 13px; color: var(--ink-2); }
.notice strong { color: var(--ink); }

.root-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.root-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.root-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.root-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.root-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #55b6ff, #2f7cff);
  border-radius: 14px;
  box-shadow: 0 12px 22px -12px rgba(28, 108, 226, 0.75);
}
.root-logo.tone-2 { background: linear-gradient(135deg, #5edcff, #2aa9e6); }
.root-logo.tone-3 { background: linear-gradient(135deg, #8aa7ff, #4c6de8); }
.root-logo.tone-4 { background: linear-gradient(135deg, #67e0d2, #27b3a5); }
.root-logo.tone-5 { background: linear-gradient(135deg, #b09cff, #7561e8); }

.root-badge {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.1);
  border-radius: 99px;
}
.root-badge.hot { color: #fff; background: linear-gradient(135deg, #ff9f5a, #ff7a45); }

.root-card h3 { margin-top: 14px; font-size: 17px; font-weight: 800; }
.root-cat { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--brand-deep); }
.root-card > p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  min-height: 42px;
  font-size: 13px;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.root-card .tags { margin-top: 10px; }
.root-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }

/* ============================ QQ 群 ============================ */

.qq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.qq-card {
  position: relative;
  padding: 26px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.qq-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(72, 186, 255, 0.16), transparent 68%);
  border-radius: 50%;
}
.qq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.qq-card-head { display: flex; align-items: center; gap: 14px; }
.qq-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #5edcff, #2aa9e6);
  border-radius: 16px;
  box-shadow: 0 14px 26px -14px rgba(31, 150, 205, 0.8);
}
.qq-card-head h3 { font-size: 18px; font-weight: 800; }
.qq-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.qq-sub span { font-size: 11.5px; color: var(--muted); }
.qq-sub .qq-badge {
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-deep);
  background: rgba(47, 140, 255, 0.1);
  border-radius: 99px;
}
.qq-card > p { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }

.qq-members {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(235, 247, 255, 0.96), rgba(248, 252, 255, 0.9));
  border: 1px solid rgba(88, 157, 255, 0.18);
  border-radius: 14px;
}
.qq-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #35c98b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 201, 139, 0.14);
  animation: livePulse 2.2s ease-in-out infinite;
}
.qq-count {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.qq-unit { margin-left: -5px; font-size: 12px; color: var(--muted); }
.qq-updated { font-size: 11px; color: var(--muted); }
.qq-refresh {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.qq-refresh:hover { color: var(--brand); background: var(--brand-wash); border-color: var(--line-strong); }
.qq-refresh svg { width: 15px; height: 15px; }
.qq-members.is-loading .qq-refresh svg { animation: qqSpin 0.8s linear infinite; }
.qq-members.is-offline .live-dot { background: #a9bfd6; box-shadow: none; animation: none; }
.qq-members.is-offline .qq-updated { color: #c1873f; }
.qq-count.is-bump { animation: countBump 0.35s ease; }

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 201, 139, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(53, 201, 139, 0.03); }
}
@keyframes qqSpin { to { transform: rotate(360deg); } }
@keyframes countBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); color: #1a9d6f; }
  100% { transform: scale(1); }
}

.qq-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 13px 16px;
  background: rgba(240, 248, 255, 0.9);
  border: 1px solid rgba(88, 157, 255, 0.16);
  border-radius: 14px;
}
.qq-number span { font-size: 12px; font-weight: 600; color: var(--muted); }
.qq-number strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-ink);
}
.qq-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.qq-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.qq-foot { margin-top: 26px; }
.info-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 17px; font-weight: 800; }
.info-card p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.info-card ul { margin: 12px 0 0; padding-left: 18px; }
.info-card li { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); }
.info-card .btn { margin-top: 16px; }

/* ============================ 调度资源详情 ============================ */

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
}
.schedule-card {
  padding: 36px;
  background:
    radial-gradient(80% 110% at 100% 0%, rgba(97, 169, 255, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.schedule-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #8fa8ff, #5a6cf0);
  border-radius: 99px;
}
.schedule-card h2 { margin-top: 14px; font-size: clamp(25px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.01em; }
.schedule-desc { max-width: 620px; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.schedule-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.schedule-meta div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(88, 157, 255, 0.16);
  border-radius: 14px;
}
.schedule-meta span { display: block; font-size: 11px; color: var(--muted); }
.schedule-meta strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 800; }
.schedule-download { margin-top: 22px; }
.schedule-hint { margin-top: 10px; font-size: 11.5px; color: var(--muted); text-align: center; }
.schedule-side { display: grid; gap: 16px; align-content: start; }
.schedule-side-block {
  padding: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.schedule-side-block h3 { font-size: 17px; font-weight: 800; }
.schedule-side-block p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.schedule-side-block ol { margin: 12px 0 0; padding-left: 19px; }
.schedule-side-block li { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.schedule-side-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============================ 酷安 ============================ */

.coolapk-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
}

.profile-card {
  padding: 42px 36px;
  text-align: center;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(97, 169, 255, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(234, 246, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.profile-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 20px auto 0;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #4cb4ff, #2f7cff);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 18px 36px -18px rgba(28, 108, 226, 0.8);
}
.profile-card h3 { margin-top: 14px; font-size: 19px; font-weight: 800; word-break: break-all; }
.profile-handle {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}
.profile-card .btn { margin-top: 20px; }
.profile-card .btn.disabled {
  pointer-events: none;
  opacity: 0.45;
  box-shadow: none;
}
.profile-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* ============================ 导航页 ============================ */

.link-groups { display: grid; gap: 34px; padding-bottom: 40px; }
.link-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
}
.link-group h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #5ebcff, #2f7cff);
  border-radius: 99px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.link-grid > :only-child { grid-column: 1 / -1; }
.link-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.link-card:hover { color: var(--ink); background: #fff; transform: translateY(-3px); border-color: var(--line-strong); }
.link-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6fc0ff, #3b8ef0);
  border-radius: 11px;
}
.link-card:nth-child(3n + 2) .link-ico { background: linear-gradient(135deg, #67e0d2, #27b3a5); }
.link-card:nth-child(3n) .link-ico { background: linear-gradient(135deg, #b09cff, #7561e8); }
.link-body { display: flex; flex-direction: column; min-width: 0; }
.link-body strong { font-size: 14.5px; font-weight: 800; }
.link-body small { overflow: hidden; margin-top: 1px; font-size: 11.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { margin-left: auto; font-size: 14px; color: var(--muted); }

/* ============================ 页脚 ============================ */

.site-footer {
  margin-top: 30px;
  padding: 40px 0 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(219, 237, 255, 0.55));
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 15.5px; font-weight: 800; }
.footer-brand p { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.footer-nav a:hover { color: var(--brand-deep); }
.copyright { width: 100%; padding-top: 18px; font-size: 11.5px; color: var(--muted); text-align: center; border-top: 1px dashed var(--line); }

/* ============================ Toast ============================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 51, 85, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 20px 40px -18px rgba(10, 40, 80, 0.7);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  color: #0f3355;
  background: #8fe3c0;
  border-radius: 50%;
}

/* ============================ 响应式 ============================ */

@media (max-width: 1024px) {
  .main-nav a { padding: 8px 11px; font-size: 13.5px; }
  .hero { gap: 34px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid, .root-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .root-banner { padding: 32px; gap: 30px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 60px -24px rgba(10, 50, 100, 0.45);
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .main-nav a { padding: 12px 16px; font-size: 15px; border-radius: 12px; }

  .hero { grid-template-columns: 1fr; padding-top: 46px; gap: 26px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }

  .root-banner { grid-template-columns: 1fr; }
  .root-preview { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .coolapk-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .schedule-layout { grid-template-columns: 1fr; }
  .featured-resource { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .featured-visual { display: none; }

  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 44px; }
  .page-head .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head p { text-align: left; }

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

@media (max-width: 620px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .hero-copy h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero-copy .lede { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .entry-grid, .resource-grid, .root-grid { grid-template-columns: 1fr; }
  .resource-grid.single { grid-template-columns: minmax(0, 1fr); }
  .quick-links { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .link-grid > :only-child { grid-column: auto; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .filter-chips { gap: 6px; }
  .chip { padding: 7px 13px; font-size: 12px; }

  .root-banner { padding: 24px; border-radius: 24px; }
  .cta-card { padding: 22px; }
  .profile-card { padding: 22px; }
  .schedule-card { padding: 24px; }
  .schedule-meta { grid-template-columns: 1fr; }
  .section { padding-top: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
