/* 拾光同学录 - 潮流深色玻璃拟态主题 */
:root {
  --bg: #0a0d16;
  --bg-2: #0f1424;
  --panel: rgba(255, 255, 255, .055);
  --panel-border: rgba(255, 255, 255, .09);
  --text: #e8eaf2;
  --muted: #9aa3b8;
  --violet: #7c5cff;
  --cyan: #2dd4bf;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #7c5cff, #2dd4bf);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
.container { width: min(1120px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }

/* 极光背景 */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.aurora span:nth-child(1) { width: 45vw; height: 45vw; background: #5b3fd4; top: -18vw; left: -10vw; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; background: #0e7490; bottom: -15vw; right: -8vw; }
.aurora span:nth-child(3) { width: 26vw; height: 26vw; background: #9d2b8b; top: 35%; left: 45%; opacity: .25; }

/* 导航 */
.nav-wrap { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(10, 13, 22, .7); border-bottom: 1px solid var(--panel-border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 9px; }
.logo-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 14px rgba(124, 92, 255, .8); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: .95rem; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel); }
.nav-admin { border: 1px solid var(--panel-border); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger i { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { padding: 92px 0 64px; text-align: center; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--cyan); font-size: .85rem; letter-spacing: 2px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.25; margin: 22px 0 16px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 26px; border-radius: 12px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 0; transition: .2s; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(124, 92, 255, .35); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 92, 255, .5); }
.btn-ghost { background: var(--panel); border: 1px solid var(--panel-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 9px; }
.btn-danger { background: rgba(244, 63, 94, .14); color: #fb7185; border: 1px solid rgba(244, 63, 94, .3); }

/* 通用区块 */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1.6rem; font-weight: 800; }
.section-head h2::before { content: ""; display: inline-block; width: 8px; height: 22px; margin-right: 12px; border-radius: 4px; background: var(--grad); vertical-align: -4px; }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.stat { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 20px; text-align: center; backdrop-filter: blur(10px); }
.stat b { display: block; font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .85rem; }

/* 卡片 */
.glass { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); backdrop-filter: blur(10px); }

/* 双排横向跑马灯照片墙 */
.marquee-zone { position: relative; }
.marquee { display: flex; gap: 16px; width: max-content; animation: scrollx 42s linear infinite; }
.marquee.reverse { animation-direction: reverse; animation-duration: 52s; }
.marquee-zone:hover .marquee { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { width: 250px; height: 168px; border-radius: 14px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--panel-border); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.marquee-item:hover img { transform: scale(1.07); }
.marquee-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: .8rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.marquee-item.ph { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.marquee-item.ph.t1 { background: linear-gradient(135deg, #312e81, #7c5cff); }
.marquee-item.ph.t2 { background: linear-gradient(135deg, #134e4a, #2dd4bf); }
.marquee-item.ph.t3 { background: linear-gradient(135deg, #831843, #f472b6); }
.marquee-item.ph.t4 { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }

/* 同学名录 */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.person { padding: 24px 20px; text-align: center; transition: .25s; }
.person:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.avatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.05rem; margin-bottom: 4px; }
.person .role { color: var(--cyan); font-size: .8rem; margin-bottom: 10px; }
.person .bio { color: var(--muted); font-size: .85rem; min-height: 2.6em; }
.tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: .72rem; padding: 2px 10px; border-radius: 999px; background: rgba(124, 92, 255, .16); color: #b9a8ff; border: 1px solid rgba(124, 92, 255, .3); }

/* 留言墙 */
.msg-grid { columns: 3 280px; column-gap: 16px; }
.msg-card { break-inside: avoid; margin-bottom: 16px; padding: 20px; }
.msg-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.msg-card .who .avatar { width: 38px; height: 38px; font-size: .95rem; margin: 0; }
.msg-card .who b { font-size: .92rem; }
.msg-card .who time { display: block; color: var(--muted); font-size: .75rem; }
.msg-card .txt { color: #cdd3e1; font-size: .93rem; word-break: break-word; }

/* 表单 */
.form-card { max-width: 640px; margin: 26px auto 0; padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.04); color: var(--text); font: inherit; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.field textarea { min-height: 110px; resize: vertical; }

/* 文章 */
.article { max-width: 760px; margin: 0 auto; padding: 40px; }
.article h1 { font-size: 1.7rem; margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: .85rem; margin-bottom: 26px; }
.article .content { color: #cdd3e1; white-space: pre-wrap; }
.news-list { max-width: 760px; margin: 0 auto; }
.news-item { display: flex; gap: 18px; padding: 22px; margin-bottom: 14px; align-items: flex-start; transition: .2s; }
.news-item:hover { border-color: rgba(45, 212, 191, .4); }
.news-date { flex: none; text-align: center; padding: 8px 12px; border-radius: 12px; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.3); }
.news-date b { display: block; font-size: 1.25rem; }
.news-date span { font-size: .72rem; color: var(--muted); }
.news-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.news-item p { color: var(--muted); font-size: .87rem; }

/* 提示条 */
.alert { max-width: 640px; margin: 0 auto 20px; padding: 12px 18px; border-radius: 12px; font-size: .9rem; }
.alert-ok { background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .35); color: #5eead4; }
.alert-err { background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #fda4af; }

/* 页脚 */
.footer { border-top: 1px solid var(--panel-border); margin-top: 70px; padding: 34px 0 40px; text-align: center; font-size: .88rem; }
.footer .muted { font-size: .8rem; }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty .ico { font-size: 2.6rem; display: block; margin-bottom: 12px; }

/* 移动端 */
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 44px; }
}
@media (max-width: 680px) {
  .nav-burger { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(12, 16, 28, .97); border-bottom: 1px solid var(--panel-border); padding: 12px 4%; gap: 4px; }
  .nav-links.open { display: flex; }
  .marquee-item { width: 180px; height: 124px; }
  .article { padding: 26px 20px; }
  .quote-grid { grid-template-columns: 1fr; }
  .daily-text { font-size: 1.25rem; }
}

/* ===== 精品语录 ===== */
.daily-quote { border: 1px solid rgba(124, 92, 255, .35); background: linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(45, 212, 191, .08)); padding: 34px 34px 26px; border-radius: 20px; margin-bottom: 34px; }
.daily-label { font-size: .8rem; letter-spacing: .1em; color: #7dd3fc; margin-bottom: 16px; }
.daily-text { font-size: 1.55rem; line-height: 1.7; font-weight: 700; margin: 0 0 18px; }
.daily-meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { padding: 7px 18px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); font-size: .88rem; text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--accent-1); color: var(--accent-1); }
.chip.on { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 600; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.quote-card { position: relative; padding: 26px 22px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s; }
.quote-card:hover { transform: translateY(-3px); }
.quote-card p { margin: 0; line-height: 1.8; font-size: .96rem; flex: 1; }
.qmark { position: absolute; top: 6px; right: 16px; font-size: 3rem; font-family: Georgia, serif; opacity: .25; line-height: 1; }
.qmeta { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.badge { padding: 3px 12px; border-radius: 999px; font-size: .75rem; background: rgba(124, 92, 255, .15); color: #a5b4fc; }
.tip { padding: 16px 22px; border-radius: 14px; font-size: .9rem; margin-top: 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--panel-border); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.tbl tr:last-child td { border-bottom: none; }
