/* 卿雲漢服社 · 全站样式 —— 卿云中式配色 × 卡片式布局 */
:root {
  --bg: #fdf5e8;
  --card: #fffdf8;
  --card-2: #fbf3e4;
  --border: #ead9bd;
  --orange: #ed811f;
  --orange-soft: #f5a95c;
  --red: #871a19;
  --red-deep: #b70408;
  --brown: #b0855d;
  --brown-light: #cfaa88;
  --ink: #3d3227;
  --ink-2: #6b5d4b;
  --ink-3: #9c8c72;
  --shadow: 0 6px 24px rgba(135, 26, 25, .08);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Serif SC Variable", "Noto Serif SC", "STKaiti", "楷体", "微软雅黑", serif;
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}
/* 米色底纹 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, var(--glow-1), transparent 32%),
    radial-gradient(circle at 88% 20%, var(--glow-2), transparent 30%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

.font-kai { font-family: "jiangxizhuokai", "Noto Serif SC Variable", "楷体", serif; }

/* ============ 顶栏 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .name { font-size: 21px; color: var(--red); letter-spacing: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.main-nav a {
  padding: 6px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--orange); background: var(--card-2); }
.main-nav a.on { color: #fff; background: var(--orange); }
/* 招新报名：高亮入口 */
.main-nav a.nav-cta { color: #fff; background: var(--red); margin-left: 4px; font-weight: 600; }
.main-nav a.nav-cta:hover { color: #fff; background: var(--red-deep); }
.main-nav a.nav-cta.on { background: var(--red-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 6px 5px 14px; width: 200px;
}
.header-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 13px; }
.header-search button {
  border: 0; background: var(--orange); color: #fff; border-radius: 999px;
  width: 26px; height: 26px; line-height: 1; font-size: 13px;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; flex-shrink: 0; }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.user-chip a { color: var(--orange); }
.nav-toggle { display: none; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 15px; }

/* ============ 页脚 ============ */
.site-footer { background: #1d1512; color: #cdbba4; margin-top: 70px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 44px 20px 28px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px;
}
.site-footer h4 { color: #f0e2cc; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.site-footer p, .site-footer a { font-size: 13px; line-height: 2; color: #a89479; }
.site-footer a:hover { color: var(--orange-soft); }
.footer-bottom {
  border-top: 1px solid #35281f; text-align: center;
  padding: 14px 20px; font-size: 12px; color: #7d6a53;
}
.footer-bottom img { display: inline-block; height: 13px; vertical-align: -2px; margin: 0 4px; }

/* ============ 通用布局 ============ */
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 20px 40px; }
.page-title { text-align: center; margin: 18px 0 30px; }
.page-title h1 { font-size: 34px; color: var(--red); letter-spacing: 5px; font-weight: 400; }
.page-title .sub { color: var(--brown); font-size: 13px; letter-spacing: 6px; margin-top: 6px; text-transform: uppercase; }
.page-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 2px;
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; color: var(--red); letter-spacing: 3px; font-weight: 400; }
.section-head h2::before { content: "❖ "; color: var(--orange); font-size: 15px; }
.section-head .more { font-size: 13px; color: var(--ink-3); }
.section-head .more:hover { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-2);
  border-radius: 10px; padding: 8px 18px; font-size: 14px; transition: all .2s;
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #e06a10);
  border: 0; color: #fff; box-shadow: 0 4px 14px var(--shadow);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-red { background: var(--red); border: 0; color: #fff; }
.btn-red:hover { color: #fff; filter: brightness(1.1); }
.btn-sm { padding: 4px 12px; font-size: 12px; border-radius: 8px; }
.btn-ghost-danger { border-color: #dcb; color: var(--red-deep); background: transparent; }
.btn-ghost-danger:hover { background: #fdf0f0; border-color: var(--red-deep); }

.tag {
  display: inline-block; padding: 1px 10px; font-size: 11px; border-radius: 999px;
  background: var(--card-2); color: var(--orange); margin-right: 6px;
}
.tag.red { background: rgba(183, 4, 8, .1); color: var(--red-deep); }
.tag.brown { background: rgba(176, 133, 93, .14); color: var(--brown); }

.muted { color: var(--ink-3); font-size: 13px; }
.empty-tip { text-align: center; color: var(--ink-3); padding: 46px 0; }
.empty-tip .zh { font-size: 30px; color: var(--brown-light); font-family: "jiangxizhuokai", serif; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.pager button {
  min-width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--ink-2); font-size: 13px;
}
.pager button.cur { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager button:disabled { opacity: .45; cursor: default; }

/* 表单 */
.form-item { margin-bottom: 15px; }
.form-item label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; background: #fff; outline: none; transition: border .2s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--orange); }
.form-item textarea { resize: vertical; min-height: 90px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: 13px; min-height: 20px; }
.form-msg.ok { color: #4a7c59; }
.form-msg.err { color: var(--red-deep); }

/* ============ 首页 ============ */
.hero {
  position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 24px;
  height: 380px; box-shadow: var(--shadow);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 15, 5, .05) 30%, rgba(30, 15, 5, .62));
}
.hero-slide .txt { position: absolute; left: 40px; bottom: 36px; color: #fff; }
.hero-slide .txt h2 { font-size: 34px; letter-spacing: 4px; font-weight: 400; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-slide .txt p { margin: 6px 0 14px; opacity: .92; }
.hero-slide .txt a {
  display: inline-block; padding: 7px 22px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 14px;
}
.hero-dots { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 7px; z-index: 5; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: all .25s; }
.hero-dots i.on { width: 24px; border-radius: 6px; background: #fff; }

.home-grid { display: grid; grid-template-columns: 300px 1fr 300px; gap: 18px; align-items: start; }
.col-side { display: grid; gap: 18px; position: sticky; top: 78px; }

/* 社团介绍卡 */
.intro-card { text-align: center; }
.intro-card .cover { border-radius: 12px; margin: 0 auto 14px; max-height: 200px; object-fit: cover; width: 100%; }
.intro-card h3 { font-size: 20px; color: var(--red); letter-spacing: 2px; margin-bottom: 8px; }
.intro-card .badge {
  display: inline-block; margin-bottom: 10px; padding: 1px 12px; border-radius: 999px;
  font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--red), #c0392b);
}
.intro-card p { font-size: 13px; color: var(--ink-2); text-align: left; white-space: pre-line; max-height: 150px; overflow: hidden; }
.intro-depts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.intro-depts span {
  font-size: 12px; padding: 5px 0; border-radius: 8px; text-align: center; color: #fff;
}
.intro-contact { display: flex; justify-content: space-around; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.intro-contact a { font-size: 12px; color: var(--ink-3); display: grid; justify-items: center; gap: 2px; }
.intro-contact a:hover { color: var(--orange); }
.intro-contact i { font-style: normal; font-size: 17px; }

/* 公告 + 倒计时 */
.notice-item { display: flex; gap: 8px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.notice-item:last-child { border-bottom: 0; }
.notice-item .t {
  flex-shrink: 0; font-size: 11px; padding: 0 8px; border-radius: 999px; align-self: flex-start;
  background: rgba(183, 4, 8, .09); color: var(--red-deep); margin-top: 3px;
}
.countdown { text-align: center; margin-top: 12px; }
.countdown .nums { display: flex; justify-content: center; gap: 8px; }
.countdown .cell {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  min-width: 52px; padding: 7px 4px 4px;
}
.countdown .cell b { font-size: 22px; color: var(--red); font-weight: 400; }
.countdown .cell span { display: block; font-size: 10px; color: var(--ink-3); }

/* 招新卡 */
.recruit-card { text-align: center; background: linear-gradient(160deg, #fff6e9, #fdecd4); }
.recruit-card h3 { font-size: 19px; color: var(--red); margin-bottom: 6px; }
.recruit-card p { font-size: 12px; color: var(--brown); margin-bottom: 14px; }

/* 活动卡片流 */
.event-card {
  display: flex; gap: 16px; padding: 14px; margin-bottom: 14px;
  transition: transform .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card .pic {
  width: 210px; height: 130px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--card-2);
}
.event-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .pic img { transform: scale(1.06); }
/* 无图占位：素材为空时（如旧站镜像图已下线）显示淡色底纹，避免出现空白块 */
.pic-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: linear-gradient(135deg, #fbf3e4 0%, #f4e3cd 100%);
  color: rgba(176, 133, 93, .6); font-family: var(--font-kai, serif);
  font-size: 15px; letter-spacing: .18em; user-select: none;
}
.event-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.event-card h3 a:hover { color: var(--orange); }
.event-card .desc {
  font-size: 13px; color: var(--ink-2); max-height: 44px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.event-card .meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.event-card .go {
  align-self: center; flex-shrink: 0; font-size: 12px; color: var(--orange);
  border: 1px solid var(--orange-soft); padding: 5px 14px; border-radius: 999px;
}
.event-card .go:hover { background: var(--orange); color: #fff; }

/* 小组件 */
.widget-title { font-size: 15px; color: var(--red); letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.widget-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--orange); }
/* 音乐小卡 */
.mini-music { display: flex; gap: 12px; align-items: center; }
.mini-music img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.mini-music .t { font-size: 14px; color: var(--ink); }
.mini-music .a { font-size: 12px; color: var(--ink-3); }
.mini-music .play {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: #fff; border: 0; font-size: 13px;
}
/* 天气 */
.weather .now { display: flex; align-items: center; gap: 12px; }
.weather .now .deg { font-size: 34px; color: var(--red); }
.weather .now .deg small { font-size: 15px; }
.weather .now .d { font-size: 13px; color: var(--ink-2); }
.weather .days { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.weather .days div { text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.9; }
.weather .days b { color: var(--ink-2); font-weight: 400; }
/* 日历 */
.calendar table { width: 100%; border-collapse: collapse; }
.calendar th { font-size: 11px; color: var(--ink-3); font-weight: 400; padding: 3px 0; }
.calendar td { text-align: center; font-size: 13px; padding: 4px 0; color: var(--ink-2); }
.calendar td.today span {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: #fff; align-items: center; justify-content: center;
}
.calendar td.dim { color: #d8c8ab; }

/* 快捷入口 */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-links a {
  display: grid; justify-items: center; gap: 4px; padding: 14px 0;
  border-radius: 12px; background: var(--card-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--ink-2); transition: all .2s;
}
.quick-links a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.quick-links i { font-style: normal; font-size: 21px; }

/* ============ 详情页 ============ */
.detail-hero { height: 300px; border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 24px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .mask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,15,5,.6)); }
.detail-hero h1 {
  position: absolute; left: 34px; bottom: 26px; color: #fff; font-size: 30px;
  letter-spacing: 3px; font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.article-body { font-size: 15px; line-height: 2.1; white-space: pre-line; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 22px; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--ink-2); }
.article-meta b { color: var(--red); font-weight: 400; }

/* ============ 照片墙 ============ */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.album-card { overflow: hidden; cursor: pointer; transition: transform .2s; }
.album-card:hover { transform: translateY(-4px); }
.album-card .pic { height: 210px; overflow: hidden; }
.album-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .pic img { transform: scale(1.07); }
.album-card .info { padding: 14px 16px; }
.album-card h3 { font-size: 16px; color: var(--ink); }
.album-card p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
/* 照片墙：照片 / 视频混排 */
.photo-grid .pv-item, .album-card .pic { position: relative; }
.photo-grid .pv-item { height: 200px; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; transition: transform .18s ease, box-shadow .18s ease; }
.photo-grid .pv-item:hover { transform: scale(1.06); box-shadow: 0 6px 22px rgba(0,0,0,.18); z-index: 5; }
.photo-grid .pv-item img, .photo-grid .pv-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .pv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  display: grid; place-items: center; font-size: 17px; pointer-events: none; padding-left: 3px;
}
.pv-item:hover .pv-play { background: rgba(0,0,0,.72); }
.album-card .pic video { width: 100%; height: 100%; object-fit: cover; }
.album-card .pic { transition: transform .18s ease, box-shadow .18s ease; }
.album-card:hover .pic { transform: scale(1.04); box-shadow: 0 6px 22px rgba(0,0,0,.16); z-index: 5; }
.album-video-tag {
  position: absolute; right: 10px; bottom: 10px; font-size: 12px; padding: 2px 10px;
  border-radius: 20px; background: rgba(0,0,0,.55); color: #fff;
}
/* 视频原地播放后的「放大」按钮 */
.photo-grid .pv-enlarge {
  position: absolute; right: 8px; top: 8px; border: none; cursor: pointer;
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
  background: rgba(0,0,0,.55); color: #fff;
}
.photo-grid .pv-enlarge:hover { background: rgba(0,0,0,.78); }

/* ============ 留言墙 ============ */
.chatter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chatter-item {
  border-radius: 14px; padding: 16px; min-height: 120px; position: relative;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: rotate(-.4deg); transition: transform .2s;
}
.chatter-item:nth-child(2n) { transform: rotate(.5deg); }
.chatter-item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.chatter-item .txt { font-size: 14px; line-height: 1.8; word-break: break-all; }
.chatter-item .who { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: right; }

/* ============ 音乐页 ============ */
.music-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.music-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px dashed var(--border); cursor: pointer; transition: background .2s;
}
.music-list li:hover { background: var(--card-2); }
.music-list li.cur { background: linear-gradient(90deg, var(--card-2), transparent); }
.music-list li.cur .idx { color: var(--orange); }
.music-list .idx { width: 26px; color: var(--ink-3); font-size: 13px; text-align: center; }
.music-list .cover { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.music-list .t { font-size: 15px; }
.music-list .a { font-size: 12px; color: var(--ink-3); }
.music-list .dur { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.lrc-box { height: 380px; overflow: hidden; position: relative; text-align: center; mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.lrc-inner { position: absolute; width: 100%; transition: transform .5s; }
.lrc-inner p { padding: 7px 0; font-size: 14px; color: var(--ink-3); transition: all .3s; }
.lrc-inner p.cur { color: var(--orange); font-size: 17px; transform: scale(1.04); }

/* ============ 时光邮局 ============ */
.po-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.po-tabs a {
  padding: 7px 20px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); color: var(--ink-2); background: #fff;
}
.po-tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.letter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.letter-card { padding: 18px; position: relative; overflow: hidden; }
.letter-card::before {
  content: "✉"; position: absolute; right: -8px; bottom: -14px; font-size: 76px; opacity: .07;
}
.letter-card .to { font-size: 15px; color: var(--red); margin-bottom: 8px; }
.letter-card .body {
  font-size: 13px; color: var(--ink-2); max-height: 120px; overflow: hidden; white-space: pre-line;
  letter-spacing: 3px;
}
.letter-card .foot { margin-top: 12px; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }
.wax-seal {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #c0392b, #7b1a12); color: #f5d9a8;
  font-size: 20px; box-shadow: 0 3px 8px rgba(123,26,18,.4); margin-bottom: 10px;
}

/* ============ 登录/注册/报名 ============ */
.auth-wrap { max-width: 430px; margin: 46px auto; }
.auth-wrap .card { padding: 32px; }
.auth-wrap h1 { text-align: center; font-size: 26px; color: var(--red); letter-spacing: 3px; font-weight: 400; margin-bottom: 4px; }
.auth-wrap .sub { text-align: center; font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.auth-switch a { color: var(--orange); }

/* 快捷登录（QQ / 微信） */
.oauth-row { margin-top: 20px; }
.oauth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin-bottom: 14px; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line, rgba(0,0,0,.1)); }
.oauth-btns { display: flex; gap: 12px; }
.oauth-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 8px; font-size: 14px; text-decoration: none; color: #fff; transition: opacity .15s; }
.oauth-btn:hover { opacity: .85; }
.oauth-btn.qq { background: #12b7f5; }
.oauth-btn.wx { background: #09bb07; }
.oauth-btn .qb { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: inline-block; position: relative; flex: none; }
.oauth-btn .qb.qq::after { content: 'Q'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #12b7f5; font-style: normal; }
.oauth-btn .qb.wx::after { content: '微'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #09bb07; font-style: normal; }

/* 注册页：手机/邮箱切换 + 验证码 */
.reg-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.reg-tab { flex: 1; padding: 9px 0; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 8px; background: transparent; color: var(--ink-2, #555); font-size: 14px; cursor: pointer; transition: all .15s; }
.reg-tab.on { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); font-weight: 600; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; font-size: 13px; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #dc2626; }
/* 注册页渠道选项：未配置的置灰标注 */
.reg-tab { position: relative; }
.reg-tab.off { opacity: .55; }
.reg-tab .off-tag {
  position: absolute; top: -7px; right: -6px;
  font-size: 10px; line-height: 1; padding: 3px 5px;
  border-radius: 6px; background: var(--ink-3, #9ca3af); color: #fff;
  pointer-events: none;
}

/* 网易云歌曲（官方外链播放） */
.music-list .ne-item .dur { color: #d33a31; }
.ne-title { text-align: center; font-size: 14px; color: var(--ink-2, #555); margin-top: 10px; }
#ne-frame iframe { border-radius: 10px; background: transparent; display: block; }

/* 搜索结果 */
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 200; max-height: 340px; overflow: auto; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; font-size: 13px; }
.search-results a:hover { background: var(--card-2); }
.search-results img { width: 42px; height: 34px; object-fit: cover; border-radius: 7px; }
.search-results .kind { font-size: 11px; color: var(--orange); flex-shrink: 0; }

/* Toast */
#toast {  position: fixed; left: 50%; top: 76px; transform: translateX(-50%) translateY(-16px);
  background: rgba(61, 50, 39, .94); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none; transition: all .3s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 用户个人外观主题切换 ============ */
#theme-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 499;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow); font-size: 20px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
#theme-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(60, 30, 10, .2); }
#theme-panel {
  position: fixed; left: 20px; bottom: 74px; z-index: 499;
  width: 240px; max-height: 60vh; overflow: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(60, 30, 10, .22); padding: 12px;
}
#theme-panel .tp-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-2); margin-bottom: 10px; padding: 0 2px;
}
#theme-panel .tp-head button { border: none; background: none; font-size: 16px; color: var(--ink-3); cursor: pointer; }
#theme-panel .tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#theme-panel .tp-item {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card-2);
  font-size: 12px; color: var(--ink); cursor: pointer; transition: all .15s;
}
#theme-panel .tp-item:hover { border-color: var(--orange); color: var(--orange); }
#theme-panel .tp-dots { display: inline-flex; }
#theme-panel .tp-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: -3px; }
@media (max-width: 640px) {
  #theme-toggle { left: 14px; bottom: 14px; }
  #theme-panel { left: 14px; bottom: 66px; }
}

/* ============ 个人中心 / 个人主页 ============ */
.prof-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.prof-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 28px; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}
.prof-info h2 { margin: 0 0 4px; font-size: 22px; color: var(--ink); font-weight: 600; }
.prof-info .muted { margin: 0 0 6px; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; background: var(--red); color: #fff; }
.badge.ok { background: var(--ok); }
.badge.err { background: var(--err); }
.badge.muted-badge { background: var(--brown-light); color: var(--ink); }
.dept-card {
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
  background: var(--card-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px;
}
.dept-card h3 { margin: 0 0 6px; color: var(--red); font-size: 17px; letter-spacing: 1px; }
.dept-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.prof-stats { display: flex; gap: 32px; }
.prof-stats div { text-align: center; }
.prof-stats b { display: block; font-size: 22px; color: var(--red); }
.prof-stats span { font-size: 12px; color: var(--ink-3); }
.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px dashed var(--border);
}
.mine-list li:last-child { border-bottom: none; }
.mine-list li > div { flex: 1; min-width: 0; }
.mine-list .t { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-list .a { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mine-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mine-ph { display: grid; place-items: center; background: var(--card-2); }
.mine-empty { justify-content: center; color: var(--ink-3); font-size: 13px; padding: 18px 0 !important; }

/* ============ 全站动态背景 ============ */
#dyn-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
#dyn-bg .db-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22;
  animation: dbFloat 18s ease-in-out infinite alternate;
}
#dyn-bg .b1 { width: 46vmax; height: 46vmax; background: radial-gradient(circle, var(--orange, #c2622e), transparent 68%); top: -16vmax; left: -12vmax; }
#dyn-bg .b2 { width: 40vmax; height: 40vmax; background: radial-gradient(circle, var(--primary, #7a2f2c), transparent 68%); bottom: -14vmax; right: -10vmax; animation-delay: -6s; }
#dyn-bg .b3 { width: 30vmax; height: 30vmax; background: radial-gradient(circle, var(--accent, #d29650), transparent 68%); top: 40%; left: 55%; opacity: .14; animation-delay: -12s; }
#dyn-bg .db-dot {
  position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange, #c2622e); opacity: 0;
  animation: dbRise 14s linear infinite;
  animation-delay: calc(var(--i) * -1.4s);
  left: calc(6% + var(--i) * 9.5%);
}
@keyframes dbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vmax, 3vmax) scale(1.1); }
  100% { transform: translate(-4vmax, -2.5vmax) scale(.94); }
}
@keyframes dbRise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .4; }
  85% { opacity: .18; }
  100% { transform: translateY(-92vh) translateX(3vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #dyn-bg .db-blob, #dyn-bg .db-dot { animation: none; }
  #dyn-bg .db-dot { display: none; }
}

/* ============ 用户私聊（同袍私语） ============ */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; min-height: 560px; }
.chat-side { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-search { padding: 12px; border-bottom: 1px solid var(--border); position: relative; }
.chat-search input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--card-2); color: var(--ink); }
.peer-results { position: absolute; left: 12px; right: 12px; top: 100%; z-index: 30; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.12)); max-height: 260px; overflow: auto; }
.peer-item { padding: 9px 12px; cursor: pointer; font-size: 13.5px; }
.peer-item:hover { background: rgba(194, 98, 46, .08); }
.chat-contacts { flex: 1; overflow-y: auto; }
.contact { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.contact:hover, .contact.on { background: rgba(194, 98, 46, .08); }
.contact .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
/* 点头像即进对方个人主页（不用再点文字链接） */
.avatar-home { display: inline-flex; flex-shrink: 0; border-radius: 50%; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.avatar-home:hover { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-1px); }
.contact .c-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact .c-info b { font-size: 13.5px; }
.contact .c-info .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.c-unread { background: var(--red, #a33); color: #fff; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.chat-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-empty { flex: 1; display: grid; place-content: center; text-align: center; gap: 6px; }
.chat-empty .zh { font-size: 22px; color: var(--ink-3); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat-head #conv-clear { margin-left: auto; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--card-2); min-height: 320px; }
.msg { display: flex; flex-direction: column; max-width: 72%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 14px; line-height: 1.6; word-break: break-word; }
.msg.mine .bubble { background: linear-gradient(130deg, var(--orange), var(--red, #a33)); color: #fff; border: none; border-bottom-right-radius: 4px; }
.msg:not(.mine) .bubble { border-bottom-left-radius: 4px; }
.msg time { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--card); color: var(--ink); }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } .chat-side { max-height: 220px; } }

/* 导航私语角标 */
.nav-badge {
  display: inline-grid; place-items: center; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red, #a33); color: #fff; font-size: 10.5px; font-style: normal; vertical-align: 2px;
}

/* ============ 悬浮播放器 ============ */
#float-player {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  width: 320px; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 12px 40px rgba(60, 30, 10, .22);
  overflow: hidden; transition: all .3s;
}
.fp-vol-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.fp-vol-row .fp-vol-ico { font-size: 12px; opacity: .75; }
.fp-vol-row .fp-vol {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--border); border-radius: 4px; outline: none; cursor: pointer;
}
.fp-vol-row .fp-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange); border: none; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.fp-vol-row .fp-vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: none; cursor: pointer; }
.fp-vol-row .fp-vol-num { font-size: 10px; color: var(--ink-3); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

#float-player.min { width: 200px; }
#float-player.min .fp-ctrl, #float-player.min .fp-vol-row { display: none; }
#float-player.min .fp-main { display: none; }
.fp-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: linear-gradient(135deg, #fff3e0, #fbe4c4); border-bottom: 1px solid var(--border); }
.fp-head .tt { font-size: 12px; color: var(--brown); letter-spacing: 1px; flex: 1; }
.fp-head button { border: 0; background: none; color: var(--brown); font-size: 14px; }
.fp-main { display: flex; gap: 12px; padding: 14px; }
.fp-main img { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.15); background: linear-gradient(135deg, #f6e7cf, #eed7b2); }
.fp-info { flex: 1; min-width: 0; }
.fp-info .t { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-info .a { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.fp-lrc { height: 40px; overflow: hidden; font-size: 12px; color: var(--brown); }
.fp-bar { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-3); }
.fp-bar .track { flex: 1; height: 4px; background: #eddfc6; border-radius: 4px; position: relative; cursor: pointer; }
.fp-bar .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); border-radius: 4px; width: 0; }
.fp-ctrl { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.fp-ctrl button { border: 0; background: none; font-size: 17px; color: var(--ink-2); }
.fp-ctrl button.play { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 15px; }
.fp-mini-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.fp-mini-line img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.fp-mini-line .t { font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .home-grid { grid-template-columns: 1fr; }
  .col-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .music-layout { grid-template-columns: 1fr; }
  .chatter-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid, .letter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { gap: 10px; }
  .col-side { grid-template-columns: 1fr; }
  .chatter-grid, .album-grid, .letter-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
  .event-card .pic { width: 110px; height: 82px; }
  .hero { height: 240px; }
  .hero-slide .txt h2 { font-size: 22px; }
  .form-row2 { grid-template-columns: 1fr; }
  #float-player { width: calc(100vw - 32px); right: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- 活动详情富文本排版（编辑器新块类型前台样式） ---- */
.article-body h2.ev-p { font-size: 24px; line-height: 1.5; margin: 20px 0 12px; font-weight: 700; }
.article-body h3.ev-p { font-size: 20px; line-height: 1.5; margin: 18px 0 10px; font-weight: 700; }
.article-body h4.ev-p { font-size: 17px; line-height: 1.6; margin: 16px 0 8px; font-weight: 700; }
.article-body blockquote.ev-p {
  margin: 14px 0 16px; padding: 10px 16px; white-space: normal;
  border-left: 4px solid var(--primary, #a03a32); border-radius: 0 10px 10px 0;
  background: rgba(160, 58, 50, .06); color: #6b5a48; font-size: 14.5px;
}
.article-body hr.ev-hr { border: 0; border-top: 1px dashed var(--border, #d8cbb4); margin: 22px auto; width: 82%; }
.article-body ul.ev-list, .article-body ol.ev-list { margin: 8px 0 16px; padding-left: 28px; line-height: 2; }
.article-body ul.ev-list { list-style: disc; }
.article-body ol.ev-list { list-style: decimal; }
.article-body .ev-list li::marker { color: var(--primary, #a03a32); font-weight: 700; }
.article-body mark { background: #fff3c4; color: inherit; padding: 0 3px; border-radius: 3px; }
.article-body a { color: #b70408; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { opacity: .8; }
.article-body sup, .article-body sub { font-size: .72em; }
.article-body .ev-p img { max-width: 100%; border-radius: 10px; }

/* ---- 消息页：标签页 / 好友 / 管理员徽章 / 头像图 ---- */
.chat-tabs { display: flex; gap: 6px; padding: 12px 12px 0; }
.chat-tab {
  flex: 1; padding: 9px 0; border: 1.5px solid var(--border); border-radius: 10px;
  background: transparent; cursor: pointer; font-size: 13.5px; color: inherit; transition: .15s;
}
.chat-tab.on { border-color: var(--primary, #a03a32); color: var(--primary, #a03a32); font-weight: 700; background: rgba(160, 58, 50, .06); }
.chat-tab #fr-count { opacity: .65; font-size: 12px; }
img.avatar { object-fit: cover; }
.c-admin {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-style: normal; color: #fff; background: linear-gradient(120deg, #b8860b, #d4a017); vertical-align: 1px;
}
.badge.is-admin { background: linear-gradient(120deg, #b8860b, #d4a017); color: #fff; }
.peer-item .btn { margin-left: auto; }
.peer-item .c-admin { margin-left: 4px; }

/* ---- 个人中心 / 个人主页 ---- */
.prof-avatar-wrap { position: relative; cursor: pointer; width: fit-content; }
.prof-avatar-wrap .avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--primary, #a03a32); color: #fff; font-size: 13px;
  display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.prof-avatar-wrap:hover .prof-avatar { filter: brightness(.92); }
.privacy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.privacy-row label { font-weight: 700; font-size: 13.5px; }
.privacy-row select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: inherit; }
/* 账号绑定（个人中心） */
.bind-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.bind-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; }
.bind-ico.bq { background: linear-gradient(135deg, #12b7f5, #0b7fd4); }
.bind-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bind-main b { font-size: 14.5px; }
.bind-main .hint { font-size: 12.5px; }
.pv-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pv-photo { display: block; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 1; background: var(--card-2, #f4efe4); }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pv-photo:hover img { transform: scale(1.05); }
.pv-photo span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 消息页 v2：身份标签 / 好友申请 / 表情 / 表情包 / 限额 ---- */
.chat-side { max-height: 640px; }
.c-role { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal;
  color: #fff; background: linear-gradient(120deg, var(--orange), var(--orange-soft, #f5a95c)); vertical-align: 1px; }
.c-plain { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal;
  color: var(--ink-3); background: var(--card-2); border: 1px solid var(--border); vertical-align: 1px; }
.badge.role-badge { background: var(--card-2); color: var(--ink-2); border: 1px solid var(--border); }
.badge.role-badge.ok { background: linear-gradient(120deg, var(--orange), var(--orange-soft, #f5a95c)); color: #fff; border: none; }
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red-deep, #b70408); margin-left: 4px; vertical-align: 2px; }

.fr-req { padding: 12px 12px 0; }
.fr-req-head { font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 700; }
.fr-req-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(135deg, rgba(237, 129, 31, .08), transparent); margin-bottom: 6px; flex-wrap: wrap; }
.fr-req-item .c-info { flex: 1; min-width: 90px; display: flex; flex-direction: column; }
.fr-req-item .c-info b { font-size: 13px; }

.stk-upload { padding: 12px 12px 6px; }
.stk-upload .hint { margin-top: 6px; font-size: 11.5px; line-height: 1.6; }
.stk-block { padding: 8px 12px 4px; }
.stk-block h4 { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; font-weight: 700; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.sticker-cell { position: relative; display: block; }
.sticker-item { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); padding: 4px; cursor: pointer; transition: transform .12s, border-color .12s; }
.sticker-item:hover { transform: translateY(-2px); border-color: var(--orange); }
.sticker-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red-deep, #b70408);
  color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center; cursor: pointer; line-height: 1; }
.sticker-msg { max-width: 132px; max-height: 132px; border-radius: 10px; }

.chat-input-wrap { border-top: 1px solid var(--border); position: relative; }
.chat-input-wrap .chat-input { border-top: none; }
.btn-icon { padding: 9px 11px; font-size: 17px; line-height: 1; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; }
.btn-icon:hover { border-color: var(--orange); }
.emoji-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 20; max-height: 264px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; }
.ep-group { margin-bottom: 8px; }
.ep-name { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.ep-list { display: flex; flex-wrap: wrap; gap: 2px; }
.ep-btn { border: none; background: transparent; font-size: 20px; line-height: 1.2; padding: 3px 5px; border-radius: 8px; }
.ep-btn:hover { background: var(--card-2); transform: scale(1.12); }
/* 表情包：从聊天输入栏弹出（不再占左侧整栏） */
.sticker-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 20;
  max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 2px 2px 12px; }
.sticker-panel .sticker-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.stk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stk-head b { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 720px) { .sticker-panel { max-height: 46vh; } }
.quota-hint { padding: 8px 14px; font-size: 12.5px; color: var(--ink-2); background: rgba(237, 129, 31, .08); border-bottom: 1px solid var(--border); }

/* ---- 个人主页：主账号全部活动 ---- */
.pv-event-list { display: flex; flex-direction: column; gap: 10px; }
.pv-event { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); transition: border-color .15s, transform .15s; }
.pv-event:hover { border-color: var(--orange); transform: translateX(3px); }
.pv-event-cover { width: 62px; height: 46px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--card-2); display: grid; place-items: center; }
.pv-event-cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-event-cover i { font-style: normal; font-size: 22px; }
.pv-event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-event-main b { font-size: 14px; }
.pv-event-main .hint { font-size: 12px; }
.pv-event-status { font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.pv-pin { font-style: normal; font-size: 11px; color: #fff; background: var(--red-deep, #b70408); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }

/* ---- 注册页：渠道全关 / 维护态 ---- */
.reg-closed { text-align: center; padding: 22px 8px 8px; }
.reg-closed .rc-ico { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.reg-closed b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.reg-closed .hint { font-size: 13px; line-height: 1.75; color: var(--ink-3); margin: 0; }

/* 快捷登录「强制绑定账号」页：第三方身份卡片 */
.bind-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--orange) 6%, transparent); }
.bind-who .bind-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--card); }
.bind-who .bind-who-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bind-who .bind-who-txt b { font-size: 15px; color: var(--ink); font-weight: 600; }
.bind-who .hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; margin: 0; }
/* 快捷登录按钮：已开放但未配置完成——仍可点击，给出明确提示 */
.oauth-btn.off { opacity: .6; filter: grayscale(.25); }

/* ============ 动态背景（可在「个人中心 → 外观与背景」自行开关） ============ */
/* 动效开启时隐藏底层静态光晕，避免两层叠加发灰 */
html.bg-on body::before { display: none; }
#dyn-bg .db-blob { will-change: transform; }

/* ---- 外观与背景面板（🎨 悬浮面板） ---- */
#theme-panel .tp-note { font-size: 12px; color: var(--ink-3); line-height: 1.7; padding: 2px 2px 6px; }
#theme-panel .tp-bg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
#theme-panel .tp-bg > span { font-size: 12.5px; color: var(--ink-2); margin-right: auto; }
.tp-bgbtn { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-2); font-size: 12px; cursor: pointer; }
.tp-bgbtn:hover { border-color: var(--orange); color: var(--orange); }
.tp-bgbtn.on { background: linear-gradient(120deg, var(--red), var(--orange)); color: #fff; border-color: transparent; }

/* ---- 个人中心：偏好设置行 ---- */
.pref-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.pref-row > label { min-width: 84px; font-size: 13.5px; color: var(--ink-2); }
.pref-row select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-2); color: var(--ink); font-size: 13.5px; }
.pref-row .hint { flex: 1; min-width: 180px; }

/* ============ 活动列表（卡片网格 + 发布者标签） ============ */
.ev-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ev-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(135, 26, 25, .12); }
.ev-cover { display: block; position: relative; height: 186px; overflow: hidden; background: var(--card-2); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ev-card:hover .ev-cover img { transform: scale(1.05); }
.ev-pin { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 400; color: #fff;
  background: rgba(135, 26, 25, .86); border-radius: 999px; padding: 2px 10px; }
.ev-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-title { font-size: 16.5px; font-weight: 400; line-height: 1.5; }
.ev-title a:hover { color: var(--red-deep); }
.ev-desc { font-size: 13px; line-height: 1.7; min-height: 44px; }
.ev-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.ev-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 8px; }
/* 发布者标签：主账号 = 金色皇冠；管理员本人发布 = 部门配色 */
.ev-by { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; padding: 3px 10px;
  border-radius: 999px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--border); }
.ev-by.crown { background: linear-gradient(120deg, #b8860b, #d4a017); color: #fff; border-color: transparent; }
.ev-by i, .ev-by span { font-style: normal; }

/* ============ 部门配色（身份展示统一按部门色区分） ============ */
.dept-card { border-left-width: 4px; }
.badge.ok[style], .badge.is-admin { color: #fff; }
.c-role[style] { color: #fff; }

/* ============ 手机端优化 ============ */
@media (max-width: 720px) {
  .page-wrap { padding: 18px 14px 34px; }
  .page-title h1 { font-size: 22px; }
  .ev-grid { grid-template-columns: 1fr; gap: 14px; }
  .ev-cover { height: 170px; }
  .ev-tabs { gap: 6px; margin-bottom: 16px; }
  .ev-tabs .btn { font-size: 12.5px; padding: 5px 11px; }
  .ev-desc { min-height: 0; }
  .prof-head { flex-wrap: wrap; gap: 12px; }
  .prof-stats { gap: 18px; flex-wrap: wrap; justify-content: space-around; }
  .pref-row { gap: 8px; }
  .pref-row > label { min-width: 100%; }
  #theme-panel { width: min(300px, calc(100vw - 28px)); }
  .pv-event { flex-wrap: wrap; }
  .detail-hero { height: 200px; }
  .article-meta { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .page-wrap { padding: 14px 12px 30px; }
  .page-title h1 { font-size: 20px; }
  .ev-cover { height: 150px; }
  .ev-body { padding: 12px 13px 14px; }
  .ev-title { font-size: 15.5px; }
  .header-inner { padding: 0 12px; }
  .brand .name { font-size: 18px; letter-spacing: 1px; }
  .card-pad { padding: 16px 14px; }
}
