/* ==========================================================================
   CloverAvery · 个人铭牌
   主题色集中在 :root，改配色只动这一块
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0c1120;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #e9efff;
  --text-2: #a7b4d4;
  --text-3: #74829f;
  --accent: #7c9cff;
  --accent-2: #57e2c0;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.22);
  --max: 1080px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fc;
    --bg-2: #e9eefa;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-2: #ffffff;
    --border: rgba(16, 28, 60, 0.1);
    --border-strong: rgba(16, 28, 60, 0.19);
    --text: #0f1c3a;
    --text-2: #47567a;
    --text-3: #616f8f;
    --accent: #3a5bd9;
    --accent-2: #0f9d7c;
    --shadow: 0 20px 50px -28px rgba(16, 28, 60, 0.5), 0 2px 8px rgba(16, 28, 60, 0.06);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  background: var(--accent);
  color: #fff;
}
.skip:focus {
  left: 0;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 12% -12%, rgba(124, 156, 255, 0.22), transparent 62%),
    radial-gradient(900px 560px at 92% 2%, rgba(87, 226, 192, 0.15), transparent 64%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 18%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 18%, transparent 70%);
}

.bg::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -160px;
  top: -180px;
  border-radius: 50%;
  background: rgba(124, 156, 255, 0.45);
  filter: blur(110px);
  opacity: 0.5;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent),
    0 0 16px color-mix(in srgb, var(--accent) 65%, transparent);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.nav__link.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
}

/* ---------- 布局 ---------- */
.wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  grid-template-areas: "main side";
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px 10px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 26px;
}

.card--main {
  grid-area: main;
  padding: 30px;
}

.side {
  grid-area: side;
  display: grid;
  gap: 18px;
}

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

.actions--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn--primary {
  border-color: transparent;
  color: #08101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

@media (prefers-color-scheme: light) {
  .btn--primary {
    color: #fff;
  }
}

/* ---------- 侧栏卡片 ---------- */
.card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
}

.card__body {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
}

.now__list {
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-2);
}

.now__list li {
  position: relative;
  padding-left: 18px;
}

.now__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

/* ---------- 社交图标（位于页脚内，全站共用） ---------- */
.socials__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease,
    background 0.18s ease, box-shadow 0.18s ease;
}

.social:hover,
.social.is-tip {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 85%, transparent);
}

.social__icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
}

.social__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social__icon--wide {
  width: 21px;
  height: 21px;
}

.social__glyph {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

/* 悬停显示的平台名 */
.social__tip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 5;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-2) 94%, #000);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.social:hover .social__tip,
.social:focus-visible .social__tip,
.social.is-tip .social__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 页脚（社交链接 + 版权，全站共用，居中） ---------- */
.sitefoot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sitefoot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 22px 24px;
}

.sitefoot__socials {
  width: 100%;
}

.sitefoot__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.sitefoot__copy a {
  color: var(--text-3);
}

.sitefoot__copy a:hover {
  color: var(--text-2);
}

/* ---------- 404 ---------- */
.wrap--single {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding-top: 12vh;
}

.card--center {
  width: 100%;
  max-width: 460px;
  padding: 44px 30px;
  text-align: center;
}

.code {
  margin: 0 0 6px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card--center .card__body {
  margin: 10px 0 0;
}

.edgeone-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px; /* 按你的页面需要调整 */
}

.edgeone-footer-text {
  margin-right: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.edgeone-footer-link {
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.edgeone-footer-img {
  display: block;
  height: 18px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
    padding-top: 24px;
  }

  .card,
  .card--main {
    padding: 22px;
  }

  .who {
    gap: 14px;
  }

  .avatar {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .topbar__inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 12px 18px;
  }

  .nav ul {
    gap: 2px;
  }

  .nav__link {
    padding: 6px 10px;
    font-size: 13.5px;
  }

}

@media (max-width: 380px) {
  .topbar__inner {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand__name {
    font-size: 14px;
  }

  .nav__link {
    padding: 5px 8px;
    font-size: 12.5px;
  }

  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 400px) {
  .socials__list {
    gap: 8px;
  }

  .social {
    width: 38px;
    height: 38px;
  }

  .social__icon {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
