/* ============================================================
   凤凰杯编程学生笔记系统 - 科技风样式
   ============================================================ */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #111638;
    --bg-card: rgba(20, 28, 68, 0.6);
    --bg-card-solid: #141c44;
    --border-glow: rgba(0, 212, 255, 0.3);
    --accent: #00d4ff;
    --accent2: #7b61ff;
    --accent3: #00ffa3;
    --text-primary: #e8ecff;
    --text-secondary: #8892c0;
    --text-muted: #5a6394;
    --danger: #ff4d6d;
    --success: #00ffa3;
    --warning: #ffc107;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --radius: 12px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ============================================================
   登录页
   ============================================================ */
.login-body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1040 50%, #0d1b3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-particles { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}
.p1 { width: 300px; height: 300px; top: 10%; left: 10%; animation-delay: 0s; }
.p2 { width: 200px; height: 200px; top: 60%; right: 15%; animation-delay: -5s; background: radial-gradient(circle, var(--accent2) 0%, transparent 70%); }
.p3 { width: 250px; height: 250px; bottom: 10%; left: 30%; animation-delay: -10s; }
.p4 { width: 150px; height: 150px; top: 20%; right: 30%; animation-delay: -3s; background: radial-gradient(circle, var(--accent3) 0%, transparent 70%); }
.p5 { width: 180px; height: 180px; bottom: 30%; right: 40%; animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo img { width: 70px; height: 70px; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 0 30px rgba(0,212,255,0.4); }
.login-logo h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
.login-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 6px; letter-spacing: 4px; }

.login-error {
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: var(--danger);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.login-form .form-group { margin-bottom: 20px; }
.login-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}
.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 4px;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}
.btn-login:active { transform: translateY(0); }

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================================
   应用主布局
   ============================================================ */
.app-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #111638 100%);
}

.app-header {
    height: 60px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    flex-shrink: 0;
    z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 36px; height: 36px; border-radius: 8px; }
.header-title {
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.header-right { display: flex; align-items: center; gap: 15px; }

.header-btn {
    padding: 7px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    color: var(--accent);
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}
.header-btn:hover { background: rgba(0, 212, 255, 0.15); box-shadow: 0 0 15px rgba(0,212,255,0.2); }
.admin-btn { color: var(--accent3); border-color: rgba(0,255,163,0.25); background: rgba(0,255,163,0.08); }
.admin-btn:hover { background: rgba(0,255,163,0.15); box-shadow: 0 0 15px rgba(0,255,163,0.2); }
.logout-btn { color: var(--danger); border-color: rgba(255,77,109,0.25); background: rgba(255,77,109,0.08); }
.logout-btn:hover { background: rgba(255,77,109,0.15); }

.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}
.user-nick { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.admin-badge {
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    color: #0a0e27;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---------- 主体 ---------- */
.app-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    background: rgba(17, 22, 56, 0.6);
    border-right: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar-toolbar { padding: 15px; flex-shrink: 0; }
.btn-new {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-new:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(0,212,255,0.35); }

.search-box {
    padding: 0 15px 15px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.search-box input {
    flex: 1;
    padding: 9px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}
.search-box input:focus { border-color: var(--accent); }
.search-box select {
    padding: 9px 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

.note-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 15px;
}
.note-list::-webkit-scrollbar { width: 5px; }
.note-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.note-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}
.note-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(3px);
}
.note-item.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,97,255,0.1));
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,212,255,0.15);
}
.note-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-item-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.note-item-time { font-size: 11px; color: var(--text-muted); }

.note-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 15px;
    font-size: 13px;
}

/* 编辑区 */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.editor-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.placeholder-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.5; }
.editor-placeholder p { font-size: 15px; }

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    overflow: hidden;
}
.editor-meta {
    display: flex;
    gap: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.save-status { margin-left: auto; color: var(--success); font-weight: 500; }

.note-title-input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    flex-shrink: 0;
}
.note-title-input::placeholder { color: var(--text-muted); }

.note-content-input {
    flex: 1;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.8;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Consolas", "Monaco", "PingFang SC", "Microsoft YaHei", monospace;
}
.note-content-input:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(0,212,255,0.1); }

.editor-toolbar {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    flex-shrink: 0;
}
.btn-save {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(0,212,255,0.35); }
.btn-delete {
    padding: 10px 28px;
    background: rgba(255,77,109,0.1);
    border: 1px solid rgba(255,77,109,0.3);
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-delete:hover { background: rgba(255,77,109,0.2); }

/* ============================================================
   弹窗
   ============================================================ */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-header h2 {
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-close {
    width: 30px; height: 30px;
    background: rgba(255,77,109,0.1);
    border-radius: 50%;
    color: var(--danger);
    font-size: 14px;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,77,109,0.25); }

/* 排行榜 */
.ranking-modal { width: 500px; }
.ranking-list {
    overflow-y: auto;
    padding: 10px 20px 20px;
}
.ranking-list::-webkit-scrollbar { width: 5px; }
.ranking-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.rank-item:hover { border-color: rgba(0,212,255,0.2); transform: translateX(3px); }
.rank-num {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; box-shadow: 0 0 15px rgba(255,215,0,0.4); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-other { background: rgba(0,212,255,0.1); color: var(--accent); }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); }
.rank-info { flex: 1; }
.rank-nick { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.rank-school { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rank-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.rank-count small { font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* ============================================================
   后台管理
   ============================================================ */
.admin-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}
.admin-container::-webkit-scrollbar { width: 6px; }
.admin-container::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-icon { font-size: 36px; }
.stat-num {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

.admin-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    overflow: hidden;
}
.panel-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h3 { font-size: 16px; color: var(--text-primary); }
.panel-search input {
    padding: 8px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    width: 220px;
}
.panel-search input:focus { border-color: var(--accent); }

.user-table-wrap { overflow-x: auto; }
.user-table {
    width: 100%;
    border-collapse: collapse;
}
.user-table th {
    padding: 12px 18px;
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glow);
    background: rgba(0,0,0,0.2);
}
.user-table td {
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,212,255,0.06);
}
.user-table tr:hover { background: rgba(0,212,255,0.05); }
.user-table img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); }

.btn-view-notes {
    padding: 5px 12px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--accent);
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-view-notes:hover { background: rgba(0,212,255,0.2); }

/* 用户笔记弹窗 */
.user-notes-modal { width: 600px; }
.user-notes-list { overflow-y: auto; padding: 10px 20px 20px; max-height: 60vh; }
.user-notes-list::-webkit-scrollbar { width: 5px; }
.user-notes-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.user-note-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.user-note-item:hover { border-color: rgba(0,212,255,0.2); transform: translateX(3px); }
.user-note-item .title { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.user-note-item .preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.user-note-item .time { font-size: 11px; color: var(--text-muted); }

/* 笔记详情弹窗 */
.note-detail-modal { width: 700px; }
.note-detail-meta {
    padding: 12px 25px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0,212,255,0.1);
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}
.note-detail-content {
    padding: 20px 25px;
    overflow-y: auto;
    max-height: 50vh;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: "Consolas", "Monaco", "PingFang SC", "Microsoft YaHei", monospace;
}
.note-detail-actions {
    padding: 15px 25px;
    border-top: 1px solid rgba(0,212,255,0.1);
    flex-shrink: 0;
}

/* ============================================================
   共享笔记功能
   ============================================================ */
.shared-btn {
    color: var(--accent3);
    border-color: rgba(0,255,163,0.25);
    background: rgba(0,255,163,0.08);
}
.shared-btn:hover { background: rgba(0,255,163,0.15); box-shadow: 0 0 15px rgba(0,255,163,0.2); }

.btn-share {
    padding: 10px 24px;
    background: rgba(0,255,163,0.1);
    border: 1px solid rgba(0,255,163,0.3);
    color: var(--accent3);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-share:hover { background: rgba(0,255,163,0.2); }
.btn-share.shared-active {
    background: linear-gradient(135deg, rgba(0,255,163,0.2), rgba(0,212,255,0.15));
    border-color: var(--accent3);
    box-shadow: 0 0 12px rgba(0,255,163,0.2);
}

.shared-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    background: rgba(0,255,163,0.15);
    color: var(--accent3);
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 500;
}
.note-item.shared {
    border-left: 3px solid var(--accent3);
}

.shared-modal { width: 620px; }
.shared-search {
    padding: 15px 20px 10px;
    flex-shrink: 0;
}
.shared-search input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}
.shared-search input:focus { border-color: var(--accent); }

.shared-list {
    overflow-y: auto;
    padding: 5px 20px 20px;
    max-height: 65vh;
}
.shared-list::-webkit-scrollbar { width: 5px; }
.shared-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.shared-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
}
.shared-item:hover {
    border-color: rgba(0,255,163,0.25);
    transform: translateX(3px);
    background: rgba(0,255,163,0.05);
}
.shared-item-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent3);
    flex-shrink: 0;
}
.shared-item-info { flex: 1; min-width: 0; }
.shared-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shared-item-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.shared-item-meta {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
    align-items: center;
}
.shared-item-author { color: var(--accent3); font-weight: 500; }
.shared-item-views { color: var(--accent); }

.shared-detail-modal { width: 720px; }
.shared-author {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    flex-shrink: 0;
}
.shared-author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent3);
}
.shared-author-nick {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent3);
}
.shared-author-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.shared-detail-content {
    padding: 20px 25px;
    overflow-y: auto;
    max-height: 45vh;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-primary);
    font-family: "Consolas", "Monaco", "PingFang SC", "Microsoft YaHei", monospace;
    flex: 1;
}
.shared-detail-content::-webkit-scrollbar { width: 5px; }
.shared-detail-content::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

.shared-views {
    padding: 14px 25px;
    border-top: 1px solid rgba(0,212,255,0.1);
    flex-shrink: 0;
}
.shared-views-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.shared-views-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.view-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.2);
    padding: 3px 10px 3px 3px;
    border-radius: 20px;
    transition: all 0.2s;
}
.view-item:hover { background: rgba(0,212,255,0.1); }
.view-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--accent);
}
.view-nick {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.no-views { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Toast 提示
   ============================================================ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(0,255,163,0.4); color: var(--success); }
.toast.error { border-color: rgba(255,77,109,0.4); color: var(--danger); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { width: 220px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .header-title { display: none; }
    .ranking-modal, .user-notes-modal, .note-detail-modal, .shared-modal, .shared-detail-modal { width: 92%; }
}
