/* 全局样式 - 平舆一高校园风格 */
:root {
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --confession-pink: #f472b6;
    --confession-purple: #a78bfa;
    --campus-green: #22c55e;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    background: #f8fafc;
}

/* 简洁背景 - 不花哨 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* 导航栏 - 简洁专业 */
.navbar {
    background: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-link {
    font-size: 0.95rem;
    padding: 8px 16px !important;
}

/* 卡片 - 朴素实用 */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    background: white;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 16px;
}

/* 按钮 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #e11d48;
    border-color: #e11d48;
}

.btn-danger:hover {
    background: #be123c;
}

/* 表白墙卡片 - 手写风格 */
.confession-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 2px 2px 0 #d97706;
    border: 1px solid #fbbf24;
    position: relative;
    font-family: "STKaiti", "KaiTi", serif;
}

.confession-card::before {
    display: none;
}

.confession-card .emotion-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.5);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-bottom: 8px;
}

/* 纸条 - 便签风格 */
.paper-note {
    background: #fff;
    border-left: 3px solid #fbbf24;
    padding: 12px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

/* 分类标签 */
.category-badge {
    font-size: 0.85em;
    padding: 6px 14px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.category-badge:hover,
.category-badge.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.avatar-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* 列表项 */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 16px;
}

.list-group-item:hover {
    background: #f8fafc;
}

/* 投票按钮 */
.vote-btn {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.vote-btn:hover {
    color: #2563eb;
}

.vote-btn.upvoted { color: #2563eb; }
.vote-btn.downvoted { color: #ef4444; }

/* 置顶标签 */
.sticky-badge {
    background: #fbbf24;
    color: #78350f;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

/* 表单 */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 图片 */
.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    margin: 8px 0;
}

/* 页脚 */
footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
}

/* 首页横幅 */
.card.bg-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
}

/* 标题 */
h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e293b;
}

/* 文本 */
p {
    line-height: 1.7;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 响应式 */
@media (max-width: 768px) {
    .confession-card { padding: 14px; }
    .card { border-radius: 6px; }
    body { font-size: 14px; }
    .avatar-large { width: 60px; height: 60px; }
}
