﻿:root {
  --bg: #eef0f4;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(120, 130, 145, 0.22);
  --text: #5f6876;
  --heading: #4e5663;
  --muted: #8b94a2;
  --accent: #737c8b;
  --shadow: rgba(31, 37, 48, 0.13);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(210,216,226,0.85), transparent 30%),
    linear-gradient(135deg, #f8f9fb 0%, var(--bg) 48%, #e3e6ec 100%);
}
.home-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(42px, 9vw, 96px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card { width: 100%; position: relative; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; overflow: hidden; }
.hero-head { position: relative; z-index: 1; margin-bottom: 30px; text-align: center; }
h1 { max-width: 560px; margin: 0 auto; font-size: clamp(22px, 3vw, 32px); line-height: 1.18; letter-spacing: 0; font-weight: 680; color: var(--heading); text-align: center; }
.signature { margin: 12px 0 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.5; text-align: center; }
.category-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.category-bar { min-width: 0; width: 100%; min-height: 430px; padding: 20px; background: rgba(255, 255, 255, 0.46); border: 1px solid var(--line); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 12px 34px rgba(31,37,48,0.06); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.category-bar h2 { margin: 0 0 16px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); font-weight: 680; text-align: center; letter-spacing: 0; }
.link-stack { display: flex; flex-direction: column; gap: 16px; }
.category-empty .link-stack { min-height: 104px; }
.portal-link { min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 22px 26px; color: var(--text); text-decoration: none; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(31, 37, 48, 0.08), inset 0 1px 0 rgba(255,255,255,0.95); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease; }
.portal-link:hover { transform: translateY(-2px); border-color: rgba(80, 106, 138, 0.42); box-shadow: 0 16px 34px rgba(31, 37, 48, 0.12), inset 0 1px 0 rgba(255,255,255,1); }
.portal-link strong { display: block; font-size: 24px; line-height: 1.2; text-align: center; color: var(--heading); font-weight: 650; }
.portal-link-inner { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.site-icon { width: 34px; height: 34px; flex: 0 0 auto; display: block; object-fit: contain; border-radius: 8px; filter: none; }
@media (max-width: 760px) {
  .home-shell { width: min(100vw - 24px, 620px); padding: 24px 0; align-items: flex-start; }
  .category-grid { grid-template-columns: 1fr; gap: 22px; }
  .category-bar { min-height: 0; padding: 16px; border-radius: 22px; }
  .portal-link { min-height: 96px; border-radius: 20px; }
}
