﻿/* ============ 故十三看稿天地 · 终版桌面UI ============ */
:root {
  --pink: #ff7eb6;
  --purple: #8e7bff;
  --cyan: #6fd6ff;
  --bg: #0f1024;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --text: #eef0ff;
  --muted: #a9aecf;
  --grad: linear-gradient(120deg, var(--pink), var(--purple) 50%, var(--cyan));
  --radius: 20px;
  --pad: 40px;      /* 全屏流式：仅保留两侧留白 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  overflow-x: hidden; font-size: 1rem;
}
a { color: var(--cyan); cursor: pointer; text-decoration: none; }
button { font-family: inherit; }

/* ---- 背景光斑动画 ---- */
#bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; filter: blur(100px); opacity: .55; }
#bg-orbs span { position: absolute; border-radius: 50%; animation: floatOrb 16s ease-in-out infinite; }
#bg-orbs span:nth-child(1) { width: 30vw; height: 30vw; background: var(--pink); top: -10%; left: -5%; }
#bg-orbs span:nth-child(2) { width: 26vw; height: 26vw; background: var(--purple); top: 40%; right: -8%; animation-delay: -5s; }
#bg-orbs span:nth-child(3) { width: 22vw; height: 22vw; background: var(--cyan); bottom: -10%; left: 30%; animation-delay: -10s; }
@keyframes floatOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.15); } }

/* ---- 飘落花瓣 ---- */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.petal { position: absolute; top: -40px; font-size: 18px; opacity: .8; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translateY(-5vh) rotate(0deg) translateX(0); }
  25% { transform: translateY(25vh) rotate(120deg) translateX(30px); }
  50% { transform: translateY(50vh) rotate(240deg) translateX(-20px); }
  75% { transform: translateY(75vh) rotate(300deg) translateX(25px); }
  100% { transform: translateY(108vh) rotate(360deg) translateX(0); }
}

/* ---- 玻璃拟态 ---- */
.glass { background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); }
/* 关键：弹窗/消息中心/批注气泡的实体底（此前缺失导致透明） */
.glass-strong { background: var(--modalbg, rgba(22,23,50,.92)); border: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }

/* ---- 导航（更宽更高） ---- */
.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: calc(100% - var(--pad)*2); min-width: 0; padding: 14px 30px; display: flex; align-items: center; gap: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1.25rem; white-space: nowrap; }
.nav-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; }
.logo-icon { animation: sway 3s ease-in-out infinite; display: inline-block; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.nav-links { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; justify-content: center; }
.nav-links a { padding: 10px 20px; border-radius: 999px; color: var(--muted); font-size: 1.05rem; transition: all .25s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 16px rgba(142,123,255,.4); }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: .95rem; white-space: nowrap; }

/* ---- 公告 ---- */
.announce { width: calc(100% - var(--pad)*2); margin: 14px auto 0; padding: 14px 24px; display: flex; gap: 12px; align-items: center; font-size: 1rem; }
.announce .icon { animation: sway 2s infinite; }

/* ---- 布局（全屏流式） ---- */
main { width: calc(100% - var(--pad)*2); margin: 26px auto 70px; }
.page { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ---- Hero（桌面大标题） ---- */
.hero { text-align: center; padding: 84px 20px 56px; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 4px; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%,100% { filter: drop-shadow(0 0 8px rgba(255,126,182,.35)); } 50% { filter: drop-shadow(0 0 26px rgba(142,123,255,.55)); } }
.hero p { color: var(--muted); margin: 20px 0 34px; font-size: 1.15rem; line-height: 2; }
.hero-mascot { font-size: 5rem; display: inline-block; animation: bounce 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(255,126,182,.35)); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---- 按钮 ---- */
.btn { border: none; cursor: pointer; border-radius: 999px; padding: 13px 32px; font-size: 1.05rem; color: #fff; background: var(--grad); transition: all .25s; box-shadow: 0 4px 18px rgba(142,123,255,.35); }
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 28px rgba(142,123,255,.5); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 8px 18px; font-size: .9rem; }
.btn.danger { background: linear-gradient(120deg, #ff5f7e, #ff9068); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.card { padding: 28px; margin-bottom: 20px; transition: transform .3s, box-shadow .3s; }
.card.hoverable:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.4); }

/* ---- 三大模式入口 ---- */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; margin-top: 10px; }
.mode-card { padding: 36px 30px; cursor: pointer; position: relative; overflow: hidden; }
.mode-card .m-icon { font-size: 3.4rem; display: inline-block; margin-bottom: 16px; transition: transform .35s; }
.mode-card:hover .m-icon { transform: scale(1.25) rotate(-8deg); }
.mode-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.mode-card p { color: var(--muted); font-size: .98rem; line-height: 1.9; }
.mode-card .tag { position: absolute; top: 20px; right: 20px; font-size: .82rem; padding: 5px 14px; border-radius: 999px; }
.tag.free { background: rgba(111,214,255,.18); color: var(--cyan); border: 1px solid rgba(111,214,255,.4); }
.tag.vip { background: rgba(255,126,182,.18); color: var(--pink); border: 1px solid rgba(255,126,182,.4); }
.tag.gold { background: rgba(255,209,102,.15); color: #ffd166; border: 1px solid rgba(255,209,102,.4); }
.mode-card::after { content: ''; position: absolute; inset: auto -40% -60% -40%; height: 120px; background: var(--grad); opacity: 0; filter: blur(50px); transition: opacity .4s; }
.mode-card:hover::after { opacity: .25; }

/* ---- 求评人卡片 ---- */
.reviewer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.reviewer-card { padding: 28px; text-align: center; position: relative; transition: transform .3s; }
.reviewer-card:hover { transform: translateY(-6px); }
.reviewer-card .avatar { font-size: 4rem; }
.reviewer-card h4 { margin: 12px 0 8px; font-size: 1.2rem; }
.reviewer-card .bio { color: var(--muted); font-size: .92rem; min-height: 52px; line-height: 1.7; }
.reviewer-card .price { margin-top: 12px; font-size: 1.35rem; color: #ffd166; font-weight: 700; }
.reviewer-card .price small { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* ---- 稿件列表 ---- */
.ms-list { display: flex; flex-direction: column; gap: 16px; }
.ms-item { padding: 24px 28px; display: flex; gap: 20px; align-items: flex-start; cursor: pointer; }
.ms-item .ms-icon { font-size: 2.2rem; }
.ms-item h4 { font-size: 1.25rem; margin-bottom: 8px; }
.ms-item .meta { color: var(--muted); font-size: .9rem; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ms-item .summary { color: var(--muted); font-size: .95rem; }
.chip { font-size: .82rem; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.chip.public { color: var(--cyan); } .chip.student { color: var(--purple); } .chip.paid { color: #ffd166; }
.chip.unpaid { color: #ff8fa3; border: 1px dashed #ff8fa366; }
.chip.locked { color: var(--muted); }

/* ---- 表单 ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: .9rem; color: var(--muted); display: block; margin-bottom: 7px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 13px; border: 1px solid var(--border);
  background: rgba(255,255,255,.06); color: var(--text); font-size: 1rem; outline: none; transition: border .25s, box-shadow .25s; font-family: inherit;
}
/* 修复：下拉选项在部分系统里白底白字看不清 */
select option, select optgroup { background: var(--panel, #1b1d40); color: var(--text, #eef0ff); }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(142,123,255,.2); }
textarea { min-height: 140px; resize: vertical; line-height: 1.9; font-size: 1rem; }
textarea.big { min-height: 360px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-size: .98rem; transition: all .25s; }
.radio-pill.sel { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgba(142,123,255,.4); }

/* ---- 弹窗 / 提示 ---- */
.modal-mask { position: fixed; inset: 0; background: rgba(8,8,20,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s; backdrop-filter: blur(4px); }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(760px, 94vw); max-height: 86vh; overflow-y: auto; padding: 34px; animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal h3 { margin-bottom: 22px; font-size: 1.45rem; }
.toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 14px 32px; border-radius: 999px; background: var(--modalbg, rgba(22,23,50,.95)); border: 1px solid var(--border); font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .3s; }
.toast.err { border-color: #ff5f7e; color: #ff9db1; }
.toast.ok { border-color: #6fd6ff; color: #bdeeff; }

/* ---- 稿件详情 ---- */
.ms-content { white-space: pre-wrap; line-height: 2.1; font-size: 1.05rem; padding: 26px; background: rgba(0,0,0,.2); border-radius: 16px; margin: 16px 0; max-height: 52vh; overflow-y: auto; }
.review-item { padding: 20px 22px; border-left: 3px solid var(--purple); background: rgba(255,255,255,.04); border-radius: 0 14px 14px 0; margin-bottom: 14px; animation: fadeUp .4s both; }
.review-item .r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .98rem; }
.stars { color: #ffd166; letter-spacing: 2px; }
.review-item .r-body { font-size: .98rem; line-height: 2; color: #d5d9f5; white-space: pre-wrap; }

/* ---- 空状态 ---- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); font-size: 1.05rem; }
.empty .e-icon { font-size: 4.2rem; display: block; margin-bottom: 16px; animation: bounce 3s infinite; }

/* ---- 统计数字 ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin: 22px 0; }
.stat { text-align: center; padding: 26px; background: var(--statbg, rgba(255,255,255,.07)); border: 1px solid var(--border); border-radius: var(--radius); }
.stat b { font-size: 2.1rem; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .9rem; color: var(--muted); }

.section-title { font-size: 1.6rem; margin: 40px 0 20px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: '✦'; color: var(--pink); animation: sway 2.5s infinite; }

.footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 34px 0 46px; }

/* ---- 管理后台 ---- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.admin-side { padding: 18px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 6px; }
.admin-side a { padding: 12px 16px; border-radius: 12px; color: var(--muted); font-size: .98rem; }
.admin-side a.active, .admin-side a:hover { background: var(--grad); color: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tbl th, .tbl td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted); font-weight: 500; font-size: .88rem; }
.tbl tr:hover td { background: rgba(255,255,255,.04); }

/* ---- 批注系统（WPS式） ---- */
.anno-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin: 16px 0; }
.anno-tip { font-size: .88rem; color: var(--cyan); background: rgba(111,214,255,.1); border: 1px dashed rgba(111,214,255,.4); padding: 10px 16px; border-radius: 12px; margin-bottom: 10px; }
mark.anno { background: linear-gradient(transparent 55%, rgba(255,209,102,.55) 55%); color: inherit; border-radius: 2px; cursor: pointer; padding: 1px 0; transition: background .2s; }
mark.anno:hover { background: rgba(255,209,102,.65); }
mark.anno.resolved { background: linear-gradient(transparent 60%, rgba(111,214,255,.3) 60%); text-decoration: none; opacity: .8; }
.anno-side { max-height: 60vh; overflow-y: auto; padding: 14px; border-radius: 16px; background: var(--panelbg, rgba(0,0,0,.18)); border: 1px solid var(--border); }
.anno-side-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; position: sticky; top: -14px; background: rgba(15,16,36,.9); padding: 8px 0; z-index: 1; }
.anno-card { padding: 14px; border-radius: 14px; margin-bottom: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border); animation: fadeUp .35s both; }
.anno-card.resolved { opacity: .65; }
.anno-card.flash { outline: 2px solid var(--cyan); box-shadow: 0 0 18px rgba(111,214,255,.4); }
.anno-card .a-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.anno-card .a-quote { font-size: .82rem; color: #ffd166; background: rgba(255,209,102,.1); border-left: 3px solid #ffd166; padding: 6px 10px; border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.anno-card .a-note { font-size: .92rem; line-height: 1.8; color: #d5d9f5; white-space: pre-wrap; }
.anno-card .a-reply { font-size: .84rem; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.anno-card .a-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.anno-card .a-actions input { padding: 7px 12px; font-size: .85rem; flex: 1; min-width: 0; }
.anno-float { position: fixed; z-index: 150; padding: 8px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .9rem; cursor: pointer; box-shadow: 0 6px 20px rgba(142,123,255,.5); animation: pop .2s; }
.anno-float:hover { transform: scale(1.05); }
.anno-prompt { position: fixed; z-index: 160; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(420px, 92vw); padding: 20px; display: flex; flex-direction: column; gap: 10px; animation: pop .25s; }
.anno-prompt textarea { min-height: 90px; }
@media (max-width: 980px) { .anno-layout { grid-template-columns: 1fr; } .anno-side { max-height: 40vh; } .read-body { grid-template-columns: 1fr; } .read-side { position: static; max-height: none; } }

/* ---- 全屏看稿页 + 彩色批注 ---- */
.read-head { display: flex; gap: 18px; align-items: center; padding: 18px 24px; margin-bottom: 18px; flex-wrap: wrap; }
.read-body { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(380px, .85fr); gap: 24px; align-items: start; }
.read-content { max-height: none; min-height: 40vh; font-size: 1.08rem; }
.read-side { position: sticky; top: 96px; max-height: calc(100vh - 130px); overflow-y: auto; padding: 18px; border-radius: 16px; background: var(--panelbg, rgba(0,0,0,.18)); border: 1px solid var(--border); min-width: 0; }
mark.anno { background: color-mix(in srgb, var(--ac, #ffd166) 32%, transparent); color: inherit; border-radius: 3px; cursor: pointer; padding: 0 2px; margin: 0 -1px; transition: background .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.anno:hover { background: color-mix(in srgb, var(--ac, #ffd166) 48%, transparent); }
mark.anno.resolved { background: color-mix(in srgb, var(--ac, #ffd166) 16%, transparent); text-decoration: underline dotted rgba(128,128,160,.6); text-underline-offset: 3px; }
@supports not (color: color-mix(in srgb, red, blue)) { mark.anno { background: linear-gradient(transparent 60%, var(--ac, #ffd166) 60%); } mark.anno:hover { filter: brightness(1.2); } }
.anno-pop { position: fixed; z-index: 180; width: 360px; padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: pop .2s; }
.color-row { display: flex; gap: 10px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border .15s; }
.color-dot:hover { transform: scale(1.15); }
.color-dot.sel { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 10px rgba(255,255,255,.4); }
.anno-card .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.anno-card .a-quote { font-size: .82rem; color: #ffd166; background: rgba(255,209,102,.08); border-left: 3px solid #ffd166; padding: 6px 10px; border-radius: 0 8px 8px 0; margin-bottom: 8px; overflow-wrap: anywhere; }
.anno-card .a-note { overflow-wrap: anywhere; }
.anno-card .a-reply { overflow-wrap: anywhere; }

/* ---- 自定义下拉组件（替代原生select，全平台配色可控） ---- */
.pill-sel { position: relative; }
.pill-sel-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-radius: 13px; border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--text); font-size: 1rem; cursor: pointer; transition: border .25s, box-shadow .25s; font-family: inherit; text-align: left; }
.pill-sel-btn:hover { border-color: var(--purple); }
.pill-sel-btn i { font-style: normal; color: var(--muted); transition: transform .2s; }
.pill-sel.open .pill-sel-btn i, .pill-sel-btn:active + .pill-sel-list i { transform: rotate(180deg); }
.pill-sel-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 260px; overflow-y: auto; background: var(--panel, #1b1d40); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: fadeUp .18s; padding: 6px; }
.pill-sel-opt { padding: 11px 14px; border-radius: 9px; font-size: .95rem; color: #eef0ff; cursor: pointer; transition: background .15s; }
.pill-sel-opt:hover { background: rgba(142,123,255,.22); }
.pill-sel-opt.sel { background: var(--grad); color: #fff; }
.pill-sel-opt.sel::after { content: ' ✓'; float: right; }

/* ---- 身份牌子 / 咕咕币 ---- */
.bdg { display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 999px; margin-left: 5px; vertical-align: middle; white-space: nowrap; border: 1px solid transparent; }
.bdg.admin { background: rgba(255,95,126,.18); color: #ff9db1; border-color: rgba(255,95,126,.45); text-shadow: 0 0 8px rgba(255,95,126,.5); }
.bdg.reviewer { background: rgba(142,123,255,.18); color: #beb3ff; border-color: rgba(142,123,255,.45); }
.bdg.student { background: rgba(111,214,255,.15); color: #9fe4ff; border-color: rgba(111,214,255,.4); }
.bdg.group { background: rgba(255,209,102,.13); color: #ffd166; border-color: rgba(255,209,102,.4); }
.bdg.dashen { background: linear-gradient(120deg, rgba(255,150,60,.25), rgba(255,90,120,.25)); color: #ffb86b; border-color: rgba(255,170,90,.55); text-shadow: 0 0 8px rgba(255,170,90,.6); }
.bdg.gold { background: rgba(255,209,102,.2); color: #ffd166; border-color: rgba(255,209,102,.6); }
.bdg.vip { background: rgba(195,155,255,.18); color: #d9baff; border-color: rgba(195,155,255,.5); }
.bdg.yuanlao { background: rgba(125,255,155,.12); color: #7dff9b; border-color: rgba(125,255,155,.4); }
.coin-pill { cursor: pointer; padding: 7px 16px; border-radius: 999px; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.4); color: #ffd166; font-size: .95rem; transition: all .2s; white-space: nowrap; }
.coin-pill:hover { background: rgba(255,209,102,.22); transform: translateY(-1px); }
.coin-hero { text-align: center; padding: 18px 0 8px; color: var(--muted); }
/* CSS 金币图标（避免系统缺少🪙字形） */
.coin-ic { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -0.15em; background: radial-gradient(circle at 35% 30%, #ffefb8, #f7c948 55%, #d99a1d); border: 1px solid #b87f14; box-shadow: inset 0 -2px 3px rgba(120,70,0,.35), 0 1px 3px rgba(0,0,0,.3); position: relative; }
.coin-ic::after { content: '咕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .62em; font-style: normal; color: #8a5a00; font-weight: 800; }

/* ---- 趣味组件：签到/灵感/排行榜 ---- */
.fun-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin: 22px 0; }
@media (max-width: 980px) { .fun-row { grid-template-columns: 1fr; } }
.signin-card { display: flex; gap: 20px; align-items: stretch; padding: 24px; }
.signin-left { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 160px; }
.signin-title { font-size: 1.1rem; font-weight: 700; }
.streak { color: var(--muted); font-size: .95rem; }
.streak b { color: #ff9d5c; font-size: 1.3rem; }
.fortune-box { flex: 1; border-left: 1px dashed var(--border); padding-left: 20px; display: flex; align-items: center; color: var(--muted); font-size: .95rem; line-height: 1.9; }
.fortune-box.shown { color: #ffd166; animation: fadeUp .5s; }
.fortune-luck { font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fortune-reward { color: #7dff9b; font-size: .85rem; margin-top: 6px; }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 980px) { .ins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ins-grid { grid-template-columns: 1fr; } }
.fortune-love { color: #ff9db1; font-size: .88rem; margin-top: 8px; line-height: 1.7; }
.ins-card { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px; padding: 14px; min-height: 84px; display: flex; flex-direction: column; gap: 6px; }
.ins-card span { font-size: .75rem; color: var(--muted); }
.ins-card b { font-size: .9rem; line-height: 1.6; font-weight: 600; }
.lb-board { padding: 20px; }
.lb-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: .95rem; }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 26px; text-align: center; font-weight: 700; color: var(--muted); }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row b { color: #ffd166; }
.lb-empty { text-align: center; color: var(--muted); padding: 18px; font-size: .9rem; }

/* ---- 书灵宠物养成 ---- */
.signin-card .fortune-box { padding-left: 0; border-left: none; }
.pet-stage { position: relative; width: 110px; height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pet-emoji { font-size: 4.2rem; cursor: pointer; animation: petFloat 2.8s ease-in-out infinite; filter: drop-shadow(0 8px 18px rgba(142,123,255,.4)); transition: transform .2s; user-select: none; }
.pet-emoji:hover { transform: scale(1.18) rotate(-6deg); }
@keyframes petFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes petEat { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(10deg); } 55% { transform: scale(.9) rotate(-6deg); } 75% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pet-halo { position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, rgba(142,123,255,.25), transparent 70%); animation: haloPulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes haloPulse { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.12); opacity: .9; } }
.pet-desc { color: var(--muted); font-size: .88rem; margin: 8px 0 10px; line-height: 1.7; }
.pet-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.pet-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .8s cubic-bezier(.2,1,.3,1); box-shadow: 0 0 12px rgba(142,123,255,.6); }
.pet-prog { font-size: .78rem; color: var(--cyan); margin-top: 6px; }
#petCard.levelup { animation: levelupGlow 1.6s; }
@keyframes levelupGlow { 0%,100% { box-shadow: none; } 25%,60% { box-shadow: 0 0 40px rgba(255,209,102,.65), 0 0 80px rgba(255,126,182,.35); border-color: #ffd166; } }
.pet-say { position: absolute; top: -10px; right: -14px; background: #fff; color: #333; font-size: .78rem; padding: 6px 12px; border-radius: 12px 12px 12px 2px; animation: petSay 2.4s forwards; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
@keyframes petSay { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 15%,80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ================= 主题系统（6套） ================= */
/* 月白（浅色） */
body[data-theme="moonlight"] {
  --bg: #f6f7fd; --text: #33365c; --muted: #7b7fa8;
  --card: rgba(255,255,255,.8); --border: rgba(90,100,170,.18);
  --pink: #ff5f9e; --purple: #7b6cff; --cyan: #1e9dd8;
  --panel: #ffffff; --modalbg: rgba(255,255,255,.96); --panelbg: rgba(255,255,255,.72); --statbg: rgba(255,255,255,.75);
}
body[data-theme="moonlight"] #bg-orbs { opacity: .3; }
body[data-theme="moonlight"] .coin-pill { background: #ffffff; color: #b8860b; border-color: #e6b93c; }
body[data-theme="moonlight"] .coin-pill:hover { background: #fff8e0; }
body[data-theme="moonlight"] .ms-content { background: rgba(120,130,200,.07); }
body[data-theme="moonlight"] .hero-mascot { filter: none; }
/* 海盐蓝 */
body[data-theme="ocean"] {
  --bg: #081828; --text: #e6f4ff; --muted: #8fb4cc;
  --card: rgba(120,190,255,.07); --border: rgba(120,190,255,.18);
  --pink: #5ad1ff; --purple: #4f7cff; --cyan: #7df5e0;
  --panel: #0e2438; --modalbg: rgba(10,30,50,.94); --panelbg: rgba(14,36,56,.6); --statbg: rgba(120,190,255,.1);
}
body[data-theme="ocean"] #bg-orbs span:nth-child(1) { background: #4f9fff; }
body[data-theme="ocean"] #bg-orbs span:nth-child(2) { background: #3ecfe0; }
body[data-theme="ocean"] #bg-orbs span:nth-child(3) { background: #6f8dff; }
/* 抹茶青 */
body[data-theme="matcha"] {
  --bg: #0d1a10; --text: #eafff0; --muted: #93bfa2;
  --card: rgba(140,240,170,.06); --border: rgba(140,240,170,.18);
  --pink: #8affc1; --purple: #5fd39a; --cyan: #d4f7a1;
  --panel: #122418; --modalbg: rgba(12,32,20,.94); --panelbg: rgba(18,36,24,.6); --statbg: rgba(140,240,170,.09);
}
body[data-theme="matcha"] #bg-orbs span:nth-child(1) { background: #6fe89a; }
body[data-theme="matcha"] #bg-orbs span:nth-child(2) { background: #a8e063; }
body[data-theme="matcha"] #bg-orbs span:nth-child(3) { background: #4fd0b0; }
/* 落日橙 */
body[data-theme="sunset"] {
  --bg: #1e1013; --text: #fff0e6; --muted: #c7a290;
  --card: rgba(255,160,110,.07); --border: rgba(255,160,110,.2);
  --pink: #ff9e6d; --purple: #ff6f9c; --cyan: #ffd166;
  --panel: #2c161c; --modalbg: rgba(42,20,24,.94); --panelbg: rgba(44,22,28,.55); --statbg: rgba(255,160,110,.09);
}
body[data-theme="sunset"] #bg-orbs span:nth-child(1) { background: #ff8a5c; }
body[data-theme="sunset"] #bg-orbs span:nth-child(2) { background: #ff5f8f; }
body[data-theme="sunset"] #bg-orbs span:nth-child(3) { background: #ffc46b; }
/* 墨韵灰 */
body[data-theme="ink"] {
  --bg: #0b0b0e; --text: #e8e8f0; --muted: #9a9aa8;
  --card: rgba(255,255,255,.05); --border: rgba(255,255,255,.14);
  --pink: #cfcfdd; --purple: #a8a8c0; --cyan: #c0c0d0;
  --panel: #17171c; --modalbg: rgba(20,20,26,.94); --panelbg: rgba(23,23,28,.6); --statbg: rgba(255,255,255,.07);
}
body[data-theme="ink"] #bg-orbs { opacity: .25; }
body[data-theme="ink"] #bg-orbs span:nth-child(1) { background: #8a8aa0; }
body[data-theme="ink"] #bg-orbs span:nth-child(2) { background: #6a6a80; }
body[data-theme="ink"] #bg-orbs span:nth-child(3) { background: #9a9ab0; }

/* ---- 主题切换器 ---- */
.theme-btn { cursor: pointer; font-size: 1.15rem; padding: 4px 6px; transition: transform .3s; display: inline-block; }
.theme-btn:hover { transform: rotate(30deg) scale(1.15); }
.theme-pop { position: fixed; top: 86px; right: max(24px, calc((100vw - 100%) / 2)); z-index: 120; width: 280px; padding: 18px; animation: fadeUp .25s; }
.theme-pop h4 { margin-bottom: 12px; font-size: 1rem; }
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 72px; padding: 8px 4px; border-radius: 12px; transition: background .2s; }
.theme-item:hover { background: rgba(128,128,160,.15); }
.theme-item.sel { background: rgba(128,128,160,.25); outline: 1px solid var(--cyan); }
.theme-dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,.35), inset 0 2px 4px rgba(255,255,255,.35); transition: transform .2s; }
.theme-item:hover .theme-dot { transform: scale(1.15); }
.theme-item span { font-size: .74rem; color: var(--muted); }
.theme-item.sel span { color: var(--text); }

/* ---- 追问/倒计时/催稿 ---- */
.f-reply { font-size: .88rem; color: var(--cyan); margin-top: 8px; padding: 7px 12px; background: rgba(111,214,255,.07); border-radius: 0 10px 10px 0; border-left: 2px solid var(--cyan); line-height: 1.7; }
.f-input { display: flex; gap: 8px; margin-top: 10px; }
.f-input input { flex: 1; min-width: 0; padding: 9px 14px; font-size: .9rem; }
.warn-banner { background: rgba(255,95,126,.12); border: 1px solid rgba(255,95,126,.35); color: #ff9db1; padding: 13px 20px; border-radius: 14px; margin-bottom: 14px; font-size: .95rem; animation: fadeUp .4s; }
.chip.gold { color: #ffd166; border: 1px solid rgba(255,209,102,.35); background: rgba(255,209,102,.08); }

/* ---- 联系方式卡片 ---- */
.contact-box { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.contact-row b { font-size: 1.05rem; margin-right: 12px; }
.contact-wx { color: var(--cyan); font-size: 1rem; letter-spacing: .5px; }

/* ---- 通知中心 / 进度条 / 护眼纸 / 收藏星标 ---- */
.bell { position: relative; cursor: pointer; font-size: 1.15rem; padding: 4px 6px; }
.bell:hover { filter: brightness(1.3); }
.bell-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 999px; background: linear-gradient(120deg,#ff5f7e,#ff9068); color: #fff; font-size: .68rem; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; animation: pop .3s; }
.notif-panel { position: fixed; top: 86px; right: max(24px, calc((100vw - 100%) / 2)); z-index: 120; width: min(380px, 92vw); max-height: 65vh; overflow-y: auto; padding: 0; animation: fadeUp .25s; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel, #1b1d3f); }
.notif-item { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; font-size: .92rem; transition: background .2s; }
.notif-item:hover { background: rgba(255,255,255,.06); }
.notif-item span { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.notif-item.unread { border-left: 3px solid var(--pink); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; }
.read-progress i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px rgba(142,123,255,.7); transition: width .1s linear; }
.ms-content.paper { background: #f7f1e3 !important; color: #3b3222 !important; font-family: "Noto Serif SC", Georgia, serif; box-shadow: inset 0 0 40px rgba(160,120,60,.08); }
.ms-content.paper mark.anno { color: inherit; }
.star { cursor: pointer; color: #ffd166; font-size: 1rem; margin-left: 8px; user-select: none; transition: transform .2s; display: inline-block; }
.star:hover { transform: scale(1.25); }
.star:not(.on) { color: var(--muted); }
.wordcount { text-align: right; font-size: .8rem; color: var(--cyan); min-height: 1.2em; margin-top: 6px; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) { :root { --pad: 24px; } }
@media (max-width: 860px) {
  html { font-size: 15px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; position: static; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --pad: 14px; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .hero { padding: 50px 10px 34px; }
  .hero-mascot { font-size: 3.4rem; }
  .ms-item { padding: 18px; }
}
