:root {
  --ink: #17213c;
  --muted: #69748e;
  --muted-2: #929bb0;
  --surface: #ffffff;
  --surface-soft: #f6f8fe;
  --line: #e8ecf7;
  --primary: #4f6fea;
  --primary-deep: #3855cf;
  --purple: #8b5cf6;
  --pink: #ef6aa8;
  --cyan: #11b8d4;
  --green: #18b87d;
  --orange: #f59e0b;
  --shadow-sm: 0 8px 24px rgba(32, 48, 94, .07);
  --shadow-md: 0 18px 52px rgba(35, 50, 100, .12);
  --shadow-lg: 0 30px 80px rgba(30, 45, 95, .18);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 22%, rgba(107, 140, 255, .07), transparent 22rem),
    radial-gradient(circle at 95% 52%, rgba(239, 106, 168, .06), transparent 24rem),
    #f8f9fe;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.rainbow-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4f7df3 0%, #8b5cf6 28%, #ef6aa8 52%, #f59e0b 72%, #19c08a 100%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(229, 234, 247, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 7px 13px rgba(77, 104, 220, .2)); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; letter-spacing: .2px; }
.brand-copy small { color: #8f98ae; font-size: 8.5px; font-weight: 800; letter-spacing: 1.65px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  position: relative;
  padding: 10px 15px;
  color: #5f6a83;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: .2s ease;
}
.main-nav a:hover { color: var(--primary); background: #f1f4ff; }
.main-nav a.active { color: var(--primary-deep); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #5f83f6, #9a63f2, #f26da8);
  transform: translateX(-50%);
}
.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: #56617a;
  border: 1px solid #e2e7f3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(41, 55, 100, .04);
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.admin-entry:hover { color: var(--primary); border-color: #cbd6fa; transform: translateY(-1px); }
.admin-entry svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  background:
    radial-gradient(circle at 83% 14%, rgba(255,255,255,.28), transparent 16rem),
    linear-gradient(126deg, #eef4ff 0%, #f5f1ff 48%, #fff4f8 100%);
  border-bottom: 1px solid #e9edfa;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: linear-gradient(rgba(88, 111, 201, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(88, 111, 201, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.5), transparent 75%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 450px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  align-items: center;
  gap: 50px;
  padding: 54px 0 66px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #6873a4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #5f82f4, #ef6aa8); box-shadow: 0 0 0 5px rgba(103, 126, 235, .1); }
.hero h1 {
  margin: 0;
  color: #17213c;
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.23;
  letter-spacing: -2.4px;
  font-weight: 900;
}
.hero h1 em {
  position: relative;
  color: transparent;
  background: linear-gradient(95deg, #4d71ea 10%, #865eeb 48%, #eb679f 90%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: -7px;
  height: 7px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(81, 117, 236, .2), rgba(235, 103, 159, .28));
  filter: blur(1px);
}
.hero-copy > p {
  max-width: 620px;
  margin: 25px 0 28px;
  color: #68728b;
  font-size: 16px;
  line-height: 1.9;
}
.search-box {
  display: flex;
  align-items: center;
  width: min(620px, 100%);
  height: 62px;
  padding: 0 12px 0 20px;
  border: 1px solid rgba(160, 174, 220, .4);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 45px rgba(58, 75, 139, .13), inset 0 1px 0 #fff;
  transition: .25s ease;
}
.search-box:focus-within { border-color: rgba(91, 119, 232, .65); box-shadow: 0 20px 52px rgba(58, 75, 139, .18), 0 0 0 4px rgba(85, 113, 232, .09); }
.search-box svg { width: 21px; fill: none; stroke: #7585b7; stroke-width: 1.9; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-box input::placeholder { color: #a0a9bd; }
.search-box kbd { padding: 5px 8px; color: #929bb0; border: 1px solid #e4e8f3; border-radius: 7px; background: #f8f9fd; font-family: inherit; font-size: 11px; }
.hero-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 280px; height: 280px; right: -80px; top: -100px; background: rgba(147, 118, 244, .09); }
.orb-two { width: 180px; height: 180px; left: 35%; bottom: -110px; background: rgba(72, 198, 206, .08); }
.hero-visual { position: relative; height: 340px; perspective: 1000px; }
.folder-stack { position: absolute; left: 50%; width: 270px; height: 198px; border-radius: 26px; transform-style: preserve-3d; }
.folder-back { top: 48px; background: #c5d4ff; transform: translateX(-48%) rotate(-8deg); opacity: .7; }
.folder-mid { top: 72px; background: #dad2ff; transform: translateX(-52%) rotate(6deg); opacity: .72; }
.folder-front {
  top: 90px;
  padding: 58px 30px 26px;
  background: linear-gradient(145deg, #7190f5, #8e6ee9 70%, #a769e9);
  box-shadow: 0 32px 60px rgba(77, 87, 176, .3), inset 0 1px 0 rgba(255,255,255,.5);
  transform: translateX(-50%) rotate(-2deg);
}
.folder-front::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -27px;
  width: 104px;
  height: 44px;
  border-radius: 18px 18px 0 0;
  background: #7693f3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
  transform: skewX(-8deg);
}
.folder-tab { position: absolute; left: 25px; top: -20px; z-index: 2; color: rgba(255,255,255,.9); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.document-lines { display: grid; gap: 15px; padding-top: 10px; }
.document-lines i { height: 9px; border-radius: 10px; background: rgba(255,255,255,.76); }
.document-lines i:nth-child(1) { width: 82%; }
.document-lines i:nth-child(2) { width: 63%; }
.document-lines i:nth-child(3) { width: 74%; }
.visual-badge { position: absolute; right: 22px; bottom: 20px; padding: 8px 12px; color: #5a5b97; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(55, 51, 115, .18); font-size: 11px; font-weight: 800; }
.float-chip {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 4;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 30px rgba(51, 68, 132, .16);
  backdrop-filter: blur(10px);
  font-weight: 900;
  animation: float 4s ease-in-out infinite;
}
.chip-pdf { left: 6px; top: 55px; width: 62px; height: 66px; color: #eb5c83; border-radius: 17px; font-size: 13px; }
.chip-doc { right: 0; top: 72px; width: 64px; height: 55px; color: #4c80ed; border-radius: 16px; font-size: 12px; animation-delay: -1.6s; }
.chip-check { right: 28px; bottom: 36px; width: 45px; height: 45px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #22c98a, #12aa7a); font-size: 21px; animation-delay: -.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; background: #f8f9fe; clip-path: polygon(0 74%, 34% 25%, 57% 63%, 80% 28%, 100% 70%, 100% 100%, 0 100%); }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: -16px auto 0; position: relative; z-index: 3; }
.notice-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid #e7eaf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.notice-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #ed7c50; border-radius: 13px; background: #fff5ec; }
.notice-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice-card > div:nth-child(2) { flex: 1; min-width: 0; }
.notice-card strong { display: block; margin-bottom: 4px; font-size: 13px; }
.notice-card p { margin: 0; overflow: hidden; color: #727c94; font-size: 13px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.notice-tag { padding: 7px 11px; color: #9467df; border-radius: 999px; background: #f5efff; font-size: 11px; font-weight: 800; }
.stats-strip {
  display: flex;
  align-items: center;
  margin: 20px 0 34px;
  padding: 20px 24px;
  border: 1px solid #e8ecf7;
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 35px rgba(40, 55, 105, .045);
}
.stat-item { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; }
.stat-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { color: #4e77ed; background: #edf2ff; }
.icon-purple { color: #8b5cf6; background: #f3edff; }
.icon-pink { color: #ec679f; background: #fff0f6; }
.stat-item div { display: grid; gap: 2px; }
.stat-item strong { font-size: 20px; letter-spacing: -.4px; }
.stat-item small { color: #8a94aa; font-size: 11px; }
.stat-divider { width: 1px; height: 36px; margin: 0 28px; background: #e9ecf5; }
.stat-note { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #8992a8; font-size: 11px; }
.stat-note i { width: 7px; height: 7px; border-radius: 50%; background: #23c88a; box-shadow: 0 0 0 4px rgba(35,200,138,.1); }
.library-section { display: grid; grid-template-columns: 278px minmax(0, 1fr); align-items: start; gap: 25px; scroll-margin-top: 94px; }
.category-panel { position: sticky; top: 98px; }
.panel-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; padding: 0 3px; }
.title-kicker { display: block; margin-bottom: 5px; color: #8a93aa; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
.panel-title h2, .content-header h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.folder-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; color: #6b76a0; border-radius: 10px; background: #edf1fb; font-size: 12px; font-weight: 800; }
.category-list { display: grid; gap: 9px; }
.category-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  color: #556078;
  border: 1px solid #e9ecf6;
  border-radius: 15px;
  background: rgba(255,255,255,.85);
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}
.category-button:hover { border-color: #d5dcf5; background: #fff; transform: translateX(3px); box-shadow: 0 8px 22px rgba(45, 63, 119, .07); }
.category-button.active { color: var(--category-color, #4f6fea); border-color: color-mix(in srgb, var(--category-color, #4f6fea) 35%, #fff); background: color-mix(in srgb, var(--category-color, #4f6fea) 7%, #fff); box-shadow: 0 10px 26px rgba(45, 63, 119, .08); }
.category-button.active::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 0 4px 4px 0; background: var(--category-color, #4f6fea); }
.category-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; margin-right: 11px; border-radius: 12px; background: color-mix(in srgb, var(--category-color, #4f6fea) 11%, #fff); font-size: 20px; }
.category-info { flex: 1; min-width: 0; }
.category-info strong { display: block; overflow: hidden; color: #3b465f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.category-info small { display: block; overflow: hidden; margin-top: 4px; color: #99a2b6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.category-number { margin-left: 8px; color: #a6aec0; font-size: 11px; font-weight: 800; }
.help-card { position: relative; overflow: hidden; margin-top: 22px; padding: 22px 20px 20px; border-radius: 20px; background: linear-gradient(145deg, #eaf0ff, #f4efff 60%, #fff1f7); }
.help-card::after { content: ""; position: absolute; right: -32px; top: -38px; width: 105px; height: 105px; border-radius: 50%; border: 18px solid rgba(255,255,255,.34); }
.help-illustration { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #6e8cf1, #a366e7); box-shadow: 0 9px 20px rgba(101, 104, 210, .22); font-size: 18px; font-weight: 900; }
.help-card strong { position: relative; z-index: 1; display: block; font-size: 14px; }
.help-card p { position: relative; z-index: 1; margin: 8px 0 15px; color: #747e98; font-size: 11.5px; line-height: 1.75; }
.help-card a { position: relative; z-index: 1; color: #6659ce; font-size: 12px; font-weight: 800; }
.help-card a span { display: inline-block; transition: transform .2s; }
.help-card a:hover span { transform: translateX(3px); }
.content-panel { min-width: 0; }
.content-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 17px; padding: 0 3px; }
.content-header p { margin: 7px 0 0; color: #929bb0; font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 10px; }
.sort-control { display: flex; align-items: center; height: 39px; padding: 0 8px 0 12px; border: 1px solid #e4e8f3; border-radius: 11px; background: #fff; }
.sort-control span { margin-right: 6px; color: #9ba4b8; font-size: 11px; }
.sort-control select { border: 0; outline: 0; color: #57627b; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.view-switch { display: flex; height: 39px; padding: 4px; border: 1px solid #e4e8f3; border-radius: 11px; background: #fff; }
.view-switch button { display: grid; place-items: center; width: 31px; color: #9aa3b7; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.view-switch button.active { color: #5473e3; background: #eff3ff; }
.view-switch svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.view-switch svg rect { fill: currentColor; stroke: none; }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.file-grid.list-view { grid-template-columns: 1fr; }
.file-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e8ebf4;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(41, 56, 100, .045);
  transition: .24s ease;
}
.file-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--file-accent, #5b7cf0); opacity: 0; transition: opacity .2s; }
.file-card:hover { border-color: #d9dff1; transform: translateY(-3px); box-shadow: 0 18px 42px rgba(39, 54, 105, .11); }
.file-card:hover::before { opacity: 1; }
.file-card-main { padding: 18px 18px 15px; }
.file-top { display: flex; align-items: flex-start; gap: 13px; }
.file-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  flex: 0 0 48px;
  color: var(--file-accent, #5b7cf0);
  border-radius: 12px;
  background: color-mix(in srgb, var(--file-accent, #5b7cf0) 10%, #fff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.file-icon::after { content: ""; position: absolute; right: 6px; top: 6px; width: 11px; height: 11px; border-top: 2px solid var(--file-accent, #5b7cf0); border-right: 2px solid var(--file-accent, #5b7cf0); opacity: .38; }
.file-title-area { min-width: 0; flex: 1; }
.badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.file-badge { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 0; color: var(--category-color, #77839f); font-size: 10px; font-weight: 800; }
.official-badge { display: inline-flex; align-items: center; padding: 3px 7px; color: #15825e; border: 1px solid #bcecdb; border-radius: 999px; background: #eafaf4; font-size: 9px; font-weight: 900; }
.official-badge:hover { color: #0c6e4e; border-color: #8edbc0; }
.file-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--category-color, #77839f); }
.file-card h3 { margin: 0; color: #2c374f; font-size: 14.5px; line-height: 1.5; letter-spacing: -.15px; }
.file-card h3 a:hover { color: var(--primary); }
.file-desc { display: -webkit-box; overflow: hidden; min-height: 38px; margin: 13px 0 15px; color: #818ba1; font-size: 11.5px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.file-meta { display: flex; align-items: center; gap: 13px; color: #9da6b8; font-size: 10.5px; }
.file-meta span { display: inline-flex; align-items: center; gap: 4px; }
.file-meta svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 18px 17px; border-top: 1px solid #f0f2f7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s ease; }
.button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #fff; background: linear-gradient(100deg, #5879ec, #775fdf); box-shadow: 0 8px 18px rgba(82, 103, 220, .2); }
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(82, 103, 220, .28); }
.button-soft { color: #65708a; border-color: #e5e8f1; background: #fff; }
.button-soft:hover { color: #4e6fde; border-color: #ccd6f7; background: #f8faff; }
.file-grid.list-view .file-card { display: grid; grid-template-columns: minmax(0, 1fr) 240px; }
.file-grid.list-view .file-card-main { padding: 18px 20px; }
.file-grid.list-view .file-desc { min-height: auto; margin-bottom: 10px; }
.file-grid.list-view .file-actions { align-self: stretch; grid-template-columns: 1fr; align-content: center; padding: 14px 18px; border-top: 0; border-left: 1px solid #f0f2f7; }
.file-grid.list-view .button { width: 100%; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 330px; padding: 40px; border: 1px dashed #dce2f2; border-radius: 20px; background: rgba(255,255,255,.66); text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 18px; color: #8094da; border-radius: 22px; background: #edf2ff; font-size: 30px; }
.empty-state h3 { margin: 0 0 8px; font-size: 17px; }
.empty-state p { margin: 0; color: #8f98ac; font-size: 12px; }
.skeleton { min-height: 246px; border: 1px solid #eceff7; border-radius: 19px; background: linear-gradient(100deg, #fff 20%, #f5f7fc 40%, #fff 60%); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }
.contact-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 60px 0 74px;
  padding: 32px 38px;
  color: #fff;
  border-radius: 25px;
  background: linear-gradient(115deg, #455fc6, #6b63d4 52%, #9a5ec8);
  box-shadow: 0 24px 55px rgba(63, 75, 164, .2);
  scroll-margin-top: 100px;
}
.contact-banner::before { content: ""; position: absolute; right: 90px; top: -100px; width: 270px; height: 270px; border-radius: 50%; border: 46px solid rgba(255,255,255,.07); }
.contact-banner::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.05); }
.contact-banner > * { position: relative; z-index: 1; }
.contact-banner span { color: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.contact-banner h2 { margin: 8px 0 7px; font-size: 24px; }
.contact-banner p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.contact-banner a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.contact-banner a:hover { background: rgba(255,255,255,.2); }
.site-footer { border-top: 1px solid #e9ecf6; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1180px, calc(100% - 40px)); min-height: 110px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.mini-brand { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #607ff0, #a15ed9); font-size: 16px; font-weight: 900; box-shadow: 0 9px 18px rgba(86, 101, 201, .2); }
.footer-brand strong { display: block; font-size: 13px; }
.footer-brand p, .footer-inner > p { margin: 4px 0 0; color: #939caf; font-size: 10.5px; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: .22s ease; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21, 30, 58, .58); backdrop-filter: blur(6px); }
.preview-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(920px, 100%); height: min(760px, calc(100vh - 48px)); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: .24s ease; }
.modal.open .preview-dialog { transform: translateY(0) scale(1); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #eceff6; }
.preview-head small { display: block; margin-bottom: 3px; color: #9aa3b6; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.preview-head h3 { max-width: 730px; margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.preview-head button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #78839b; border: 0; border-radius: 10px; background: #f4f6fa; cursor: pointer; }
.preview-head button:hover { color: #d04f78; background: #fff1f6; }
.preview-head svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.preview-body { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; background: #f2f4f9; }
.preview-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-body pre { width: 100%; height: 100%; margin: 0; overflow: auto; padding: 24px; color: #26324b; background: #fff; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.preview-unsupported { padding: 30px; color: #7b859b; text-align: center; }
.preview-unsupported span { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; background: #e7ebf5; font-size: 30px; }
.preview-unsupported strong { display: block; margin-bottom: 7px; color: #46516a; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; border-top: 1px solid #eceff6; }
.preview-foot span { color: #969fb2; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; max-width: calc(100% - 40px); padding: 12px 17px; color: #fff; border-radius: 12px; background: #273552; box-shadow: 0 14px 35px rgba(21, 31, 59, .26); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-visual { display: none; }
  .hero-copy { max-width: 760px; }
  .stats-strip { flex-wrap: wrap; gap: 18px; }
  .stat-item { min-width: 160px; }
  .stat-divider { display: none; }
  .stat-note { margin-left: 0; }
  .library-section { grid-template-columns: 1fr; }
  .category-panel { position: static; }
  .category-list { display: flex; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .category-button { min-width: 210px; }
  .help-card { display: none; }
}
@media (max-width: 760px) {
  .header-inner { width: min(100% - 24px, 1180px); height: 68px; gap: 10px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small, .main-nav, .admin-entry span { display: none; }
  .admin-entry { width: 39px; height: 39px; justify-content: center; padding: 0; }
  .hero-grid, .page-shell, .footer-inner { width: min(100% - 24px, 1180px); }
  .hero-grid { padding: 38px 0 55px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.7px; }
  .hero-copy > p { margin-top: 20px; font-size: 14px; }
  .search-box { height: 56px; border-radius: 15px; }
  .search-box kbd { display: none; }
  .page-shell { margin-top: -14px; }
  .notice-card { align-items: flex-start; }
  .notice-card p { white-space: normal; }
  .notice-tag { display: none; }
  .stats-strip { margin: 14px 0 28px; padding: 17px; }
  .stat-item { min-width: calc(50% - 10px); }
  .stat-icon { width: 38px; height: 38px; }
  .stat-item strong { font-size: 18px; }
  .content-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .toolbar { width: 100%; }
  .category-link-button { padding: 0 10px; font-size: 0; }
  .category-link-button svg { width: 16px; }
  .sort-control { flex: 1; }
  .file-grid { grid-template-columns: 1fr; }
  .file-grid.list-view .file-card { display: block; }
  .file-grid.list-view .file-actions { grid-template-columns: 1fr auto auto; border-top: 1px solid #f0f2f7; border-left: 0; }
  .contact-banner { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .contact-banner h2 { font-size: 21px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 25px 0; }
  .preview-foot span { display: none; }
  .preview-foot .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.preview-loading { display: grid; place-items: center; gap: 12px; color: #7c879e; font-size: 11px; }
.preview-loading span { width: 28px; height: 28px; border: 3px solid #dfe5f2; border-top-color: #637fe5; border-radius: 50%; animation: preview-spin .8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.document-preview { align-self: start; width: min(780px, calc(100% - 36px)); min-height: 100%; margin: 24px auto; padding: 46px 54px; color: #303b52; background: #fff; box-shadow: 0 7px 28px rgba(31, 43, 78, .1); font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; font-size: 13px; line-height: 1.9; }
.document-preview h1, .document-preview h2, .document-preview h3 { color: #222e47; line-height: 1.5; }
.document-preview p { margin: 0 0 14px; }
.document-preview table { width: 100%; margin: 16px 0; border-collapse: collapse; }
.document-preview td, .document-preview th { padding: 8px; border: 1px solid #dfe4ef; }
.document-preview img { max-width: 100%; height: auto; }
.document-preview.legacy-document > p { padding: 12px 14px; color: #8a6940; border-radius: 10px; background: #fff8eb; font-size: 11px; }
.document-preview pre { margin: 18px 0 0; padding: 18px; overflow: auto; color: #35405a; border-radius: 12px; background: #f7f9fc; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.spreadsheet-preview { align-self: stretch; display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; }
.sheet-title { padding: 12px 17px; color: #4f5c76; border-bottom: 1px solid #e6eaf2; background: #f8faff; font-size: 11px; font-weight: 800; }
.sheet-scroller { flex: 1; overflow: auto; padding: 16px; }
.preview-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.preview-table th, .preview-table td { min-width: 100px; max-width: 320px; padding: 8px 10px; overflow: hidden; color: #4b566e; border-right: 1px solid #e5e9f1; border-bottom: 1px solid #e5e9f1; text-overflow: ellipsis; white-space: nowrap; }
.preview-table th { position: sticky; top: 0; z-index: 2; color: #3f4c68; background: #eef3ff; font-weight: 800; text-align: left; }
.preview-table td:first-child, .preview-table th:first-child { position: sticky; left: 0; z-index: 1; background: #f8faff; }
.preview-table th:first-child { z-index: 3; background: #e9f0ff; }

.category-link-button { min-height: 39px; white-space: nowrap; }

body.file-detail-mode .hero,
body.file-detail-mode .page-shell { display: none; }
.file-detail-page { padding: 34px 0 70px; background: linear-gradient(180deg, #eef3ff 0, #f8f9fe 260px, #f8f9fe 100%); }
.detail-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.detail-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #929bb0; font-size: 11px; }
.detail-breadcrumb a:hover { color: #5270da; }
.detail-head { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 26px; border: 1px solid #e5e9f4; border-radius: 23px; background: #fff; box-shadow: 0 18px 48px rgba(37, 52, 100, .08); }
.detail-file-icon { display: grid; place-items: center; width: 70px; height: 82px; color: #e45b83; border-radius: 18px; background: #fff0f5; font-size: 14px; font-weight: 900; }
.detail-heading { min-width: 0; }
.detail-category { display: inline-flex; margin-bottom: 8px; color: #6875af; font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.detail-heading h1 { margin: 0; color: #222e47; font-size: clamp(24px, 3vw, 36px); line-height: 1.35; letter-spacing: -1px; }
.detail-heading > p { max-width: 760px; margin: 12px 0 14px; color: #7d879e; font-size: 12px; line-height: 1.8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 5px 9px; color: #66728f; border-radius: 999px; background: #f1f4fb; font-size: 9px; font-weight: 800; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.detail-actions .button { min-height: 40px; white-space: nowrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 15px 2px 22px; color: #8c95aa; font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.detail-preview-card, .detail-side-card { overflow: hidden; border: 1px solid #e6eaf3; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(38, 52, 96, .06); }
.detail-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid #edf0f6; }
.detail-panel-head small { display: block; margin-bottom: 4px; color: #9aa4b9; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.detail-panel-head h2 { margin: 0; font-size: 15px; }
.detail-panel-head > span { color: #9ca5b8; font-size: 9px; }
.detail-preview-body { height: min(720px, calc(100vh - 190px)); min-height: 520px; overflow: auto; background: #f2f4f9; }
.detail-preview-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.detail-preview-body img { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.detail-preview-body pre { min-height: 100%; margin: 0; padding: 24px; color: #26324b; background: #fff; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.detail-preview-body .document-preview { margin: 22px auto; }
.detail-preview-body .spreadsheet-preview { min-height: 100%; }
.detail-sidebar { position: sticky; top: 98px; display: grid; gap: 15px; }
.detail-side-card { padding: 18px; }
.detail-side-card h3 { margin: 0 0 14px; font-size: 14px; }
.detail-side-card dl { display: grid; gap: 10px; margin: 0; }
.detail-side-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #f0f2f7; }
.detail-side-card dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-side-card dt { color: #9aa3b6; font-size: 9px; }
.detail-side-card dd { overflow: hidden; margin: 0; color: #57627b; font-size: 9px; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.related-files { display: grid; gap: 8px; }
.related-file { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 9px; border-radius: 11px; background: #f8faff; }
.related-file i { display: grid; place-items: center; width: 34px; height: 38px; color: #5c78df; border-radius: 9px; background: #eaf0ff; font-size: 8px; font-style: normal; font-weight: 900; }
.related-file strong { display: -webkit-box; overflow: hidden; color: #4a566f; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-file:hover strong { color: #526fda; }
.related-empty { color: #9aa3b4; font-size: 9px; }
@media (max-width: 940px) {
  .detail-head { grid-template-columns: 64px minmax(0, 1fr); }
  .detail-file-icon { width: 58px; height: 68px; }
  .detail-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .detail-shell { width: min(100% - 24px, 1180px); }
  .detail-head { padding: 18px; grid-template-columns: 50px minmax(0, 1fr); gap: 13px; }
  .detail-file-icon { width: 48px; height: 58px; border-radius: 13px; font-size: 10px; }
  .detail-heading h1 { font-size: 22px; }
  .detail-actions { display: grid; grid-template-columns: 1fr; }
  .detail-layout { gap: 13px; }
  .detail-preview-body { height: 560px; min-height: 430px; }
  .detail-sidebar { grid-template-columns: 1fr; }
}

