:root {
  --bg: #070d1b;
  --bg-deep: #040812;
  --surface: rgba(15, 25, 48, .72);
  --surface-solid: #101a31;
  --surface-hover: rgba(23, 38, 71, .9);
  --border: rgba(151, 178, 233, .14);
  --border-strong: rgba(139, 171, 237, .28);
  --text: #f3f7ff;
  --text-soft: #b8c4db;
  --muted: #7686a5;
  --accent: #5b8cff;
  --accent-light: #7dd3fc;
  --accent-deep: #3157e8;
  --cyan: #35d9d1;
  --success: #36d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: radial-gradient(circle at 14% 0%, rgba(50, 89, 199, .18), transparent 27%), radial-gradient(circle at 89% 24%, rgba(30, 181, 185, .1), transparent 25%), linear-gradient(180deg, #080e1d 0%, var(--bg) 44%, #060b17 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; pointer-events: none; filter: blur(1px); opacity: .6; }
.ambient-one { top: 15vh; left: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(62, 109, 255, .22), transparent 68%); }
.ambient-two { right: -180px; bottom: 4vh; width: 470px; height: 470px; background: radial-gradient(circle, rgba(34, 211, 207, .13), transparent 68%); }
.grid-overlay { position: fixed; z-index: -3; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .017) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .017) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.site-header { position: fixed; z-index: 50; top: 0; right: 0; left: 0; height: var(--header-height); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.site-header.scrolled { border-color: var(--border); background: rgba(7, 13, 27, .78); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); backdrop-filter: blur(18px); }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; color: #fff; background: linear-gradient(145deg, #659aff, #3158e5); box-shadow: 0 9px 24px rgba(58, 101, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .2); font-size: 19px; font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: #6f84ae; font-size: 8px; font-weight: 700; letter-spacing: .24em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 10px 0; color: #91a0bc; font-size: 14px; transition: color .25s ease; }
.nav-link::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--accent-light); content: ""; transform: scaleX(0); transition: transform .25s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger, .admin-entry { display: inline-flex; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border); color: #aab8d2; background: rgba(16, 27, 51, .6); transition: .25s ease; }
.search-trigger { gap: 9px; padding: 0 11px 0 14px; border-radius: 12px; cursor: pointer; }
.search-trigger:hover, .admin-entry:hover { border-color: var(--border-strong); color: #fff; background: rgba(28, 43, 77, .82); transform: translateY(-1px); }
.search-trigger svg { width: 17px; height: 17px; }
.search-trigger span { font-size: 13px; }
.search-trigger kbd, .search-dialog-input kbd { padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; color: #7183a5; background: rgba(255, 255, 255, .035); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); font-family: inherit; font-size: 10px; }
.admin-entry { width: 42px; border-radius: 12px; }
.admin-entry svg { width: 17px; height: 17px; }
.hero { position: relative; padding: 164px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(380px, .86fr); align-items: center; gap: 74px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 10px; border: 1px solid rgba(111, 153, 255, .2); border-radius: 999px; color: #a9bce5; background: rgba(64, 102, 191, .1); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.pulse-dot { position: relative; display: block; width: 7px; height: 7px; border-radius: 50%; background: #5f8fff; box-shadow: 0 0 0 4px rgba(95, 143, 255, .12); }
.pulse-dot::after { position: absolute; inset: -5px; border: 1px solid rgba(95, 143, 255, .5); border-radius: 50%; content: ""; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.45); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
.hero h1 { max-width: 680px; margin: 24px 0 22px; color: #f7f9ff; font-size: clamp(46px, 5.1vw, 72px); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.hero h1 span { background: linear-gradient(112deg, #ffffff 5%, #dbe8ff 45%, #82b9ff 81%, #60e0dc 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { max-width: 580px; margin: 0; color: #9cabca; font-size: 17px; line-height: 1.85; }
.hero-search { position: relative; display: flex; max-width: 620px; height: 62px; align-items: center; margin-top: 34px; padding: 7px 7px 7px 20px; border: 1px solid rgba(133, 164, 229, .18); border-radius: 17px; background: rgba(13, 23, 45, .78); box-shadow: 0 18px 50px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035); backdrop-filter: blur(14px); transition: border-color .25s ease, box-shadow .25s ease; }
.hero-search:focus-within { border-color: rgba(101, 143, 255, .55); box-shadow: 0 18px 60px rgba(26, 73, 197, .18), 0 0 0 4px rgba(70, 115, 235, .08); }
.hero-search > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #6e83ab; }
.hero-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: #ecf2ff; background: transparent; font-size: 15px; }
.hero-search input::placeholder, .search-dialog-input input::placeholder { color: #637392; }
.hero-search button { height: 48px; flex: 0 0 auto; padding: 0 22px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #5e91ff, #3861e9); box-shadow: 0 9px 25px rgba(54, 92, 222, .35), inset 0 1px 0 rgba(255, 255, 255, .22); cursor: pointer; font-size: 14px; font-weight: 650; transition: transform .2s ease, box-shadow .2s ease; }
.hero-search button:hover { box-shadow: 0 12px 30px rgba(54, 92, 222, .5), inset 0 1px 0 rgba(255, 255, 255, .22); transform: translateY(-1px); }
.hero-meta { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.primary-button { display: inline-flex; height: 48px; align-items: center; gap: 8px; padding: 0 17px 0 20px; border: 1px solid rgba(128, 164, 255, .26); border-radius: 13px; color: #dbe5ff; background: rgba(54, 88, 181, .14); font-size: 14px; font-weight: 600; transition: .25s ease; }
.primary-button svg { width: 16px; height: 16px; }
.primary-button:hover { border-color: rgba(128, 164, 255, .5); color: #fff; background: rgba(54, 88, 181, .28); transform: translateX(2px); }
.hero-stat { display: flex; align-items: center; gap: 8px; color: #7383a3; font-size: 12px; }
.hero-stat strong { color: #e7eeff; font-size: 20px; font-weight: 700; }
.hero-stat + .hero-stat { position: relative; }
.hero-stat + .hero-stat::before { position: absolute; top: 4px; bottom: 4px; left: -14px; width: 1px; background: rgba(255, 255, 255, .1); content: ""; }
.hero-panel { position: relative; padding: 22px; overflow: hidden; border: 1px solid rgba(128, 160, 224, .16); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(20, 34, 65, .86), rgba(10, 19, 39, .84)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .045); backdrop-filter: blur(20px); }
.panel-glow { position: absolute; top: -120px; right: -100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 124, 255, .3), transparent 68%); pointer-events: none; }
.panel-header, .panel-footer { position: relative; display: flex; align-items: center; justify-content: space-between; }
.panel-header { margin-bottom: 18px; color: #dbe5fb; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: #6f83a8; font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(54, 211, 153, .1); }
.featured-card { position: relative; display: flex; min-height: 128px; align-items: center; gap: 18px; padding: 22px; border: 1px solid rgba(128, 160, 224, .15); border-radius: 20px; background: linear-gradient(135deg, rgba(40, 71, 143, .28), rgba(15, 27, 55, .42)); transition: border-color .25s ease, transform .25s ease; }
.featured-card:hover { border-color: rgba(128, 166, 255, .35); transform: translateY(-2px); }
.featured-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 17px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 12px 30px rgba(0, 0, 0, .18); font-size: 22px; font-weight: 800; }
.featured-info { min-width: 0; flex: 1; }
.featured-info h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.featured-info p { display: -webkit-box; margin: 0; overflow: hidden; color: #8291af; font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-arrow { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(128, 160, 224, .17); border-radius: 12px; color: #7b91bb; background: rgba(8, 16, 33, .34); transition: .25s ease; }
.featured-card:hover .featured-arrow { border-color: rgba(111, 154, 255, .5); color: #fff; background: var(--accent); }
.featured-arrow svg { width: 16px; height: 16px; }
.panel-list { position: relative; display: grid; gap: 8px; margin-top: 11px; }
.mini-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 12px; color: #a3b1ca; transition: background .2s ease, color .2s ease; }
.mini-link:hover { color: #fff; background: rgba(255, 255, 255, .035); }
.mini-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; color: #d8e1f5; background: rgba(255, 255, 255, .035); font-size: 12px; font-weight: 750; }
.mini-link div { min-width: 0; flex: 1; }
.mini-link strong, .mini-link small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-link strong { color: #d9e2f5; font-size: 12px; font-weight: 600; }
.mini-link small { margin-top: 1px; color: #667796; font-size: 10px; }
.mini-link > svg { width: 13px; height: 13px; color: #52668b; }
.panel-footer { margin-top: 13px; padding: 15px 4px 2px; border-top: 1px solid rgba(255, 255, 255, .06); color: #637493; font-size: 10px; }
.panel-footer a { color: #8ea6d5; font-weight: 600; }
.panel-footer a:hover { color: #fff; }
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, .055); }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); content: ""; animation: shimmer 1.4s infinite; transform: translateX(-100%); }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-icon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 17px; }
.skeleton-lines { display: grid; width: 70%; gap: 9px; }
.skeleton-lines span { height: 11px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.skeleton-lines span:last-child { width: 72%; }
.announcement-wrap { padding: 0 0 18px; }
.announcement { display: flex; min-height: 48px; align-items: center; gap: 14px; padding: 0 17px; border: 1px solid rgba(105, 144, 225, .12); border-radius: 14px; color: #7484a4; background: rgba(14, 24, 46, .52); font-size: 12px; }
.announcement-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .08); color: #91a8d7; font-weight: 650; letter-spacing: .05em; }
.announcement-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.announcement-track { min-width: 0; flex: 1; overflow: hidden; }
.announcement-track span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.announcement-date { flex: 0 0 auto; color: #53627e; }
.section { padding: 78px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-kicker { color: #5681e6; font-size: 10px; font-weight: 800; letter-spacing: .25em; }
.section-heading h2 { margin: 8px 0 5px; color: #f0f4ff; font-size: 32px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: #7484a4; font-size: 13px; }
.view-tools { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: rgba(12, 21, 41, .58); }
.view-button { display: grid; width: 36px; height: 34px; place-items: center; border: 0; border-radius: 8px; color: #667897; background: transparent; cursor: pointer; transition: .2s ease; }
.view-button svg { width: 15px; height: 15px; }
.view-button:hover, .view-button.active { color: #dce7ff; background: rgba(83, 123, 222, .18); }
.filter-row { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 26px; }
.category-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; color: #7d8cab; background: transparent; cursor: pointer; font-size: 12px; transition: .22s ease; }
.category-tab:hover { color: #d3ddf1; background: rgba(255, 255, 255, .035); }
.category-tab.active { border-color: rgba(107, 148, 246, .19); color: #e9efff; background: rgba(59, 95, 194, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
.category-tab .tab-count { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 6px; color: #657796; background: rgba(255, 255, 255, .045); font-size: 9px; }
.category-tab.active .tab-count { color: #b9c9ec; background: rgba(107, 148, 246, .16); }
.clear-search { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; color: #7d8dac; background: rgba(12, 21, 41, .48); cursor: pointer; font-size: 11px; }
.clear-search:hover { color: #fff; border-color: var(--border-strong); }
.clear-search svg { width: 12px; height: 12px; }
.directory-content { display: grid; gap: 48px; }
.link-group { animation: groupIn .5s both; }
@keyframes groupIn { from { opacity: 0; transform: translateY(12px); } }
.group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.group-heading-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(128, 160, 224, .13); border-radius: 10px; background: rgba(54, 84, 155, .12); font-size: 15px; }
.group-heading h3 { margin: 0; color: #dce5f7; font-size: 16px; font-weight: 650; }
.group-heading p { margin: 0; color: #5f708f; font-size: 11px; }
.group-count { margin-left: auto; color: #4f5f7b; font-size: 10px; letter-spacing: .08em; }
.links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.link-card { position: relative; display: flex; min-height: 166px; flex-direction: column; padding: 19px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(18, 30, 58, .72), rgba(10, 18, 37, .72)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); transition: border-color .27s ease, transform .27s ease, box-shadow .27s ease, background .27s ease; }
.link-card::before { position: absolute; top: -80px; right: -80px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--card-color) 22%, transparent), transparent 67%); content: ""; opacity: .55; transition: opacity .3s ease, transform .4s ease; }
.link-card:hover { border-color: rgba(125, 161, 239, .32); background: linear-gradient(145deg, rgba(24, 40, 76, .88), rgba(11, 20, 42, .86)); box-shadow: 0 18px 45px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .045); transform: translateY(-4px); }
.link-card:hover::before { opacity: .85; transform: scale(1.14); }
.card-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.card-icon { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 80%, #ffffff 5%), color-mix(in srgb, var(--card-color) 72%, #07101f 28%)); box-shadow: 0 10px 25px color-mix(in srgb, var(--card-color) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .16); font-size: 17px; font-weight: 800; }
.card-badge { padding: 4px 7px; border: 1px solid rgba(105, 150, 255, .16); border-radius: 7px; color: #91a9dc; background: rgba(65, 104, 205, .12); font-size: 9px; letter-spacing: .04em; }
.card-content { position: relative; margin-top: 15px; }
.card-content h4 { margin: 0; color: #e7edf9; font-size: 15px; font-weight: 650; }
.card-content p { display: -webkit-box; min-height: 36px; margin: 7px 0 0; overflow: hidden; color: #6f7f9d; font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 13px; color: #53617d; font-size: 9px; }
.card-bottom svg { width: 14px; height: 14px; color: #586b92; transition: color .25s ease, transform .25s ease; }
.link-card:hover .card-bottom svg { color: #9cb5eb; transform: translate(2px, -2px); }
.directory-content.list-mode .links-grid { grid-template-columns: 1fr; gap: 9px; }
.directory-content.list-mode .link-card { min-height: 0; flex-direction: row; align-items: center; gap: 15px; padding: 15px 17px; }
.directory-content.list-mode .card-top { flex: 0 0 auto; }
.directory-content.list-mode .card-badge { display: none; }
.directory-content.list-mode .card-icon { width: 42px; height: 42px; border-radius: 12px; }
.directory-content.list-mode .card-content { min-width: 0; flex: 1; margin: 0; }
.directory-content.list-mode .card-content p { min-height: 0; margin-top: 3px; -webkit-line-clamp: 1; }
.directory-content.list-mode .card-bottom { width: 24px; margin: 0; padding: 0; }
.directory-content.list-mode .card-bottom span { display: none; }
.empty-state { padding: 70px 24px; border: 1px dashed rgba(128, 160, 224, .18); border-radius: 22px; text-align: center; }
.empty-icon { display: grid; width: 56px; height: 56px; margin: 0 auto 16px; place-items: center; border-radius: 17px; color: #6581bd; background: rgba(70, 108, 197, .1); }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { margin: 0 0 6px; font-size: 18px; }
.empty-state p { margin: 0 0 20px; color: #71809e; font-size: 13px; }
.empty-state button { padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 10px; color: #cddaf6; background: rgba(66, 103, 199, .14); cursor: pointer; }
.notice-section { padding-top: 30px; }
.notice-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 29px 30px; overflow: hidden; border: 1px solid rgba(102, 143, 226, .16); border-radius: 22px; background: radial-gradient(circle at 92% 20%, rgba(59, 105, 220, .13), transparent 30%), linear-gradient(135deg, rgba(21, 36, 70, .75), rgba(11, 19, 39, .75)); }
.notice-card::after { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, #5b8cff, #35d9d1); content: ""; }
.notice-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(108, 147, 235, .18); border-radius: 15px; color: #7ba4ff; background: rgba(66, 108, 211, .12); }
.notice-icon svg { width: 23px; height: 23px; }
.notice-copy > span { color: #4e6ba7; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.notice-copy h2 { margin: 4px 0 7px; font-size: 18px; }
.notice-copy p { max-width: 760px; margin: 0; color: #7585a4; font-size: 12px; line-height: 1.8; }
.notice-link { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; color: #8799bd; background: rgba(9, 17, 34, .38); font-size: 11px; transition: .2s ease; }
.notice-link:hover { border-color: var(--border-strong); color: #fff; }
.site-footer { padding: 30px 0 42px; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-mark.small { width: 35px; height: 35px; border-radius: 11px; font-size: 15px; }
.footer-brand strong { color: #b8c5df; font-size: 13px; }
.footer-brand p { margin: 2px 0 0; color: #52617e; font-size: 10px; }
.footer-right { display: flex; align-items: center; gap: 18px; color: #4d5c78; font-size: 10px; }
.footer-right a:hover { color: #a8bce5; }
.search-modal { position: fixed; z-index: 100; inset: 0; display: grid; align-items: start; justify-items: center; padding: 12vh 20px 30px; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s; }
.search-modal.open { visibility: visible; opacity: 1; }
.search-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 14, .72); backdrop-filter: blur(9px); }
.search-dialog { position: relative; width: min(100%, 650px); overflow: hidden; border: 1px solid rgba(128, 160, 224, .22); border-radius: 20px; background: #101a30; box-shadow: 0 35px 100px rgba(0, 0, 0, .55); transform: translateY(-15px) scale(.985); transition: transform .25s ease; }
.search-modal.open .search-dialog { transform: none; }
.search-dialog-input { display: flex; height: 64px; align-items: center; gap: 14px; padding: 0 17px; border-bottom: 1px solid var(--border); }
.search-dialog-input > svg { width: 21px; height: 21px; color: #7286ae; }
.search-dialog-input input { min-width: 0; flex: 1; border: 0; outline: 0; color: #fff; background: transparent; font-size: 15px; }
.search-results { max-height: 430px; overflow-y: auto; padding: 10px; }
.search-hint, .search-empty { padding: 60px 20px; color: #5f6e8a; text-align: center; font-size: 12px; }
.search-result { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 13px; transition: background .18s ease; }
.search-result:hover { background: rgba(255, 255, 255, .05); }
.search-result .result-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 75%, #fff 5%), color-mix(in srgb, var(--card-color) 70%, #060c17 30%)); font-size: 14px; font-weight: 750; }
.search-result-info { min-width: 0; flex: 1; }
.search-result-info strong, .search-result-info small { display: block; }
.search-result-info strong { color: #dce5f7; font-size: 13px; }
.search-result-info small { margin-top: 2px; overflow: hidden; color: #697996; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.search-result > span { color: #4f6080; font-size: 10px; }
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; padding: 11px 15px; border: 1px solid var(--border-strong); border-radius: 11px; color: #dce6fb; background: rgba(20, 33, 61, .96); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .22s ease; }
.toast.show { opacity: 1; transform: none; }
.back-to-top { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border-strong); border-radius: 12px; color: #9eb2db; background: rgba(15, 25, 48, .88); box-shadow: 0 12px 35px rgba(0, 0, 0, .24); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s ease; backdrop-filter: blur(12px); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: #fff; border-color: rgba(117, 157, 246, .48); }
.reveal { animation: revealUp .7s both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.featured-icon,
.mini-icon,
.card-icon,
.search-result .result-icon {
  overflow: hidden;
}

.featured-icon img,
.mini-icon img,
.card-icon img,
.search-result .result-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 42px; }
  .links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-nav { gap: 22px; }
}
@media (max-width: 860px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .desktop-nav, .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 42px; padding: 0; }
  .hero { padding: 128px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-content { text-align: center; }
  .hero h1, .hero-subtitle, .hero-search { margin-inline: auto; }
  .hero h1 { font-size: clamp(42px, 10vw, 60px); }
  .hero-meta { justify-content: center; }
  .hero-panel { width: min(100%, 580px); margin-inline: auto; }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-card { grid-template-columns: auto 1fr; }
  .notice-link { grid-column: 2; justify-self: start; }
  .footer-inner { align-items: flex-start; }
  .footer-right { flex-direction: column; align-items: flex-end; gap: 6px; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-copy small { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { padding-top: 115px; }
  .hero h1 { margin-top: 20px; font-size: clamp(38px, 12vw, 52px); letter-spacing: -.05em; }
  .hero-subtitle { font-size: 14px; line-height: 1.75; }
  .hero-search { height: 56px; padding-left: 16px; }
  .hero-search button { width: 48px; height: 44px; padding: 0; font-size: 0; }
  .hero-search button::after { content: "→"; font-size: 18px; }
  .hero-meta { flex-wrap: wrap; gap: 16px 24px; }
  .hero-stat + .hero-stat::before { left: -13px; }
  .hero-panel { padding: 17px; border-radius: 22px; }
  .featured-card { min-height: 112px; padding: 17px; }
  .featured-icon { width: 51px; height: 51px; border-radius: 15px; }
  .featured-arrow { display: none; }
  .announcement { gap: 10px; padding: 0 13px; }
  .announcement-date { display: none; }
  .section { padding: 58px 0; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { display: none; }
  .filter-row { align-items: flex-start; flex-direction: column; margin-top: 22px; }
  .category-tabs { width: 100%; }
  .clear-search { align-self: flex-end; margin-top: -4px; }
  .directory-content { gap: 38px; }
  .links-grid { grid-template-columns: 1fr; gap: 10px; }
  .link-card { min-height: 138px; }
  .notice-card { grid-template-columns: 1fr; gap: 13px; padding: 24px 22px; }
  .notice-icon { width: 43px; height: 43px; }
  .notice-link { grid-column: auto; margin-top: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .back-to-top { right: 14px; bottom: 14px; }
  .toast { right: 14px; bottom: 66px; left: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

