/* Renakox333 个人站 —— 共享样式（黑/白 + 蓝紫玻璃） */
:root {
  --bg: #0a0a0f;
  --bg-soft: #101018;
  --text: #eef0f6;
  --text-mute: #9aa0b0;
  --line: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.05);
  --blue: #587aff;
  --purple: #ba52ff;
  --cyan: #30cade;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}
html.light {
  --bg: #f5f6fa;
  --bg-soft: #ffffff;
  --text: #14161c;
  --text-mute: #6a7180;
  --line: rgba(0, 0, 0, 0.08);
  --surface: rgba(255, 255, 255, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* 环境光背景（蓝左上 / 紫右上） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 640px at 4% -8%, rgba(88, 122, 255, 0.22), transparent 58%),
    radial-gradient(820px 600px at 100% 0%, rgba(186, 82, 255, 0.16), transparent 58%),
    radial-gradient(1000px 720px at 50% 118%, rgba(48, 202, 222, 0.12), transparent 62%);
}
html.light body::before {
  background:
    radial-gradient(900px 640px at 4% -8%, rgba(88, 122, 255, 0.16), transparent 58%),
    radial-gradient(820px 600px at 100% 0%, rgba(124, 74, 245, 0.14), transparent 58%);
}

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

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .02em; font-size: 17px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 12px rgba(186, 82, 255, 0.6);
}
.topbar .links { display: flex; align-items: center; gap: 18px; }
.topbar .links a { font-size: 14px; color: var(--text-mute); transition: color .2s; }
.topbar .links a:hover { color: var(--text); }
.topbar .links a.active { color: var(--text); font-weight: 600; }

/* 玻璃卡片 */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* 渐变文字 */
.grad-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .2s var(--spring), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(186, 82, 255, 0.5); }
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none; color: #fff;
  box-shadow: 0 8px 24px rgba(122, 92, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 12px 32px rgba(122, 92, 255, 0.5); }

/* 主题切换按钮 */
.theme-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; font-size: 15px;
}

/* 主页 hero */
.hero {
  max-width: 760px; margin: 0 auto;
  padding: 90px 24px 60px;
  text-align: center;
}
.hero .name {
  font-size: clamp(44px, 9vw, 84px); font-weight: 800;
  letter-spacing: .01em; line-height: 1.05;
}
.hero .tagline { margin-top: 16px; font-size: 17px; color: var(--text-mute); }
.hero .social { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .enter { margin-top: 44px; }

/* 玩具箱 hub */
.container { max-width: 1080px; margin: 0 auto; padding: 50px 24px 80px; }
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--text-mute); margin-bottom: 28px; font-size: 14px; }
.toy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.toy-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; transition: transform .25s var(--spring), border-color .2s;
}
.toy-card:hover { transform: translateY(-4px); border-color: rgba(186, 82, 255, 0.5); }
.toy-card .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; font-size: 24px;
}
.toy-card .t-name { font-size: 16px; font-weight: 700; }
.toy-card .t-desc { font-size: 13px; color: var(--text-mute); }
.toy-card.add {
  align-items: center; justify-content: center; text-align: center;
  border-style: dashed; color: var(--text-mute);
  cursor: default;
}
.toy-card.add:hover { transform: none; border-color: var(--line); }

footer {
  text-align: center; padding: 34px 24px;
  color: var(--text-mute); font-size: 13px;
  border-top: 1px solid var(--line);
}
