/* ================= 快捷按钮组 ================= */
.style-switcher {
  position: fixed;
  top: 50%;
  left: 24px;
  bottom: auto;
  right: auto;
  transform: translateY(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.switch-menu {
  display: none;
  position: absolute;
  left: 60px;
  bottom: 0;
  flex-direction: column;
  gap: 8px;
  background: #FFF;
  border: 2px solid #FFB6C1;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  animation: switchPop .3s ease;
}
.switch-menu.show { display: flex; }
@keyframes switchPop {
  from { opacity: 0; transform: translateX(-8px) scale(.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.switch-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  white-space: nowrap;
  border: 2px solid transparent;
}
.switch-opt:hover { background: #FFF0F5; }
.switch-opt.active {
  border-color: #FF69B4;
  background: #FFF0F5;
  color: #FF69B4;
}
.switch-opt-icon { font-size: 22px; }

.switch-main {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF69B4, #DDA0DD);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all .3s ease;
  border: none;
  position: relative;
}
.switch-main:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: static;
  padding: 0;
}
.nav-sub {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FFB6C1;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all .3s ease;
  position: relative;
}
.nav-sub:hover { transform: scale(1.1); border-color: #FF69B4; background: #FFF0F5; }
.switch-tip, .nav-tip {
  position: absolute;
  left: 58px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,30,40,.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
}
.switch-tip::after, .nav-tip::after {
  content: '';
  position: absolute;
  left: -5px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent rgba(30,30,40,.85) transparent transparent;
}
.switch-main:hover .switch-tip, .nav-sub:hover .nav-tip {
  opacity: 1;
  left: 62px;
  right: auto;
}
.switch-menu.show ~ .switch-main .switch-tip { display: none; }

@media (max-width: 900px) {
  .style-switcher {
    left: 12px;
    gap: 8px;
  }
  .nav-menu {
    gap: 8px;
  }
  .nav-sub,
  .switch-main {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .switch-menu {
    left: 52px;
  }
  .switch-tip,
  .nav-tip {
    display: none;
  }
}

@media (max-width: 600px) {
  .style-switcher {
    top: auto;
    left: 12px;
    bottom: 14px;
    transform: none;
    flex-direction: row;
    align-items: flex-end;
  }
  .nav-menu {
    flex-direction: row;
  }
  .switch-menu {
    left: auto;
    bottom: 52px;
    right: 0;
  }
}

.record-modal-box { max-width: 520px; width: 92%; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.15); position: relative; }
.record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 15px;
}
.record-row:last-child { border-bottom: none; }
.record-date {
  color: #888;
  font-family: monospace;
  font-size: 13px;
  white-space: nowrap;
  width: 90px;
}
.record-name {
  flex: 1;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.school-empty {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 18px;
  font-weight: 700;
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.5);
  box-sizing: border-box;
}
.record-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

html { scroll-behavior: smooth; }
* { margin:0; padding:0; box-sizing:border-box; }

/* ================= CSS Variables ================= */
:root {
  --brand: #527AF7;
  --brand-light: #EEF2FF;
  --sun: #FFD93D;
  --coral: #FF6B6B;
  --sky: #4DABF7;
  --grass: #69DB7C;
  --purple: #DA77F2;
  --orange: #FF922B;
  --ink: #2D3436;
  --gray: #868E96;
  --gray-light: #F1F3F5;
  --radius: 32px;
  --radius-sm: 20px;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffd93d 100%);
  --text-color: var(--ink);
  --hero-text-color: #fff;
  --section-title-color: #fff;
  --footer-color: rgba(255,255,255,.85);
  --card-border: 4px solid transparent;
  --card-bg: #fff;
  --modal-bg: rgba(30,42,71,.5);
  --rank-item-bg: var(--gray-light);
  --rank-item-hover-bg: var(--brand-light);
  --school-item-bg: var(--gray-light);
  --school-item-hover-bg: var(--brand-light);
  --article-item-bg: var(--gray-light);
  --article-item-hover-bg: var(--brand-light);
  --accordion-bg: var(--gray-light);
  --accordion-open-bg: #EEF2FF;
  --tooltip-border: none;
  --tooltip-box-shadow: 0 20px 60px rgba(0,0,0,.2);
  --prize-badge-shadow: 0 4px 16px rgba(255,215,0,.35);
  --book-wrap-shadow: 0 20px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.08), inset -8px 0 20px rgba(0,0,0,.06);
  --book-spine: linear-gradient(180deg, #adb5bd, #495057, #adb5bd);
  --guide-banner-bg: linear-gradient(135deg, var(--brand), var(--purple));
  --hero-badge-bg: linear-gradient(90deg, var(--coral), var(--orange));
  --act-btn-bg: var(--gray-light);
  --act-btn-color: var(--ink);
  --act-btn-border: none;
  --rank-tab-active-bg: var(--ink);
  --rank-tab-active-color: #fff;
  --rank-tab-active-border: var(--ink);
  --rank-tab-active-shadow: 5px 5px 0 var(--sun);
  --rank-type-slider-bg: var(--ink);
  --rank-history-bar-border: 2px dashed var(--gray-light);
  --rank-history-bar-bg: #F8F9FA;
  --modal-right-bg: #f8f9fa;
  --modal-right-border: 1px solid #e9ecef;
  --flow-board-bg: linear-gradient(135deg, #f8f9fa, #eef2ff);
  --scrollbar-color: var(--brand);
  --school-img-border: 4px solid #fff;
  --school-img-shadow: 0 3px 12px rgba(0,0,0,.1);
  --rank-avatar-border: 4px solid #fff;
  --rank-avatar-shadow: 0 3px 12px rgba(0,0,0,.1);
  --rank-num-normal-border: 3px solid #E9ECEF;
  --link-icon-bg: #fff;
  --link-icon-shadow: 0 2px 8px rgba(0,0,0,.06);
  --tooltip-item-bg: linear-gradient(135deg, #fff9db, #fff0e0);
  --tooltip-item-border: 2px solid rgba(255,217,61,.3);
  --rank-rule-card-bg: var(--brand-light);
  --rank-rule-header-color: var(--brand);
  --modal-close-hover-bg: var(--gray-light);
  --modal-close-hover-color: var(--ink);
  --record-item-border: 1px solid #e9ecef;
  --status-panel-flow-board-bg: #fff;
  --status-panel-flow-board-border: 1px solid #e9ecef;
  --form-input-border: 3px solid #E9ECEF;
  --form-input-focus-shadow: 0 0 0 4px rgba(82,122,247,.1);
  --book-page-left-bg: linear-gradient(90deg, #fff 95%, #f8f9fa 100%);
  --book-page-right-bg: linear-gradient(90deg, #f8f9fa 0%, #fff 5%);
  --book-page-h3-border: 2px dashed #e9ecef;
  --book-page-li-marker: #495057;
  --book-corner-bg: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.08) 50%);
  --book-corner-left-bg: linear-gradient(225deg, transparent 50%, rgba(0,0,0,.05) 50%);
}

body[data-theme="chibi"] {
  --brand: #FF69B4;
  --brand-light: #FFF0F5;
  --sun: #FFB6C1;
  --coral: #FF69B4;
  --sky: #87CEEB;
  --grass: #98FB98;
  --purple: #DDA0DD;
  --orange: #FFA07A;
  --ink: #4A004A;
  --gray: #9370DB;
  --gray-light: #FFF0F5;
  --radius: 48px;
  --radius-sm: 32px;
  --bg-gradient: linear-gradient(135deg, #FFE4E1 0%, #E6E6FA 25%, #FFF0F5 50%, #E0FFFF 75%, #F0F8FF 100%);
  --text-color: #4A004A;
  --hero-text-color: #FF69B4;
  --section-title-color: #FF69B4;
  --footer-color: rgba(147,112,219,.85);
  --card-border: 4px solid #FFB6C1;
  --card-bg: #fff;
  --modal-bg: rgba(74,0,74,.5);
  --rank-item-bg: #FFF0F5;
  --rank-item-hover-bg: #FFE4E1;
  --school-item-bg: #FFF0F5;
  --school-item-hover-bg: #FFE4E1;
  --article-item-bg: #FFF0F5;
  --article-item-hover-bg: #FFE4E1;
  --accordion-bg: #FFF0F5;
  --accordion-open-bg: #FFE4E1;
  --tooltip-border: 4px solid #FFB6C1;
  --tooltip-box-shadow: 0 20px 60px rgba(255,105,180,.2);
  --prize-badge-shadow: 0 4px 16px rgba(255,105,180,.4);
  --book-wrap-shadow: 0 20px 60px rgba(74,0,74,.25), 0 0 0 1px rgba(255,182,193,.3), inset -8px 0 20px rgba(0,0,0,.06);
  --book-spine: linear-gradient(180deg, #FFB6C1, #FF69B4, #DDA0DD, #FFB6C1);
  --guide-banner-bg: linear-gradient(135deg, #FF69B4, #DDA0DD);
  --hero-badge-bg: linear-gradient(90deg, #FF69B4, #FFB6C1);
  --act-btn-bg: #FFF0F5;
  --act-btn-color: #FF69B4;
  --act-btn-border: 3px solid #FFB6C1;
  --rank-tab-active-bg: #FF69B4;
  --rank-tab-active-color: #fff;
  --rank-tab-active-border: #FF69B4;
  --rank-tab-active-shadow: 5px 5px 0 #DDA0DD;
  --rank-type-slider-bg: #FF69B4;
  --rank-history-bar-border: 2px dashed #FFB6C1;
  --rank-history-bar-bg: #FFF0F5;
  --modal-right-bg: #FFF0F5;
  --modal-right-border: 3px solid #FFB6C1;
  --flow-board-bg: linear-gradient(135deg, #f8f9fa, #eef2ff);
  --scrollbar-color: #FF69B4;
  --school-img-border: 4px solid #FFB6C1;
  --school-img-shadow: 0 3px 12px rgba(255,105,180,.15);
  --rank-avatar-border: 4px solid #FFB6C1;
  --rank-avatar-shadow: 0 3px 12px rgba(255,105,180,.15);
  --rank-num-normal-border: 3px solid #FFB6C1;
  --link-icon-bg: #fff;
  --link-icon-shadow: 0 2px 8px rgba(255,105,180,.1);
  --tooltip-item-bg: linear-gradient(135deg, #FFF0F5, #E6E6FA);
  --tooltip-item-border: 3px solid rgba(255,182,193,.4);
  --rank-rule-card-bg: #FFF0F5;
  --rank-rule-header-color: #FF69B4;
  --modal-close-hover-bg: #FFF0F5;
  --modal-close-hover-color: #FF69B4;
  --record-item-border: 2px solid #FFB6C1;
  --status-panel-flow-board-bg: #fff;
  --status-panel-flow-board-border: 3px solid #FFB6C1;
  --form-input-border: 3px solid #FFB6C1;
  --form-input-focus-shadow: 0 0 0 4px rgba(255,105,180,.1);
  --book-page-left-bg: linear-gradient(90deg, #fff 95%, #FFF0F5 100%);
  --book-page-right-bg: linear-gradient(90deg, #FFF0F5 0%, #fff 5%);
  --book-page-h3-border: 2px dashed #FFB6C1;
  --book-page-li-marker: #FF69B4;
  --book-corner-bg: linear-gradient(135deg, transparent 50%, rgba(255,182,193,.3) 50%);
  --book-corner-left-bg: linear-gradient(225deg, transparent 50%, rgba(255,182,193,.2) 50%);
}

body[data-theme="summer"] {
  --brand: #00B4D8;
  --brand-light: #E0F7FA;
  --sun: #FF9F1C;
  --coral: #FF7F50;
  --sky: #4ECDC4;
  --grass: #2EC4B6;
  --purple: #7B68EE;
  --orange: #FF9F1C;
  --ink: #1A3A52;
  --gray: #5A7D9A;
  --gray-light: #E8F4F8;
  --radius: 32px;
  --radius-sm: 20px;
  --bg-gradient: linear-gradient(180deg, #4FC3F7 0%, #29B6F6 30%, #039BE5 60%, #01579B 100%);
  --text-color: var(--ink);
  --hero-text-color: #fff;
  --section-title-color: #fff;
  --footer-color: rgba(255,255,255,.85);
  --card-border: 2px solid rgba(0,180,216,.2);
  --card-bg: rgba(255,255,255,.95);
  --modal-bg: rgba(30,42,71,.5);
  --rank-item-bg: var(--gray-light);
  --rank-item-hover-bg: var(--brand-light);
  --school-item-bg: var(--gray-light);
  --school-item-hover-bg: var(--brand-light);
  --article-item-bg: var(--gray-light);
  --article-item-hover-bg: var(--brand-light);
  --accordion-bg: var(--gray-light);
  --accordion-open-bg: #EEF2FF;
  --tooltip-border: none;
  --tooltip-box-shadow: 0 20px 60px rgba(0,0,0,.2);
  --prize-badge-shadow: 0 4px 16px rgba(255,215,0,.35);
  --book-wrap-shadow: 0 20px 60px rgba(0,80,100,.25), 0 0 0 1px rgba(0,180,216,.2), inset -8px 0 20px rgba(0,0,0,.06);
  --book-spine: linear-gradient(180deg, #00b4d8, #0077b6, #00b4d8);
  --guide-banner-bg: linear-gradient(135deg, var(--brand), var(--purple));
  --hero-badge-bg: linear-gradient(90deg, var(--coral), var(--orange));
  --act-btn-bg: linear-gradient(135deg, #00B4D8, #2EC4B6);
  --act-btn-color: #fff;
  --act-btn-border: none;
  --rank-tab-active-bg: var(--ink);
  --rank-tab-active-color: #fff;
  --rank-tab-active-border: var(--ink);
  --rank-tab-active-shadow: 5px 5px 0 var(--sun);
  --rank-type-slider-bg: var(--brand);
  --rank-history-bar-border: 2px dashed #7DD3FC;
  --rank-history-bar-bg: #F0F9FF;
  --modal-right-bg: #f0f9ff;
  --modal-right-border: 2px solid rgba(0,180,216,.2);
  --flow-board-bg: linear-gradient(135deg, #f8f9fa, #eef2ff);
  --scrollbar-color: var(--brand);
  --school-img-border: 4px solid #fff;
  --school-img-shadow: 0 3px 12px rgba(0,0,0,.1);
  --rank-avatar-border: 4px solid #fff;
  --rank-avatar-shadow: 0 3px 12px rgba(0,0,0,.1);
  --rank-num-normal-border: 3px solid #E9ECEF;
  --link-icon-bg: #fff;
  --link-icon-shadow: 0 2px 8px rgba(0,0,0,.06);
  --tooltip-item-bg: linear-gradient(135deg, #fff9db, #fff0e0);
  --tooltip-item-border: 2px solid rgba(255,217,61,.3);
  --rank-rule-card-bg: var(--brand-light);
  --rank-rule-header-color: var(--brand);
  --modal-close-hover-bg: var(--gray-light);
  --modal-close-hover-color: var(--ink);
  --record-item-border: 2px solid rgba(0,180,216,.2);
  --status-panel-flow-board-bg: #fff;
  --status-panel-flow-board-border: 2px solid rgba(0,180,216,.2);
  --form-input-border: 3px solid #E9ECEF;
  --form-input-focus-shadow: 0 0 0 4px rgba(82,122,247,.1);
  --book-page-left-bg: linear-gradient(90deg, #fff 95%, #f0f9ff 100%);
  --book-page-right-bg: linear-gradient(90deg, #f0f9ff 0%, #fff 5%);
  --book-page-h3-border: 2px dashed rgba(0,180,216,.2);
  --book-page-li-marker: #00b4d8;
  --book-corner-bg: linear-gradient(135deg, transparent 50%, rgba(0,180,216,.2) 50%);
  --book-corner-left-bg: linear-gradient(225deg, transparent 50%, rgba(0,180,216,.15) 50%);
}

/* ================= 主题基础 ================= */
body {
  background: var(--bg-gradient);
  background-attachment: fixed;
}

/* ================= 浮动粒子背景 ================= */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: floatDown linear infinite;
}
@keyframes floatDown {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ================= 容器 ================= */
.grow-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 70px;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 84px 14px 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  max-width: 1040px;
  background: var(--hero-badge-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  padding: 8px 25px;
  border-radius: 35px;
  margin-bottom: 22px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 32px rgba(255,107,107,.4);
  animation: badgePulse 2.5s ease-in-out infinite;
}
.hero-badge-text {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 10px 40px rgba(255,107,107,.5); }
}

.hero h1 {
  font-size: 63px;
  font-weight: 900;
  color: var(--hero-text-color);
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow:
    0 0 10px rgba(255,255,255,.9),
    0 0 30px rgba(255,217,61,.7),
    0 0 60px rgba(255,107,157,.5),
    0 0 100px rgba(192,132,252,.4),
    0 0 160px rgba(82,122,247,.3);
  animation: neonGlow 2.5s ease-in-out infinite alternate;
}
@keyframes neonGlow {
  0% {
    text-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 30px rgba(255,217,61,.7), 0 0 60px rgba(255,107,157,.5), 0 0 100px rgba(192,132,252,.4), 0 0 160px rgba(82,122,247,.3);
    filter: brightness(1);
  }
  100% {
    text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 50px rgba(255,217,61,.95), 0 0 100px rgba(255,107,157,.75), 0 0 180px rgba(192,132,252,.6), 0 0 280px rgba(82,122,247,.45);
    filter: brightness(1.12);
  }
}
.hero h1 span {
  display: inline-block;
  animation: charPop .7s cubic-bezier(.34,1.56,.64,1) both;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}
.hero h1 span:hover {
  color: #FFD93D;
  transform: scale(1.35) translateY(-14px) rotate(-5deg);
  text-shadow: 0 0 10px #FFD93D, 0 0 30px rgba(255,217,61,.9), 0 0 60px rgba(255,217,61,.5);
}
.hero h1 span:nth-child(1) {animation-delay:.05s}
.hero h1 span:nth-child(2) {animation-delay:.1s}
.hero h1 span:nth-child(3) {animation-delay:.15s}
.hero h1 span:nth-child(4) {animation-delay:.2s}
.hero h1 span:nth-child(5) {animation-delay:.25s}
.hero h1 span:nth-child(6) {animation-delay:.3s}
.hero h1 span:nth-child(7) {animation-delay:.35s}
.hero h1 span:nth-child(8) {animation-delay:.4s}
.hero h1 span:nth-child(9) {animation-delay:.45s}
.hero h1 span:nth-child(10) {animation-delay:.5s}
@keyframes charPop {
  from { opacity:0; transform: translateY(50px) scale(.3) rotate(-20deg); filter: blur(8px); }
  to   { opacity:1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}

.hero-sub {
  max-width: 960px;
  margin: 0 auto;
  font-size: 20px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ================= 章节标题 ================= */
.section-title {
  font-size: 34px;
  font-weight: 900;
  margin: 56px 0 38px;
  color: var(--section-title-color);
  text-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-title .emoji { font-size: 52px; }

/* ================= 卡片通用 ================= */
.g-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  overflow: hidden;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  border: var(--card-border);
}
.g-card:hover { box-shadow: 0 24px 72px rgba(0,0,0,.16); transform: translateY(-4px); }

/* ================= 快速入口（3个） ================= */
.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 11px;
}
@media (max-width: 1100px) { .activities { grid-template-columns: 1fr; } }

.act-card {
  composes: g-card;
  padding: 39px 25px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.act-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 6px 6px 0 0;
  opacity: .9;
}
.act-card:nth-child(1)::before { background: linear-gradient(90deg, var(--brand), var(--purple)); }
.act-card:nth-child(2)::before { background: linear-gradient(90deg, var(--coral), var(--orange)); }
.act-card:nth-child(3)::before { background: linear-gradient(90deg, var(--grass), var(--sky)); }

.act-card:hover { transform: translateY(-12px) scale(1.02); border-color: rgba(255,255,255,.5); }

.act-icon {
  width: 77px; height: 77px;
  border-radius: 22px;
  margin: 6px auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 39px;
  transition: transform .4s cubic-bezier(.68,-.55,.265,1.55);
}
.act-card:hover .act-icon { transform: scale(1.2) rotate(-8deg); }
.act-icon-1 { background: var(--brand-light); }
.act-icon-2 { background: #FFF0F0; }
.act-icon-3 { background: #E6F9E9; }

.act-card h3 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.act-card p { font-size: 22px; color: var(--gray); line-height: 1.5; }
.act-tag {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 15px;
  border-radius: 35px;
  font-size: 17px;
  font-weight: 800;
}
.tag-hot { background: #FFE8E8; color: #E03131; }
.tag-star { background: #FFF8DB; color: #E67700; }
.tag-info { background: #E8F4FF; color: #1971C2; }

.act-btn {
  display: inline-block;
  margin-top: 11px;
  padding: 10px 22px;
  border-radius: 35px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s ease;
  background: var(--act-btn-bg);
  color: var(--act-btn-color);
  border: var(--act-btn-border);
}
.act-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.act-btn-disabled,
.act-btn:disabled {
  background: #E9ECEF !important;
  color: #868E96 !important;
  border: none !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: .95;
}
.act-btn-disabled:hover,
.act-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ================= 报名指南横幅 ================= */
.guide-banner {
  padding: 28px 34px;
  margin-bottom: 28px;
  background: var(--guide-banner-bg);
  color: #fff;
}
.guide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.guide-text h3 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.guide-text p { font-size: 18px; opacity: .92; }
.guide-btn {
  background: #fff;
  color: var(--brand);
  padding: 11px 25px;
  border-radius: 35px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.guide-btn:hover { transform: translateY(-3px) scale(1.05); }

/* ================= 排行榜规则速查 ================= */
.rank-rule-card {
  background: var(--rank-rule-card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 17px;
  overflow: hidden;
}
.rank-rule-header {
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 800;
  color: var(--rank-rule-header-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rank-rule-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.rank-rule-card.open .rank-rule-body {
  max-height: 210px;
  padding: 0 20px 14px;
}
.rank-rule-arrow { transition: transform .3s; }
.rank-rule-card.open .rank-rule-arrow { transform: rotate(180deg); }
.rank-rule-body ul { font-size: 16px; color: var(--gray); line-height: 1.8; margin-left: 20px; }

.act-card p,
.rank-rule-body,
.rank-rule-body p,
.rank-rule-body div,
.rank-rule-body li,
.rank-rule-body span,
.rank-rule-body a,
#ruleModalContent,
#ruleModalContent p,
#ruleModalContent div,
#ruleModalContent li,
#ruleModalContent span,
#ruleModalContent a,
#reg-rule-list,
#reg-rule-list p,
#reg-rule-list div,
#reg-rule-list li,
#reg-rule-list span,
#reg-rule-list a,
#act-reg-rule-list,
#act-reg-rule-list p,
#act-reg-rule-list div,
#act-reg-rule-list li,
#act-reg-rule-list span,
#act-reg-rule-list a {
  max-width: 100%;
  min-width: 0;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ================= 排行榜区域（紧凑flex布局） ================= */
.rank-zone { padding: 48px; margin-bottom: 40px; }

.rank-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.rank-tab {
  padding: 11px 22px;
  border-radius: 35px;
  border: 3px solid var(--gray-light);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: var(--gray);
  cursor: pointer;
  transition: all .25s ease;
  outline: none;
  white-space: nowrap;
}
.rank-tab:hover { border-color: #C7D2FE; color: var(--brand); }
.rank-tab.active {
  background: var(--rank-tab-active-bg);
  color: var(--rank-tab-active-color);
  border-color: var(--rank-tab-active-border);
  box-shadow: var(--rank-tab-active-shadow);
  transform: translate(-3px,-3px);
}

.rank-panel { display: none; }
.rank-panel.active { display: block; animation: panelIn .4s ease; }
@keyframes panelIn { from{opacity:0;transform:translateY(12px);} to{opacity:1;transform:translateY(0);} }

/* 历史榜单选择器 */
.rank-history-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--rank-history-bar-bg);
  border-radius: var(--radius-sm);
  border: var(--rank-history-bar-border);
}
.rank-year-select,
.rank-month-select {
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid var(--gray-light);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: all .2s ease;
}
.rank-year-select:hover,
.rank-month-select:hover { border-color: var(--ink); }
.rank-history-label {
  font-size: 13px;
  color: #999;
  margin-left: auto;
}

/* 月度/年度切换开关 */
.rank-type-switch {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  border: 2px solid var(--gray-light);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.rank-type-option {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: all .25s ease;
  user-select: none;
  position: relative;
  z-index: 1;
}
.rank-type-option.active {
  color: #fff;
}
.rank-type-option:not(.active):hover {
  color: var(--brand);
}
.rank-type-option.disabled,
.rank-type-option[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  color: #999;
  pointer-events: none;
}
.rank-type-option.disabled.active,
.rank-type-option[aria-disabled="true"].active {
  color: #999;
}
.rank-type-slider {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: var(--rank-type-slider-bg);
  border-radius: 18px;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.rank-type-switch[data-active="month"] .rank-type-slider {
  transform: translateX(0);
}
.rank-type-switch[data-active="year"] .rank-type-slider {
  transform: translateX(100%);
}
.rank-type-switch.no-rank-period .rank-type-slider {
  display: none;
}
.rank-month-select.hidden {
  display: none;
}
.rank-year-select:disabled,
.rank-month-select:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #999;
}
.rank-year-select:disabled:hover,
.rank-month-select:disabled:hover {
  border-color: var(--gray-light);
}

/* 排行榜：排名+Logo固定 | 名称flex填充 | 数据固定靠右 */
.rank-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--rank-item-bg);
  cursor: pointer;
  transition: all .25s ease;
}
.rank-item:hover { background: var(--rank-item-hover-bg); margin-left: 8px; }

.rank-leading {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.rank-num {
  width: 39px; height: 39px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
  flex-shrink: 0;
}
.rank-num.gold { background: linear-gradient(135deg,#FFD700,#FF9F43); color:#fff; box-shadow:0 4px 16px rgba(255,215,0,.35); }
.rank-num.silver { background: linear-gradient(135deg,#CED4DA,#ADB5BD); color:#fff; box-shadow:0 4px 16px rgba(173,181,189,.35); }
.rank-num.bronze { background: linear-gradient(135deg,#E1B382,#C8956C); color:#fff; box-shadow:0 4px 16px rgba(193,132,90,.35); }
.rank-num.normal { background:#fff; color:var(--gray); border:var(--rank-num-normal-border); }

.rank-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: var(--rank-avatar-border);
  box-shadow: var(--rank-avatar-shadow);
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.rank-info .name { font-weight: 800; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-tag-school {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  background: var(--gray-light);
  padding: 3px 10px;
  border-radius: 35px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rank-tag-creator {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 3px 10px;
  border-radius: 35px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-data {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.rank-data-col { text-align: center; min-width: 80px; flex: 0 0 auto; }
.rank-data-col .num { font-size: 26px; font-weight: 900; color: var(--coral); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-data-col .label { font-size: 16px; color: var(--gray); margin-top: 4px; }

/* ================= 精彩内容 ================= */
.media-zone { padding: 48px; margin-bottom: 40px; }
.media-body { display: block; }

.video-block h4 { font-size: 26px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.video-player-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.video-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article-block h4 { font-size: 26px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.article-scroll {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color) transparent;
}
.article-scroll::-webkit-scrollbar { width: 6px; }
.article-scroll::-webkit-scrollbar-thumb { background: var(--scrollbar-color); border-radius: 3px; }

.articles-zone { padding: 20px 24px; }
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  background: var(--article-item-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  color: inherit;
}
.article-item:hover { background: var(--article-item-hover-bg); transform: translateX(8px); }
.article-item .link-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--link-icon-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: var(--link-icon-shadow);
}
.article-item h4 {
  font-size: 20px;
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-item .arrow { color: var(--gray); font-size: 24px; flex: 0 0 auto; transition: transform .2s; }
.article-item:hover .arrow { transform: translateX(6px); color: var(--brand); }

/* ================= 规则区 ================= */

.accordion-item {
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--accordion-bg);
  transition: all .3s ease;
}
.accordion-item.open { background: var(--accordion-open-bg); }

.accordion-header {
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 17px;
  user-select: none;
  transition: background .2s;
}
.accordion-header:hover { background: rgba(0,0,0,.02); }
.accordion-header .emoji { font-size: 32px; margin-right: 10px; }
.accordion-arrow { transition: transform .3s ease; font-size: 24px; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 22px;
}
.accordion-item.open .accordion-body {
  max-height: 560px;
  padding: 0 22px 20px;
}
.accordion-body ul { margin-left: 32px; font-size: 20px; color: var(--gray); line-height: 1.9; }
.accordion-body li { margin-bottom: 6px; }

/* ================= 弹窗 ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-bg);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  width: 92%;
  max-width: 476px;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  transform: scale(.85) translateY(40px);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

/* wide modal */
.modal-box.modal-wide { max-width: 900px; padding: 0; overflow: hidden; }

/* ===== 书本风格弹窗 ===== */
.modal-box.book-modal {
  max-width: 900px;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transform-style: preserve-3d;
  perspective: 2000px;
}
.modal-overlay.show .modal-box.book-modal {
  transform: none;
  animation: bookOpen .6s ease-out forwards;
}
@keyframes bookOpen {
  0% { transform: rotateY(-90deg) scale(.8); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
.book-wrap {
  display: flex;
  width: 100%;
  min-height: 480px;
  max-height: 80vh;
  background: #fff;
  border-radius: 8px 24px 24px 8px;
  box-shadow: var(--book-wrap-shadow);
  position: relative;
  overflow: hidden;
}
.book-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, 
    rgba(0,0,0,.08) 0%, 
    rgba(255,255,255,.4) 20%, 
    rgba(0,0,0,.05) 50%, 
    rgba(255,255,255,.3) 80%, 
    rgba(0,0,0,.1) 100%);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}
.book-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -10px; bottom: -10px;
  width: 4px;
  background: var(--book-spine);
  transform: translateX(-50%);
  z-index: 6;
  border-radius: 2px;
  pointer-events: none;
}
.book-page {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.book-page-left {
  background: var(--book-page-left-bg);
  border-radius: 8px 0 0 8px;
}
.book-page-right {
  background: var(--book-page-right-bg);
  border-radius: 0 24px 24px 0;
}
.book-page h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: var(--book-page-h3-border);
}
.book-page ul {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-left: 18px;
}
.book-page li {
  margin-bottom: 6px;
  position: relative;
}
.book-page li::marker {
  color: var(--book-page-li-marker);
  font-size: 18px;
}
.book-page .rule-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: var(--book-page-h3-border);
}
.book-page .form-group {
  margin-bottom: 12px;
}
.book-page .form-group label {
  font-size: 14px;
}
.book-page .gsubmit {
  margin-top: 8px;
}
.book-page h2 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink);
}
.book-page > p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
}
.book-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--book-corner-bg);
  border-radius: 0 0 24px 0;
  pointer-events: none;
}
.book-page-left .book-corner {
  right: auto;
  left: 0;
  background: var(--book-corner-left-bg);
  border-radius: 0 0 0 8px;
}
@media (max-width: 768px) {
  .book-wrap {
    flex-direction: column;
    border-radius: 8px;
  }
  .modal-box.book-modal .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    z-index: 20;
  }
  .book-wrap::before,
  .book-wrap::after {
    display: none;
  }
  .book-page-left {
    border-radius: 8px 8px 0 0;
    border-bottom: var(--modal-right-border);
  }
  .book-page-right {
    border-radius: 0 0 8px 8px;
  }
}

.modal-body-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
@media (max-width: 768px) { .modal-body-grid { grid-template-columns: 1fr; } }
.modal-left { padding: 28px; overflow-y: auto; max-height: 70vh; }
.modal-right { padding: 28px; background: var(--modal-right-bg); overflow-y: auto; max-height: 70vh; border-left: var(--modal-right-border); }
@media (max-width: 768px) { .modal-right { border-left: none; border-top: var(--modal-right-border); } }
.modal-right h3 { font-size: 20px; font-weight: 900; margin-bottom: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.modal-right ul { font-size: 15px; color: var(--gray); line-height: 1.8; margin-left: 18px; }
.modal-right li { margin-bottom: 8px; }
.modal-right .rule-extra { margin-top: 16px; padding-top: 16px; border-top: var(--book-page-h3-border); }
.modal-left h2 { font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.modal-left > p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }
.modal-left .form-group { margin-bottom: 10px; }
.modal-left .form-group label { font-size: 14px; }
.modal-left .gsubmit { margin-top: 6px; }
.modal-right.status-panel { background: var(--modal-right-bg); }
.modal-right.status-panel .flow-board { background: var(--status-panel-flow-board-bg); border-radius: var(--radius-sm); padding: 20px; border: var(--status-panel-flow-board-border); }
.modal-right.status-panel h3 { margin-bottom: 10px; }
.modal-right.status-panel .desc { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.modal-left.record-panel h3 { font-size: 20px; font-weight: 900; margin-bottom: 14px; color: var(--ink); }
.modal-left.record-panel .record-list { display: flex; flex-direction: column; gap: 8px; }
.modal-left.record-panel .record-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 12px; border: var(--record-item-border); font-size: 14px; }
.modal-left.record-panel .record-date { color: #888; font-family: monospace; font-size: 12px; white-space: nowrap; }
.modal-left.record-panel .record-info { flex: 1; min-width: 0; }
.modal-left.record-panel .record-name { flex: 0 0 160px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-left.record-panel .record-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* 活动状态进度卡片 */
.progress-subtitle { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.progress-subtitle .progress-type { color: var(--brand); font-weight: 700; }
.progress-card { background: #fff; border-radius: 16px; padding: 24px 16px; border: 1px solid var(--gray-light); }
.progress-steps { display: flex; position: relative; }
.progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.progress-step .step-line { position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; background: var(--gray-light); }
.progress-step:first-child .step-line { display: none; }
.progress-step.done .step-line { background: #51CF66; }
.progress-step.active .step-line { background: linear-gradient(90deg, #51CF66 50%, var(--gray-light) 50%); }
.progress-step .step-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; background: var(--gray-light); color: var(--gray); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gray-light); position: relative; z-index: 1; }
.progress-step.done .step-dot { background: #51CF66; color: #fff; box-shadow: 0 0 0 2px #51CF66; }
.progress-step.active .step-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 2px var(--brand); }
.progress-step .step-label { font-size: 13px; font-weight: 600; color: var(--gray); margin-top: 10px; text-align: center; }
.progress-step.done .step-label { color: #51CF66; }
.progress-step.active .step-label { color: var(--brand); font-weight: 800; }
.progress-hint { margin-top: 16px; padding: 12px 16px; background: #F8F9FA; border-radius: 12px; font-size: 14px; color: var(--gray); line-height: 1.6; }

.modal-overlay.show .modal-box:not(.book-modal) { transform: scale(1) translateY(0); }
.rule-modal-box { border-top: 6px solid var(--brand); padding: 40px; overflow-x: hidden; }

.modal-close {
  position: absolute;
  top: 14px; right: 17px;
  background: none; border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: var(--modal-close-hover-bg); color: var(--modal-close-hover-color); }

.modal-box h2 { font-size: 26px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.modal-box > p { color: var(--gray); font-size: 15px; margin-bottom: 16px; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: var(--form-input-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand); box-shadow: var(--form-input-focus-shadow); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ================= 奖品 Tooltip ================= */
.prize-tooltip { position: relative; }
.rank-prize-col {
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}
.rank-prize-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  height: 26px;
  min-height: 26px;
}
.rank-prize-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FF9F43);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 28px;
  box-shadow: var(--prize-badge-shadow);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.rank-prize-col .label {
  text-align: center;
  margin-left: 0;
}
.prize-tooltip:hover .rank-prize-icon {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 8px 28px rgba(255,215,0,.5);
}
.prize-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FF9F43);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin: 0 auto 4px;
  box-shadow: var(--prize-badge-shadow);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
}
.prize-tooltip:hover .prize-badge {
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 0 8px 28px rgba(255,215,0,.5);
}
.tooltip-box {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) scale(.85);
  background: #fff;
  border-radius: 17px;
  padding: 20px;
  min-width: 168px;
  box-shadow: var(--tooltip-box-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.34,1.56,.64,1), transform .25s cubic-bezier(.34,1.56,.64,1);
  z-index: 99999;
  border: var(--tooltip-border);
  margin-bottom: 12px;
}
.rank-prize-col .tooltip-box {
  left: auto;
  right: 0;
  transform: scale(.85);
  width: 520px;
  min-width: 320px;
  max-width: calc(100vw - 48px);
  max-height: none;
  overflow: visible;
}
.prize-tooltip:hover .tooltip-box,
.prize-tooltip.tooltip-visible .tooltip-box {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: all;
}
.rank-prize-col:hover .tooltip-box,
.rank-prize-col.tooltip-visible .tooltip-box {
  transform: scale(1);
}
.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top-color: #fff;
}
.rank-prize-col .tooltip-box::after {
  left: auto;
  right: 28px;
  transform: none;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--gray-light);
}
.tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tooltip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  background: var(--tooltip-item-bg);
  padding: 10px 12px;
  border-radius: 10px;
  border: var(--tooltip-item-border);
  text-align: left;
}
.tooltip-item .icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  margin-top: 1px;
  align-self: flex-start;
}
.tooltip-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

/* ================= 参与院校 ================= */
.schools-zone { padding: 48px; margin-bottom: 40px; }
.schools-scroll {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.schools-scroll:active { cursor: grabbing; }
.schools-track {
  display: flex;
  gap: 28px;
  animation: schoolMarquee 30s linear infinite;
  width: max-content;
}
.schools-track.is-empty {
  width: 100%;
  animation: none;
  justify-content: center;
}
.schools-scroll:hover .schools-track { animation-play-state: paused; }
@keyframes schoolMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.school-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 11px;
  border-radius: var(--radius-sm);
  background: var(--school-item-bg);
  min-width: 84px;
  transition: all .25s ease;
  flex-shrink: 0;
}
.school-item:hover {
  background: var(--school-item-hover-bg);
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(82,122,247,.15);
}
.school-item img {
  width: 101px; height: 101px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--school-img-border);
  box-shadow: var(--school-img-shadow);
}
.school-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ================= 页脚 ================= */
.gfooter {
  text-align: center;
  padding: 42px 17px;
  color: var(--footer-color);
  font-size: 14px;
}

/* ================= 滚动显示动画 ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s cubic-bezier(.34,1.56,.64,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================= 响应式 ================= */
@media (max-width: 1400px) {
  .grow-wrap { padding: 0 28px 80px; }
}

@media (max-width: 900px) {
  .hero { padding: 80px 16px 50px; }
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 22px; }
  .section-title { font-size: 36px; }
  .rank-zone, .media-zone, .schools-zone { padding: 32px; }
  .guide-content { flex-direction: column; text-align: center; }
  .rank-data { gap: 20px; }
  .rank-data-col { min-width: 64px; }
  .rank-prize-col { min-width: 64px; max-width: 64px; }
  .rank-prize-col .tooltip-box { min-width: 300px; max-width: calc(100vw - 32px); max-height: none; overflow: visible; }
  .rank-prize-inline { height: 22px; min-height: 22px; }
  .rank-prize-icon { width: 24px; height: 24px; flex-basis: 24px; font-size: 13px; }
  .rank-data-col .num { font-size: 22px; }
  .rank-data-col .label { font-size: 14px; }
  .rank-avatar { width: 56px; height: 56px; }
  .rank-info .name { font-size: 20px; }
  .school-item { min-width: 100px; padding: 16px 12px; }
  .school-item img { width: 120px; height: 120px; }
  .school-item span { font-size: 14px; }
}
@media (max-width: 600px) {
  .grow-page { font-size: 20px; }
  .hero h1 { font-size: 42px; }
  .hero-badge { font-size: 16px; }
  .section-title { font-size: 28px; }
  .act-card h3 { font-size: 26px; }
  .act-card p { font-size: 18px; }
  .rank-data { gap: 14px; }
  .rank-data-col { min-width: 56px; }
  .rank-prize-col { min-width: 56px; max-width: 56px; }
  .rank-prize-col .tooltip-box { min-width: 260px; max-width: calc(100vw - 24px); padding: 16px; max-height: none; overflow: visible; }
  .rank-prize-inline { height: 18px; min-height: 18px; }
  .rank-prize-icon { width: 22px; height: 22px; flex-basis: 22px; font-size: 12px; }
  .rank-prize-col .label { margin-left: 0; }
  .rank-data-col .num { font-size: 18px; }
  .rank-avatar { width: 48px; height: 48px; }
  .rank-info .name { font-size: 17px; }
  .flow-board { padding: 28px; }
  .flow-dot { width: 40px; height: 40px; font-size: 16px; }
  .flow-label { font-size: 14px; }
  .modal-box { padding: 36px; }
}

/* ===== Q版萌系特色装饰 ===== */
body[data-theme="chibi"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,182,193,.15) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(135,206,235,.15) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255,240,245,.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body[data-theme="chibi"] .g-card {
  border: 4px solid rgba(255,105,180,.25);
  border-radius: 34px;
  box-shadow: 0 12px 48px rgba(255,105,180,.15);
}
body[data-theme="chibi"] .act-card { border: 5px solid rgba(255,182,193,.4); border-radius: 48px; }
body[data-theme="chibi"] .act-card::before { height: 8px; border-radius: 48px 48px 0 0; }
body[data-theme="chibi"] .act-btn {
  border-radius: 35px;
  border: 3px solid rgba(255,105,180,.3);
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  color: #fff;
  font-size: 17px;
  padding: 8px 18px;
}
body[data-theme="chibi"] .act-btn:hover { animation: btnBounce .5s ease; }
@keyframes btnBounce {
  0%,100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.1); }
  50% { transform: translateY(0) scale(1.05); }
}
body[data-theme="chibi"] .section-title {
  color: #FF69B4;
  text-shadow: 2px 2px 0 #FFB6C1, 4px 4px 0 rgba(255,182,193,.3), 0 0 20px rgba(255,105,180,.2);
}
body[data-theme="chibi"] .hero h1 {
  text-shadow:
    0 0 10px rgba(255,255,255,.8),
    0 0 30px rgba(255,105,180,.5),
    0 0 60px rgba(135,206,235,.3);
}
body[data-theme="chibi"] .rank-tab { border-radius: 50px; }
body[data-theme="chibi"] .rank-tab.active { box-shadow: 4px 4px 0 #FFB6C1; border-radius: 50px; }

/* ===== 夏日海滩特色装饰 ===== */
body[data-theme="summer"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.08) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
body[data-theme="summer"] .g-card {
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(0,180,216,.2);
  box-shadow: 0 10px 40px rgba(0,150,200,.15);
  border-radius: 28px;
}
body[data-theme="summer"] .g-card:hover { box-shadow: 0 24px 72px rgba(0,180,216,.2); border-color: rgba(0,180,216,.4); }
body[data-theme="summer"] .act-card { border: 3px solid rgba(0,180,216,.25); border-radius: 40px; }
body[data-theme="summer"] .act-card::before { height: 6px; background: linear-gradient(90deg, #00B4D8, #2EC4B6, #FF9F1C); border-radius: 40px 40px 0 0; }
body[data-theme="summer"] .act-btn {
  background: linear-gradient(135deg, #00B4D8, #2EC4B6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,180,216,.3);
  font-size: 17px;
  padding: 8px 18px;
}
body[data-theme="summer"] .act-btn:hover { box-shadow: 0 6px 20px rgba(0,180,216,.5); }
body[data-theme="summer"] .section-title {
  color: #fff;
  text-shadow: 0 0 15px rgba(0,180,216,.4), 0 2px 10px rgba(0,0,0,.2);
}
body[data-theme="summer"] .hero h1 {
  text-shadow:
    0 0 10px rgba(255,255,255,.8),
    0 0 30px rgba(0,180,216,.5),
    0 0 60px rgba(255,159,28,.3);
}
body[data-theme="summer"] .rank-tab { border-radius: 50px; }
body[data-theme="summer"] .rank-tab.active { box-shadow: 4px 4px 0 #FF9F1C; border-radius: 50px; }
body[data-theme="summer"] .guide-banner { background: linear-gradient(135deg, #00B4D8, #2EC4B6); }

/* ================= 表单基础样式 ================= */
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #E9ECEF;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand); box-shadow: var(--form-input-focus-shadow); }
.form-group textarea { resize: vertical; min-height: 60px; }

.gupload {
  border: 2px dashed #E9ECEF;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--gray);
  font-size: 14px;
  transition: all .2s ease;
  margin-bottom: 10px;
  background: #fff;
}
.gupload:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.gupload .big { font-size: 24px; display: block; margin-bottom: 4px; }
.gupload .upload-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsubmit {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, var(--grass), #40C057);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all .25s ease;
}
.gsubmit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(105,219,124,.4); }

.flow-board {
  background: var(--flow-board-bg);
  border-radius: var(--radius-sm);
  padding: 36px;
  overflow: hidden;
}
.flow-board h4 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
  padding: 16px 0;
}
.flow-line::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 5px;
  background: #E9ECEF;
  border-radius: 3px;
  z-index: 0;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.flow-step.done ~ .flow-step.done::before,
.flow-step.done:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -50%;
  width: 100%;
  height: 5px;
  background: var(--grass);
  z-index: -1;
}
.flow-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  background: #E9ECEF; border: 5px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  transition: all .3s ease;
}
.flow-step.done .flow-dot { background: var(--grass); color: #fff; }
.flow-step.current .flow-dot {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 8px rgba(82,122,247,.18);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100%{box-shadow:0 0 0 5px rgba(82,122,247,.15);}
  50%{box-shadow:0 0 0 14px rgba(82,122,247,.06);}
}
.flow-label { font-size: 16px; font-weight: 700; color: var(--gray); white-space: nowrap; }
.flow-step.done .flow-label { color: var(--grass); }
.flow-step.current .flow-label { color: var(--brand); font-weight: 800; }

.flow-hint {
  background: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  font-size: 20px;
  color: var(--brand);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= 活动中心四宫格 ================= */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  min-height: 472px;
  align-content: start;
}
.activity-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
}
.activity-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(82,122,247,.15);
}
.activity-thumb {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
}
.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.activity-card:hover .activity-thumb img {
  transform: scale(1.05);
}
.activity-info {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.activity-info .activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.activity-info h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.activity-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand);
}
.activity-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.activity-status.status-active {
  background: #e6f9e9;
  color: #40c057;
}
.activity-status.status-end {
  background: #f1f3f5;
  color: #868e96;
}
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}
.pg-btn {
  padding: 8px 20px;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.pg-btn:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
}
.pg-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  border-color: #ced4da;
  color: #868e96;
}
.pg-info {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
}
@media (max-width: 600px) {
  .activity-grid { grid-template-columns: 1fr; }
}

/* ================= 空状态提示 ================= */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray);
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state .empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state .empty-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ================= 弹窗基础 ================= */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(30,30,40,.6); backdrop-filter: blur(14px); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-box { overflow-x: hidden; background: #fff; border-radius: var(--radius); padding: 24px; width: 92%; max-width: 476px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-box.activity-modal-box { max-width: 720px; padding: 20px; margin-top: 50px; }
.modal-close { position: absolute; top: 14px; right: 17px; background: none; border: none; font-size: 20px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 10; }


/* ===== 空状态样式 ===== */
.rank-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  margin: 16px 0;
}
.rank-empty-inner {
  text-align: center;
  padding: 30px 20px;
}
.rank-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.rank-empty-title {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  margin-bottom: 8px;
}
.rank-empty-desc {
  font-size: 13px;
  color: #999;
}

/* 暂无数据选项样式 */
select option:disabled {
  color: #bbb;
  font-style: italic;
}

/* Grow page header override: keep login links on one line after adding Grow nav. */
.headerBox .nav {
  width: 620px !important;
  justify-content: flex-start !important;
}
.headerBox .nav > li {
  flex: 0 0 auto;
  margin-right: 14px !important;
}
.headerBox .nav > li:last-child {
  margin-right: 0 !important;
}
.navTools,
.navTools li,
.navTools li a {
  white-space: nowrap;
  word-break: keep-all;
}
.navTools li a {
  display: inline-block;
}

/* Grow page header dropdown reset: keep the shared header user menu compact here only. */
.headerBox .navTools .navNameOut .loginSeting {
  top: 67px;
  right: 0;
  z-index: 10020;
  width: 112px;
  padding: 8px 0;
  line-height: normal;
  box-sizing: border-box;
}
.headerBox .navTools .navNameOut .loginSeting p {
  display: flex;
  align-items: center;
  clear: none;
  height: 40px;
  line-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 0;
  color: #414E61;
  box-sizing: border-box;
}
.headerBox .navTools .navNameOut .loginSeting p img {
  float: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  max-width: none;
  margin: 0 8px 0 0;
  object-fit: contain;
}
.headerBox .navTools .navNameOut .loginSeting p span {
  float: none;
  display: block;
  height: 40px;
  line-height: 40px;
}
.headerBox .navTools .navNameOut .loginSeting p span a {
  display: inline;
  height: auto;
  line-height: 40px;
  margin-left: 0;
  color: #414E61;
  font-size: 14px;
}
.headerBox .navTools .navNameOut .loginSeting p span a:hover {
  color: #527AF7;
}
/* ================= 登录提示样式 ================= */
.grow-login-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: #909399;
  font-size: 14px;
  font-weight: 500;
}

.grow-icon-lock {
  width: 40px;
  height: 40px;
  color: #C0C4CC;
  opacity: 0.8;
}
