body{background:#fff}#loader{position:fixed;inset:0;background:#fff;z-index:2147483647;display:flex;align-items:center;justify-content:center}#loader .loader-circle{width:44px;height:44px;border:3px solid rgba(0,0,0,.05);border-top-color:#1e293b;border-radius:50%;animation:ldr 0.8s linear infinite}@keyframes ldr{to{transform:rotate(360deg)}}#mgxOverlay,#mgxMainModal,.immersive-overlay{display:none}#mgxOverlay.show{display:block}

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }
:root {
  --bg-body: #f8fafc; 
  --bg-card: rgba(255, 255, 255, 0.85); 
  --text-main: #1e293b; 
  --text-sub: #64748b;
  --accent: #475569; 
  --accent-hover: #334155; 
  --highlight: #10b981;
  --highlight-glow: rgba(16, 185, 129, 0.4);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.4);
  --info: #3b82f6;
  --info-glow: rgba(59, 130, 246, 0.4);
  --shadow-sm: 0 8px 24px -4px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.08), 0 12px 24px -8px rgba(0, 0, 0, 0.04);
  --radius-lg: 20px; 
  --radius-pill: 50px; 
  --font-serif: "Merriweather", "Georgia", serif;
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; min-height: 100vh; overflow-x: hidden; transition: background-image 0.5s ease; background-size: cover; background-position: center; background-attachment: fixed; -webkit-user-select: none; user-select: none; }
.news-title, .news-desc, .news-date, .modal-left, .comment-text, .search-input, .comment-input, .form-input, .form-textarea { -webkit-user-select: text; user-select: text; cursor: auto; }
img { -webkit-user-drag: none; pointer-events: auto; }

body::before { content: ''; position: fixed; inset: 0; background: rgba(248, 250, 252, 0.7); backdrop-filter: saturate(150%) blur(10px); z-index: -1; transition: all 0.5s ease; }
body.has-custom-bg::before { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px) saturate(120%); }

#particleCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99; opacity: 0.6; }
#loader { position: fixed; inset: 0; background: #fff; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#loader.loaded { opacity: 0; visibility: hidden; }
.loader-circle { width: 44px; height: 44px; border: 3px solid rgba(0,0,0,0.05); border-top-color: var(--text-main); border-radius: 50%; animation: spin 0.8s infinite cubic-bezier(0.6, 0.1, 0.4, 0.9); }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 新增：日历悬浮气泡框样式 ===== */
.global-tooltip {
    position: fixed;
    background: #fff;
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 产生灵动弹跳感 */
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}
.global-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px) scale(1);
}
/* 聊天框下面的小三角尾巴 */
.global-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* --- 核心瀑布流双栏布局 --- */
.main-wrapper { width: 100%; min-height: 100vh; }
.main-container { transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; transform: scale(1); max-width: 1080px; margin: 0 auto; padding: 60px 20px 80px; display: flex; gap: 50px; }

.sidebar-left { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; z-index: 50; padding-bottom: 20px; }
.content-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-grid { display: flex; flex-direction: column; gap: 36px; }

.sticky-group { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 20px; z-index: 100; }

.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.4s var(--ease-out-back), background 0.4s var(--ease-out-back), border-color 0.4s var(--ease-out-back), transform 0.4s var(--ease-out-back);
}
.glass-panel:hover { box-shadow: var(--shadow-lg); border-color: #fff; background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)); transform: translateY(-2px);}

.profile-glass { padding: 24px 20px; text-align: center; z-index: 200; position: relative; }

/* ======== 站内通知喇叭 UI ======== */
.notice-bell {
    position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100; color: var(--text-sub); transition: all 0.3s var(--ease-out-back);
    border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm);
}
.notice-bell:hover { transform: scale(1.1); background: #fff; color: var(--text-main); }
.notice-bell svg { width: 18px; height: 18px; }
.notice-bell.has-new {
    color: #f59e0b;
    animation: breathFlash 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
/* ======== 左上角设置按钮 ======== */
.settings-btn-wrapper { position: absolute; top: 16px; left: 16px; z-index: 100; }
.notice-settings {
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-sub); transition: all 0.3s var(--ease-out-back);
    border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm);
}
.notice-settings:hover { transform: scale(1.1); background: #fff; color: var(--text-main); }
.notice-settings svg { width: 18px; height: 18px; }
.settings-btn-wrapper .avatar-dropdown {
    top: calc(100% + 10px); left: 0; right: auto;
    transform-origin: top left;
    transform: translateY(-10px) scale(0.4) translateZ(50px);
}
.settings-btn-wrapper .avatar-dropdown.show { transform: translateY(0) scale(1) translateZ(50px); }
@keyframes breathFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 15px 4px rgba(245, 158, 11, 0.6); transform: scale(1.05); }
}
.notice-panel {
    position: absolute; top: 0; left: calc(100% + 15px); right: auto; width: 320px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px);
    border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.9);
    opacity: 0; visibility: hidden; transform: translateX(-20px) scale(0.95);
    transition: all 0.4s var(--ease-out-back); z-index: 99999;
    display: flex; flex-direction: column; overflow: hidden; text-align: left;
    transform-origin: top left;
}
.notice-panel.show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.notice-header { padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.notice-title { font-size: 14px; font-weight: 800; color: var(--text-main); }
.notice-clear { font-size: 12px; color: #ef4444; cursor: pointer; font-weight: 600; padding: 4px 8px; border-radius: 8px; transition: background 0.2s; }
.notice-clear:hover { background: rgba(239, 68, 68, 0.1); }
.notice-list { max-height: 320px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.notice-list::-webkit-scrollbar { display: none; }
.notice-item { padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.02); cursor: pointer; transition: background 0.2s; }
.notice-item:hover { background: rgba(0,0,0,0.03); }
.notice-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.notice-sender { font-size: 13px; font-weight: 700; color: var(--text-main); display:flex; align-items:center; gap:6px;}
.notice-type { font-size: 10px; color: var(--highlight); font-weight: 600; background: rgba(16, 185, 129, 0.1); padding: 2px 6px; border-radius: 6px; }
.notice-time { font-size: 11px; color: var(--text-sub); font-family: "SF Mono", monospace; }
.notice-content { font-size: 13px; color: var(--text-sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-diary { font-size: 11px; color: var(--text-sub); margin-top: 8px; font-weight: 600; padding: 6px 8px; background: rgba(0,0,0,0.03); border-radius: 6px; display:inline-block; }
.notice-empty { padding: 40px 20px; text-align: center; color: var(--text-sub); font-size: 13px; font-weight: 500; }

/* 精简版头像区域 */
.avatar-wrapper-compact {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    cursor: pointer;
}
.profile-avatar-compact {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s var(--ease-out-back);
}
.avatar-wrapper-compact:hover .profile-avatar-compact {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.status-dot-compact {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--highlight);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--highlight-glow);
    animation: statusBlink 2s infinite;
}
@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.hero-title { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; letter-spacing: 0.5px; }
.hero-bio { font-size: 12px; color: var(--text-sub); font-weight: 500; margin-bottom: 12px; }
.mini-stats-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 500;
}
.stat-item-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.stat-item-compact:hover {
    background: rgba(0,0,0,0.06);
    transform: scale(1.05);
}
.stat-item-compact b {
    color: var(--text-main);
    font-family: "SF Mono", monospace;
    font-weight: 700;
}

/* 头像下拉菜单 */
.avatar-dropdown {
    position: absolute; top: 50%; right: calc(100% + 15px); left: auto; width: 120px;
    background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(24px);
    border-radius: 18px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.9); opacity: 0; visibility: hidden;
    transform: translateY(-50%) translateX(20px) scale(0.4) translateZ(50px);
    transform-origin: right center; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 99999; text-align: center;
}
.avatar-dropdown.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0) scale(1) translateZ(50px); }
.dropdown-item { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-main); border-radius: 12px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 2px; }
.dropdown-item:last-child { margin-bottom: 0; }
.dropdown-item:hover { background: var(--bg-body); transform: scale(1.05); color: var(--highlight); }

.island-container { position: fixed; top: 15px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10000; pointer-events: none; }
.island-container > * { pointer-events: none; }
.island-container > .island-login-prompt { pointer-events: auto; }
.island { min-width: 120px; height: 35px; background: #000; border-radius: 50px; display: flex; align-items: center; padding: 0 15px; transition: all 0.6s cubic-bezier(0.32, 0.85, 0.35, 1.15); box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1); backdrop-filter: blur(10px); transform: translateY(-100px); opacity: 0; }
.island.active { transform: translateY(0); opacity: 1; }
.island-login-prompt { min-width: 260px; }
.island-login-prompt.active { transform: translateY(0); opacity: 1; display: flex !important; }
.island-login-btn { background: #10b981; color: #fff; border: none; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.island-login-btn:hover { background: #34d399; transform: scale(1.05); }
.island.expanded { min-width: 280px; height: 65px; padding: 0 20px; border-radius: 25px; }
.island-content { width: 100%; color: #fff; font-size: 13px; font-weight: 500; }
.island-upload-info { display: flex; align-items: center; gap: 15px; }
.island-icon-box svg { width: 22px; height: 22px; fill: none; stroke: #10b981; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-anim-upload { animation: bounceUpDown 1.5s infinite; }
@keyframes bounceUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.island-details { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.island-status { font-size: 11px; opacity: 0.8; }
.island-progress-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.island-progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 10px rgba(16,185,129,0.5); transition: width 0.3s ease; }
.island-success-info { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.svg-icon-success { width: 18px; height: 18px; stroke: #10b981; stroke-width: 3; fill: none; stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck 0.5s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ========== 新版考试倒计时（环形图表） ========== */
.exam-dashboard {
    padding: 20px;
    position: relative;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.dashboard-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--highlight);
    stroke-width: 2.5;
}
.next-exam-tag {
    font-size: 10px;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: urgentPulse 2s infinite;
}
@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--danger-glow); }
    50% { box-shadow: 0 0 8px 2px var(--danger-glow); }
}

/* 环形图表网格 - 2x2布局 */
.exam-rings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.exam-ring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s var(--ease-out-back);
    cursor: pointer;
    position: relative;
}
.exam-ring-item:hover {
    background: rgba(255,255,255,0.95);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 10;
}
.exam-ring-item:hover .ring-days {
    transform: scale(1.1);
}

.exam-ring-svg {
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.ring-track {
    fill: none;
    stroke: rgba(0,0,0,0.06);
    stroke-width: 4;
    stroke-linecap: round;
}
.ring-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s var(--ease-out-back);
}
.ring-fill.kaoyan { stroke: var(--highlight); filter: drop-shadow(0 0 6px var(--highlight-glow)); }
.ring-fill.shengben { stroke: var(--info); filter: drop-shadow(0 0 6px var(--info-glow)); }
.ring-fill.cet { stroke: var(--warning); filter: drop-shadow(0 0 6px var(--warning-glow)); }
.ring-fill.cet-score { stroke: var(--danger); filter: drop-shadow(0 0 6px var(--danger-glow)); }

.ring-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.ring-days {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'SF Mono', monospace;
    line-height: 1;
    transition: all 0.3s ease;
}
.ring-days.urgent { color: var(--danger); }
.ring-label {
    font-size: 9px;
    color: var(--text-sub);
    font-weight: 600;
    margin-top: 1px;
    text-transform: uppercase;
}
.exam-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}
.exam-date {
    font-size: 10px;
    color: var(--text-sub);
    font-family: 'SF Mono', monospace;
    opacity: 0.8;
}
.exam-edit-btn { font-size: 11px; padding: 4px 10px; background: rgba(16,185,129,0.15); color: var(--highlight); border: 1px solid rgba(16,185,129,0.4); border-radius: 8px; cursor: pointer; font-weight: 600; }
.exam-edit-btn:hover { background: rgba(16,185,129,0.25); }
.exam-ring-item.dragging { opacity: 0.6; }
.exam-ring-item[draggable="true"] { cursor: grab; }
.exam-ring-item[draggable="true"]:active { cursor: grabbing; }

/* 考试倒计时编辑弹窗 */
.exam-config-modal .modal-box { max-width: 1200px; width: 90%; height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.exam-config-modal .exam-config-header { padding: 24px 32px; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; background: #fff; flex-shrink: 0; }
.exam-config-modal .exam-config-header h3 { font-size: 20px; font-weight: 800; color: var(--text-main); letter-spacing: 0.5px; }
.exam-config-modal .exam-config-body { flex: 1; overflow-y: auto; padding: 32px 40px; background: #f8fafc; }
.exam-config-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border-radius: 16px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: all 0.3s ease; }
.exam-config-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: rgba(16,185,129,0.2); }
.exam-config-item .drag-handle { cursor: grab; color: #cbd5e1; font-size: 18px; padding: 8px; transition: color 0.2s; }
.exam-config-item .drag-handle:hover { color: var(--highlight); }
.exam-config-item .exam-config-fields { display: flex; align-items: center; gap: 16px; flex: 1; flex-wrap: wrap; }
.exam-config-item .exam-config-field { flex: 1; min-width: 120px; }
.exam-config-item .exam-config-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.exam-config-item input.form-input, .exam-config-item select.form-select { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; background: #f9fafb; transition: all 0.3s; }
.exam-config-item input.form-input:focus, .exam-config-item select.form-select:focus { border-color: var(--highlight); background: #fff; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.exam-config-item input[type="color"] { width: 48px; height: 40px; padding: 4px; cursor: pointer; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; }
.exam-config-item .del-btn { color: #94a3b8; cursor: pointer; padding: 10px; border-radius: 10px; transition: all 0.2s; font-size: 14px; }
.exam-config-item .del-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.exam-config-add { width: 100%; padding: 20px; border: 2px dashed #e2e8f0; border-radius: 16px; background: rgba(255,255,255,0.6); color: var(--text-sub); font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.exam-config-add:hover { border-color: var(--highlight); color: var(--highlight); background: rgba(16,185,129,0.06); }
.exam-config-footer { padding: 24px 40px; border-top: 1px solid rgba(0,0,0,0.06); background: #fff; flex-shrink: 0; }
.exam-config-save { width: 100%; padding: 16px; background: var(--highlight); color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.exam-config-save:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.4); }

/* ========== 足迹+日历卡片 ========== */
.weather-activity-combo {
    padding: 20px;
    position: relative;
}
.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

/* 迷你活动图表 */
.activity-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
    padding: 6px;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.5);
}
.activity-bar {
    width: 5px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    transition: all 0.4s var(--ease-out-back);
    cursor: pointer;
}
.activity-bar:hover {
    transform: scaleY(1.3) scaleX(1.2);
    filter: brightness(1.2);
}
.activity-bar.active {
    background: var(--highlight);
    box-shadow: 0 0 10px var(--highlight-glow);
}

/* 迷你日历 */
.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 12px;
}
.cal-day-header {
    font-size: 9px;
    color: var(--text-sub);
    opacity: 0.6;
    text-align: center;
    font-weight: 600;
    padding: 2px;
}
.cal-day {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sub);
    transition: all 0.2s ease;
    cursor: pointer;
}
.cal-day:hover {
    background: rgba(0,0,0,0.06);
    transform: scale(1.15);
}
.cal-day.today {
    background: var(--highlight);
    color: white;
    box-shadow: 0 0 12px var(--highlight-glow);
    font-weight: 700;
    animation: todayPulse 2s infinite;
}
@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 8px var(--highlight-glow); }
    50% { box-shadow: 0 0 16px var(--highlight-glow); }
}
.cal-day.has-activity {
    position: relative;
}
.cal-day.has-activity::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 3px;
    height: 3px;
    background: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--highlight-glow);
}

.combo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 11px;
    color: var(--text-sub);
    position: relative;
    z-index: 1;
}
.footprint-count {
    font-weight: 800;
    color: var(--highlight);
    font-family: 'SF Mono', monospace;
    font-size: 13px;
}

.search-wrapper { display: flex; gap: 10px; position: relative; width: 100%; margin-bottom: 12px; transition: all 0.4s var(--ease-out-back); z-index: 20; }
.tag-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; align-items: center; }
.tag-filter-item { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--text-sub); background: rgba(0,0,0,0.04); cursor: pointer; transition: all 0.3s var(--ease-out-back); border: 1px solid transparent; }
.tag-filter-item:hover { background: rgba(16,185,129,0.1); color: var(--highlight); transform: scale(1.05); }
.tag-filter-item.active { background: var(--highlight); color: #fff; border-color: var(--highlight); }
.search-wrapper:focus-within { transform: translateY(-2px); }
.search-input { flex: 1; width: 100%; padding: 20px 30px; border: none; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(24px); border-radius: 27px; font-size: 15px; outline: none; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); transition: all 0.3s; color: var(--text-main); font-weight: 500; }
.search-input::placeholder { color: #94a3b8; font-weight: 400; }
.search-input:focus { background: #fff; box-shadow: var(--shadow-lg); border-color: #fff; }
.search-btn { flex-shrink: 0; width: 64px; height: 64px; background: var(--text-main); border: none; border-radius: 27px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease-out-back); }
.search-btn:hover { background: #000; transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.search-btn svg { stroke: currentColor; }
.search-btn-primary { background: var(--highlight); color: #fff; }
.search-btn-primary:hover { background: #059669; }

.news-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(24px) saturate(150%); border-radius: 24px; box-shadow: var(--shadow-sm); cursor: pointer; position: relative; border: 1px solid rgba(255, 255, 255, 0.8); display: flex; flex-direction: column; opacity: 0; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease; }
.news-card.visible { opacity: 1; }
.news-card:hover { box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, 0.9); border-color: #fff; z-index: 10; }
.news-card * { pointer-events: none !important; }
.news-cover-box { position: relative; width: calc(100% - 24px); height: 0; padding-bottom: 45%; margin: 12px 12px 0 12px; border-radius: 16px; background: #f1f5f9; overflow: hidden; }
.news-cover-box img, .news-cover-box video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.news-card:hover .news-cover-box img { transform: scale(1.08); }
.news-content { padding: 24px 30px 30px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-family: "SF Mono", monospace; font-size: 12px; color: var(--text-sub); margin-bottom: 12px; font-weight: 600; align-self: flex-start; letter-spacing: 0.5px; }
.news-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.5px; }
.news-desc { font-size: 15px; color: var(--text-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; font-weight: 400; }
.news-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,0.04); padding-top: 20px; margin-top: auto; }
.read-more { font-size: 13px; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.2s; }
.news-card:hover .read-more { color: var(--highlight); }
.news-category-tag { font-size: 11px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,0.05); color: var(--text-sub); font-weight: 600; margin-left: 4px; }
.news-category-tag.admin { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.news-category-tag.tag-study { background: rgba(16, 185, 129, 0.12); color: var(--highlight); }
.news-category-tag.tag-daily { background: rgba(59, 130, 246, 0.12); color: var(--info); }
.news-category-tag.tag-bubei { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.news-category-tag.tag-game { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.markdown-body { font-size: 16px; line-height: 1.8; color: #334155; word-wrap: break-word; font-weight: 400; }
.markdown-body img, .markdown-body video { max-width: 100%; max-height: 400px; width: auto; border-radius: 16px; margin: 24px 0; box-shadow: var(--shadow-sm); display: block; cursor: zoom-in; object-fit: contain; background: #f8fafc; pointer-events: auto; transition: box-shadow 0.4s ease; }
.markdown-body img:hover, .markdown-body video:hover { box-shadow: var(--shadow-lg); }
.markdown-body p { margin-bottom: 20px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 32px; margin-bottom: 20px; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.markdown-body blockquote { padding: 12px 20px; color: #64748b; border-left: 4px solid var(--text-main); background: rgba(0,0,0,0.02); border-radius: 0 12px 12px 0; margin: 0 0 20px 0; font-style: italic; }
.markdown-body a { color: var(--text-main); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.2); transition: all 0.2s; }
.markdown-body a:hover { color: var(--highlight); border-bottom-color: var(--highlight); }

.unified-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.unified-lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-media { max-width: 90vw; max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,0.3); border-radius: 12px; user-select: none; transition: opacity 0.3s ease; cursor: grab; }
.lightbox-media:active { cursor: grabbing; }
.lightbox-close { position: absolute; top: 30px; right: 30px; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; z-index: 10002; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; transition: all 0.3s; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.05); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); font-size: 20px; transition: all 0.3s; z-index: 10001; backdrop-filter: blur(10px); }
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 40px; } .lb-next { right: 40px; }
.lightbox-counter { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 600; font-family: "SF Mono", monospace; background: rgba(0, 0, 0, 0.4); padding: 8px 20px; border-radius: 30px; backdrop-filter: blur(8px); }
#lightboxCounter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; font-size: 14px; }

.video-wrapper { position: relative; display: inline-block; max-width: 100%; margin: 24px 0; cursor: zoom-in; border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow 0.4s ease; overflow: hidden; background: #000; transform-style: preserve-3d; }
.video-wrapper:hover { box-shadow: var(--shadow-lg); }
.video-wrapper video { display: block; max-width: 100%; max-height: 400px; width: auto; margin: 0 !important; box-shadow: none !important; border-radius: 0; pointer-events: none; opacity: 0.85; transition: opacity 0.4s; }
.video-wrapper:hover video { opacity: 1; }
.video-play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(30px); width: 60px; height: 60px; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; pointer-events: none; transition: all 0.4s var(--ease-out-back); }
.video-wrapper:hover .video-play-overlay { background: var(--highlight); border-color: var(--highlight); transform: translate(-50%, -50%) scale(1.15) translateZ(50px); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
.video-play-overlay svg { width: 24px; height: 24px; fill: currentColor; margin-left: 4px; }

.right-progress-bar { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); width: 30px; height: 60vh; z-index: 95; display: flex; align-items: center; justify-content: center; }
.progress-track-vertical { width: 3px; height: 100%; background: rgba(0,0,0,0.06); border-radius: 4px; position: relative; cursor: pointer; }
.progress-walker-vertical { position: absolute; left: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; cursor: grab; z-index: 10; color: var(--text-main); user-select: none; transition: color 0.3s; }
.progress-walker-vertical.dragging { cursor: grabbing; transform: translate(-50%, -50%) scale(1.2); color: var(--highlight); }
.progress-walker-vertical svg { width: 100%; height: 100%; stroke: currentColor; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }

.fab-wrapper { position: fixed; bottom: 175px; left: 30px; z-index: 900; }
.fab-main-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--text-main); color: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s var(--ease-out-back); position: relative; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.2); }
.fab-main-btn:hover { transform: scale(1.08); background: #000; box-shadow: var(--shadow-lg); }
.fab-main-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: absolute; transition: all 0.4s var(--ease-out-back); }
.fab-main-btn .close-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab-wrapper:hover .fab-main-btn .menu-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab-wrapper:hover .fab-main-btn .close-icon { opacity: 1; transform: rotate(0) scale(1); }
.fab-menu { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 12px; padding-bottom: 16px; pointer-events: none; }
.fab-wrapper:hover .fab-menu { pointer-events: auto; }
.fab-item { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-sub); opacity: 0; transform: translateY(15px) scale(0.8); transition: all 0.4s var(--ease-out-back); margin: 0 auto; }
.fab-item:hover { transform: scale(1.1) !important; color: var(--text-main); background: #fff; box-shadow: var(--shadow-lg); }
.fab-item svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fab-wrapper:hover .fab-item { opacity: 1; transform: translateY(0) scale(1); }
.fab-wrapper:hover .fab-item:nth-child(1) { transition-delay: 0.05s; }
.fab-wrapper:hover .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-wrapper:hover .fab-item:nth-child(3) { transition-delay: 0.15s; }

.immersive-trigger-btn { position: fixed; bottom: 110px; left: 30px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--text-main); box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s var(--ease-out-back); }
.immersive-trigger-btn:hover { transform: scale(1.08); background: #f8fafc; box-shadow: var(--shadow-lg); }
.immersive-trigger-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.scroll-top-btn { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.4s var(--ease-out-back); z-index: 800; color: var(--text-main); transform: translateY(20px); }
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { transform: translateY(-4px); background: #fff; }
.scroll-top-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none;}

.modal-mask { position: fixed; inset: 0; background: rgba(248, 250, 252, 0.85); backdrop-filter: blur(12px); z-index: 2000; opacity: 0; pointer-events: none; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { opacity: 1; pointer-events: auto; visibility: visible; }
.modal-box { width: 100%; max-width: 1200px; height: 90vh; background: #fff; border-radius: 28px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15); display: flex; overflow: hidden; transform: translateY(20px) scale(0.98); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(0,0,0,0.05); position: relative; }
.modal-mask.show .modal-box { transform: translateY(0) scale(1); }
.modal-actions { position: absolute; top: 24px; right: 24px; z-index: 100; display: flex; gap: 12px; }
.modal-action-btn { width: 40px; height: 40px; background: rgba(241, 245, 249, 0.8); backdrop-filter: blur(8px); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 16px; transition: all 0.3s; color: var(--text-main); }
.modal-action-btn:hover { background: #e2e8f0; transform: scale(1.05); }
.modal-action-btn.modal-delete-btn:hover { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.modal-action-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.modal-inner { display: flex; width: 100%; height: 100%; position: relative; }
.modal-left { flex: 1; padding: 70px 100px; overflow-y: auto; background: #fff; transition: all 0.5s var(--ease-smooth); min-width: 0; }
.modal-right { width: 0; background: #fafafa; border-left: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transition: all 0.5s var(--ease-smooth); transform: translateX(30px); }
.modal-box.show-comments .modal-left { padding-right: 60px; }
.modal-box.show-comments .modal-right { width: 420px; opacity: 1; transform: translateX(0); padding: 80px 40px 40px 40px; }

.comment-text img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin-top: 8px; display: block; cursor: zoom-in; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.morph-comment-container { 
    position: relative; 
    width: 100%; 
    background: #f1f5f9; 
    border-radius: 50px; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    overflow: hidden; 
    border: 1px solid transparent; 
    cursor: text; 
    margin-top: 10px; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); 
}
.morph-comment-container.active { 
    background: #fff; 
    border-radius: 16px; 
    border-color: #e2e8f0; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); 
    cursor: default; 
}

.morph-input-box { 
    position: relative; 
    display: flex; 
    align-items: center; 
    min-height: 38px; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.morph-icon-edit { 
    position: absolute; 
    left: 14px; 
    width: 16px; 
    height: 16px; 
    stroke: #64748b; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    pointer-events: none; 
    z-index: 2; 
}
.morph-comment-container.active .morph-icon-edit { 
    opacity: 0; 
    transform: scale(0.5) rotate(-45deg); 
}

.comment-input { 
    width: 100%; 
    min-height: 20px; 
    padding: 8px 20px 8px 38px; 
    background: transparent; 
    border: none; 
    outline: none; 
    resize: none; 
    font-size: 14px; 
    line-height: 1.5; 
    color: var(--text-main); 
    font-family: inherit; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    margin: 0; 
}
.comment-input::placeholder { 
    color: #94a3b8; 
    font-weight: 500; 
    transition: opacity 0.3s; 
}
.morph-comment-container.active .comment-input { 
    padding: 16px 20px; 
    min-height: 100px; 
}

.morph-extended-area { 
    max-height: 0; 
    opacity: 0; 
    visibility: hidden; 
    transition: max-height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.2s ease-out,
                transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.3s;
    transform: translateY(-8px) scale(0.98); 
    transform-origin: top center;
    background: #fff; 
}
.morph-comment-container.active .morph-extended-area { 
    max-height: 250px; 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0) scale(1);
    transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.4s ease-in 0.1s,
                transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.morph-comment-container .comment-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px dashed #e2e8f0; 
    background: #fdfdfd; 
    padding: 10px 16px; 
    margin: 0; 
    border-radius: 0 0 16px 16px; 
}
.morph-comment-container #commentImagePreviews { 
    padding: 10px 16px; 
    background: #fff; 
    border: none; 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.mini-preview-wrap { position: relative; width: 50px; height: 50px; border-radius: 8px; border: 1px solid #eee; background: #f8fafc; }
.mini-preview-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.mini-preview-del { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 14px; line-height: 14px; text-align: center; cursor: pointer; font-weight: bold; }
.btn-upload-img { background: transparent; border: 1px solid #e2e8f0; color: var(--text-sub); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.btn-upload-img:hover { color: var(--text-main); border-color: var(--text-main); background: #f8fafc; }
.comment-btn { background: var(--text-main); color: #fff; border: none; padding: 10px 28px; border-radius: 12px; font-weight: 600; cursor: pointer; align-self: flex-end; transition: all 0.2s; }
.comment-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.comment-item { display: flex; gap: 16px; margin-bottom: 28px; animation: fadeIn 0.4s ease-out; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.comment-item.is-reply { margin-left: 56px; position: relative; }
.comment-item.is-reply::before { content: ''; position: absolute; left: -28px; top: 20px; width: 16px; height: 2px; background: #e2e8f0; border-radius: 2px; }
.comment-reply-btn { font-size: 12px; font-weight: 600; color: var(--text-sub); cursor: pointer; margin-left: 12px; transition: color 0.2s; }
.comment-reply-btn:hover { color: var(--text-main); }
.reply-indicator { background: #f1f5f9; padding: 10px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--text-sub); display: none; justify-content: space-between; align-items: center; border: 1px solid #e2e8f0; }
.reply-indicator.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.toast { position: fixed; top: 40px; left: 50%; transform: translateX(-50%) translateY(-100%); background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); color: #fff; padding: 12px 28px; border-radius: 30px; font-size: 14px; font-weight: 600; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transition: all 0.4s var(--ease-out-back); z-index: 100001; opacity: 0; visibility: hidden; pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast-login-btn { background: var(--highlight); color: #fff; border: none; padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); outline: none; letter-spacing: 0.5px; }
.toast-login-btn:hover { background: #059669; transform: scale(1.05); box-shadow: 0 4px 10px rgba(16,185,129,0.3); }
.immersive-overlay { position: fixed; inset: 0; z-index: 1900; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(24px) saturate(120%); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; visibility: hidden; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; perspective: 1500px; }
.immersive-overlay.show { opacity: 1; pointer-events: auto; visibility: visible; }
.im-close-btn { position: absolute; top: 40px; right: 40px; width: 48px; height: 48px; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10002; transition: all 0.3s; }
.im-close-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.im-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
.im-card { position: absolute; width: 480px; height: 540px; border-radius: 32px; background: #1e293b; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5); overflow: hidden; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, filter 0.6s ease; cursor: pointer; }
.im-bg-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.im-bottom-info { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 60px 30px 30px 30px; background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 40%, rgba(15,23,42,0) 100%); display: flex; flex-direction: column; gap: 10px; }
.im-title-row { display: flex; justify-content: space-between; align-items: flex-end; }
.im-title { font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); letter-spacing: 0.5px; }
.im-date { font-size: 12px; font-family: 'SF Mono', monospace; color: #cbd5e1; font-weight: 600; }
.im-quote { font-size: 15px; color: #e2e8f0; line-height: 1.6; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.form-input, .form-textarea, .form-select { width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; font-size: 14px; transition: all 0.3s; background: #f9f9f9; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--highlight); background: #fff; box-shadow: 0 0 0 3px rgba(16,185,129,0.1);}
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); margin-bottom: 8px; }

@media (max-width: 900px) {
  .main-container { flex-direction: column; align-items: center; padding: 60px 20px 60px !important; gap: 30px; }
  .sidebar-left { width: 100%; max-width: 420px; position: relative; top: 0; }
  .sticky-group { position: relative; top: 0; }
  .content-right { width: 100%; max-width: 420px; }
  .modal-mask { padding: 0; }
  .modal-box { width: 100%; height: 100%; border-radius: 0; }
  .modal-inner { flex-direction: column; }
  .modal-left { padding: 30px 20px 100px; flex: 1; }
  .modal-right { position: absolute; bottom: 0; left: 0; right: 0; height: 75%; width: 100% !important; transform: translateY(100%); border-left: none; border-top: 1px solid rgba(0,0,0,0.05); background: #fff; z-index: 200; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
  .modal-box.show-comments .modal-right { transform: translateY(0); padding: 30px 20px 20px; }
  .im-card { width: 320px; height: 440px; }
  .notice-panel {
      top: 60px; left: 0; right: 0; width: 100%;
      transform-origin: top center; transform: translateY(-10px) scale(0.95);
    }
    .notice-panel.show { transform: translateY(0) scale(1); }
  .notice-panel {
      top: 60px; left: 0; right: 0; width: 100%;
      transform-origin: top center; transform: translateY(-10px) scale(0.95);
  }
  .avatar-dropdown {
      top: calc(100% + 10px); left: 50%; right: auto;
      transform-origin: top center; 
      transform: translateX(-50%) translateY(-20px) scale(0.4) translateZ(50px);
  }
  .avatar-dropdown.show { transform: translateX(-50%) translateY(0) scale(1) translateZ(50px); }
  .settings-btn-wrapper .avatar-dropdown {
      left: 50%; transform: translateX(-50%) translateY(-20px) scale(0.4) translateZ(50px);
  }
  .settings-btn-wrapper .avatar-dropdown.show { transform: translateX(-50%) translateY(0) scale(1) translateZ(50px); }
  .exam-config-modal .exam-config-body { padding: 20px 16px; }
  .exam-config-item { flex-wrap: wrap; }
  .exam-config-item .exam-config-fields { flex-direction: column; align-items: stretch; }
  .exam-config-item .exam-config-field { min-width: 100% !important; }
}
.editor-layout { display: flex; flex: 1; overflow: hidden; flex-direction: column; background: #fff; border-radius: 16px; margin-top: 10px; }
.editor-wrapper { flex: 1; display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.editor-toolbar { display: flex; gap: 8px; padding: 10px 15px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.toolbar-btn { padding: 6px 12px; border: none; background: transparent; color: var(--text-sub); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.toolbar-btn:hover { background: #e2e8f0; color: var(--text-main); }
.editor-content-area { flex: 1; display: flex; position: relative; min-height: 300px; }
#fdContent { flex: 1; border: none; padding: 20px; resize: none; font-family: 'SF Mono', monospace; font-size: 14px; line-height: 1.6; outline: none; background: #fff; transition: background 0.3s; color: var(--text-main); }
#fdContent:focus { background: #fdfdfd; }
#fdPreview { flex: 1; padding: 20px; overflow-y: auto; display: none; background: #fff; border-top: 1px solid #eee; }
#fdPreview.show { display: block; }
.preview-toggle-btn { margin-left: auto; background: var(--text-main); color: #fff; }
.preview-toggle-btn:hover { background: #000; color: #fff; }
.modal-box.editor-mode { max-width: 1080px !important; height: 85vh !important; flex-direction: column; }
.fd-toolbar-svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: all 0.2s; }
.toolbar-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; background: transparent; color: var(--text-sub); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.toolbar-btn:hover { background: #e2e8f0; color: var(--text-main); transform: translateY(-2px); }
/* 倒计时卡片悬停效果 */
.exam-ring-item:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.exam-ring-item .ring-content {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exam-ring-item:hover .ring-content {
    transform: scale(1.15);
}
.exam-ring-item .exam-name {
    transition: transform 0.4s;
}
.check-score-btn {
    font-size: 14px !important;
    cursor: pointer;
    pointer-events: auto !important; 
}
#mgxTriggerBtn{position:fixed;bottom:30px;left:30px;z-index:9999;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:rgba(255,255,255,0.9);color:#1e293b}