    /* ══════════════════════════════════════════════
       CSS Design Tokens
    ══════════════════════════════════════════════ */
    :root {
      --bg:          #080c18;
      --bg-card:     #0f1628;
      --bg-card-alt: #141d33;
      --border:      #1a2744;
      --text:        #e2e8f4;
      --text-muted:  #7a8ba8;
      --gold:        #c8962a;
      --gold-bright: #e8b84a;
      --gold-dim:    rgba(200,150,42,0.08);
      --gold-line:   rgba(200,150,42,0.18);
      --steel:       #4a9ec8;
      --steel-dim:   rgba(74,158,200,0.08);
      --green:       #3daa6a;
      --green-dim:   rgba(61,170,106,0.08);
      --red:         #c44a4a;
      --red-dim:     rgba(196,74,74,0.08);
      --font-serif:  'SimSun', 'NSimSun', serif;
      --font-sans:   'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
      --font-mono:   'Consolas', 'Courier New', monospace;
      --radius-sm:   8px;
      --radius:      16px;
      --radius-lg:   24px;
      --shadow:      0 4px 24px rgba(0,0,0,0.25);
      --shadow-glow: 0 4px 32px rgba(200,150,42,0.06);
      --shadow-focus: 0 0 0 2px rgba(200,150,42,0.15);
      --header-h:    68px;
      --header-bg:   rgba(8,12,24,0.85);
      --overlay-bg:  #080c18;
      --theme-dur:   0.35s;
      --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* ══════════════════════════════════════════════
       亮色主题覆盖
    ══════════════════════════════════════════════ */
    [data-theme="light"] {
      --bg:          #eef1f6;
      --bg-card:     #ffffff;
      --bg-card-alt: #f5f7fc;
      --border:      #e0e5ef;
      --text:        #1a2440;
      --text-muted:  #6b7d99;
      --gold:        #a07818;
      --gold-bright: #c8962a;
      --gold-dim:    rgba(160,120,24,0.06);
      --gold-line:   rgba(160,120,24,0.14);
      --steel:       #2a6a98;
      --steel-dim:   rgba(42,106,152,0.06);
      --green:       #2a7a55;
      --green-dim:   rgba(42,122,85,0.06);
      --red:         #b83636;
      --red-dim:     rgba(184,54,54,0.06);
      --shadow:      0 4px 24px rgba(0,0,0,0.06);
      --shadow-glow: 0 4px 32px rgba(160,120,24,0.04);
      --header-bg:   rgba(238,241,246,0.88);
      --overlay-bg:  #eef1f6;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    /* ── Global enhancements ── */
    ::selection {
      background: rgba(200,161,74,0.35);
      color: #ffffff;
    }
    body ::-webkit-scrollbar { width: 6px; }
    body ::-webkit-scrollbar-track { background: transparent; }
    body ::-webkit-scrollbar-thumb { background: rgba(200,161,74,0.25); border-radius: 3px; }
    body ::-webkit-scrollbar-thumb:hover { background: rgba(200,161,74,0.45); }
    * { scrollbar-width: thin; scrollbar-color: rgba(200,161,74,0.25) transparent; }


    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-sans);
      font-size: 17px;
      line-height: 1.7;
      min-height: 100dvh;
      overflow-x: hidden;
      transition: background var(--theme-dur) ease, color var(--theme-dur) ease;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      scroll-behavior: smooth;
    }

    /* ── Atmosphere Gradient ── */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse 70% 40% at 3% -8%, rgba(200,161,74,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 50% 30% at 97% 108%, rgba(74,143,184,0.06) 0%, transparent 55%),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.006) 80px, rgba(255,255,255,0.006) 81px);
      pointer-events: none;
      z-index: 0;
      transition: opacity var(--theme-dur) ease;
    }
    /* ── Subtle Noise ── */
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA5UlEQVR42iWPseqCcACEf+Ca2JQPoIOD4Ce5ODk6Sji4C01ChQhOzTpIU/gUIi4RCQ76ENILBEE9xB/7r8fdd3fCdV1WqxVVVXE+n0nTFN/3cRwH0zQRz+eT9XqNoijYlsXtdiPLMu/3+z6O44jDgQHjOLC73QDA9XrFMIzxPA/IMDQMQ8IwjBlF0a6iKKh2u8V3v9/jYrHAcRxM0wTP80jjR1EEMAxD2rb9e28F2+32h1zquk7s9Xp0OBxQFAVpmiLLMs7nc1I9e1T1QfkD3QAAAABJRU5ErkJggg==") repeat;
      opacity: 0.10;
      pointer-events: none;
      z-index: 0;
      transition: opacity var(--theme-dur) ease;
    }
    [data-theme="light"] body::after { opacity: 0.06; }
    [data-theme="light"] body::before {
      background:
        radial-gradient(ellipse 70% 40% at 3% -8%, rgba(166,122,42,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 30% at 97% 108%, rgba(46,106,144,0.04) 0%, transparent 55%);
    }

    /* ── Floating geometry ── */
    .hero-geo {
      position: absolute;
      pointer-events: none;
      z-index: 0;
    }

    /* Status pulse breathing (online) */
    .status-pulse.online {
      animation: breathe 2.5s ease-in-out infinite;
      box-shadow: 0 0 4px rgba(61,158,110,0.5);
    }
    .status-pulse.checking {
      animation: pulse 1.2s ease-in-out infinite;
    }
    .geo-circle-1 {
      width: 320px; height: 320px;
      border-radius: 50%;
      border: 1px solid rgba(200,161,74,0.07);
      top: -60px; right: -80px;
      animation: geoFloat 8s ease-in-out infinite;
    }
    .geo-circle-2 {
      width: 180px; height: 180px;
      border-radius: 50%;
      border: 1px solid rgba(74,143,184,0.06);
      top: 40px; right: 60px;
      animation: geoFloat 11s ease-in-out infinite reverse;
    }
    .geo-line {
      width: 120px; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(200,161,74,0.15), transparent);
      top: 100px; right: 200px;
      animation: geoFloat 6s ease-in-out infinite;
    }


    @keyframes glowPulse {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50%        { opacity: 0.7; transform: scale(1.08); }
    }
    @keyframes breathe {
      0%, 100% { box-shadow: 0 0 4px rgba(200,161,74,0.4); transform: scale(1); }
      50%        { box-shadow: 0 0 12px rgba(200,161,74,0.8); transform: scale(1.15); }
    }
    @keyframes shimmerText {
      0%   { filter: brightness(1); }
      40%  { filter: brightness(1.2); }
      100% { filter: brightness(1); }
    }
    @keyframes geoFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-14px) rotate(3deg); }
    }
    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 48px;
      position: relative;
      z-index: 1;
    }

    /* ─────────────────────────────────────────
       HEADER
    ───────────────────────────────────────── */
    header {
      height: var(--header-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      background: var(--header-bg);
      backdrop-filter: blur(28px) saturate(1.5);
      -webkit-backdrop-filter: blur(28px) saturate(1.5);
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--gold-line);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
      transition: height 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out),
                  background var(--theme-dur) ease, border-color var(--theme-dur) ease;
    }
    header.scrolled {
      height: 56px;
      border-bottom-color: var(--gold-line);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 32px rgba(0,0,0,0.18);
    }
    [data-theme="light"] header {
      border-bottom-color: rgba(255,255,255,0.15);
      box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
    }
    [data-theme="light"] header.scrolled {
      box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 32px rgba(0,0,0,0.06);
    }

    header.scrolled .logo-emblem {
      width: 30px; height: 30px; font-size: 13px;
    }

    .logo { display: flex; align-items: center; gap: 12px; }

    .logo-emblem {
      width: 36px; height: 36px;
      background: linear-gradient(135deg, var(--gold), #e8c96a);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: #0c1520;
      font-size: 17px; font-weight: 700;
      font-family: var(--font-serif);
      transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), font-size 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
      flex-shrink: 0;
      box-shadow: 0 2px 12px rgba(212,168,67,0.20);
    }

    .logo-text {
      font-family: var(--font-serif);
      font-size: 18px; font-weight: 600;
      letter-spacing: 0.5px;
      color: var(--text);
      transition: color var(--theme-dur) ease;
    }
    .logo-text em { font-style: normal; color: var(--gold); }

    /* Desktop nav */
    nav { display: flex; align-items: center; gap: 2px; }
    nav a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13.5px; font-weight: 400;
      padding: 7px 16px;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }
    nav a:hover { color: var(--text); background: rgba(128,128,128,0.08); }
    nav a.active { color: var(--gold); background: var(--gold-dim); }

    /* Header right area */
    .header-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ─── Theme Toggle Button ─── */
    .theme-toggle {
      width: 40px; height: 22px;
      border-radius: 11px;
      background: var(--border);
      border: 1px solid var(--border);
      cursor: pointer;
      position: relative;
      transition: background var(--theme-dur) ease, border-color var(--theme-dur) ease;
      flex-shrink: 0;
    }
    .theme-toggle::after {
      content: "";
      position: absolute;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--gold);
      top: 2px; left: 2px;
      transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background var(--theme-dur);
    }
    [data-theme="light"] .theme-toggle::after {
      transform: translateX(18px);
    }
    .theme-toggle-wrap {
      display: flex;
      align-items: center;
      gap: 7px;
      cursor: pointer;
      appearance: none;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      padding: 0;
    }
    .theme-icon {
      font-size: 13px;
      color: var(--text-muted);
      transition: color var(--theme-dur);
      width: 14px; text-align: center;
    }
    .theme-label {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
      display: none;
    }

    /* ─── Hamburger (mobile) ─── */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      border-radius: 8px;
      appearance: none;
      border: 0;
      background: transparent;
      transition: background 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .hamburger:active { background: var(--gold-dim); }
    .hamburger span {
      display: block;
      width: 22px; height: 2px;
      background: var(--text-muted);
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s, background 0.2s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ─── Mobile Nav Drawer ─── */
    .mobile-nav {
      display: none;
      position: fixed;
      top: var(--header-h);
      left: 0; right: 0;
      background: var(--header-bg);
      backdrop-filter: blur(24px);
      border-bottom: 1px solid var(--border);
      padding: 12px 20px 20px;
      z-index: 99;
      transform: translateY(-8px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.28s ease, opacity 0.28s ease,
                  background var(--theme-dur) ease;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .mobile-nav.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .mobile-nav a {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      padding: 14px 12px;
      border-radius: 10px;
      transition: color 0.2s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav a i { width: 20px; text-align: center; color: var(--text-muted); }
    .mobile-nav a:active { background: var(--gold-dim); color: var(--gold); }
    .mobile-nav a.active { color: var(--gold); background: var(--gold-dim); }
    .mobile-nav a.active i { color: var(--gold); }

    /* ── HERO ── */
    .hero {
      padding: 80px 0 64px;
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 48px;
      align-items: start;
      border-bottom: none;
      margin-bottom: 48px;
      position: relative;
      overflow: hidden;
      transition: border-color var(--theme-dur) ease;
    }
    .hero-text { grid-column: 1; }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 11px; font-weight: 500;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      animation: rise 0.5s ease both;
      transition: color var(--theme-dur) ease;
    }
    .hero-eyebrow::before {
      content: "";
      display: block;
      width: 24px; height: 1px;
      background: var(--gold);
      opacity: 0.6;
    }

    /* ── Hero h1 ── */
    .hero h1 {
      font-family: var(--font-serif);
      font-size: clamp(36px, 2.8vw, 42px);
      font-weight: 800;
      line-height: 1.25;
      background: linear-gradient(135deg, #ffffff 0%, var(--gold) 45%, var(--gold-bright) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 18px;
      letter-spacing: 0.5px;
      filter: drop-shadow(0 2px 16px rgba(212,168,67,0.30));
      animation: rise 0.6s ease 0.08s both;
      transition: filter 0.4s ease;
    }

    .hero h1 .shimmer-word {
      display: inline-block;
      background: linear-gradient(90deg, transparent 0%, rgba(200,161,74,0.4) 50%, transparent 100%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: shimmer 4s ease-in-out 1s infinite;
    }
    @keyframes shimmer {
      0%   { background-position: 200% center; }
      100% { background-position: -200% center; }
    }
    /* 亮色模式：Hero 标题覆盖（必须放在基础规则之后） */
    [data-theme="light"] .hero h1 {
      background: initial !important;
      -webkit-background-clip: initial !important;
      background-clip: initial !important;
      -webkit-text-fill-color: initial !important;
      color: var(--text) !important;
      filter: none !important;
    }
    [data-theme="light"] .hero h1 .shimmer-word {
      background: initial !important;
      -webkit-background-clip: initial !important;
      background-clip: initial !important;
      -webkit-text-fill-color: initial !important;
      color: var(--gold) !important;
    }

    .hero-desc {
      font-size: 15.5px;
      color: var(--text-muted);
      line-height: 2.0;
      max-width: 560px;
      margin-bottom: 36px;
      font-weight: 400;
      animation: rise 0.6s ease 0.16s both;
      transition: color var(--theme-dur) ease;
    }

    /* ── CTA Button ── */
    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 34px;
      border-radius: 14px;
      background: var(--bg-card);
      color: var(--text);
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.35s var(--ease-out);
      box-shadow: 0 2px 20px rgba(0,0,0,0.08);
      border: 1px solid var(--border);
      letter-spacing: 0.5px;
      animation: rise 0.6s ease 0.24s both;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }
    .hero-cta:hover {
      transform: translateY(-4px) scale(1.04);
      box-shadow: 0 8px 40px rgba(0,0,0,0.14), 0 0 0 1px rgba(212,168,67,0.20), 0 0 30px rgba(212,168,67,0.08);
      border-color: rgba(212,168,67,0.30);
      color: var(--gold-bright);
      background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-card));
    }
    .hero-cta:active { transform: scale(0.97); }
    .hero-cta i { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .hero-cta:hover i { transform: translateX(4px) rotate(-6deg); }

    .ripple,
    .card-ripple {
      position: absolute;
      border-radius: 50%;
      transform: scale(0);
      background: rgba(200,161,74,0.35);
      pointer-events: none;
      animation: rippleAnim 0.55s linear;
    }
    @keyframes rippleAnim {
      to { transform: scale(4); opacity: 0; }
    }

    /* ── Hero stat deco ── */
    .hero-deco {
      flex: 1;
      padding: 24px 20px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 4px);
      animation: rise 0.6s ease 0.12s both;
      will-change: transform;
      transition: box-shadow 0.4s, background var(--theme-dur) ease, border-color var(--theme-dur) ease;
    }
    .hero-deco:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.22), var(--shadow-glow); }

    .hero-deco-label {
      font-size: 10px; font-weight: 600;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 18px;
      transition: color var(--theme-dur) ease;
    }

    .deco-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      align-items: start;
    }
    .deco-item {
      text-align: center;
      padding: 14px 6px;
      border-radius: 10px;
      background: rgba(128,128,128,0.03);
      border: 1px solid transparent;
      transition: all 0.2s ease;
    }
    .deco-item:hover {
      background: rgba(128,128,128,0.06);
      border-color: var(--gold-line);
      transform: translateY(-1px);
    }

    .deco-num {
      font-family: var(--font-mono);
      font-size: 22px; font-weight: 500;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 6px;
      transition: color var(--theme-dur) ease;
    }
    .deco-num.steel { color: var(--steel); }
    .deco-num.steel span { font-size: 11px; color: var(--text-muted); }

    .deco-sub {
      font-size: 10px;
      color: var(--text-muted);
      line-height: 1.3;
      transition: color var(--theme-dur) ease;
    }

    /* ── Section label ── */
    .section-label {
      font-size: 11px; font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 3.5px;
      color: var(--text-muted);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: color var(--theme-dur) ease;
    }
    .section-label::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--border) 0%, var(--gold-line) 60%, transparent 100%);
      transition: background var(--theme-dur) ease;
    }

    /* ── Main grid ── */
    .main-grid {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 28px;
      margin-bottom: 44px;
      align-items: start;
    }

    /* ── Skeleton ── */
    .skeleton-line {
      height: 14px;
      border-radius: 7px;
      background: linear-gradient(90deg, var(--border) 25%, var(--bg-card-alt) 50%, var(--border) 75%);
      background-size: 400% 100%;
      animation: skeletonPulse 1.6s ease infinite;
    }
    .skeleton-line.short { width: 55%; }
    .skeleton-line.tall  { height: 46px; border-radius: 10px; }
    @keyframes skeletonPulse {
      0%   { background-position: 100% 50%; }
      100% { background-position: -100% 50%; }
    }

    /* ── Site Cards (Horizontal layout) ── */
    .site-cards {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 12px;
    }


    /* Ring chart glow */
    #ring-uptime {
      filter: drop-shadow(0 0 6px rgba(200,161,74,0.35));
      transition: filter 0.5s ease;
    }
    .dashboard-area:hover #ring-uptime {
      filter: drop-shadow(0 0 12px rgba(200,161,74,0.6));
    }

    /* ── Horizontal compact site card ── */
    .site-card {
      position: relative;
      flex: 1 1 130px;
      will-change: transform;
      min-width: 120px;
      max-width: 180px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 10px 10px 10px;
      border-radius: var(--radius);
      background: var(--bg-card);
      border: 1px solid var(--border);
      text-decoration: none;
      color: var(--text);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.3s ease, background var(--theme-dur) ease,
                  color var(--theme-dur) ease;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }
    .site-card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA5UlEQVR42iWPseqCcACEf+Ca2JQPoIOD4Ce5ODk6Sji4C01ChQhOzTpIU/gUIi4RCQ76ENILBEE9xB/7r8fdd3fCdV1WqxVVVXE+n0nTFN/3cRwH0zQRz+eT9XoNoijYlsXtdiPLMu/3+z6O44jDgQHjOLC73QDA9XrFMIzxPA/IMDQMQ8IwjBlF0a6iKKh2u8V3v9/jYrHAcRxM0wTP80jjR1EEMAxD2rb9e28F2+32h1zquk7s9Xp0OBxQFAVpmiLLMs7nc1I9e1T1QfkD3QAAAABJRU5ErkJggg==") repeat;
      opacity: 0.08;
      pointer-events: none;
      z-index: 2;
    }
    .site-card::before {
      content: "";
      position: absolute;
      top: 0; left: 10%; right: 10%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 0 0 2px 2px;
      z-index: 3;
    }
    .site-card:hover {
      border-color: rgba(212,168,67,0.25);
      background: var(--bg-card-alt);
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.12), var(--shadow-glow), 0 0 0 1px rgba(212,168,67,0.06);
    }
    .site-card:hover::before { transform: scaleX(1); }
    .site-card:active { transform: translateY(-1px) scale(0.99); box-shadow: 0 6px 18px rgba(0,0,0,0.10), var(--shadow-glow); }
    .site-card:focus-visible {
      outline: none;
      box-shadow: var(--shadow-focus), 0 6px 22px rgba(0,0,0,0.12);
      border-color: var(--gold);
      transform: translateY(-2px);
    }

    .site-card.hidden {
      display: none;
    }

    /* Stagger entrance for cards */
    .site-card {
      animation: rise 0.5s ease backwards;
    }
    .site-card:nth-child(2) { animation-delay: 0.06s; }
    .site-card:nth-child(3) { animation-delay: 0.12s; }
    .site-card:nth-child(4) { animation-delay: 0.18s; }
    .site-card:nth-child(5) { animation-delay: 0.24s; }


    /* Spotlight border effect on hover */
    .site-card-spotlight {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      z-index: 1;
      pointer-events: none;
      opacity: 0;
      transition: opacity .35s ease, transform .35s ease;
      background:
        radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
          rgba(212,168,67,.18) 0%, transparent 62%),
        radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
          rgba(46,110,220,.06) 0%, transparent 70%);
      transform: scale(.98);
    }
    .site-card:hover .site-card-spotlight {
      opacity: 1;
      transform: scale(1);
    }
    .site-card-icon {
      position: relative;
      z-index: 3;
      width: 32px; height: 32px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(212,168,67,0.18), rgba(212,168,67,0.06));
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: var(--gold);
      flex-shrink: 0;
      border: 1.5px solid rgba(212,168,67,0.25);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .site-card-icon.files {
      background: linear-gradient(135deg, rgba(92,160,212,0.18), rgba(92,160,212,0.06));
      color: var(--steel);
      border-color: rgba(92,160,212,0.25);
      box-shadow: 0 2px 10px rgba(92,160,212,0.08);
    }
    .site-card-icon.affairs {
      background: rgba(212,96,96,0.10);
      color: var(--red);
      border-color: rgba(212,96,96,0.25);
      box-shadow: 0 2px 10px rgba(212,96,96,0.08);
    }
    .site-card:hover .site-card-icon {
      background: linear-gradient(135deg, rgba(212,168,67,0.38), rgba(212,168,67,0.14));
      border-color: var(--gold);
      transform: scale(1.14) rotate(3deg);
      box-shadow: 0 6px 22px rgba(212,168,67,0.28);
    }
    .site-card:hover .site-card-icon.files {
      background: linear-gradient(135deg, rgba(92,160,212,0.40), rgba(92,160,212,0.16));
      border-color: var(--steel);
      box-shadow: 0 6px 22px rgba(92,160,212,0.28);
      transform: scale(1.14) rotate(-3deg);
    }
    .site-card:hover .site-card-icon.affairs {
      background: rgba(212,96,96,0.28);
      border-color: var(--red);
      box-shadow: 0 6px 22px rgba(212,96,96,0.28);
      transform: scale(1.14) rotate(-3deg);
    }

    .site-card-body { min-width: 0; min-height: 0; }

    .site-card-tag {
      font-size: 9.5px; font-weight: 600;
      letter-spacing: 1.2px; text-transform: uppercase;
      color: var(--gold); margin-bottom: 1px;
      transition: color var(--theme-dur) ease;
    }
    .site-card-tag.files { color: var(--steel); }
    .site-card-tag.affairs { color: var(--red); }

    .site-card-title {
      font-family: var(--font-serif);
      font-size: 13.5px; font-weight: 600;
      color: var(--text); margin-bottom: 0;
      line-height: 1.2;
      transition: color var(--theme-dur) ease;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .site-card-desc {
      display: none;
    }

    .site-card-arrow {
      position: absolute;
      bottom: 6px; right: 8px;
      font-size: 10px; color: var(--text-muted);
      opacity: 0.5;
      transition: transform 0.2s, color 0.2s, opacity 0.2s;
    }

    /* Bottom gradient line on hover */
    .site-card .card-glow-line {
      display: none;
    }
    .site-card:hover .card-glow-line { display: none; }

    .site-card:hover .site-card-arrow {
      transform: translateX(4px) translateY(-1px);
      color: var(--gold);
      opacity: 1;
    }

    /* ── Dashboard ── */
    .dashboard-area {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 26px;
      animation: rise 0.6s ease 0.3s both;
      transition: background var(--theme-dur) ease, border-color var(--theme-dur) ease, box-shadow 0.4s var(--ease-out);
    }
    .dash-title {
      font-family: var(--font-serif);
      font-size: 15px; font-weight: 600;
      color: var(--text); margin-bottom: 4px;
      transition: color var(--theme-dur) ease;
    }
    .dash-sub {
      font-size: 11px; color: var(--text-muted); margin-bottom: 24px;
      transition: color var(--theme-dur) ease;
    }

    /* Ring chart */
    .chart-row {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border);
      transition: border-color var(--theme-dur) ease;
    }

    .ring-wrap {
      position: relative;
      width: 88px; height: 88px;
      flex-shrink: 0;
    }

    .ring-svg {
      width: 88px; height: 88px;
      transform: rotate(-90deg);
    }

    .ring-bg {
      fill: none;
      stroke: var(--border);
      stroke-width: 8;
    }

    .ring-fill {
      fill: none;
      stroke: var(--gold);
      stroke-width: 8;
      stroke-linecap: round;
      stroke-dasharray: 226;
      stroke-dashoffset: 226;
      transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1), stroke var(--theme-dur) ease;
    }
    .ring-fill.green { stroke: var(--green); }
    .ring-fill.steel { stroke: var(--steel); }

    .ring-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .ring-pct {
      font-family: var(--font-mono);
      font-size: 18px; font-weight: 500;
      color: var(--text);
      transition: color var(--theme-dur) ease;
    }

    .ring-lbl {
      font-size: 9px;
      color: var(--text-muted);
      margin-top: 2px;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: color var(--theme-dur) ease;
    }

    .chart-legend {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .legend-left { display: flex; align-items: center; gap: 8px; }

    .legend-dot {
      width: 8px; height: 8px;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .legend-dot.gold  { background: var(--gold); }
    .legend-dot.green { background: var(--green); }
    .legend-dot.steel { background: var(--steel); }

    .legend-name {
      font-size: 12px;
      color: var(--text-muted);
      transition: color var(--theme-dur) ease;
    }

    .legend-val {
      font-family: var(--font-mono);
      font-size: 13px; font-weight: 500;
      color: var(--text);
      transition: color var(--theme-dur) ease;
    }

    /* Trend bars */
    .trend-section { margin-bottom: 24px; }

    .trend-title {
      font-size: 10px; font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--text-muted);
      margin-bottom: 14px;
      transition: color var(--theme-dur) ease;
    }

    .trend-bars { display: flex; flex-direction: column; gap: 10px; }

    .trend-bar-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .trend-bar-label {
      font-size: 11px;
      color: var(--text-muted);
      width: 42px;
      flex-shrink: 0;
      text-align: right;
      transition: color var(--theme-dur) ease;
    }

    .trend-bar-track {
      flex: 1; height: 6px;
      background: var(--border);
      border-radius: 3px;
      overflow: hidden;
      transition: background var(--theme-dur) ease;
    }

    .trend-bar-fill {
      height: 100%;
      border-radius: 3px;
      background: var(--gold);
      transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1), background var(--theme-dur) ease;
      width: 0;
    }
    .trend-bar-fill.green { background: var(--green); }
    .trend-bar-fill.steel { background: var(--steel); }

    .trend-bar-num {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
      width: 32px;
      flex-shrink: 0;
      transition: color 0.3s;
    }

    /* Stat items */
    .stat-row { display: flex; flex-direction: column; gap: 0; }

    .stat-item {
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      transition: border-color var(--theme-dur) ease;
    }
    .stat-item:last-child { border-bottom: none; }

    .stat-item-left { display: flex; align-items: center; gap: 12px; }

    .stat-item-icon {
      width: 30px; height: 30px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px;
      background: var(--gold-dim);
      color: var(--gold);
      flex-shrink: 0;
      transition: background var(--theme-dur) ease, color var(--theme-dur) ease;
    }
    .stat-item-icon.green { background: var(--green-dim); color: var(--green); }
    .stat-item-icon.blue  { background: var(--steel-dim); color: var(--steel); }

    .stat-item-name {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.3;
      transition: color var(--theme-dur) ease;
    }

    .stat-item-note {
      opacity: 0.5;
      font-size: 10px;
    }

    .stat-item-right { text-align: right; flex-shrink: 0; }

    .stat-item-val {
      font-family: var(--font-mono);
      font-size: 20px; font-weight: 500;
      color: var(--gold);
      line-height: 1;
      transition: transform 0.1s, color var(--theme-dur) ease;
    }
    .stat-item-val.green { color: var(--green); }
    .stat-item-val.blue  { color: var(--steel); }
    .stat-item-val.ticking { animation: numTick 0.08s ease; }
    @keyframes numTick {
      0%   { transform: translateY(-4px); opacity: 0.6; }
      100% { transform: translateY(0);    opacity: 1; }
    }

    .stat-item-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 3px;
      transition: color var(--theme-dur) ease;
    }

    .trend-up {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 10px; color: var(--green); margin-left: 5px;
    }
    .trend-down {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 10px; color: var(--red); margin-left: 5px;
    }

    /* ── Status bar ── */
    .status-bar {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 72px;
      animation: rise 0.5s ease 0.38s both;
      transition: background var(--theme-dur) ease, border-color var(--theme-dur) ease;
    }

    .status-group { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
    .status-item { display: flex; align-items: center; gap: 10px; }

    .status-pulse {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 0 rgba(61,158,110,0.5);
      animation: statusPulse 2.2s infinite;
      flex-shrink: 0;
    }
    .status-pulse.offline  { background: var(--red);  box-shadow: none; animation: none; }
    .status-pulse.checking { background: var(--text-muted); }

    @keyframes statusPulse {
      0%   { box-shadow: 0 0 0 0 rgba(61,158,110,0.5); }
      70%  { box-shadow: 0 0 0 7px rgba(61,158,110,0); }
      100% { box-shadow: 0 0 0 0 rgba(61,158,110,0); }
    }

    .status-name { font-size: 13px; font-weight: 500; color: var(--text); transition: color var(--theme-dur) ease; }
    .status-desc { font-size: 12px; color: var(--text-muted); transition: color var(--theme-dur) ease; }

    .clock {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.5px;
      transition: color var(--theme-dur) ease;
    }

    /* ── Footer ── */
    footer {
      border-top: 1px solid var(--border);
      padding-top: 44px;
      position: relative;
      z-index: 1;
      transition: border-color var(--theme-dur) ease;
    }

    .footer-main,
    .footer-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-main {
      gap: 12px;
      padding-bottom: 8px;
    }

    .footer-meta {
      gap: 8px;
    }

    .footer-left { font-size: 12px; color: var(--text-muted); transition: color var(--theme-dur) ease; }
    .footer-left span { color: var(--gold); }

    .footer-right {
      font-size: 11px; color: var(--text-muted);
      display: flex; align-items: center; gap: 6px;
      transition: color var(--theme-dur) ease;
    }

    .footer-right i {
      color: var(--green);
      font-size: 11px;
    }

    .footer-scope {
      font-size: 11px;
      color: var(--text-muted);
      opacity: 0.55;
    }

    .footer-scope span {
      color: var(--gold);
    }

    .footer-private {
      font-size: 10px;
      color: var(--text-muted);
      opacity: 0.35;
    }

    .footer-disclaimer {
      width: 100%;
      text-align: center;
      font-size: 11px;
      color: var(--text-muted);
      opacity: 0.55;
      margin-top: 10px;
      letter-spacing: 1px;
      transition: color var(--theme-dur) ease;
    }

    /* ── Version badge ── */
    .ver-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--gold-dim);
      border: 1px solid var(--gold-line);
      border-radius: 20px;
      padding: 2px 10px 2px 8px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--gold);
      letter-spacing: 0.5px;
      margin-left: 10px;
      vertical-align: middle;
      transition: background var(--theme-dur) ease, border-color var(--theme-dur) ease, color var(--theme-dur) ease;
    }

    /* Version badge pulse */
    .ver-badge {
      animation: verPulse 3s ease-in-out infinite;
    }
    @keyframes verPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(200,150,42,0.15); }
      50%        { box-shadow: 0 0 8px 2px rgba(200,150,42,0.15); }
    }

    .ver-badge i { font-size: 9px; }

    /* ── Scroll progress ── */
    #scroll-progress {
      position: fixed;
      top: 0; left: 0;
      height: 2px;
      width: 0%;
      background: linear-gradient(90deg, var(--gold), var(--steel));
      z-index: 200;
      transition: width 0.1s linear;
    }

    /* ── Animations ── */
    @keyframes rise {
      from { opacity: 0; transform: translateY(16px) scale(0.97); }
      60%  { opacity: 1; }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }


    /* ── Hero particles ── */
    .hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .hp-dot {
      position: absolute;
      width: 3px; height: 3px;
      border-radius: 50%;
      background: var(--gold);
      opacity: 0;
      animation: particleFloat 8s ease-in-out infinite;
      animation-delay: calc(var(--i) * 1.4s);
    }
    .hp-dot:nth-child(1) { --i: 0; left: 12%; top: 18%; background: var(--gold); }
    .hp-dot:nth-child(2) { --i: 1; left: 78%; top: 32%; background: var(--steel); width: 2px; height: 2px; }
    .hp-dot:nth-child(3) { --i: 2; left: 45%; top: 12%; background: var(--gold-bright); }
    .hp-dot:nth-child(4) { --i: 3; left: 88%; top: 72%; background: var(--steel); }
    .hp-dot:nth-child(5) { --i: 4; left: 22%; top: 82%; background: var(--gold); width: 2px; height: 2px; opacity: 0.4; }
    .hp-dot:nth-child(6) { --i: 5; left: 62%; top: 88%; background: var(--gold-bright); width: 2px; height: 2px; }
    @keyframes particleFloat {
      0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
      20%       { opacity: 0.7; }
      50%       { opacity: 0.5; transform: translateY(-60px) scale(1); }
      80%       { opacity: 0.6; }
    }

    /* ── Scroll-triggered rise animation ── */
    .rise-on-scroll {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
      transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1);
    }
    .rise-on-scroll.rise-visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* ── Loading overlay ── */
    
    /* ── Hero mesh orbs (perpetual motion) ── */
    .hero-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
      z-index: 0;
      will-change: transform;
      opacity: 0.85;
    }
    .hero-orb--gold {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(212,168,67,0.20) 0%, rgba(212,168,67,0.04) 50%, transparent 70%);
      top: -80px; left: -60px;
      animation: orbFloat1 14s ease-in-out infinite;
    }
    .hero-orb--steel {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(92,160,212,0.15) 0%, rgba(92,160,212,0.03) 50%, transparent 70%);
      bottom: -60px; right: -40px;
      animation: orbFloat2 18s ease-in-out infinite;
    }
    .hero-orb--accent {
      width: 260px; height: 260px;
      background: radial-gradient(circle, rgba(212,168,67,0.10) 0%, transparent 70%);
      top: 30%; right: 15%;
      animation: orbFloat3 12s ease-in-out infinite;
    }
    @keyframes orbFloat1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(30px, -20px) scale(1.06); }
      66%       { transform: translate(-15px, 18px) scale(0.96); }
    }
    @keyframes orbFloat2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(-25px, 15px) scale(1.04); }
      66%       { transform: translate(20px, -10px) scale(0.97); }
    }
    @keyframes orbFloat3 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50%       { transform: translate(20px, -25px) scale(1.08); }
    }
    [data-theme="light"] .hero-orb--gold {
      background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
    }
    [data-theme="light"] .hero-orb--steel {
      background: radial-gradient(circle, rgba(46,106,144,0.09) 0%, transparent 70%);
    }
    [data-theme="light"] .hero-orb--accent {
      background: radial-gradient(circle, rgba(184,134,11,0.07) 0%, transparent 70%);
    }
#loading-overlay {
      position: fixed;
      inset: 0;
      background: var(--overlay-bg);
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
    }
    #loading-overlay.hide { opacity: 0; pointer-events: none; }

    .loading-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
      animation: loadFadeIn 0.8s ease both;
    }
    @keyframes loadFadeIn {
      from { opacity: 0; transform: translateY(12px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .loading-emblem {
      width: 64px; height: 64px;
      background: linear-gradient(135deg, var(--gold), #e8c96a);
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      color: #0c1520;
      font-size: 28px; font-weight: 700;
      font-family: var(--font-serif);
      box-shadow: 0 4px 24px rgba(212,168,67,0.25);
      animation: embPulse 2s ease-in-out infinite;
    }
    @keyframes embPulse {
      0%, 100% { box-shadow: 0 4px 24px rgba(212,168,67,0.25); transform: scale(1); }
      50%        { box-shadow: 0 4px 40px rgba(212,168,67,0.45); transform: scale(1.04); }
    }

    .loading-text {
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .loading-title {
      font-family: var(--font-serif);
      font-size: 20px;
      color: var(--text);
      letter-spacing: 2px;
      font-weight: 600;
    }
    .loading-title em { color: var(--gold); font-style: normal; }
    .loading-sub {
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .loading-dots {
      display: flex;
      gap: 6px;
      justify-content: center;
    }
    .loading-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--gold);
      animation: dotPulse 1.4s ease-in-out infinite;
    }
    .loading-dot:nth-child(2) { animation-delay: 0.2s; }
    .loading-dot:nth-child(3) { animation-delay: 0.4s; }
    @keyframes dotPulse {
      0%, 100% { opacity: 0.25; transform: scale(0.8); }
      50%        { opacity: 1;    transform: scale(1.2); }
    }


    /* ── Stagger animation for site cards ── */
    /* Stagger animation removed - now handled by IntersectionObserver */

    /* ═══════════════════════════════════════════
       BOTTOM TAB BAR (mobile only)
    ═══════════════════════════════════════════ */
    .bottom-tab-bar {
      display: none;
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: 60px;
      background: var(--header-bg);
      backdrop-filter: blur(24px);
      border-top: 1px solid var(--border);
      z-index: 100;
      transition: background var(--theme-dur) ease, border-color var(--theme-dur) ease;
    }

    .tab-bar-inner {
      display: flex;
      height: 100%;
      align-items: stretch;
    }

    .tab-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.3px;
      transition: color 0.2s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
      cursor: pointer;
      border: none;
      background: transparent;
      padding: 0;
      position: relative;
    }
    .tab-btn i { font-size: 17px; transition: transform 0.2s, color 0.2s; }
    .tab-btn.active { color: var(--gold); }
    .tab-btn.active i { transform: translateY(-1px); }
    .tab-btn.active::after {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 20px;
      height: 2px;
      border-radius: 0 0 2px 2px;
      background: var(--gold);
      transition: all 0.3s ease;
    }

    /* Touch press feedback */
    .tab-btn:active {
      color: var(--gold);
      background: var(--gold-dim);
    }

    /* Safe area for iPhone X etc. */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      .bottom-tab-bar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(60px + env(safe-area-inset-bottom));
      }
      body.mobile-view { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    }

    .back-to-top {
      position: fixed;
      bottom: 80px;
      right: 28px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--gold);
      font-size: 16px;
      cursor: pointer;
      z-index: 150;
      box-shadow: 0 4px 20px rgba(0,0,0,0.18);
      opacity: 0;
      transform: translateY(12px) scale(0.8);
      pointer-events: none;
      transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.4,0,0.2,1),
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
      background: var(--gold);
      color: #0c1520;
      outline: none;
      box-shadow: 0 8px 28px rgba(0,0,0,0.24), 0 0 0 3px rgba(200,150,42,0.16);
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }

      .hero-orb,
      .hp-dot,
      .hero-geo {
        display: none !important;
      }
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════ */
    @media (max-width: 1024px) {
      .main-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      /* Show mobile elements */
      .hamburger { display: flex; }
      .mobile-nav { display: block; }
      .bottom-tab-bar { display: block; }

      /* Hide desktop nav, show compact header */
      nav { display: none; }
      header { padding: 0 16px; }
      body { padding-bottom: 60px; }

      .container { padding: 0 16px; }

      /* Hero */
      .hero {
        padding: 44px 0 40px;
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 36px;
        overflow: visible;
      }
      .hero-text {
        width: 100%;
        min-width: 0;
      }
      .hero-deco { display: none; }
      .hero-sidebar { display: none; }
      .hero h1 {
        font-family: var(--font-serif);
        font-size: clamp(30px, 8vw, 40px);
        font-weight: 700;
        line-height: 1.25;
        max-width: 100%;
        background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 18px;
        letter-spacing: 0;
        animation: rise 0.5s ease 0.08s both;
        transition: filter 0.3s ease;
        overflow-wrap: break-word;
        word-break: normal;
        text-wrap: balance;
      }
      .hero h1 .shimmer-word { display: inline; }
      .hero-desc {
        width: 100%;
        max-width: none;
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 24px;
        overflow-wrap: break-word;
        word-break: normal;
      }
      .hero-cta {
        width: fit-content;
        max-width: 100%;
        min-height: 44px;
        padding: 12px 22px;
        font-size: 14px;
        white-space: nowrap;
        flex-direction: row;
        align-self: flex-start;
      }
      .back-to-top { bottom: 68px !important; right: 16px !important; width: 40px !important; height: 40px !important; }

      /* Site cards */
      .site-card {
        flex: 1 1 145px;
        padding: 12px 12px 12px;
        gap: 8px;
      }
      .site-card-icon { width: 42px; height: 42px; font-size: 16px; }
      .site-card-title { font-size: 17px; }

      /* Dashboard */
      .dashboard-area { padding: 20px 16px; }

      /* Status bar */
      .status-bar {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 24px;
      }
      .status-group { gap: 16px; }

      /* Footer */
      footer {
        padding: 20px 16px;
      }
      .footer-main,
      .footer-meta {
        align-items: flex-start;
      }

      /* Section label */
      .section-label { margin-bottom: 18px; }

      /* Main grid gap */
      .main-grid { gap: 20px; margin-bottom: 24px; }

      /* Theme label hidden on very small */
      .theme-label { display: none; }
    }

    @media (max-width: 480px) {
      .hero { padding-top: 34px; }
      .hero h1 { font-size: 28px; }
      .hero-eyebrow { font-size: 10px; letter-spacing: 2px; }
      .logo-text { font-size: 15px; }
      .hero-cta { padding-inline: 18px; font-size: 13px; }
    }

    /* ── Theme transition flash prevent ── */
    .theme-transitioning * {
      transition-duration: 0.35s !important;
    }

    .section-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 12px 0 0;
    }

    /* ═══════════════════════════════════════════════
       V5: ANNOUNCEMENT TIMELINE
    ═══════════════════════════════════════════════ */
    #hero-section { contain: layout style; }
    .announcements-section { margin-bottom: 24px; }

    .timeline {
      position: relative;
      padding-left: 18px;
    }
    .timeline::before {
      content: "";
      position: absolute;
      left: 2px; top: 7px; bottom: 7px;
      width: 1px;
      background: linear-gradient(180deg,
        var(--gold-line) 0%,
        var(--border) 65%,
        transparent 100%);
      transition: background var(--theme-dur);
    }

    .tl-item {
      position: relative;
      padding: 0 0 14px 0;
      opacity: 0;
      transform: translateX(-10px);
      transition: opacity 0.45s ease, transform 0.45s ease;
    }
    .tl-item:nth-child(1) { transition-delay: 0.05s; }
    .tl-item:nth-child(2) { transition-delay: 0.12s; }
    .tl-item:nth-child(3) { transition-delay: 0.19s; }
    .tl-item.tl-visible {
      opacity: 1;
      transform: translateX(0);
    }
    .tl-item:last-child { padding-bottom: 0; }

    .tl-dot {
      position: absolute;
      left: -20px; top: 4px;
      width: 8px; height: 8px;
      border-radius: 50%;
      border: 2px solid var(--bg);
      z-index: 1;
      transition: background var(--theme-dur), border-color var(--theme-dur);
    }
    .tl-dot.gold  { background: var(--gold); }
    .tl-dot.steel { background: var(--steel); }
    .tl-dot.green { background: var(--green); }

    .tl-date {
      font-family: var(--font-mono);
      font-size: 9.5px;
      color: var(--text-muted);
      margin-bottom: 4px;
      letter-spacing: 0.3px;
      transition: color var(--theme-dur);
    }

    .tl-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      transition: border-color 0.25s, background var(--theme-dur), box-shadow 0.25s;
    }
    .tl-card:hover {
      border-color: var(--gold-line);
      box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    }

    .tl-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 8.5px; font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: 1px 7px;
      border-radius: 3px;
      margin-bottom: 4px;
      transition: background var(--theme-dur), color var(--theme-dur);
    }
    .tl-tag.gold  { color: var(--gold);  background: var(--gold-dim); }
    .tl-tag.steel { color: var(--steel); background: var(--steel-dim); }
    .tl-tag.green { color: var(--green); background: var(--green-dim); }

    .tl-title {
      font-family: var(--font-serif);
      font-size: 13px; font-weight: 600;
      color: var(--text);
      margin-bottom: 3px;
      line-height: 1.4;
      transition: color var(--theme-dur);
    }

    .tl-body {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.55;
      transition: color var(--theme-dur);
    }

    /* ═══════════════════════════════════════════════
       V5: SPARKLINE AREA CHART
    ═══════════════════════════════════════════════ */
    .spark-section {
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
      transition: border-color var(--theme-dur);
    }
    .spark-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .spark-title {
      font-size: 10px; font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--text-muted);
      transition: color var(--theme-dur);
    }
    .spark-peak-badge {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--gold);
      transition: color var(--theme-dur);
    }
    .spark-svg {
      display: block;
      width: 100%;
      height: 50px;
      overflow: visible;
    }
    .spark-stroke {
      fill: none;
      stroke: var(--gold);
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 700;
      stroke-dashoffset: 700;
      transition: stroke-dashoffset 1.3s cubic-bezier(0.4,0,0.2,1), stroke var(--theme-dur);
    }
    .spark-day-row {
      display: flex;
      justify-content: space-between;
      margin-top: 5px;
      padding: 0 2px;
    }
    .spark-day-lbl {
      font-size: 9px;
      color: var(--text-muted);
      font-family: var(--font-mono);
      transition: color var(--theme-dur);
    }

    @media (max-width: 768px) {
      .announcements-section { margin-bottom: 20px; }
      .tl-card { padding: 8px 12px; }
    }

    
    /* ── Site card category badge ── */
    .site-card-cat {
      position: absolute;
      top: 6px;
      right: 8px;
      font-size: 8.5px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: 1px 5px;
      border-radius: 3px;
      opacity: 0.8;
      transition: opacity 0.2s, background var(--theme-dur);
    }
    .site-card-cat.cat-official { background: var(--gold-dim); color: var(--gold); }
    .site-card-cat.cat-files    { background: var(--steel-dim); color: var(--steel); }
    .site-card-cat.cat-safety   { background: var(--green-dim); color: var(--green); }
    .site-card-cat.cat-affairs  { background: rgba(196,90,90,0.10); color: var(--red); }

    /* ── Filter tags ── */
    .filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
    .filter-tag {
      padding: 6px 14px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-muted);
      font-size: 12px; font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }
    .filter-tag:hover { border-color: var(--gold-line); color: var(--text); }
    .filter-tag.active { background: var(--gold-dim); border-color: var(--gold-line); color: var(--gold); }
    .filter-tag.active-steel { background: var(--steel-dim); border-color: rgba(74,143,184,0.3); color: var(--steel); }
    .filter-tag.active-green { background: var(--green-dim); border-color: rgba(61,158,110,0.3); color: var(--green); }
    .filter-tag.active-red  { background: rgba(196,90,90,0.10); border-color: rgba(196,90,90,0.3); color: var(--red); }

    /* ── Search box ── */
    .site-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-bottom: 18px;
    }

    .result-count {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .search-wrap { position: relative; flex: 1; min-width: 200px; }
    .search-wrap .search-icon {
      position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
      color: var(--text-muted); font-size: 13px; pointer-events: none;
    }
    #site-search {
      width: 100%; padding: 10px 36px 10px 38px;
      border: 1px solid var(--border); border-radius: 10px;
      background: var(--bg-card); color: var(--text);
      font-size: 14px; outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      font-family: var(--font-sans);
    }
    #site-search:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
    #site-search::placeholder { color: var(--text-muted); opacity: 0.6; }
    #search-clear {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      color: var(--text-muted); cursor: pointer;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s;
      font-size: 14px; background: none; border: none; padding: 0;
    }
    #search-clear.visible { opacity: 1; pointer-events: auto; }

    /* ── Empty state ── */
    .empty-state {
      display: none; flex-direction: column; align-items: center;
      padding: 40px 20px; color: var(--text-muted);
      animation: rise 0.35s ease;
    }
    .empty-state.visible { display: flex; }
    .empty-state i { font-size: 32px; margin-bottom: 12px; opacity: 0.4; }
    .empty-state div { font-size: 14px; }


    /* ── Hero Status (replaces status-bar) ── */
    .hero-sidebar {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
      grid-column: 2;
    }

    @media (max-width: 768px) {
      .hero-sidebar,
      .hero-deco {
        display: none;
      }
    }

    .deco-status {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 26px 22px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      flex: 1;
      min-width: 200px;
    }
    .deco-status-item {
      display: flex;
      align-items: center;
      gap: 0;
      padding: 10px 13px 10px 0;
      border-radius: 10px;
      background: transparent;
      border: 1px solid transparent;
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
      cursor: default;
    }
    .deco-status-item::before {
      content: "";
      position: absolute;
      left: 0; top: 10%; bottom: 10%;
      width: 4px;
      border-radius: 0 3px 3px 0;
      background: var(--gold);
      opacity: 0.5;
      transition: opacity 0.25s ease, transform 0.25s ease;
      transform: scaleY(0.7);
    }
    .deco-status-item:nth-child(3)::before { background: var(--steel); }
    .deco-status-item:nth-child(4)::before { background: var(--red); }
    .deco-status-item:hover {
      background: rgba(128,128,128,0.04);
    }
    .deco-status-item:hover::before {
      opacity: 0.8;
      transform: scaleY(1);
    }
    .status-pulse-wrap {
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin: 0 10px 0 14px;
      position: relative;
    }
    .status-pulse-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      opacity: 0.6;
      transition: all 0.35s ease;
    }
    .status-pulse {
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
      background: var(--border);
      transition: all 0.35s ease;
      position: relative;
      z-index: 1;
    }
    .status-pulse.online {
      background: var(--green);
      box-shadow: 0 0 5px rgba(61,170,106,0.5);
    }
    .status-pulse.online + .status-pulse-ring,
    .status-pulse-wrap:has(.status-pulse.online) .status-pulse-ring {
      border-color: rgba(61,170,106,0.4);
      animation: pulseRing 2.2s ease-out infinite;
    }
    .status-pulse.offline {
      background: var(--red);
      box-shadow: none;
    }
    .status-pulse.offline + .status-pulse-ring,
    .status-pulse-wrap:has(.status-pulse.offline) .status-pulse-ring {
      border-color: rgba(196,74,74,0.3);
    }
    .status-pulse.checking {
      background: var(--gold);
      box-shadow: 0 0 5px rgba(200,161,74,0.5);
    }
    .status-pulse.checking + .status-pulse-ring,
    .status-pulse-wrap:has(.status-pulse.checking) .status-pulse-ring {
      border-color: rgba(200,161,74,0.4);
      animation: pulseRing 1.2s ease-out infinite;
    }
    @keyframes pulseRing {
      0%   { transform: scale(1); opacity: 0.5; }
      70%  { transform: scale(1.5); opacity: 0; }
      100% { transform: scale(1.5); opacity: 0; }
    }
    .deco-status-item > span:nth-of-type(1) {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      letter-spacing: 0.2px;
      display: flex;
      align-items: center;
      gap: 9px;
      margin-right: auto;
      flex-shrink: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .deco-status-item > span:nth-of-type(1) i {
      font-size: 12px;
      opacity: 0.6;
      width: 16px;
      text-align: center;
      color: var(--text-muted);
      transition: color 0.2s ease;
    }
    .deco-status-item:hover > span:nth-of-type(1) i {
      opacity: 0.85;
      color: var(--gold);
    }
    .status-text {
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 500;
      padding: 3px 9px;
      border-radius: 10px;
      background: rgba(61,170,106,0.08);
      color: var(--green);
      letter-spacing: 0.3px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: all 0.3s ease;
      border: 1px solid rgba(61,170,106,0.10);
      min-width: 60px;
      text-align: center;
    }

    /* V8 redesign: official school portal visual system */
    :root {
      --bg: #f6f9fd;
      --bg-card: #ffffff;
      --bg-card-alt: #f8fbff;
      --border: #dce5f1;
      --text: #12213b;
      --text-muted: #667894;
      --gold: #b88a12;
      --gold-bright: #d5a11d;
      --gold-dim: rgba(184, 138, 18, 0.08);
      --gold-line: rgba(184, 138, 18, 0.22);
      --steel: #3266ad;
      --steel-dim: rgba(50, 102, 173, 0.08);
      --green: #23895b;
      --green-dim: rgba(35, 137, 91, 0.08);
      --red: #ca5959;
      --red-dim: rgba(202, 89, 89, 0.08);
      --radius-sm: 6px;
      --radius: 8px;
      --radius-lg: 8px;
      --shadow: 0 14px 40px rgba(36, 54, 84, 0.08);
      --shadow-glow: 0 18px 55px rgba(36, 54, 84, 0.10);
      --header-bg: rgba(255, 255, 255, 0.92);
      --overlay-bg: #f6f9fd;
    }

    [data-theme="dark"] {
      --bg: #f6f9fd;
      --bg-card: #ffffff;
      --bg-card-alt: #f8fbff;
      --border: #dce5f1;
      --text: #12213b;
      --text-muted: #667894;
      --header-bg: rgba(255, 255, 255, 0.92);
      --overlay-bg: #f6f9fd;
    }

    html,
    body {
      background: var(--bg);
    }

    body::before,
    body::after,
    .hero-orb,
    .hero-geo,
    .heroparticles {
      display: none !important;
    }

    header {
      height: 70px;
      background: var(--header-bg);
      border-bottom: 1px solid rgba(18, 33, 59, 0.08);
      box-shadow: 0 8px 30px rgba(36, 54, 84, 0.04);
    }

    .logo-emblem {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #d8ad33;
      box-shadow: none;
      border: 1px solid rgba(184, 138, 18, 0.20);
    }

    .logo-text {
      font-size: 17px;
      letter-spacing: 0;
    }

    nav a {
      border-radius: 6px;
      color: #51627d;
      font-weight: 500;
    }

    nav a.active {
      background: transparent;
      color: var(--gold);
      box-shadow: inset 0 -2px 0 var(--gold);
    }

    .theme-toggle-wrap {
      border-radius: 999px;
      padding: 4px;
    }

    .container {
      max-width: 1280px;
      padding: 0 48px;
    }

    .hero {
      min-height: 500px;
      padding: 68px 0 44px;
      grid-template-columns: minmax(0, 1fr) 390px;
      gap: 64px;
      align-items: center;
      margin-bottom: 36px;
      overflow: visible;
      background:
        linear-gradient(90deg, rgba(246,249,253,0.98) 0%, rgba(246,249,253,0.94) 38%, rgba(246,249,253,0.66) 56%, rgba(246,249,253,0.14) 100%),
        url("../img/campus-hero.webp") center right / cover no-repeat;
      border-bottom: 1px solid rgba(18, 33, 59, 0.06);
    }

    .hero-eyebrow {
      display: none;
    }

    .hero h1 {
      max-width: 760px;
      font-size: clamp(40px, 3.45vw, 54px);
      line-height: 1.18;
      letter-spacing: 0;
      filter: none;
      color: var(--text) !important;
      background: none !important;
      -webkit-text-fill-color: initial !important;
      animation: rise 0.5s ease both;
    }

    .hero h1 .shimmer-word {
      color: var(--gold) !important;
      background: none !important;
      -webkit-text-fill-color: initial !important;
      animation: none;
    }

    .hero-desc {
      max-width: 620px;
      color: #526884;
      font-size: 17px;
      line-height: 1.9;
      margin-bottom: 32px;
    }

    .hero-cta {
      min-height: 52px;
      padding: 0 28px;
      border-radius: 8px;
      background: #2557a7;
      color: #ffffff;
      border-color: transparent;
      box-shadow: 0 12px 28px rgba(37, 87, 167, 0.20);
    }

    .hero-cta:hover {
      color: #ffffff;
      background: #1d4b96;
      border-color: transparent;
      transform: translateY(-2px);
      box-shadow: 0 18px 38px rgba(37, 87, 167, 0.24);
    }

    .hero-sidebar {
      gap: 14px;
    }

    .hero-deco,
    .deco-status,
    .dashboard-area,
    .tl-card,
    .site-card {
      border-radius: 8px;
      border-color: rgba(18, 33, 59, 0.10);
      background: rgba(255, 255, 255, 0.90);
      box-shadow: 0 18px 46px rgba(36, 54, 84, 0.10);
      backdrop-filter: blur(16px);
    }

    .hero-deco {
      padding: 24px;
    }

    .deco-grid {
      gap: 10px;
    }

    .deco-item {
      background: #f8fbff;
      border-radius: 8px;
      border: 1px solid rgba(18, 33, 59, 0.06);
    }

    .deco-status {
      padding: 24px;
    }

    .deco-status-item {
      min-height: 58px;
      border-radius: 0;
      border-bottom: 1px solid rgba(18, 33, 59, 0.08);
      background: transparent;
      box-shadow: none;
    }

    .deco-status-item:last-child {
      border-bottom: 0;
    }

    .announcements-section {
      margin-bottom: 28px;
    }

    .section-label {
      font-size: 15px;
      color: var(--text);
      letter-spacing: 0;
      font-weight: 700;
    }

    .section-label::after {
      background: linear-gradient(90deg, rgba(18,33,59,0.14), transparent);
    }

    .timeline {
      display: grid;
      gap: 10px;
      padding-left: 0;
    }

    .timeline::before,
    .tl-dot {
      display: none;
    }

    .tl-item {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      align-items: stretch;
      margin-bottom: 0;
    }

    .tl-date {
      position: static;
      width: auto;
      display: flex;
      align-items: center;
      padding-left: 4px;
      font-size: 12px;
      color: #7a89a3;
    }

    .tl-card {
      padding: 14px 18px;
      box-shadow: none;
      background: #ffffff;
    }

    .tl-title {
      font-size: 15px;
      line-height: 1.5;
    }

    .main-grid {
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 28px;
      align-items: start;
    }

    .sites-area {
      min-width: 0;
    }

    .site-cards {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .site-card {
      max-width: none;
      min-width: 0;
      min-height: 118px;
      padding: 18px;
      box-shadow: none;
      background: #ffffff;
    }

    .site-card:hover {
      transform: translateY(-2px);
      background: #ffffff;
      box-shadow: 0 16px 36px rgba(36, 54, 84, 0.10);
      border-color: rgba(50, 102, 173, 0.20);
    }

    .site-card-icon {
      width: 42px;
      height: 42px;
      border-radius: 8px;
      color: #3266ad;
      background: rgba(50, 102, 173, 0.10);
      border-color: rgba(50, 102, 173, 0.14);
    }

    .site-card-title {
      white-space: normal;
      font-size: 16px;
      line-height: 1.35;
    }

    .site-card-desc {
      display: block;
      margin-top: 6px;
      color: var(--text-muted);
      font-size: 12px;
      line-height: 1.6;
    }

    .site-card-cat,
    .site-card-tag,
    .site-card-arrow,
    .site-card-spotlight,
    .site-card::after {
      display: none;
    }

    .search-wrap {
      border-radius: 8px;
      background: #ffffff;
      border-color: rgba(18, 33, 59, 0.10);
    }

    .filter-tag {
      border-radius: 999px;
      text-transform: none;
      letter-spacing: 0;
      background: #ffffff;
    }

    .dashboard-area {
      box-shadow: none;
      background: #ffffff;
      position: sticky;
      top: 88px;
    }

    .bottom-tab-bar {
      background: rgba(255,255,255,0.94);
    }

    @media (max-width: 1024px) {
      .container {
        padding: 0 28px;
      }

      .hero {
        grid-template-columns: 1fr;
        background-position: center right;
      }

      .hero-sidebar {
        grid-column: 1;
        max-width: 620px;
      }

      .site-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 768px) {
      header {
        height: 68px;
      }

      .container {
        padding: 0 16px;
      }

      .logo-emblem {
        width: 40px;
        height: 40px;
      }

      .hero {
        min-height: auto;
        padding: 88px 0 36px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 22px;
        background:
          linear-gradient(180deg, rgba(246,249,253,0.92) 0%, rgba(246,249,253,0.82) 46%, rgba(246,249,253,1) 100%),
          url("../img/campus-hero.webp") center top / cover no-repeat;
      }

      .hero h1 {
        font-size: 34px;
        line-height: 1.28;
        max-width: 100%;
      }

      .hero-desc {
        font-size: 16px;
        line-height: 1.85;
      }

      .hero-cta {
        width: fit-content;
        min-height: 48px;
        padding: 0 22px;
        background: var(--gold);
        box-shadow: 0 12px 28px rgba(184, 138, 18, 0.20);
      }

      .hero-sidebar,
      .hero-deco {
        display: flex !important;
      }

      .hero-deco,
      .deco-status {
        width: 100%;
        padding: 18px;
      }

      .main-grid {
        grid-template-columns: 1fr;
      }

      .dashboard-area {
        position: static;
      }

      .site-cards {
        grid-template-columns: 1fr;
      }

      .tl-item {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .tl-date {
        padding-left: 0;
      }

      .bottom-tab-bar {
        box-shadow: 0 -10px 30px rgba(36, 54, 84, 0.08);
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 31px;
      }

      .hero-desc {
        font-size: 15px;
      }

      .deco-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    .status-text.offline {
      background: rgba(196,74,74,0.08);
      color: var(--red);
      border-color: rgba(196,74,74,0.10);
    }
    .status-text.checking {
      background: rgba(200,150,42,0.08);
      color: var(--gold);
      border-color: rgba(200,150,42,0.10);
    }

/* Reference redesign: clean school portal matching approved screenshot */
:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f7faff;
  --border: #e4e9f2;
  --text: #14213b;
  --text-muted: #687996;
  --gold: #a87b0b;
  --gold-bright: #c99b20;
  --steel: #3f6fb7;
  --green: #22a065;
  --red: #c85050;
  --header-bg: rgba(255, 255, 255, 0.96);
  --shadow: 0 12px 30px rgba(34, 54, 90, 0.10);
}

[data-theme="dark"] {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f7faff;
  --border: #e4e9f2;
  --text: #14213b;
  --text-muted: #687996;
  --header-bg: rgba(255, 255, 255, 0.96);
}

html,
body {
  background: #ffffff;
  color: var(--text);
}

body {
  font-size: 16px;
  line-height: 1.65;
}

header {
  height: 84px;
  padding: 0 42px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(20, 33, 59, 0.08);
  box-shadow: 0 4px 18px rgba(34, 54, 90, 0.06);
}

header.scrolled {
  height: 72px;
}

.logo {
  gap: 16px;
}

.logo-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff9ea;
  color: var(--gold);
  border: 3px solid rgba(168, 123, 11, 0.42);
  box-shadow: inset 0 0 0 4px #ffffff, 0 3px 10px rgba(168, 123, 11, 0.12);
  font-size: 24px;
  font-weight: 800;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
}

.logo-text em {
  margin-left: 8px;
  color: var(--gold);
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 800;
}

nav {
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 4px;
  border-radius: 0;
  color: #1d2a45;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
}

nav a:hover {
  color: var(--gold);
  background: transparent;
}

nav a.active {
  color: var(--gold);
  background: transparent;
  box-shadow: none;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}

.header-right {
  gap: 14px;
}

.header-icon-btn,
.profile-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2a3650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.theme-toggle-wrap {
  padding: 0;
}

.theme-toggle {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #98710c, #b98d18);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}

.theme-toggle::after {
  width: 18px;
  height: 18px;
  top: 2px;
  left: 20px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
  transform: none !important;
}

.profile-btn {
  gap: 7px;
  font-size: 12px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7ecf3;
  border: 2px solid #f3f5f8;
  color: #95a1b3;
  font-size: 18px;
}

.container {
  max-width: none;
  padding: 0;
}

.hero {
  min-height: 495px;
  padding: 0 5.2vw;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(440px, 0.72fr) minmax(520px, 1fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.96) 28%, rgba(255,255,255,0.68) 46%, rgba(255,255,255,0.08) 72%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 72%, rgba(255,255,255,0.88) 100%),
    url("../img/campus-hero.webp") center right / auto 100% no-repeat;
  border-bottom: 1px solid rgba(20, 33, 59, 0.08);
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 24px;
  font-size: clamp(48px, 4vw, 68px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  color: #111b34 !important;
  text-shadow: none;
}

.hero h1 .shimmer-word {
  margin-left: 0.15em;
  color: var(--gold) !important;
}

.hero-title-line {
  white-space: nowrap;
}

.hero-desc {
  max-width: 710px;
  margin-bottom: 32px;
  color: #62738d;
  font-size: 17px;
  line-height: 2;
  font-weight: 500;
}

.hero-cta {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 8px;
  background: #245bb3;
  color: #ffffff;
  gap: 14px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 13px 24px rgba(36, 91, 179, 0.28);
}

.hero-cta::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 20px;
  font-size: 13px;
}

.hero-sidebar {
  justify-self: end;
  width: min(430px, 100%);
  margin-top: 88px;
}

.hero-deco {
  display: none;
}

.deco-status {
  padding: 28px 28px 20px;
  border-radius: 10px;
  border: 1px solid rgba(20, 33, 59, 0.09);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(28, 45, 76, 0.14);
  backdrop-filter: blur(12px);
  gap: 0;
}

.deco-status .hero-deco-label {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: #192743;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
}

.deco-status .hero-deco-label::after {
  content: "查看详情 \f054";
  font-family: var(--font-sans), "Font Awesome 6 Free";
  font-weight: 700;
  position: absolute;
  right: 0;
  top: 1px;
  color: #3e67b4;
  font-size: 14px;
}

.deco-status-item {
  min-height: 66px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  gap: 12px;
}

.deco-status-item:last-child {
  border-bottom: 0;
}

.deco-status-item::before,
.status-pulse-wrap,
.status-pulse-ring {
  display: none;
}

.deco-status-item > span:nth-of-type(1) {
  color: #182642;
  font-size: 16px;
  font-weight: 800;
}

.deco-status-item > span:nth-of-type(1) i {
  width: 28px;
  color: #476fb8;
  opacity: 1;
  font-size: 22px;
}

.status-text {
  min-width: auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #74849c;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.status-text::before {
  content: attr(data-latency);
}

.status-text.online {
  color: #6f7f99;
}

.status-text.online::before {
  content: attr(data-latency);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 27px;
  padding: 0 12px;
  border-radius: 9px;
  background: #e8f7ee;
  border: 1px solid #ccebd9;
  color: #27a466;
  font-size: 13px;
  font-weight: 800;
}

.status-text.online::after {
  content: "\2022  正常";
  color: #6f7f99;
}

.status-text.offline::after {
  content: "\2022  异常";
  color: var(--red);
}

.main-grid {
  max-width: 1460px;
  margin: 0 auto;
  padding: 34px 5.2vw 40px;
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(640px, 1.1fr);
  gap: 38px;
  align-items: start;
}

.main-grid::before {
  content: "";
  position: absolute;
  left: calc(5.2vw + min(440px, 38vw) + 24px);
  height: 260px;
  width: 1px;
  background: var(--border);
}

.announcements-section,
.sites-area {
  margin: 0;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  margin: 0;
  color: #14213b;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.section-label::after {
  display: none;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #53709f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.timeline {
  display: block;
  padding: 0;
}

.timeline::before,
.tl-dot,
.tl-tag,
.tl-body {
  display: none;
}

.tl-item {
  display: block;
  margin: 0;
  opacity: 1;
  transform: none;
}

.tl-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 14px;
  padding: 0 8px 0 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tl-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
}

.tl-icon.gold { background: #d7ad35; }
.tl-icon.green { background: #5ec889; }
.tl-icon.steel,
.tl-icon.blue { background: #6ea0f1; }

.tl-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24324c;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.tl-date {
  width: auto;
  color: #7c8ba5;
  font-size: 14px;
  font-family: var(--font-sans);
  text-align: right;
}

.site-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -52px 0 14px;
  min-height: 40px;
}

.search-wrap,
.result-count {
  display: none;
}

.filter-tags {
  gap: 8px;
}

.filter-tag {
  min-height: 34px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6f8d;
  font-size: 15px;
  font-weight: 700;
}

.filter-tag:hover {
  color: #245bb3;
  border: 0;
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  background: #245bb3;
  color: #ffffff;
  border: 0;
  box-shadow: 0 8px 16px rgba(36, 91, 179, 0.18);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.site-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 54, 90, 0.03);
}

.site-card:hover {
  transform: translateY(-1px);
  border-color: rgba(63, 111, 183, 0.28);
  box-shadow: 0 12px 24px rgba(34, 54, 90, 0.09);
}

.site-card-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #496fae !important;
  font-size: 30px;
}

.site-card-icon.files,
.site-card-icon.affairs,
.site-card-icon.green,
.site-card-icon.blue {
  background: transparent !important;
  color: #496fae !important;
}

.site-card-body {
  min-width: 0;
}

.site-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24324c;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.site-card-desc {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7888a1;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

.site-card.is-disabled {
  cursor: default;
  background: #fbfcff;
  border-style: dashed;
}

.site-card.is-disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(34, 54, 90, 0.03);
}

.site-card.is-disabled .site-card-icon,
.site-card.is-disabled .site-card-title {
  color: #8b9bb5 !important;
}

.site-card.is-disabled .site-card-desc,
.site-card.is-disabled .site-card-arrow {
  color: var(--gold);
}

/* Refined portal surface */
.main-grid {
  grid-template-columns: minmax(430px, 0.82fr) minmax(700px, 1.18fr);
  gap: 46px;
}

.section-head {
  min-height: 46px;
  margin-bottom: 14px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #245bb3, var(--gold));
  box-shadow: 0 6px 14px rgba(36, 91, 179, 0.18);
}

.section-more {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.section-more:hover {
  background: #f1f5fb;
  color: #245bb3;
}

.tl-card {
  min-height: 62px;
  padding: 0 10px 0 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tl-card:hover {
  background: linear-gradient(90deg, rgba(36, 91, 179, 0.04), rgba(255, 255, 255, 0));
  box-shadow: inset 3px 0 0 rgba(36, 91, 179, 0.22);
}

.tl-icon {
  box-shadow: 0 8px 18px rgba(63, 111, 183, 0.14);
}

.site-tools {
  margin: -58px 0 16px;
}

.filter-tags {
  padding: 3px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e6ebf4;
}

.filter-tag {
  min-height: 32px;
  padding: 0 16px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  background: linear-gradient(135deg, #245bb3, #3470cf);
  box-shadow: 0 8px 18px rgba(36, 91, 179, 0.20);
}

.site-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-card {
  min-height: 112px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  padding: 18px 16px 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 22px rgba(34, 54, 90, 0.06);
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 91, 179, 0.26);
  box-shadow: 0 16px 30px rgba(34, 54, 90, 0.12);
}

.site-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f0f5ff !important;
  color: #3f6fb7 !important;
  font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(63, 111, 183, 0.08);
}

.site-card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 17px;
}

.site-card-desc {
  margin-top: 5px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.site-card-cat {
  top: 8px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
}

.site-card-arrow {
  right: 12px;
  bottom: 10px;
}

.site-card.is-disabled {
  background:
    linear-gradient(180deg, #fcfdff 0%, #f8faff 100%);
  border-color: #dfe6f1;
  box-shadow: none;
}

.site-card.is-disabled .site-card-icon {
  background: #f3f5f9 !important;
}

.site-card.is-disabled .site-card-desc {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff6df;
  border: 1px solid #f1dfad;
  color: #9d730d;
  font-size: 12px;
  font-weight: 800;
}

#dashboard {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 5.2vw 40px;
}

#dashboard > .section-label {
  display: none;
}

.dashboard-area {
  display: none;
}

.section-divider,
footer {
  display: none;
}

@media (max-width: 1180px) {
  nav {
    gap: 22px;
  }

  .logo-text {
    font-size: 18px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .main-grid::before {
    display: none;
  }

  .site-tools {
    margin-top: -50px;
  }

  .site-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    height: 68px;
    padding: 0 16px;
  }

  nav,
  .profile-btn {
    display: none;
  }

  .logo {
    gap: 10px;
    min-width: 0;
  }

  .logo-emblem {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .logo-text {
    max-width: 230px;
    white-space: normal;
    font-size: 17px;
    line-height: 1.35;
  }

  .logo-text em {
    font-size: 15px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 88px 16px 24px;
    gap: 20px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.78) 45%, rgba(255,255,255,0.96) 100%),
      url("../img/campus-hero.webp") center top / auto 100% no-repeat;
  }

  .hero h1 {
    font-size: 33px;
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-deco {
    display: none !important;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
  }

  .hero-cta {
    min-height: 48px;
    padding: 0 20px;
    background: var(--gold);
    font-size: 15px;
  }

  .hero-sidebar {
    width: 100%;
    margin-top: 0;
  }

  .deco-status {
    padding: 18px 18px 10px;
  }

  .deco-status .hero-deco-label {
    font-size: 13px;
  }

  .deco-status .hero-deco-label::after {
    display: none;
  }

  .deco-status-item {
    min-height: 58px;
  }

  .deco-status-item > span:nth-of-type(1) {
    font-size: 15px;
  }

  .status-text {
    gap: 12px;
    font-size: 13px;
  }

  .main-grid {
    padding: 24px 16px 86px;
    gap: 28px;
  }

  .section-head {
    min-height: 36px;
  }

  .section-label {
    font-size: 18px;
  }

  .tl-card {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 8px 0;
  }

  .tl-date {
    grid-column: 2;
    text-align: left;
    font-size: 12px;
    margin-top: -4px;
  }

  .site-tools {
    margin: 0 0 14px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .filter-tags {
    flex-wrap: nowrap;
  }

  .filter-tag {
    white-space: nowrap;
    font-size: 13px;
    padding: 0 13px;
  }

  .site-cards {
    grid-template-columns: 1fr;
  }
}

/* Crest brand polish */
:root {
  --school-green: #0b8f54;
  --school-green-deep: #087143;
  --school-green-soft: rgba(11, 143, 84, 0.10);
  --school-green-line: rgba(11, 143, 84, 0.22);
}

header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.94));
  border-bottom-color: rgba(11, 143, 84, 0.12);
}

.logo {
  gap: 14px;
}

.logo-emblem,
.loading-emblem {
  overflow: hidden;
  background: #ffffff;
}

.logo-emblem {
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid rgba(11, 143, 84, 0.25);
  box-shadow:
    0 10px 24px rgba(11, 143, 84, 0.13),
    0 0 0 5px rgba(11, 143, 84, 0.05);
}

.logo-emblem img,
.loading-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text em {
  color: var(--school-green);
}

.loading-emblem {
  width: 78px;
  height: 78px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid var(--school-green-line);
  box-shadow:
    0 18px 42px rgba(11, 143, 84, 0.18),
    0 0 0 8px rgba(11, 143, 84, 0.06);
}

@keyframes embPulse {
  0%, 100% {
    box-shadow: 0 18px 42px rgba(11, 143, 84, 0.18), 0 0 0 8px rgba(11, 143, 84, 0.06);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 20px 54px rgba(11, 143, 84, 0.26), 0 0 0 12px rgba(11, 143, 84, 0.08);
    transform: scale(1.035);
  }
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 46%;
  width: min(24vw, 260px);
  aspect-ratio: 1;
  background: url("../img/school-logo.png") center / contain no-repeat;
  opacity: 0.055;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-eyebrow {
  color: var(--school-green);
}

.hero h1 .shimmer-word,
.logo-text em {
  background: linear-gradient(100deg, var(--school-green-deep), var(--gold) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hero-cta {
  background: linear-gradient(135deg, var(--school-green), #1a9b68 48%, #245bb3);
  box-shadow: 0 15px 30px rgba(11, 143, 84, 0.24);
}

.hero-cta:hover {
  box-shadow: 0 18px 42px rgba(11, 143, 84, 0.28), 0 0 0 1px rgba(11, 143, 84, 0.15);
}

.deco-status {
  border-color: rgba(11, 143, 84, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 251, 0.92));
  box-shadow: 0 22px 48px rgba(18, 45, 34, 0.13);
}

.deco-status .hero-deco-label::after {
  color: var(--school-green);
}

.deco-status-item > span:nth-of-type(1) i,
.site-card-icon {
  color: #2f6eb7 !important;
}

.status-text.online::before {
  background: #e6f8ef;
  border-color: #bfead2;
  color: var(--school-green);
}

.section-label::before {
  background: linear-gradient(180deg, var(--school-green), var(--gold));
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  background: linear-gradient(135deg, var(--school-green), #245bb3);
  box-shadow: 0 8px 18px rgba(11, 143, 84, 0.20);
}

.site-card {
  border-color: rgba(47, 110, 183, 0.12);
}

.site-card::before {
  background: linear-gradient(90deg, transparent, var(--school-green), var(--gold), transparent);
}

.site-card:hover {
  border-color: rgba(11, 143, 84, 0.24);
  box-shadow: 0 18px 36px rgba(20, 55, 41, 0.12);
}

.site-card-icon {
  background: linear-gradient(145deg, #eef6ff, #ffffff) !important;
}

.site-card:not(.is-disabled):hover .site-card-icon {
  color: var(--school-green) !important;
  box-shadow: inset 0 0 0 1px var(--school-green-line), 0 10px 20px rgba(11, 143, 84, 0.10);
}

.site-card.is-disabled .site-card-icon {
  color: #90a2ba !important;
  background: #f4f7fb !important;
}

.site-card.is-disabled .site-card-desc {
  background: #fff8e9;
  border-color: #ead293;
}

@media (max-width: 900px) {
  .logo-emblem {
    width: 44px;
    height: 44px;
    padding: 2px;
  }

  .hero::after {
    left: 74%;
    top: 27%;
    width: 150px;
    opacity: 0.05;
  }

  .hero-cta {
    background: linear-gradient(135deg, var(--school-green), var(--gold));
  }
}

/* Header actions and usable dark mode */
.header-right {
  position: relative;
}

.theme-toggle-wrap,
.profile-btn {
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle-wrap:hover,
.profile-btn:hover,
.profile-btn.open {
  background: rgba(11, 143, 84, 0.10);
  color: var(--school-green);
}

.theme-toggle-wrap:active,
.profile-btn:active {
  transform: scale(0.94);
}

.theme-toggle {
  position: relative;
}

[data-theme="light"] .theme-toggle::after {
  left: 20px;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(90deg, #14213b, #0b8f54);
}

[data-theme="dark"] .theme-toggle::after {
  left: 2px;
}

.profile-btn.open {
  background: rgba(11, 143, 84, 0.10);
  color: var(--school-green);
}

.profile-btn.open .fa-chevron-down {
  transform: rotate(180deg);
}

.profile-btn .fa-chevron-down {
  transition: transform 0.18s ease;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 176px;
  padding: 8px;
  border: 1px solid rgba(11, 143, 84, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(20, 48, 38, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 120;
}

.profile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-menu-title {
  padding: 8px 10px 7px;
  color: #6b7c95;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid #e8eef5;
  margin-bottom: 4px;
}

.profile-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1c2d4a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.profile-menu button i {
  width: 16px;
  color: var(--school-green);
  text-align: center;
}

.profile-menu button:hover {
  background: rgba(11, 143, 84, 0.09);
  color: var(--school-green-deep);
}

[data-theme="dark"],
[data-theme="dark"] body {
  background: #0b1322;
  color: #e7edf6;
}

[data-theme="dark"] body::before {
  display: block !important;
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(11, 143, 84, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 60% 40% at 85% 18%, rgba(36, 91, 179, 0.20) 0%, transparent 62%);
}

[data-theme="dark"] header {
  background: rgba(10, 19, 34, 0.94);
  border-bottom-color: rgba(132, 188, 160, 0.18);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .logo-text,
[data-theme="dark"] nav a,
[data-theme="dark"] .profile-btn,
[data-theme="dark"] .section-label,
[data-theme="dark"] .site-card-title,
[data-theme="dark"] .tl-title,
[data-theme="dark"] .deco-status .hero-deco-label,
[data-theme="dark"] .deco-status-item > span:nth-of-type(1) {
  color: #e7edf6;
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(11, 19, 34, 0.98) 0%, rgba(11, 19, 34, 0.88) 34%, rgba(11, 19, 34, 0.54) 62%, rgba(11, 19, 34, 0.30) 100%),
    url("../img/campus-hero.webp") center right / auto 100% no-repeat;
  border-bottom-color: rgba(132, 188, 160, 0.14);
}

[data-theme="dark"] .hero h1 {
  color: #f4f8ff !important;
}

[data-theme="dark"] .hero h1 .shimmer-word {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold) !important;
}

[data-theme="dark"] .hero-desc,
[data-theme="dark"] .site-card-desc,
[data-theme="dark"] .tl-date,
[data-theme="dark"] .section-more,
[data-theme="dark"] .filter-tag {
  color: #aebbd0;
}

[data-theme="dark"] .deco-status,
[data-theme="dark"] .site-card,
[data-theme="dark"] .profile-menu {
  background: rgba(15, 27, 47, 0.94);
  border-color: rgba(132, 188, 160, 0.16);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .site-card.is-disabled {
  background: rgba(17, 29, 50, 0.78);
  border-color: rgba(132, 188, 160, 0.18);
}

[data-theme="dark"] .site-card-icon,
[data-theme="dark"] .site-card.is-disabled .site-card-icon,
[data-theme="dark"] .profile-avatar {
  background: rgba(49, 72, 104, 0.55) !important;
  color: #8bc9ff !important;
  border-color: rgba(132, 188, 160, 0.12);
}

[data-theme="dark"] .filter-tags {
  background: rgba(15, 27, 47, 0.78);
  border-color: rgba(132, 188, 160, 0.14);
}

[data-theme="dark"] .section-head,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .deco-status .hero-deco-label,
[data-theme="dark"] .deco-status-item {
  border-color: rgba(132, 188, 160, 0.16);
}

[data-theme="dark"] .profile-menu-title {
  color: #aebbd0;
  border-bottom-color: rgba(132, 188, 160, 0.14);
}

[data-theme="dark"] .profile-menu button {
  color: #e7edf6;
}

[data-theme="dark"] .profile-menu button:hover,
[data-theme="dark"] .theme-toggle-wrap:hover,
[data-theme="dark"] .profile-btn:hover,
[data-theme="dark"] .profile-btn.open {
  background: rgba(61, 177, 119, 0.14);
  color: #79d6a4;
}

[data-theme="dark"] .bottom-tab-bar {
  background: rgba(10, 19, 34, 0.96);
  border-top-color: rgba(132, 188, 160, 0.16);
}

@media (max-width: 900px) {
  .profile-menu {
    display: none;
  }

  [data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(11, 19, 34, 0.92) 0%, rgba(11, 19, 34, 0.80) 48%, rgba(11, 19, 34, 0.96) 100%),
      url("../img/campus-hero.webp") center top / auto 100% no-repeat;
  }
}

@media (min-width: 901px) {
  .site-cards {
    grid-template-columns: repeat(var(--portal-card-columns, 3), minmax(0, 1fr));
  }
}


main#content {
  display: block;
}
.admin-entry-wrap {
  max-width: 1460px;
  margin: 4px auto 34px;
  padding: 0 5.2vw;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(11, 143, 84, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4d617a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(22, 48, 38, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-entry i {
  color: var(--school-green);
}

.admin-entry:hover {
  color: var(--school-green-deep);
  border-color: rgba(11, 143, 84, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(22, 48, 38, 0.10);
}

[data-theme="dark"] .admin-entry {
  background: rgba(15, 27, 47, 0.86);
  color: #b9c6d7;
  border-color: rgba(132, 188, 160, 0.18);
}

@media (max-width: 900px) {
  .admin-entry-wrap {
    margin: -54px auto 90px;
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════════
   V8 首页美化覆盖：清朗校园数字门户
   目标：减少旧版装饰噪声，强化首屏、站点入口和日常办公效率。
══════════════════════════════════════════════ */
:root {
  --v8-bg: #f3f7fb;
  --v8-surface: rgba(255, 255, 255, 0.92);
  --v8-surface-solid: #ffffff;
  --v8-ink: #14243a;
  --v8-muted: #64748b;
  --v8-line: rgba(32, 70, 111, 0.12);
  --v8-green: #0b8f54;
  --v8-green-deep: #06683e;
  --v8-blue: #245bb3;
  --v8-gold: #b9861f;
  --v8-red: #b84d4d;
  --v8-radius: 8px;
  --v8-shadow: 0 20px 48px rgba(28, 54, 84, 0.10);
  --v8-soft-shadow: 0 10px 28px rgba(28, 54, 84, 0.07);
  --portal-card-columns: 4;
}

[data-theme="light"],
[data-theme="light"] body {
  background: var(--v8-bg);
  color: var(--v8-ink);
}

[data-theme="light"] body::before {
  display: block !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 247, 251, 0.0) 360px),
    radial-gradient(900px 320px at 6% -8%, rgba(11, 143, 84, 0.10), transparent 66%),
    radial-gradient(740px 360px at 100% 12%, rgba(36, 91, 179, 0.10), transparent 68%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
  opacity: 1;
}

[data-theme="light"] body::after {
  opacity: 0.035;
}

body {
  font-size: 16px;
}

header {
  padding: 0 clamp(18px, 4.4vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(11, 143, 84, 0.12);
  box-shadow: 0 10px 30px rgba(24, 55, 89, 0.06);
}

[data-theme="light"] header,
[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: rgba(11, 143, 84, 0.12);
  box-shadow: 0 10px 30px rgba(24, 55, 89, 0.06);
}

.container {
  max-width: 1480px;
  padding: 0 clamp(18px, 4.6vw, 72px);
}

.logo {
  gap: 10px;
  min-width: 0;
}

.logo-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(11, 143, 84, 0.22);
  box-shadow: 0 10px 24px rgba(11, 143, 84, 0.12);
}

header.scrolled .logo-emblem {
  width: 34px;
  height: 34px;
}

.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  max-width: min(46vw, 390px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-text em {
  color: var(--v8-green);
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--v8-radius);
  font-size: 14px;
  font-weight: 800;
  color: #53647b;
}

nav a:hover,
nav a.active {
  color: var(--v8-green-deep);
  background: rgba(11, 143, 84, 0.09);
}

.theme-toggle-wrap,
.profile-btn {
  min-height: 40px;
  border-radius: var(--v8-radius);
}

.profile-btn {
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 70, 111, 0.12);
}

.theme-toggle {
  width: 42px;
  height: 24px;
  background: rgba(20, 36, 58, 0.10);
  border-color: rgba(20, 36, 58, 0.10);
}

.hero-orb,
.hero-geo,
.heroparticles {
  display: none !important;
}

.hero {
  min-height: min(650px, calc(100svh - 92px));
  margin: 24px 0 28px;
  padding: clamp(42px, 6vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.54fr);
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  border: 1px solid rgba(11, 143, 84, 0.13);
  border-radius: var(--v8-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.42) 68%, rgba(255, 255, 255, 0.12) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
  box-shadow: var(--v8-shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--v8-green), var(--v8-blue), var(--v8-gold));
  opacity: 0.92;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52%, 680px);
  height: 100%;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 35, 26, 0.28));
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: 18px;
  padding: 0;
  color: var(--v8-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-eyebrow::before {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--v8-green);
}

.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--v8-ink) !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(40px, 4.7vw, 64px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-school-name,
.hero-portal-name {
  display: block;
}

.hero-school-name {
  max-width: 10.5em;
  color: #15243a;
  font-size: 0.88em;
  font-weight: 800;
  line-height: 1.18;
}

.hero-portal-name {
  margin-top: 12px;
  color: var(--v8-green);
  font-size: 1.02em;
  font-weight: 850;
  line-height: 1.02;
}

.hero-title-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.22em;
}

.hero h1 .shimmer-word,
[data-theme="light"] .hero h1 .shimmer-word {
  color: var(--v8-green) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.hero-desc {
  max-width: 680px;
  margin-bottom: 28px;
  color: #52647b;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
  font-weight: 500;
}

.hero-cta {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--v8-radius);
  background: linear-gradient(135deg, var(--v8-green), var(--v8-blue));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(11, 143, 84, 0.24);
}

.hero-cta:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #087143, #1d4f9e);
  box-shadow: 0 22px 44px rgba(11, 143, 84, 0.30);
  transform: translateY(-2px);
}

.hero-sidebar {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.hero-deco,
.deco-status {
  border-radius: var(--v8-radius);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(24, 55, 89, 0.12);
  backdrop-filter: blur(18px);
}

.hero-deco {
  padding: 22px;
}

.hero-deco-label,
.deco-status .hero-deco-label {
  margin-bottom: 14px;
  color: #38506e;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.deco-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.deco-item {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(32, 70, 111, 0.10);
  border-radius: var(--v8-radius);
  background: rgba(248, 251, 253, 0.84);
}

.deco-num {
  color: var(--v8-green);
  font-size: 28px;
  font-weight: 950;
}

.deco-sub {
  color: #65748a;
  font-size: 12px;
  font-weight: 800;
}

.deco-status {
  padding: 18px;
}

.deco-status-item {
  min-height: 42px;
  padding: 0 0 0 2px;
  border-bottom-color: rgba(32, 70, 111, 0.10);
}

.section-head {
  min-height: 54px;
  align-items: center;
}

.section-label {
  margin-bottom: 16px;
  color: #405673;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.section-label::after {
  background: linear-gradient(90deg, rgba(11, 143, 84, 0.22), transparent);
}

.main-grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--v8-radius);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(32, 70, 111, 0.09);
  box-shadow: 0 16px 38px rgba(24, 55, 89, 0.07);
}

.main-grid::before {
  display: none;
}

.announcements-section,
.sites-area,
.dashboard-area {
  border-radius: var(--v8-radius);
  border: 1px solid var(--v8-line);
  background: var(--v8-surface);
  box-shadow: var(--v8-soft-shadow);
}

.announcements-section,
.sites-area {
  padding: clamp(18px, 2vw, 26px);
}

.timeline {
  gap: 12px;
}

.timeline::before {
  left: 14px;
  background: linear-gradient(180deg, rgba(11, 143, 84, 0.28), rgba(36, 91, 179, 0.12));
}

.tl-item {
  padding-left: 34px;
  padding-bottom: 14px;
}

.tl-dot {
  left: 8px;
  top: 18px;
  box-shadow: 0 0 0 5px rgba(11, 143, 84, 0.08);
}

.tl-card {
  padding: 14px 14px 14px 16px;
  border-radius: var(--v8-radius);
  border: 1px solid rgba(32, 70, 111, 0.10);
  background: #ffffff;
}

.tl-title {
  color: var(--v8-ink);
  font-size: 15px;
  line-height: 1.5;
}

.tl-body {
  color: #5f7188;
}

.site-tools {
  gap: 12px;
  margin-bottom: 16px;
}

.search-wrap {
  min-height: 46px;
  border-radius: var(--v8-radius);
  border: 1px solid rgba(32, 70, 111, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(24, 55, 89, 0.05);
}

.filter-tags {
  padding: 4px;
  border-radius: var(--v8-radius);
  border: 1px solid rgba(32, 70, 111, 0.10);
  background: #f7fafc;
}

.filter-tag {
  min-height: 34px;
  border-radius: 6px;
  border: 0;
  color: #607187;
  font-size: 13px;
  font-weight: 900;
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  color: #ffffff;
  background: linear-gradient(135deg, var(--v8-green), var(--v8-blue));
  box-shadow: 0 8px 18px rgba(11, 143, 84, 0.16);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(var(--portal-card-columns), minmax(0, 1fr));
  gap: 12px;
}

.site-card {
  min-width: 0;
  max-width: none;
  min-height: 156px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border-radius: var(--v8-radius);
  border: 1px solid rgba(32, 70, 111, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.94));
  color: var(--v8-ink);
  box-shadow: 0 8px 22px rgba(24, 55, 89, 0.06);
}

.site-card::after,
.site-card-spotlight,
.site-card .card-glow-line {
  display: none;
}

.site-card:hover {
  border-color: rgba(11, 143, 84, 0.26);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(24, 55, 89, 0.12);
  transform: translateY(-3px);
}

.site-card-cat {
  position: static;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.site-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--v8-radius);
  color: var(--v8-green);
  border-color: rgba(11, 143, 84, 0.16);
  background: rgba(11, 143, 84, 0.08);
}

.site-card-icon.files {
  color: var(--v8-blue);
  border-color: rgba(36, 91, 179, 0.16);
  background: rgba(36, 91, 179, 0.08);
}

.site-card-icon.affairs {
  color: var(--v8-red);
  border-color: rgba(184, 77, 77, 0.16);
  background: rgba(184, 77, 77, 0.08);
}

.site-card-body {
  display: grid;
  gap: 5px;
}

.site-card-tag {
  color: var(--v8-green);
  font-size: 12px;
  font-weight: 950;
}

.site-card-title {
  color: var(--v8-ink);
  font-size: 17px;
  line-height: 1.32;
  font-weight: 950;
}

.site-card-desc {
  min-height: 2.8em;
  color: #61738a;
  font-size: 13px;
  line-height: 1.45;
}

.site-card-arrow {
  place-self: end;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--v8-green), var(--v8-blue));
}

#dashboard {
  max-width: 1480px;
  padding: 0 clamp(18px, 4.6vw, 72px);
}

#dashboard > .section-label {
  margin-top: 30px;
}

.dashboard-area {
  padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.88));
}

.dash-title {
  color: var(--v8-ink);
  font-size: 22px;
  font-weight: 950;
}

.dash-sub,
.trend-title,
.spark-title {
  color: #61738a;
  font-weight: 800;
}

.chart-row,
.spark-section,
.trend-section,
.stat-item {
  border-radius: var(--v8-radius);
  border: 1px solid rgba(32, 70, 111, 0.10);
  background: #ffffff;
}

.admin-entry {
  background: #ffffff;
  border-color: rgba(32, 70, 111, 0.12);
  box-shadow: var(--v8-soft-shadow);
}

[data-theme="dark"] {
  --v8-bg: #0b1322;
  --v8-surface: rgba(15, 27, 47, 0.90);
  --v8-surface-solid: #101d31;
  --v8-ink: #e7edf6;
  --v8-muted: #aebbd0;
  --v8-line: rgba(132, 188, 160, 0.16);
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(11, 19, 34, 0.98) 0%, rgba(11, 19, 34, 0.88) 42%, rgba(11, 19, 34, 0.54) 68%, rgba(11, 19, 34, 0.28) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .site-card-title,
[data-theme="dark"] .tl-title,
[data-theme="dark"] .dash-title {
  color: #f5f8ff !important;
}

[data-theme="dark"] .hero-desc,
[data-theme="dark"] .tl-body,
[data-theme="dark"] .site-card-desc,
[data-theme="dark"] .dash-sub,
[data-theme="dark"] .trend-title,
[data-theme="dark"] .spark-title {
  color: #aebbd0;
}

[data-theme="dark"] .hero-deco,
[data-theme="dark"] .deco-status,
[data-theme="dark"] .announcements-section,
[data-theme="dark"] .sites-area,
[data-theme="dark"] .dashboard-area,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .site-card,
[data-theme="dark"] .chart-row,
[data-theme="dark"] .spark-section,
[data-theme="dark"] .trend-section,
[data-theme="dark"] .stat-item {
  background: rgba(15, 27, 47, 0.92);
  border-color: rgba(132, 188, 160, 0.16);
}

[data-theme="dark"] .main-grid {
  background: rgba(15, 27, 47, 0.42);
  border-color: rgba(132, 188, 160, 0.12);
}

[data-theme="dark"] .deco-item,
[data-theme="dark"] .search-wrap,
[data-theme="dark"] .filter-tags {
  background: rgba(20, 35, 58, 0.92);
  border-color: rgba(132, 188, 160, 0.14);
}

[data-theme="dark"] .site-card:hover {
  background: rgba(18, 34, 58, 0.98);
}

@media (max-width: 1180px) {
  :root {
    --portal-card-columns: 3;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --portal-card-columns: 2;
  }

  header {
    padding: 0 16px;
  }

  .container,
  #dashboard {
    padding: 0 16px;
  }

  .logo-text {
    max-width: calc(100vw - 124px);
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 16px;
    line-height: 1.26;
  }

  .logo-text em {
    display: block;
    margin-left: 0;
    font-size: 13px;
    line-height: 1.2;
  }

  .hero {
    margin-top: 14px;
    padding: 34px 22px 120px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 54%, rgba(255, 255, 255, 0.28) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
  }

  .hero::after {
    width: 100%;
    background: linear-gradient(180deg, transparent 55%, rgba(9, 35, 26, 0.22));
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(32px, 9.4vw, 44px);
  }

  .hero-school-name {
    max-width: 8.5em;
    line-height: 1.16;
  }

  .hero-portal-name {
    margin-top: 8px;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-sidebar {
    display: none;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .main-grid {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-tools {
    grid-template-columns: 1fr;
  }

  .filter-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .filter-tag {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  :root {
    --portal-card-columns: 1;
  }

  .site-card {
    min-height: 128px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .site-card-cat {
    grid-column: 1 / -1;
  }

  .site-card-body {
    align-self: center;
  }

  .site-card-arrow {
    align-self: center;
  }
}

/* V8 loading overlay */
#loading-overlay {
  background:
    radial-gradient(460px 260px at 50% 42%, rgba(11, 143, 84, 0.13), transparent 68%),
    linear-gradient(180deg, rgba(243, 247, 251, 0.96), rgba(235, 242, 248, 0.96));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

#loading-overlay.hide {
  visibility: hidden;
}

.loading-inner {
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid rgba(11, 143, 84, 0.14);
  border-radius: var(--v8-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 56px rgba(24, 55, 89, 0.12);
  backdrop-filter: blur(18px);
}

.loading-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(11, 143, 84, 0.18);
  box-shadow: 0 14px 32px rgba(11, 143, 84, 0.16);
}

.loading-title {
  color: var(--v8-ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.loading-title em {
  color: var(--v8-green);
}

.loading-sub {
  color: #6a7c91;
  font-weight: 800;
  letter-spacing: 0.18em;
}

[data-theme="dark"] #loading-overlay {
  background:
    radial-gradient(460px 260px at 50% 42%, rgba(61, 177, 119, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(11, 19, 34, 0.96), rgba(8, 14, 25, 0.96));
}

[data-theme="dark"] .loading-inner {
  background: rgba(15, 27, 47, 0.88);
  border-color: rgba(132, 188, 160, 0.18);
}

/* V9 visual polish: calm school portal system */
:root {
  --v9-bg: #f4f7fb;
  --v9-paper: #ffffff;
  --v9-paper-soft: #f8fbfd;
  --v9-ink: #142238;
  --v9-muted: #617189;
  --v9-soft: #8a98aa;
  --v9-green: #0a8759;
  --v9-green-deep: #075c43;
  --v9-blue: #255ea8;
  --v9-blue-soft: #e8f0fb;
  --v9-gold: #b88a2a;
  --v9-line: rgba(33, 62, 96, 0.11);
  --v9-line-strong: rgba(33, 62, 96, 0.17);
  --v9-radius: 14px;
  --v9-radius-sm: 9px;
  --v9-shadow: 0 18px 46px rgba(29, 54, 84, 0.10);
  --v9-shadow-soft: 0 10px 26px rgba(29, 54, 84, 0.07);
}

html[data-theme="light"] {
  --bg: var(--v9-bg);
  --bg-card: var(--v9-paper);
  --bg-card-alt: var(--v9-paper-soft);
  --border: var(--v9-line);
  --text: var(--v9-ink);
  --text-muted: var(--v9-muted);
  --gold: var(--v9-green);
  --gold-bright: #15a66f;
  --gold-dim: rgba(10, 135, 89, 0.08);
  --gold-line: rgba(10, 135, 89, 0.16);
  --steel: var(--v9-blue);
  --green: var(--v9-green);
  --header-bg: rgba(244, 247, 251, 0.84);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.96) 340px),
    var(--v9-bg);
}

body::before {
  background:
    linear-gradient(90deg, rgba(10, 135, 89, 0.035) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(37, 94, 168, 0.025) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

body::after,
.hero-orb,
.hero-geo,
.heroparticles {
  opacity: 0 !important;
}

header {
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(33, 62, 96, 0.09);
  background: rgba(250, 252, 255, 0.78);
  box-shadow: none;
}

header.scrolled {
  height: 62px;
  background: rgba(250, 252, 255, 0.92);
  box-shadow: 0 14px 36px rgba(29, 54, 84, 0.08);
}

.logo-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(10, 135, 89, 0.16);
  box-shadow: 0 8px 20px rgba(10, 135, 89, 0.12);
  overflow: hidden;
}

header.scrolled .logo-emblem {
  width: 36px;
  height: 36px;
}

.logo-text {
  color: var(--v9-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-text em {
  color: var(--v9-green);
  font-weight: 800;
}

nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(33, 62, 96, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

nav a {
  min-width: 68px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #607087;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

nav a:hover,
nav a.active {
  color: var(--v9-green-deep);
  background: rgba(10, 135, 89, 0.10);
}

.theme-toggle-wrap,
.profile-btn {
  border-color: rgba(33, 62, 96, 0.10);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(29, 54, 84, 0.06);
}

.container {
  max-width: 1320px;
  padding: 0 clamp(18px, 4.6vw, 64px);
}

.hero {
  min-height: min(680px, calc(100dvh - 104px));
  margin-top: 22px;
  padding: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  border: 1px solid rgba(33, 62, 96, 0.11);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 42%, rgba(255, 255, 255, 0.50) 66%, rgba(255, 255, 255, 0.14) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
  box-shadow: 0 28px 80px rgba(29, 54, 84, 0.13);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), transparent 32%),
    linear-gradient(90deg, rgba(10, 135, 89, 0.07), transparent 36%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(420px, 42%);
  height: 5px;
  border-radius: 999px 0 0 0;
  background: linear-gradient(90deg, transparent, var(--v9-green), var(--v9-blue));
  opacity: 0.9 !important;
  z-index: 1;
}

.hero-text,
.hero-sidebar {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 135, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--v9-green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-eyebrow::before {
  display: none;
}

.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 9.4em;
  margin-bottom: 22px;
  color: var(--v9-ink) !important;
  font-family: var(--font-sans);
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-school-name,
.hero-portal-name,
.hero h1 .shimmer-word {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

.hero-portal-name,
.hero-title-line:last-child {
  color: var(--v9-green-deep) !important;
}

.hero-desc {
  max-width: 610px;
  margin-bottom: 28px;
  color: #51627a;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.85;
  font-weight: 550;
}

.hero-cta {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--v9-green), var(--v9-blue));
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(10, 135, 89, 0.23);
}

.hero-cta::after {
  display: none;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(10, 135, 89, 0.28);
}

.hero-sidebar {
  display: grid;
  gap: 16px;
}

.hero-deco,
.deco-status {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 46px rgba(29, 54, 84, 0.12);
  backdrop-filter: blur(18px);
}

.hero-deco {
  padding: 18px;
}

.hero-deco-label {
  color: var(--v9-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.deco-grid {
  gap: 10px;
}

.deco-item {
  border: 1px solid rgba(33, 62, 96, 0.09);
  border-radius: 14px;
  background: rgba(248, 251, 253, 0.78);
}

.deco-num {
  color: var(--v9-green-deep);
  font-size: 28px;
}

.deco-num.steel {
  color: var(--v9-blue);
}

.deco-sub {
  color: #6f7d90;
  font-weight: 800;
}

.deco-status-item {
  border-top-color: rgba(33, 62, 96, 0.08);
}

.main-grid {
  grid-template-columns: minmax(300px, 0.84fr) minmax(520px, 1.16fr);
  gap: 20px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.announcements-section,
.sites-area,
.dashboard-area {
  border: 1px solid var(--v9-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--v9-shadow-soft);
  backdrop-filter: blur(12px);
}

.announcements-section,
.sites-area {
  padding: clamp(18px, 2.3vw, 28px);
}

.section-head {
  min-height: 0;
  margin-bottom: 16px;
}

.section-label {
  margin-bottom: 0;
  color: var(--v9-ink);
  font-size: 19px;
  font-weight: 950;
}

.section-label::after {
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v9-green), rgba(37, 94, 168, 0.24));
}

.section-more {
  color: var(--v9-green-deep);
  font-weight: 850;
}

.timeline {
  gap: 14px;
}

.timeline::before {
  left: 13px;
  background: linear-gradient(180deg, rgba(10, 135, 89, 0.30), rgba(37, 94, 168, 0.13));
}

.tl-item {
  padding-left: 34px;
}

.tl-dot {
  left: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 5px rgba(10, 135, 89, 0.10);
}

.tl-card {
  padding: 15px 16px;
  border: 1px solid rgba(33, 62, 96, 0.10);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 54, 84, 0.05);
}

.tl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 135, 89, 0.18);
  box-shadow: 0 16px 28px rgba(29, 54, 84, 0.09);
}

.tl-title {
  color: var(--v9-ink);
  font-size: 15.5px;
  font-weight: 950;
}

.tl-date,
.tl-body {
  color: var(--v9-muted);
}

.tl-tag {
  border-radius: 999px;
  font-weight: 900;
}

.site-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.search-wrap {
  min-height: 48px;
  border: 1px solid rgba(33, 62, 96, 0.12);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 54, 84, 0.05);
}

.search-wrap input {
  font-size: 14px;
  font-weight: 750;
}

.filter-tags {
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(33, 62, 96, 0.10);
  border-radius: 999px;
  background: #f4f8fb;
}

.filter-tag {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #627187;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-tag:hover {
  color: var(--v9-green-deep);
  background: rgba(10, 135, 89, 0.06);
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  color: #ffffff;
  background: linear-gradient(135deg, var(--v9-green), var(--v9-blue));
  box-shadow: 0 8px 18px rgba(10, 135, 89, 0.18);
}

.result-count {
  color: var(--v9-muted);
  font-size: 12px;
  font-weight: 900;
}

.site-cards {
  gap: 14px;
}

.site-card {
  min-height: 164px;
  padding: 16px;
  border: 1px solid rgba(33, 62, 96, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(29, 54, 84, 0.06);
}

.site-card::before {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--v9-green), var(--v9-blue));
  transform: scaleX(0);
  transform-origin: left;
}

.site-card:hover {
  border-color: rgba(10, 135, 89, 0.24);
  box-shadow: 0 18px 34px rgba(29, 54, 84, 0.11);
}

.site-card-cat {
  padding: 5px 8px;
  color: var(--v9-green-deep);
  background: rgba(10, 135, 89, 0.08);
}

.site-card-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(10, 135, 89, 0.14);
  border-radius: 14px;
  color: var(--v9-green);
  background: linear-gradient(135deg, rgba(10, 135, 89, 0.10), rgba(10, 135, 89, 0.03));
}

.site-card-icon.files,
.site-card-icon.blue {
  color: var(--v9-blue);
  border-color: rgba(37, 94, 168, 0.14);
  background: linear-gradient(135deg, rgba(37, 94, 168, 0.11), rgba(37, 94, 168, 0.03));
}

.site-card-icon.affairs,
.site-card-icon.green {
  color: var(--v9-green);
  border-color: rgba(10, 135, 89, 0.14);
  background: linear-gradient(135deg, rgba(10, 135, 89, 0.10), rgba(10, 135, 89, 0.03));
}

.site-card-tag {
  color: var(--v9-green-deep);
  font-size: 12px;
  font-weight: 950;
}

.site-card-title {
  color: var(--v9-ink);
  font-size: 17.5px;
  font-weight: 950;
  line-height: 1.28;
}

.site-card-desc {
  color: var(--v9-muted);
  font-size: 13px;
}

.site-card-arrow {
  width: 32px;
  height: 32px;
  color: var(--v9-green-deep);
  background: rgba(10, 135, 89, 0.09);
}

.site-card:hover .site-card-arrow {
  color: #ffffff;
  background: linear-gradient(135deg, var(--v9-green), var(--v9-blue));
}

#dashboard {
  max-width: 1320px;
  padding: 0 clamp(18px, 4.6vw, 64px);
}

#dashboard > .section-label {
  margin-top: 34px;
  margin-bottom: 16px;
}

.dashboard-area {
  padding: clamp(20px, 2.5vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 253, 0.90));
}

.dash-title {
  color: var(--v9-ink);
  font-size: 23px;
  font-weight: 950;
}

.ver-badge {
  color: var(--v9-green-deep);
  border-color: rgba(10, 135, 89, 0.14);
  background: rgba(10, 135, 89, 0.08);
}

.dash-sub,
.spark-title,
.trend-title,
.ring-lbl,
.legend-name,
.stat-item-name,
.stat-item-note {
  color: var(--v9-muted);
}

.chart-row,
.spark-section,
.trend-section,
.stat-item {
  border: 1px solid rgba(33, 62, 96, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 54, 84, 0.05);
}

.stat-item-icon,
.stat-item-icon.green,
.stat-item-icon.blue {
  border-radius: 13px;
  background: rgba(10, 135, 89, 0.08);
  color: var(--v9-green);
}

.stat-item-val,
.stat-item-val.green,
.stat-item-val.blue,
.ring-pct,
.legend-val {
  color: var(--v9-green-deep);
}

.admin-entry {
  border-radius: 999px;
  color: var(--v9-green-deep);
  background: #ffffff;
}

.bottom-tab-bar {
  border-top-color: rgba(33, 62, 96, 0.10);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.tab-btn.active {
  color: var(--v9-green-deep);
}

[data-theme="dark"] {
  --v9-bg: #0a1220;
  --v9-paper: rgba(15, 27, 47, 0.92);
  --v9-paper-soft: rgba(19, 35, 58, 0.88);
  --v9-ink: #edf4fb;
  --v9-muted: #adbad0;
  --v9-line: rgba(132, 188, 160, 0.15);
  --v9-line-strong: rgba(132, 188, 160, 0.22);
}

[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(15, 27, 47, 0.78), rgba(10, 18, 32, 0.96) 360px),
    var(--v9-bg);
}

[data-theme="dark"] header {
  background: rgba(10, 18, 32, 0.82);
  border-bottom-color: rgba(132, 188, 160, 0.12);
}

[data-theme="dark"] nav,
[data-theme="dark"] .theme-toggle-wrap,
[data-theme="dark"] .profile-btn {
  background: rgba(15, 27, 47, 0.76);
  border-color: rgba(132, 188, 160, 0.12);
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.98) 0%, rgba(10, 18, 32, 0.90) 46%, rgba(10, 18, 32, 0.56) 72%, rgba(10, 18, 32, 0.22) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
  border-color: rgba(132, 188, 160, 0.16);
}

[data-theme="dark"] .hero::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 32%),
    linear-gradient(90deg, rgba(61, 177, 119, 0.08), transparent 42%);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-school-name {
  color: #f5f8ff !important;
}

[data-theme="dark"] .hero-portal-name,
[data-theme="dark"] .hero-title-line:last-child {
  color: #70d79f !important;
}

[data-theme="dark"] .hero-desc {
  color: #c2ccda;
}

[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .hero-deco,
[data-theme="dark"] .deco-status,
[data-theme="dark"] .announcements-section,
[data-theme="dark"] .sites-area,
[data-theme="dark"] .dashboard-area,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .site-card,
[data-theme="dark"] .chart-row,
[data-theme="dark"] .spark-section,
[data-theme="dark"] .trend-section,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .search-wrap,
[data-theme="dark"] .filter-tags {
  background: rgba(15, 27, 47, 0.88);
  border-color: rgba(132, 188, 160, 0.15);
}

[data-theme="dark"] .site-card {
  background: linear-gradient(180deg, rgba(15, 27, 47, 0.94), rgba(18, 34, 58, 0.88));
}

[data-theme="dark"] .deco-item {
  background: rgba(20, 35, 58, 0.78);
}

[data-theme="dark"] .tl-title,
[data-theme="dark"] .site-card-title,
[data-theme="dark"] .dash-title,
[data-theme="dark"] .section-label,
[data-theme="dark"] .logo-text {
  color: var(--v9-ink) !important;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    max-width: 10em;
  }

  .hero-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  header {
    height: 66px;
  }

  nav {
    display: none;
  }

  .mobile-nav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(33, 62, 96, 0.10);
    box-shadow: 0 16px 32px rgba(29, 54, 84, 0.08);
  }

  [data-theme="dark"] .mobile-nav {
    background: rgba(10, 18, 32, 0.94);
    border-bottom-color: rgba(132, 188, 160, 0.12);
  }

  .hero {
    min-height: 0;
    margin-top: 14px;
    padding: 34px 22px 118px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 54%, rgba(255, 255, 255, 0.32) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
  }

  [data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(10, 18, 32, 0.98) 0%, rgba(10, 18, 32, 0.92) 60%, rgba(10, 18, 32, 0.46) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.04;
  }

  .hero-school-name {
    max-width: 9em;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-sidebar {
    display: none;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .main-grid {
    margin-top: 16px;
  }

  .site-tools {
    grid-template-columns: 1fr;
  }

  .filter-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 14px;
  }

  .filter-tag {
    flex: 0 0 auto;
  }

  .announcements-section,
  .sites-area,
  .dashboard-area {
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .container,
  #dashboard {
    padding: 0 14px;
  }

  .logo-text {
    max-width: calc(100vw - 142px);
    font-size: 14px;
  }

  .hero {
    padding: 28px 18px 104px;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 7px 10px;
  }

  .site-card {
    min-height: 132px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 10px 12px;
  }

  .site-card-cat {
    grid-column: 1 / -1;
  }

  .site-card-body {
    align-self: center;
  }

  .site-card-arrow {
    align-self: center;
  }

  .dashboard-area {
    padding: 18px 14px;
  }
}

/* V9.1 card density and mobile first-screen tuning */
.sites-area .site-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.sites-area .site-card {
  min-height: 132px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 14px;
}

.sites-area .site-card-cat {
  grid-column: 1 / -1;
}

.sites-area .site-card-icon {
  align-self: center;
}

.sites-area .site-card-body {
  align-self: center;
  min-width: 0;
}

.sites-area .site-card-title {
  overflow: visible;
  display: block;
  white-space: normal;
  text-overflow: clip;
}

.sites-area .site-card-desc {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sites-area .site-card-arrow {
  align-self: center;
}

@media (min-width: 1181px) {
  .sites-area .site-card:nth-last-child(1):nth-child(odd) {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero-sidebar,
  .hero-deco,
  .deco-status {
    display: none !important;
  }

  .hero {
    padding-bottom: 118px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 650px;
    padding: 28px 18px 94px;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-desc {
    margin-bottom: 22px;
    font-size: 14.5px;
  }

  .sites-area .site-cards {
    grid-template-columns: 1fr;
  }
}

/* V10.1 proportion fixes against reference */
nav {
  align-items: center;
}

nav a {
  height: 40px;
  min-width: 86px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

nav a.active {
  border-radius: 999px;
}

.hero {
  min-height: clamp(390px, 31vw, 455px);
  padding-top: clamp(46px, 5vw, 72px);
  padding-bottom: 34px;
}

.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 9em;
  font-size: clamp(48px, 4.5vw, 74px);
  line-height: 1.11;
}

.main-grid {
  margin-top: 24px;
}

.sites-area > .section-head {
  display: none;
}

.sites-area .site-tools {
  margin-bottom: 18px;
}

@media (max-width: 1500px) {
  .hero h1,
  [data-theme="light"] .hero h1 {
    max-width: 9em;
  }
}

@media (max-width: 900px) {
  .sites-area > .section-head {
    display: flex;
  }
}

/* V10.2 final alignment polish */
.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 10.5em;
}

.hero-school-name {
  display: inline;
}

.hero-portal-name {
  display: inline-block;
  margin-left: 0.18em;
}

.sites-area .site-tools,
.site-tools {
  margin-top: 0 !important;
  position: relative;
  top: auto !important;
  transform: none !important;
}

.filter-tags {
  position: static !important;
  transform: none !important;
}

.filter-tag {
  position: relative;
  top: auto !important;
}

@media (min-width: 1501px) {
  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(54px, 4.65vw, 80px);
  }
}

@media (max-width: 900px) {
  .hero-portal-name {
    margin-left: 0;
  }
}

/* V9.2 compact site launcher: show more portals per screen */
.sites-area {
  padding: clamp(16px, 1.8vw, 22px);
}

.sites-area .section-head {
  margin-bottom: 10px;
}

.sites-area .site-tools {
  margin-bottom: 12px;
}

.sites-area .site-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sites-area .site-card {
  min-height: 88px;
  padding: 11px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(29, 54, 84, 0.045);
}

.sites-area .site-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 54, 84, 0.09);
}

.sites-area .site-card-cat,
.sites-area .site-card-tag {
  display: none;
}

.sites-area .site-card-icon,
.sites-area .site-card-icon.files,
.sites-area .site-card-icon.affairs,
.sites-area .site-card-icon.green,
.sites-area .site-card-icon.blue {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
}

.sites-area .site-card-body {
  align-self: center;
  gap: 2px;
}

.sites-area .site-card-title {
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sites-area .site-card-desc {
  min-height: 0;
  color: #718094;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.sites-area .site-card-arrow {
  display: none;
}

@media (min-width: 1320px) {
  .sites-area .site-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .sites-area .site-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sites-area .site-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .sites-area .site-cards {
    grid-template-columns: 1fr;
  }

  .sites-area .site-card {
    min-height: 72px;
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

/* V10 reference rebuild: large-screen clean campus dashboard */
:root {
  --v10-bg: #f4faf8;
  --v10-ink: #111a2e;
  --v10-muted: #738197;
  --v10-green: #079463;
  --v10-green-2: #0bb377;
  --v10-blue: #2b73c9;
  --v10-blue-soft: #edf6ff;
  --v10-line: rgba(34, 69, 103, 0.10);
  --v10-panel: rgba(255, 255, 255, 0.86);
  --v10-shadow: 0 22px 60px rgba(23, 67, 83, 0.10);
  --v10-soft-shadow: 0 8px 24px rgba(23, 67, 83, 0.065);
}

html[data-theme="light"] {
  --bg: var(--v10-bg);
  --text: var(--v10-ink);
  --text-muted: var(--v10-muted);
  --gold: var(--v10-green);
  --gold-bright: var(--v10-green-2);
  --steel: var(--v10-blue);
}

body {
  background:
    radial-gradient(circle at 8% 42%, rgba(5, 148, 99, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fcfb 0%, #f3faf7 54%, #ffffff 100%);
}

body::before,
body::after {
  display: none;
}

header {
  height: 70px;
  padding: 0 clamp(44px, 7vw, 144px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(32, 70, 111, 0.08);
  box-shadow: 0 10px 28px rgba(20, 50, 80, 0.055);
}

header.scrolled {
  height: 62px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 34px rgba(20, 50, 80, 0.08);
}

.logo {
  gap: 12px;
}

.logo-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(5, 148, 99, 0.13);
}

.logo-text {
  font-size: 18px;
  font-weight: 950;
  color: var(--v10-ink);
}

.logo-text em {
  margin-left: 8px;
  color: var(--v10-green);
}

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  gap: 34px;
  border: 0;
  background: transparent;
}

nav a {
  min-width: 94px;
  padding: 10px 24px;
  border-radius: 999px;
  color: #5f6f85;
  font-size: 14px;
  font-weight: 900;
}

nav a:hover {
  color: var(--v10-green);
  background: rgba(5, 148, 99, 0.07);
}

nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--v10-green), #0aa56f);
  box-shadow: 0 12px 26px rgba(5, 148, 99, 0.24);
}

.header-right {
  gap: 12px;
}

.notify-btn,
.theme-toggle-wrap,
.profile-btn {
  min-height: 42px;
  border: 1px solid rgba(32, 70, 111, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(24, 55, 89, 0.06);
}

.notify-btn {
  position: relative;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #69788d;
  cursor: pointer;
}

.notify-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 950;
}

.profile-btn {
  gap: 9px;
  padding: 0 13px 0 10px;
  color: var(--v10-ink);
  font-weight: 950;
}

.profile-avatar {
  background: #eef3f9;
}

.profile-name {
  font-size: 14px;
}

.container {
  max-width: none;
  padding: 0;
}

.hero {
  width: 100%;
  min-height: clamp(390px, 41vw, 520px);
  margin: 0;
  padding: clamp(54px, 6vw, 96px) clamp(80px, 10.5vw, 210px) 46px;
  grid-template-columns: minmax(520px, 0.95fr) minmax(380px, 0.55fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.90) 34%, rgba(255,255,255,0.55) 52%, rgba(255,255,255,0.18) 72%, rgba(255,255,255,0.02) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(244, 250, 248, 0.22)),
    radial-gradient(circle at 19% 52%, rgba(0, 145, 95, 0.08), transparent 24%);
}

.hero::after {
  display: none;
}

.hero-eyebrow {
  display: none;
}

.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 12em;
  margin-bottom: 22px;
  color: var(--v10-ink) !important;
  font-size: clamp(52px, 5.35vw, 86px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-school-name {
  max-width: none;
  display: inline;
}

.hero-portal-name,
.hero-title-line:last-child {
  color: var(--v10-green) !important;
}

.hero-desc {
  max-width: 760px;
  margin-bottom: 28px;
  color: #68778d;
  font-size: clamp(16px, 1.12vw, 19px);
  line-height: 1.85;
  font-weight: 750;
}

.hero-text {
  align-self: center;
}

.hero-text .hero-cta,
.hero-secondary {
  margin-right: 12px;
  vertical-align: middle;
}

.hero-cta,
.hero-secondary {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.hero-cta {
  background: linear-gradient(135deg, var(--v10-green), #0aa56f);
  box-shadow: 0 14px 28px rgba(5, 148, 99, 0.24);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--v10-green);
  border: 1px solid rgba(5, 148, 99, 0.22);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(23, 67, 83, 0.05);
}

.hero-secondary:hover {
  border-color: rgba(5, 148, 99, 0.35);
  background: #fff;
  transform: translateY(-2px);
}

.hero-sidebar {
  justify-self: end;
  width: min(460px, 100%);
}

.hero-deco {
  display: none;
}

.deco-status {
  padding: 22px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.86);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 52px rgba(30, 56, 83, 0.16);
  backdrop-filter: blur(18px);
}

.deco-status .hero-deco-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(32, 70, 111, 0.10);
  color: var(--v10-ink);
  font-size: 16px;
  letter-spacing: 0;
}

.deco-status .hero-deco-label::after {
  content: "查看详情";
  color: var(--v10-green);
  font-size: 13px;
  font-weight: 950;
}

.deco-status-item {
  min-height: 58px;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  border-top: 0;
  border-bottom: 1px solid rgba(32, 70, 111, 0.08);
  color: var(--v10-ink);
  font-size: 17px;
  font-weight: 950;
}

.deco-status-item:last-child {
  border-bottom: 0;
}

.status-pulse-wrap {
  display: none;
}

.deco-status-item span:first-of-type i {
  width: 28px;
  color: var(--v10-blue);
  font-size: 24px;
}

.status-text {
  min-width: 64px;
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--v10-green) !important;
  background: rgba(11, 179, 119, 0.10);
  border: 1px solid rgba(11, 179, 119, 0.15);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.status-text::after {
  content: " · 正常";
  margin-left: 16px;
  color: #69788d;
  font-weight: 850;
}

.main-grid {
  width: min(1760px, calc(100vw - 160px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.47fr) minmax(680px, 1fr);
  gap: 18px;
}

.announcements-section,
.sites-area {
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid rgba(5, 148, 99, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--v10-shadow);
  backdrop-filter: blur(18px);
}

.announcements-section {
  padding: 28px 30px;
}

.sites-area {
  padding: 28px 34px;
}

.section-head {
  min-height: 34px;
  margin-bottom: 20px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v10-ink);
  font-size: 22px;
  font-weight: 950;
}

.section-label::after {
  order: -1;
  width: 4px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--v10-green);
}

.section-more {
  color: var(--v10-green);
  font-size: 14px;
  font-weight: 950;
}

.timeline {
  gap: 12px;
}

.timeline::before,
.tl-dot,
.tl-tag,
.tl-body {
  display: none;
}

.tl-item {
  padding: 0;
}

.tl-card {
  min-height: 66px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  border: 1px solid rgba(32, 70, 111, 0.08);
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 56, 83, 0.055);
}

.tl-icon {
  position: static;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #e5a81c, #f3c14d);
}

.tl-icon.green {
  background: linear-gradient(135deg, #21b978, #45d291);
}

.tl-icon.steel,
.tl-icon.blue {
  background: linear-gradient(135deg, #4d8df2, #6aa8ff);
}

.tl-title {
  overflow: hidden;
  color: var(--v10-ink);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tl-date {
  color: #758399;
  font-size: 14px;
  font-weight: 850;
}

.site-tools {
  display: grid;
  grid-template-columns: auto minmax(290px, 0.42fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-tags {
  order: 1;
  justify-self: start;
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.search-wrap {
  order: 2;
  justify-self: end;
  width: min(340px, 100%);
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(32, 70, 111, 0.10);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(30, 56, 83, 0.04);
}

.result-count {
  display: none;
}

.filter-tag {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  color: #69788d;
  background: rgba(239, 245, 247, 0.86);
  font-size: 14px;
  font-weight: 950;
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  color: #fff;
  background: linear-gradient(135deg, var(--v10-green), #0aa56f);
  box-shadow: 0 10px 22px rgba(5, 148, 99, 0.22);
}

.sites-area .site-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sites-area .site-card {
  min-height: 88px;
  padding: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(32, 70, 111, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(30, 56, 83, 0.045);
}

.sites-area .site-card:hover {
  border-color: rgba(5, 148, 99, 0.20);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(30, 56, 83, 0.085);
}

.sites-area .site-card-icon,
.sites-area .site-card-icon.files,
.sites-area .site-card-icon.affairs,
.sites-area .site-card-icon.green,
.sites-area .site-card-icon.blue {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--v10-blue);
  background: rgba(43, 115, 201, 0.08);
  border: 1px solid rgba(43, 115, 201, 0.11);
  font-size: 18px;
}

.sites-area .site-card:nth-child(4n + 1) .site-card-icon {
  color: var(--v10-green);
  background: rgba(5, 148, 99, 0.08);
  border-color: rgba(5, 148, 99, 0.11);
}

.sites-area .site-card-title {
  color: var(--v10-ink);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 950;
}

.sites-area .site-card-desc {
  color: #7b8899;
  font-size: 12px;
  line-height: 1.35;
}

#dashboard {
  width: min(1760px, calc(100vw - 160px));
  max-width: none;
  margin: 20px auto 0;
  padding: 0;
}

.admin-entry-wrap {
  margin: 22px 0 0;
  text-align: center;
}

.admin-entry {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--v10-green);
  border: 1px solid rgba(5, 148, 99, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(30, 56, 83, 0.07);
}

@media (max-width: 1500px) {
  header {
    padding-inline: 54px;
  }

  .hero {
    padding-inline: 92px;
  }

  .main-grid,
  #dashboard {
    width: min(1240px, calc(100vw - 80px));
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  header {
    padding-inline: 24px;
  }

  nav {
    gap: 8px;
  }

  .hero {
    min-height: 0;
    padding: 48px 34px 58px;
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    justify-self: start;
    width: min(520px, 100%);
  }

  .main-grid,
  #dashboard {
    width: min(920px, calc(100vw - 36px));
    grid-template-columns: 1fr;
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    height: 64px;
  }

  .notify-btn,
  .profile-name {
    display: none;
  }

  .hero {
    padding: 38px 18px 104px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 46%, rgba(255,255,255,0.28) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .hero-text .hero-cta,
  .hero-secondary {
    width: 100%;
    margin: 0 0 10px;
  }

  .deco-status {
    display: none;
  }

  .site-tools {
    grid-template-columns: 1fr;
  }

  .filter-tags,
  .search-wrap {
    order: initial;
    justify-self: stretch;
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 650px;
    padding: 34px 16px 92px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .announcements-section,
  .sites-area {
    padding: 18px 14px;
  }

  .tl-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tl-date {
    display: none;
  }

  .sites-area .site-cards {
    grid-template-columns: 1fr;
  }
}


/* premium-hero-v2 */
.hero--premium .hero-text {
  animation: portal-hero-rise .9s cubic-bezier(.22,1,.36,1) both;
}

.hero--premium .hero-sidebar {
  animation: portal-hero-rise 1.05s .08s cubic-bezier(.22,1,.36,1) both;
}

@keyframes portal-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.995);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-eyebrow-chip {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #fff;
  background: linear-gradient(135deg, var(--v8-green), var(--v8-blue));
  box-shadow: 0 8px 18px rgba(11, 143, 84, .22);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 24px 60px rgba(16,24,40,.10),
    0 6px 18px rgba(16,24,40,.06);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.hero-deco.glass-card {
  border-radius: var(--v8-radius, 18px);
}

.hero--premium .hero-deco-label {
  color: #1f2d3d;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero--premium .deco-grid {
  gap: 18px;
}

.hero--premium .deco-status {
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.48));
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--v8-radius, 18px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 18px 42px rgba(16,24,40,.08);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.hero--premium .hero-cta {
  background: linear-gradient(135deg, #0b8f54, #1d62b8);
  box-shadow: 0 18px 36px rgba(11, 143, 84, .26), 0 1px 0 rgba(255,255,255,.6) inset;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.hero--premium .hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 24px 46px rgba(11, 143, 84, .30), 0 1px 0 rgba(255,255,255,.7) inset;
}

.hero--premium .hero-desc {
  color: #425466;
}

@media (prefers-reduced-motion: reduce) {
  .hero--premium .hero-text,
  .hero--premium .hero-sidebar {
    animation: none;
  }
}


/* portal-section-sub-v2 */
.section-head {
  display: grid;
  gap: 8px;
}

.section-sub {
  margin: 0;
  color: #56687a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.site-tools {
  margin-top: 14px;
}

.search-wrap {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 26px rgba(16,24,40,.06);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.search-wrap:focus-within {
  border-color: rgba(11,143,84,.28);
  box-shadow:
    0 0 0 3px rgba(11,143,84,.12),
    0 12px 28px rgba(16,24,40,.08);
}

.filter-tags {
  gap: 10px;
}

.filter-tag {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16,24,40,.08);
  background: rgba(255,255,255,.86);
  color: #314155;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter-tag:hover {
  background: #fff;
  border-color: rgba(16,24,40,.12);
}

.filter-tag.active {
  color: #fff;
  background: linear-gradient(135deg, #0b8f54, #1d62b8);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(11, 143, 84, .18);
}

[data-theme="dark"] .section-sub {
  color: #c5d3e0;
}

[data-theme="dark"] .search-wrap,
[data-theme="dark"] .filter-tag {
  background: rgba(28,38,50,.72);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

[data-theme="dark"] .filter-tag.active {
  background: linear-gradient(135deg, #22b06c, #4b8cff);
}


/* portal-dashboard-v2 */
.dashboard-sub {
  margin-top: 8px;
}

.dashboard-area {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 24px 60px rgba(16,24,40,.08),
    0 6px 18px rgba(16,24,40,.05);
  padding: 22px;
}

.chart-row {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(16,24,40,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.spark-section,
.trend-section {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(16,24,40,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.spark-header,
.trend-title {
  font-weight: 800;
  color: #1f2d3d;
  letter-spacing: .02em;
}

.dash-title {
  color: #12203a;
  font-weight: 900;
  letter-spacing: .02em;
}

.ver-badge {
  background: linear-gradient(135deg, #f6f8fb, #eef3f8);
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

[data-theme="dark"] .dashboard-area,
[data-theme="dark"] .chart-row,
[data-theme="dark"] .spark-section,
[data-theme="dark"] .trend-section {
  background: linear-gradient(180deg, rgba(28,38,50,.88), rgba(28,38,50,.78));
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

[data-theme="dark"] .spark-header,
[data-theme="dark"] .trend-title,
[data-theme="dark"] .dash-title {
  color: #f3f7fb;
}


/* portal-advanced-micro-v2 */
.site-card:hover {
  box-shadow:
    0 10px 30px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.78) inset,
    0 0 0 1px rgba(212,168,67,.06);
}

.site-card .site-card-icon {
  transition: transform .42s cubic-bezier(.34,1.56,.64,1),
              box-shadow .3s ease,
              background .3s ease,
              border-color .3s ease,
              color .3s ease;
}

.site-card:hover .site-card-icon {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 10px 22px rgba(212,168,67,.22);
}

.site-card:hover .site-card-icon.files {
  box-shadow: 0 10px 22px rgba(92,160,212,.22);
}

.site-card:hover .site-card-icon.affairs {
  box-shadow: 0 10px 22px rgba(212,96,96,.22);
}

.stat-item-val {
  font-variant-numeric: tabular-nums;
}

.stat-item-val.ticking {
  animation: portal-stat-pop .18s ease both;
}

@keyframes portal-stat-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}


/* portal-card-icon-fix */
.site-card-icon {
  position: relative;
  z-index: 3;
  background-image: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 16px rgba(16,24,40,.08);
}

.site-card .site-card-icon i {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .site-card-icon {
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 16px rgba(0,0,0,.22);
}

/* V11 image-reference upgrade: clean green campus management platform */
:root {
  --portal-green: #059463;
  --portal-green-2: #13b47a;
  --portal-blue: #3578d8;
  --portal-amber: #f3aa2b;
  --portal-purple: #8b7ce8;
  --portal-ink: #102033;
  --portal-muted: #718199;
  --portal-line: #e6edf5;
  --portal-soft: #f3f8fb;
  --portal-shadow: 0 20px 54px rgba(38, 59, 85, 0.10);
}

body {
  background:
    linear-gradient(180deg, #f7fbfd 0%, #eef6fa 54%, #f8fbfd 100%);
  color: var(--portal-ink);
  font-size: 16px;
}

#scroll-progress {
  background: linear-gradient(90deg, var(--portal-green), var(--portal-blue));
}

header,
header.scrolled {
  height: 68px;
  padding: 0 58px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 54, 82, 0.08);
  box-shadow: 0 8px 28px rgba(35, 58, 84, 0.05);
}

.logo {
  min-width: 365px;
}

.logo-emblem,
header.scrolled .logo-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(5, 148, 99, 0.20);
  box-shadow: 0 6px 18px rgba(5, 148, 99, 0.10);
}

.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 900;
  color: #102033;
}

.logo-text::after {
  content: "数字门户";
  margin-left: 18px;
  color: var(--portal-green);
  font-size: 14px;
  font-weight: 800;
}

.logo-text em {
  display: none;
}

nav {
  flex: 1;
  justify-content: center;
  gap: 42px;
}

nav a {
  height: 68px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  color: #23364c;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none !important;
}

nav a:hover {
  color: var(--portal-green);
  background: transparent;
}

nav a.active {
  color: var(--portal-green);
  background: transparent;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--portal-green);
}

.header-right {
  min-width: 190px;
  justify-content: flex-end;
}

.notify-btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #19304c;
}

.notify-dot {
  background: #f04f4f;
  color: #fff;
}

.theme-toggle-wrap {
  display: none;
}

.profile-btn {
  display: flex;
}

.container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.hero {
  width: 100%;
  min-height: 438px;
  margin: 0;
  padding: 68px 110px 34px;
  grid-template-columns: minmax(0, 1fr) 405px;
  gap: 74px;
  align-items: start;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.94) 34%, rgba(255,255,255,0.62) 54%, rgba(255,255,255,0.18) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 77%, rgba(237,247,250,0.98) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
  border-bottom: 1px solid rgba(32, 54, 82, 0.06);
}

.hero-text {
  max-width: 640px;
}

.hero-eyebrow {
  display: block;
  margin: 12px 0 8px;
  color: #0d2035;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.hero-eyebrow::before {
  display: none;
}

.hero h1,
[data-theme="light"] .hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: #102033 !important;
  font-family: var(--font-sans);
  font-size: clamp(44px, 3.2vw, 56px);
  font-weight: 950;
  line-height: 1.13;
  letter-spacing: 0;
  filter: none !important;
}

.hero h1::after {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--portal-green);
}

.hero-desc {
  max-width: 520px;
  margin-bottom: 26px;
  color: #627188;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 650;
}

.hero-cta,
.hero--premium .hero-cta {
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-green), #0aa86f);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(5, 148, 99, 0.28);
  font-size: 14px;
  font-weight: 850;
}

.hero-secondary {
  min-height: 46px;
  padding: 0 24px;
  margin-left: 12px;
  border-radius: 999px;
  border: 1px solid rgba(5, 148, 99, 0.13);
  background: rgba(255, 255, 255, 0.92);
  color: var(--portal-green);
  box-shadow: 0 10px 24px rgba(38, 59, 85, 0.06);
  font-size: 14px;
  font-weight: 850;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 42px;
  align-items: center;
  margin-top: 54px;
  padding-left: 20px;
}

.hero-metric {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  color: #1c2d43;
}

.hero-metric i {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-green);
  font-size: 24px;
}

.hero-metric:nth-child(2) i { color: #6392f0; }
.hero-metric:nth-child(3) i { color: var(--portal-amber); }
.hero-metric:nth-child(4) i { color: var(--portal-purple); }

.hero-metric strong {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 850;
}

.hero-metric span {
  color: #7a879a;
  font-size: 13px;
  font-weight: 650;
}

.hero-sidebar {
  padding-top: 0;
}

.hero-deco {
  display: none;
}

.deco-status,
.hero--premium .deco-status {
  width: 100%;
  min-height: 330px;
  padding: 22px 26px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}

.deco-status .hero-deco-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(32, 54, 82, 0.10);
  color: #172840;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.deco-status .hero-deco-label a {
  color: var(--portal-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.deco-status-item {
  min-height: 54px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(32, 54, 82, 0.08);
}

.deco-status-item::before,
.status-pulse-wrap {
  display: none;
}

.deco-status-item > span:nth-of-type(1) {
  margin: 0;
  color: #243349;
  font-size: 14px;
  font-weight: 900;
  gap: 14px;
}

.deco-status-item > span:nth-of-type(1) i {
  width: 24px;
  color: var(--portal-blue);
  font-size: 19px;
  opacity: 1;
}

.status-text {
  min-width: 0;
  justify-self: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--portal-green);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.status-text::before {
  content: attr(data-latency);
  display: inline-block;
  margin-right: 0;
  color: var(--portal-green);
  font-family: var(--font-mono);
}

.status-text::after {
  content: "正常";
  color: var(--portal-green);
}

.main-grid {
  width: min(1420px, calc(100vw - 178px));
  max-width: none;
  margin: 28px auto 38px;
  grid-template-columns: 495px minmax(0, 1fr);
  gap: 28px;
}

.announcements-section,
.sites-area {
  min-height: 292px;
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 46px rgba(38, 59, 85, 0.08);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-label {
  margin: 0;
  color: #15263c;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  gap: 10px;
}

.section-label::after {
  display: none;
}

.announcements-section .section-label::before {
  content: "\f0a1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--portal-green);
  font-size: 18px;
}

.section-more {
  color: var(--portal-green);
  font-size: 13px;
  font-weight: 850;
}

.timeline {
  margin-top: 18px;
  display: grid;
  gap: 0;
}

.tl-item {
  display: block;
  padding: 0;
  transform: none;
}

.tl-card {
  min-height: 48px;
  padding: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 94px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--portal-line);
  background: transparent;
  box-shadow: none;
}

.tl-item:last-child .tl-card {
  border-bottom: 0;
}

.tl-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--portal-green);
  background: rgba(5, 148, 99, 0.10);
  font-size: 13px;
}

.tl-item:nth-child(2) .tl-icon { color: #3578d8; background: rgba(53, 120, 216, 0.10); }
.tl-item:nth-child(3) .tl-icon { color: #7b6de4; background: rgba(123, 109, 228, 0.10); }
.tl-item:nth-child(4) .tl-icon { color: #f0a12a; background: rgba(240, 161, 42, 0.12); }

.tl-title {
  margin: 0;
  color: #1a2b42;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-date {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: #8a98ab;
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.tl-tag,
.tl-body {
  display: none;
}

.sites-area .section-head {
  align-items: flex-start;
}

.sites-area .section-sub,
.search-wrap,
.result-count {
  display: none;
}

.site-tools {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.filter-tags {
  width: 100%;
  justify-content: center;
  gap: 42px;
}

.filter-tag {
  padding: 0 0 10px;
  color: #738198;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.filter-tag.active,
.filter-tag.active-steel,
.filter-tag.active-green,
.filter-tag.active-red {
  color: var(--portal-green);
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--portal-green);
}

.sites-area .site-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
  margin-top: 10px;
}

.sites-area .site-card {
  min-width: 0;
  max-width: none;
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 54, 82, 0.08);
  box-shadow: 0 8px 18px rgba(38, 59, 85, 0.05);
}

.sites-area .site-card::before,
.sites-area .site-card::after,
.site-card-spotlight,
.site-card-cat,
.site-card-arrow {
  display: none;
}

.sites-area .site-card-icon,
.sites-area .site-card-icon.files,
.sites-area .site-card-icon.affairs {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--portal-green);
  background: rgba(5, 148, 99, 0.10);
  border: 0;
  box-shadow: none;
  font-size: 21px;
}

.sites-area .site-card:nth-child(3n + 2) .site-card-icon {
  color: var(--portal-blue);
  background: rgba(53, 120, 216, 0.10);
}

.sites-area .site-card:nth-child(4n) .site-card-icon {
  color: #f39c32;
  background: rgba(243, 156, 50, 0.12);
}

.sites-area .site-card-title {
  margin-bottom: 5px;
  color: #1c2d43;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 950;
}

.sites-area .site-card-desc {
  display: block;
  color: #8997a9;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card-tag {
  display: none;
}

#dashboard {
  width: min(1420px, calc(100vw - 178px));
  margin: 0 auto 28px;
}

#dashboard > .section-label,
#dashboard > .section-sub,
.dashboard-area {
  display: none;
}

footer {
  width: min(1420px, calc(100vw - 178px));
  margin: 0 auto 34px;
  padding: 24px 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(38, 59, 85, 0.07);
}

.footer-main,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #7b899d;
  font-size: 13px;
}

.footer-main {
  padding: 0;
  border: 0;
}

.footer-right {
  color: #6a7b92;
}

.footer-right i {
  color: var(--portal-green);
}

.section-divider,
.bottom-tab-bar {
  display: none;
}

@media (max-width: 1500px) {
  header {
    padding-inline: 44px;
  }

  .hero {
    padding-inline: 105px;
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .main-grid,
  #dashboard,
  footer {
    width: min(1240px, calc(100vw - 84px));
  }

  .hero-metrics {
    gap: 32px;
  }
}

@media (max-width: 1180px) {
  .logo {
    min-width: 0;
  }

  nav {
    gap: 22px;
  }

  .hero {
    padding: 48px 34px;
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    width: min(520px, 100%);
  }

  .main-grid,
  #dashboard,
  footer {
    width: min(920px, calc(100vw - 36px));
    grid-template-columns: 1fr;
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    padding-inline: 18px;
  }

  .logo-text::after,
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 0;
    padding: 34px 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 52%, rgba(255,255,255,0.28) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
    padding-left: 0;
  }

  .deco-status {
    display: none;
  }

  .hero-secondary {
    margin: 12px 0 0;
  }

  .filter-tags {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer,
  .footer-main,
  .footer-meta {
    display: block;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 28px 16px;
  }

  .hero-eyebrow {
    font-size: 15px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-cta,
  .hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics,
  .sites-area .site-cards {
    grid-template-columns: 1fr;
  }

  .announcements-section,
  .sites-area {
    padding: 18px 14px;
  }

  .tl-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .tl-date {
    display: none;
  }
}

/* Status panel spacing fix */
.deco-status .hero-deco-label {
  gap: 18px;
}

.deco-status .hero-deco-label::after {
  content: none !important;
}

.deco-status .hero-deco-label a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  margin-left: auto;
  line-height: 1;
}

.deco-status-item {
  grid-template-columns: minmax(126px, 1fr) minmax(116px, auto);
  column-gap: 24px;
}

.status-text {
  min-width: 116px;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 20px;
  justify-items: end;
  align-items: center;
  white-space: nowrap;
  text-align: right;
}

.status-text::before {
  content: attr(data-latency);
  min-width: 46px;
  text-align: right;
}

.status-text.checking::before,
.status-text.offline::before {
  content: "";
}

.status-text::after {
  content: "正常";
}

.status-text.checking::after {
  content: "";
}

.status-text.offline::after {
  content: "";
}

/* Desktop reference cards: spacious quick-entry panel */
.sites-area {
  padding: 22px 30px 28px;
}

.sites-area .section-head {
  min-height: 40px;
}

.sites-area .site-tools {
  margin: -24px 0 18px;
}

.sites-area .site-cards {
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 22px 20px;
  align-items: stretch;
}

.sites-area .site-card {
  min-height: 86px;
  padding: 16px 18px;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(32, 54, 82, 0.075);
  box-shadow: 0 8px 20px rgba(31, 54, 82, 0.055);
}

.sites-area .site-card:hover {
  border-color: rgba(5, 148, 99, 0.16);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 54, 82, 0.09);
  transform: translateY(-2px);
}

.sites-area .site-card-icon,
.sites-area .site-card-icon.files,
.sites-area .site-card-icon.affairs,
.sites-area .site-card-icon.green,
.sites-area .site-card-icon.blue {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--portal-green);
  background: linear-gradient(180deg, rgba(5, 148, 99, 0.12), rgba(5, 148, 99, 0.07));
  border: 0;
  box-shadow: none;
  font-size: 22px;
}

.sites-area .site-card:nth-child(3n + 2) .site-card-icon {
  color: #4f86dc;
  background: linear-gradient(180deg, rgba(79, 134, 220, 0.13), rgba(79, 134, 220, 0.07));
}

.sites-area .site-card:nth-child(4n) .site-card-icon {
  color: #f29c36;
  background: linear-gradient(180deg, rgba(242, 156, 54, 0.15), rgba(242, 156, 54, 0.08));
}

.sites-area .site-card:nth-child(5n) .site-card-icon {
  color: #6d8de8;
  background: linear-gradient(180deg, rgba(109, 141, 232, 0.14), rgba(109, 141, 232, 0.07));
}

.sites-area .site-card-body {
  min-width: 0;
  align-self: center;
}

.sites-area .site-card-title {
  max-width: 100%;
  margin: 0 0 5px;
  color: #172840;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.28;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-area .site-card-desc {
  display: block;
  max-width: 100%;
  color: #8491a4;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1500px) {
  .sites-area .site-cards {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    gap: 18px 16px;
  }

  .sites-area .site-card {
    padding: 14px 16px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .sites-area .site-card-icon,
  .sites-area .site-card-icon.files,
  .sites-area .site-card-icon.affairs,
  .sites-area .site-card-icon.green,
  .sites-area .site-card-icon.blue {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1180px) {
  .sites-area .site-tools {
    margin: 12px 0 18px;
  }
}

/* Quick-entry width correction */
.main-grid {
  width: min(1420px, calc(100vw - 136px));
  grid-template-columns: minmax(400px, 0.58fr) minmax(720px, 1.42fr);
  gap: 28px;
}

.sites-area {
  min-width: 0;
}

.sites-area .site-cards {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 22px 20px;
}

.sites-area .site-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}

@media (max-width: 1500px) {
  .main-grid {
    width: min(1240px, calc(100vw - 72px));
    grid-template-columns: minmax(360px, 0.55fr) minmax(700px, 1.45fr);
  }
}

@media (max-width: 1180px) {
  .main-grid {
    width: min(920px, calc(100vw - 36px));
    grid-template-columns: 1fr;
  }
}

/* Reference card skin: match the desktop mockup app-entry tiles */
.sites-area {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(38, 59, 85, 0.075);
}

.sites-area .site-card {
  min-height: 76px;
  padding: 14px 16px;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  border: 0 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 24px rgba(40, 62, 88, 0.065),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sites-area .site-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(40, 62, 88, 0.105),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

.sites-area .site-card-icon,
.sites-area .site-card-icon.files,
.sites-area .site-card-icon.affairs,
.sites-area .site-card-icon.green,
.sites-area .site-card-icon.blue {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #18a871;
  background: linear-gradient(180deg, #e5f8ef 0%, #d9f3e8 100%) !important;
  background-image: linear-gradient(180deg, #e5f8ef 0%, #d9f3e8 100%) !important;
  border: 0;
  box-shadow: none !important;
  font-size: 20px;
}

.sites-area .site-card:nth-child(3n + 2) .site-card-icon,
.sites-area .site-card-icon.files {
  color: #5b8fe8;
  background: linear-gradient(180deg, #edf4ff 0%, #e3edff 100%) !important;
  background-image: linear-gradient(180deg, #edf4ff 0%, #e3edff 100%) !important;
}

.sites-area .site-card:nth-child(4n) .site-card-icon,
.sites-area .site-card-icon.affairs {
  color: #f2a143;
  background: linear-gradient(180deg, #fff3e4 0%, #ffe9cf 100%) !important;
  background-image: linear-gradient(180deg, #fff3e4 0%, #ffe9cf 100%) !important;
}

.sites-area .site-card:nth-child(5n) .site-card-icon {
  color: #20a975;
  background: linear-gradient(180deg, #e7f8f0 0%, #d9f4e8 100%) !important;
  background-image: linear-gradient(180deg, #e7f8f0 0%, #d9f4e8 100%) !important;
}

.sites-area .site-card-body {
  min-width: 0;
  display: block;
}

.sites-area .site-card-title {
  display: block;
  margin: 0 0 3px;
  color: #1f2f46;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-area .site-card-desc {
  display: block;
  color: #9aa6b5;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-area .site-card:hover .site-card-icon {
  transform: none;
}

@media (max-width: 1500px) {
  .sites-area .site-card {
    min-height: 72px;
    padding: 13px 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
  }

  .sites-area .site-card-icon,
  .sites-area .site-card-icon.files,
  .sites-area .site-card-icon.affairs,
  .sites-area .site-card-icon.green,
  .sites-area .site-card-icon.blue {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
}

.sites-area .site-cards .site-card .site-card-icon {
  background: linear-gradient(180deg, #e5f8ef 0%, #d9f3e8 100%) !important;
  background-image: linear-gradient(180deg, #e5f8ef 0%, #d9f3e8 100%) !important;
}

.sites-area .site-cards .site-card:nth-child(3n + 2) .site-card-icon,
.sites-area .site-cards .site-card .site-card-icon.files {
  background: linear-gradient(180deg, #edf4ff 0%, #e3edff 100%) !important;
  background-image: linear-gradient(180deg, #edf4ff 0%, #e3edff 100%) !important;
}

.sites-area .site-cards .site-card:nth-child(4n) .site-card-icon,
.sites-area .site-cards .site-card .site-card-icon.affairs {
  background: linear-gradient(180deg, #fff3e4 0%, #ffe9cf 100%) !important;
  background-image: linear-gradient(180deg, #fff3e4 0%, #ffe9cf 100%) !important;
}

.sites-area .site-cards .site-card:nth-child(5n) .site-card-icon {
  background: linear-gradient(180deg, #e7f8f0 0%, #d9f4e8 100%) !important;
  background-image: linear-gradient(180deg, #e7f8f0 0%, #d9f4e8 100%) !important;
}

.site-cards .site-card.hidden,
.sites-area .site-card.hidden {
  display: none !important;
}

.status-text.checking::after,
.status-text.offline::after {
  content: "" !important;
}

.status-text.online::after {
  content: " · 正常" !important;
}
/* V16 layout polish: tighter, more balanced production layout. */
body {
  background:
    radial-gradient(circle at 16% 18%, rgba(5, 148, 99, 0.055), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 58%, #f6f9fc 100%);
}

.container {
  width: min(100%, 1500px);
}

.hero {
  min-height: 520px;
  align-items: center;
  border-bottom: 1px solid rgba(118, 137, 158, 0.14);
  box-shadow: 0 28px 70px rgba(31, 54, 82, 0.08);
}

.hero-text {
  max-width: 720px;
  padding-top: 8px;
}

.hero h1,
[data-theme="light"] .hero h1 {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-desc {
  max-width: 620px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.9;
}

.hero-cta,
.hero-secondary {
  min-width: 176px;
  justify-content: center;
}

.hero-metrics {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, auto));
  gap: 22px 32px;
}

.hero-metric {
  grid-template-columns: 30px auto;
  column-gap: 12px;
  min-width: 116px;
}

.hero-metric strong {
  font-size: 30px;
  line-height: 1;
}

.hero-sidebar {
  width: min(390px, 100%);
  margin-left: auto;
}

.hero--premium .deco-status,
.deco-status {
  padding: 30px 28px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.deco-status .hero-deco-label {
  padding-bottom: 18px;
  margin-bottom: 16px;
}

.deco-status-item {
  min-height: 54px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(118, 137, 158, 0.15);
}

.deco-status-item:last-child {
  border-bottom: 0;
}

.main-grid {
  width: min(1320px, calc(100vw - 88px));
  margin: 30px auto 0;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.announcements-section,
.sites-area {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(38, 59, 85, 0.08);
}

.announcements-section {
  padding: 24px 28px 26px;
}

.announcements-section .section-head,
.sites-area .section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(118, 137, 158, 0.16);
}

.announcements-section .section-label,
.sites-area .section-label {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.tl-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(118, 137, 158, 0.13);
}

.tl-card:hover {
  background: rgba(5, 148, 99, 0.035);
  box-shadow: none;
}

.tl-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.tl-title {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.45;
}

.tl-date {
  font-size: 12px;
  align-self: center;
}

.tl-tag,
.tl-body,
.tl-dot {
  display: none !important;
}

.sites-area {
  padding: 24px 28px 28px;
}

.sites-area .site-tools {
  margin: 16px 0 18px;
  padding: 0;
  align-items: center;
}

.filter-tags {
  flex: 1 1 auto;
  justify-content: center;
}

.filter-tag {
  height: 36px;
  padding: 0 14px;
  border-radius: 0;
}

.sites-area .site-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  min-height: 0;
}

.sites-area .site-card {
  min-height: 96px;
  padding: 16px;
  grid-template-columns: 48px minmax(0, 1fr);
  border-radius: 12px;
}

.sites-area .site-card-title {
  font-size: 15px;
}

.sites-area .site-card-desc {
  margin-top: 4px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#empty-state:not(.show) {
  display: none !important;
}

#empty-state.show {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #66758a;
}

#dashboard {
  width: min(1320px, calc(100vw - 88px));
  margin: 42px auto 0;
}

@media (max-width: 1180px) {
  .hero {
    min-height: 500px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 520px;
  }

  .main-grid,
  #dashboard {
    width: min(920px, calc(100vw - 36px));
  }

  .sites-area .site-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
  }

  .hero {
    min-height: auto;
    padding: 40px 18px 34px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.72) 44%, rgba(255,255,255,0.9) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
    box-shadow: 0 18px 42px rgba(31, 54, 82, 0.08);
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(36px, 10.8vw, 46px);
    line-height: 1.12;
  }

  .hero-desc {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-cta,
  .hero-secondary {
    width: 100%;
    min-height: 48px;
  }

  .hero-metrics {
    margin-top: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .hero-metric {
    min-width: 0;
    padding: 10px 6px;
    border-radius: 14px;
    background: rgba(255,255,255,0.68);
  }

  .hero-metric strong {
    font-size: 26px;
  }

  .main-grid {
    width: calc(100vw - 36px);
    margin-top: 28px;
    gap: 28px;
  }

  .announcements-section,
  .sites-area {
    border-radius: 14px;
    padding: 22px 18px;
  }

  .tl-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tl-date {
    display: none;
  }

  .sites-area .site-tools {
    display: block;
  }

  .filter-tags {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .sites-area .site-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .sites-area .site-card {
    min-height: 82px;
    padding: 14px;
  }

  #dashboard {
    width: calc(100vw - 36px);
    margin-top: 32px;
  }
}

/* V16 layout polish final override */
body {
  background:
    radial-gradient(circle at 16% 18%, rgba(5, 148, 99, 0.055), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 58%, #f6f9fc 100%);
}
.container { width: min(100%, 1500px); }
.hero {
  min-height: 520px;
  align-items: center;
  border-bottom: 1px solid rgba(118, 137, 158, 0.14);
  box-shadow: 0 28px 70px rgba(31, 54, 82, 0.08);
}
.hero-text { max-width: 720px; padding-top: 8px; }
.hero h1,
[data-theme="light"] .hero h1 {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero-desc {
  max-width: 620px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.9;
}
.hero-cta,
.hero-secondary { min-width: 176px; justify-content: center; }
.hero-metrics {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, auto));
  gap: 22px 32px;
}
.hero-metric { grid-template-columns: 30px auto; column-gap: 12px; min-width: 116px; }
.hero-metric strong { font-size: 30px; line-height: 1; }
.hero-sidebar { width: min(390px, 100%); margin-left: auto; }
.hero--premium .deco-status,
.deco-status {
  padding: 30px 28px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}
.deco-status .hero-deco-label { padding-bottom: 18px; margin-bottom: 16px; }
.deco-status-item {
  min-height: 54px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(118, 137, 158, 0.15);
}
.deco-status-item:last-child { border-bottom: 0; }
.main-grid {
  width: min(1320px, calc(100vw - 88px));
  margin: 30px auto 0;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.announcements-section,
.sites-area {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(38, 59, 85, 0.08);
}
.announcements-section { padding: 24px 28px 26px; }
.announcements-section .section-head,
.sites-area .section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(118, 137, 158, 0.16);
}
.announcements-section .section-label,
.sites-area .section-label { margin-bottom: 0; }
.timeline { display: grid; gap: 0; margin-top: 12px; }
.tl-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(118, 137, 158, 0.13);
}
.tl-card:hover { background: rgba(5, 148, 99, 0.035); box-shadow: none; }
.tl-icon { width: 34px; height: 34px; border-radius: 10px; }
.tl-title { max-width: 100%; font-size: 14px; line-height: 1.45; }
.tl-date { font-size: 12px; align-self: center; }
.tl-tag,
.tl-body,
.tl-dot { display: none !important; }
.sites-area { padding: 24px 28px 28px; }
.sites-area .site-tools { margin: 16px 0 18px; padding: 0; align-items: center; }
.filter-tags { flex: 1 1 auto; justify-content: center; }
.filter-tag { height: 36px; padding: 0 14px; border-radius: 0; }
.sites-area .site-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  min-height: 0;
}
.sites-area .site-card {
  min-height: 96px;
  padding: 16px;
  grid-template-columns: 48px minmax(0, 1fr);
  border-radius: 12px;
}
.sites-area .site-card-title { font-size: 15px; }
.sites-area .site-card-desc {
  margin-top: 4px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#empty-state:not(.show) { display: none !important; }
#empty-state.show {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #66758a;
}
#dashboard { width: min(1320px, calc(100vw - 88px)); margin: 42px auto 0; }
@media (max-width: 1180px) {
  .hero { min-height: 500px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); max-width: 520px; }
  .main-grid,
  #dashboard { width: min(920px, calc(100vw - 36px)); }
  .sites-area .site-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  body { background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%); }
  .hero {
    min-height: auto;
    padding: 40px 18px 34px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.72) 44%, rgba(255,255,255,0.9) 100%),
      url("../img/campus-hero.webp") center bottom / cover no-repeat;
    box-shadow: 0 18px 42px rgba(31, 54, 82, 0.08);
  }
  .hero h1,
  [data-theme="light"] .hero h1 { font-size: clamp(36px, 10.8vw, 46px); line-height: 1.12; }
  .hero-desc { margin-top: 22px; font-size: 15px; line-height: 1.85; }
  .hero-cta,
  .hero-secondary { width: 100%; min-height: 48px; }
  .hero-metrics { margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .hero-metric { min-width: 0; padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,0.68); }
  .hero-metric strong { font-size: 26px; }
  .main-grid { width: calc(100vw - 36px); margin-top: 28px; gap: 28px; }
  .announcements-section,
  .sites-area { border-radius: 14px; padding: 22px 18px; }
  .tl-card { grid-template-columns: 38px minmax(0, 1fr); }
  .tl-date { display: none; }
  .sites-area .site-tools { display: block; }
  .filter-tags {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-tags::-webkit-scrollbar { display: none; }
  .sites-area .site-cards { grid-template-columns: 1fr !important; gap: 12px !important; }
  .sites-area .site-card { min-height: 82px; padding: 14px; }
  #dashboard { width: calc(100vw - 36px); margin-top: 32px; }
}

/* V16 mobile overflow fix */
html,
body {
  overflow-x: hidden;
}

@media (max-width: 1180px) {
  .main-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .main-grid,
  .announcements-section,
  .sites-area,
  .sites-area .site-tools,
  .sites-area .site-cards,
  .sites-area .site-card {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sites-area {
    width: 100% !important;
    margin: 0 !important;
  }

  .sites-area .site-cards {
    width: 100% !important;
  }

  .sites-area .site-card {
    width: 100% !important;
    display: grid !important;
  }
}

/* Upper fold refresh: calmer header, cleaner hero rhythm, more structured stats. */
header {
  height: 74px;
  padding: 0 clamp(28px, 4.2vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.88));
  border-bottom: 1px solid rgba(106, 130, 162, 0.12);
  backdrop-filter: blur(22px) saturate(1.08);
}

header nav {
  gap: 10px;
}

header nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #4d617c;
}

header nav a.active {
  color: #0b8f54;
  background: rgba(11, 143, 84, 0.09);
}

.logo {
  gap: 14px;
}

.logo-emblem {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(11, 143, 84, 0.14);
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero {
  min-height: 548px;
  margin: 26px 0 22px;
  padding: 56px clamp(34px, 4.4vw, 64px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 410px);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 32%, rgba(255, 255, 255, 0.54) 58%, rgba(255, 255, 255, 0.22) 100%),
    url("../img/campus-hero.webp") center right / cover no-repeat;
  box-shadow: 0 30px 70px rgba(39, 62, 92, 0.10);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 18% 22%, rgba(11, 143, 84, 0.10), transparent 30%);
  pointer-events: none;
}

.hero-text,
.hero-sidebar {
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding-top: 0;
}

.hero-eyebrow {
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(106, 130, 162, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #244160;
}

.hero-eyebrow::before {
  display: none;
}

.hero h1,
[data-theme="light"] .hero h1 {
  font-size: clamp(52px, 5vw, 74px);
  line-height: 1.02;
  color: #14243a !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  filter: none !important;
}

.hero-desc {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: #5f6f84;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-text .hero-cta,
.hero-text .hero-secondary {
  margin-right: 0;
}

.hero-cta,
.hero-secondary {
  min-width: 164px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
}

.hero-cta {
  background: linear-gradient(135deg, #0ca564, #0b8f54);
  color: #ffffff;
  border: 0;
  box-shadow: 0 16px 32px rgba(11, 143, 84, 0.18);
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #21405f;
  border: 1px solid rgba(106, 130, 162, 0.16);
  box-shadow: 0 10px 24px rgba(33, 64, 95, 0.06);
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 720px);
  max-width: 720px;
}

.hero-metric {
  min-width: 0;
  min-height: 108px;
  padding: 14px 12px 13px;
  grid-template-columns: 1fr;
  gap: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(106, 130, 162, 0.12);
  box-shadow: 0 16px 28px rgba(35, 61, 92, 0.05);
}

.hero-metric i {
  font-size: 18px;
  margin-bottom: 2px;
}

.hero-metric strong {
  font-size: 20px;
  line-height: 1;
}

.hero-metric span {
  font-size: 11px;
  font-weight: 700;
  color: #66778d;
  line-height: 1.35;
}

.hero-sidebar {
  width: min(410px, 100%);
  display: flex;
  align-items: stretch;
}

.hero-deco {
  display: none;
}

.deco-status {
  width: 100%;
  padding: 24px 26px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  box-shadow: 0 24px 44px rgba(31, 54, 82, 0.10);
  backdrop-filter: blur(18px);
}

.deco-status .hero-deco-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(106, 130, 162, 0.14);
  font-size: 13px;
  font-weight: 800;
  color: #2a3e59;
  letter-spacing: 0;
}

.deco-status-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0;
  border-bottom: 1px solid rgba(106, 130, 162, 0.10);
  background: transparent;
}

.deco-status-item::before,
.status-pulse-wrap,
.status-pulse-ring {
  display: none;
}

.deco-status-item > span:nth-of-type(1) {
  font-size: 15px;
  font-weight: 800;
  color: #24364f;
}

.deco-status-item > span:nth-of-type(1) i {
  width: 22px;
  color: #3f74c3;
}

.status-text {
  justify-self: end;
}

.status-text::before {
  border-radius: 999px;
}

.main-grid {
  width: min(1440px, calc(100vw - 84px));
  grid-template-columns: minmax(308px, 360px) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 1500px) {
  .hero {
    padding-inline: 34px;
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(46px, 4.6vw, 60px);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }

  .hero-sidebar {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    height: 68px;
    padding-inline: 18px;
  }

  .hero {
    margin-top: 14px;
    padding: 30px 18px 34px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0.92) 100%),
      url("../img/campus-hero.webp") center / cover no-repeat;
  }

  .hero h1,
  [data-theme="light"] .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-cta,
  .hero-secondary {
    width: 100%;
  }

  .hero-sidebar {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final desktop scroll guard: never lock the page on large screens. */
@media (min-width: 1181px) {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #content.container,
  .container,
  main.container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* System fix: restore the site search control hidden by older compact layout rules. */
.sites-area .site-tools {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.sites-area .search-wrap {
  display: flex !important;
  flex: 1 1 260px;
  max-width: 360px;
}

.sites-area .filter-tags {
  flex: 1 1 420px;
}

@media (max-width: 900px) {
  .sites-area .search-wrap,
  .sites-area .filter-tags {
    flex: 1 1 100%;
  }
}

/* Header compact: keep the logo mark and remove the repeated portal title text. */
header {
  height: 60px !important;
  padding-inline: clamp(20px, 3.4vw, 54px) !important;
}

.logo {
  min-width: auto !important;
  gap: 10px !important;
}

.logo-text {
  display: block !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.3;
}

.logo-text::after {
  content: none !important;
}

.logo-emblem {
  width: 38px !important;
  height: 38px !important;
}

.hero {
  min-height: 484px !important;
  margin-top: 18px !important;
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

.hero-desc {
  margin-top: 14px !important;
}

.hero-actions {
  margin-top: 24px !important;
}

.hero-metrics {
  margin-top: 26px !important;
}

@media (max-width: 900px) {
  header {
    height: 58px !important;
    padding-inline: 16px !important;
  }

  .logo-emblem {
    width: 36px !important;
    height: 36px !important;
  }

  .hero {
    margin-top: 12px !important;
    padding-top: 26px !important;
    padding-bottom: 30px !important;
  }
}

/* Header simplify: remove unused top navigation links. */
header nav,
.mobile-nav,
.hamburger {
  display: none !important;
}

header {
  justify-content: space-between !important;
}

.header-right {
  margin-left: auto !important;
}

/* Announcement links: file-platform notices should remain visually title-like. */
.tl-title a {
  color: inherit;
  text-decoration: none;
}

.tl-title a:hover {
  color: var(--school-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Portal refinement: app-like quick access, clearer search states, and mobile polish. */
.notify-dot.is-read {
  opacity: 0;
  transform: scale(0.65);
}

.sites-area .site-tools {
  align-items: center;
  justify-content: space-between !important;
}

.sites-area .search-wrap {
  max-width: 420px;
}

.filter-tags {
  align-items: center;
}

.filter-tag {
  white-space: nowrap;
}

.filter-tags .filter-tag {
  position: relative;
}

.filter-tags .filter-tag::after {
  opacity: 0;
}

.filter-tags .filter-tag.active::after,
.filter-tags .filter-tag.active-steel::after,
.filter-tags .filter-tag.active-green::after,
.filter-tags .filter-tag.active-red::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
}

.filter-tags .filter-tag:not(.active):not(.active-steel):not(.active-green):not(.active-red) {
  color: #64748b !important;
  background: transparent;
  box-shadow: none;
}

.filter-tags .filter-tag.active {
  color: #059463 !important;
}

.sites-area .filter-tags .filter-tag[data-cat="all"]:not(.active) {
  color: #64748b !important;
}

.filter-tag[data-cat="favorite"]::before {
  content: "\f005";
  margin-right: 6px;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
}

.result-count {
  min-width: 62px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(102, 117, 138, 0.08);
  text-align: center;
  font-weight: 700;
}

.sites-area .site-card.is-favorite {
  border-color: rgba(5, 148, 99, 0.2);
  box-shadow: 0 12px 28px rgba(31, 84, 61, 0.07);
}

.sites-area .site-card.is-favorite::after {
  content: "\f005";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 148, 99, 0.1);
  color: #059463;
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
}

#empty-state.visible,
#empty-state.show {
  min-height: 190px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(102, 117, 138, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

@media (max-width: 768px) {
  .sites-area .site-tools {
    display: grid !important;
    gap: 14px;
  }

  .sites-area .search-wrap {
    max-width: none;
  }

  .filter-tags {
    margin-inline: -4px;
    gap: 10px;
    padding: 2px 4px 8px;
  }

  .filter-tag {
    flex: 0 0 auto;
    height: 38px;
    padding-inline: 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
  }

  .result-count {
    justify-self: start;
  }

  .sites-area .site-card {
    min-height: 88px;
    grid-template-columns: 46px minmax(0, 1fr) 26px;
    padding-right: 42px;
  }

  .sites-area .site-card.is-favorite::after {
    top: 10px;
    right: 10px;
  }
}


/* ── Hero compact height + aligned layout ── */
.hero {
  width: calc(100% - 84px) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 16px 42px 20px !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  align-items: start !important;
  gap: clamp(20px, 3vw, 40px) !important;
  border-radius: 28px !important;
}

.hero-eyebrow,
.hero h1 {
  display: none !important;
}

.hero-desc {
  margin-top: 0 !important;
}

.hero-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

.hero-sidebar {
  align-self: start !important;
  margin-top: 0 !important;
}

.deco-status {
  min-height: auto !important;
  height: auto !important;
}

.hero-metrics {
  margin-top: 14px !important;
  gap: 10px !important;
}

.hero-metric {
  min-height: 60px !important;
  padding: 10px !important;
}

/* Site tools: search left, filters right, one row */
.sites-area .site-tools {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  align-items: center !important;
}

.sites-area .search-wrap {
  order: 0 !important;
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  min-width: 0 !important;
}

.filter-tags {
  order: 0 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  gap: 8px !important;
}

.filter-tags::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.result-count {
  order: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  .hero,
  .main-grid {
    width: calc(100vw - 32px) !important;
    margin-inline: 16px !important;
  }

  .hero {
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .main-grid {
    margin-top: 20px !important;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .sites-area .site-tools {
    flex-wrap: wrap !important;
  }

  .sites-area .search-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
  }
}


footer,
footer.footer-hosting-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.footer-hosting {
  text-align: center;
  padding: 12px 0 8px;
  font-size: 12px;
  color: var(--text-muted, #888);
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  margin-top: 8px;
}

.footer-hosting i {
  margin-right: 4px;
  color: #f48120;
}
