/* CSS: /www/wwwroot/ai.lovesb.cn/public/qsq/css/qsq.css */
/* 通用样式已在 common.css 中定义，本文件仅包含糗事墙专属样式 */

/* 糗事墙顶部 banner */
.qsq-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 1.5rem;
}
.qsq-header h1 { margin: 0; font-size: 1.5rem; }
.qsq-header p { margin: 0.5rem 0 0; opacity: 0.9; font-size: 0.9rem; }

/* 章节标题（糗事墙用的较小标题） */
.qsq-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0 1rem;
    margin: 1.5rem 0 0.8rem;
}

/* 学校列表 */
.school-list { padding: 0 1rem; }

.school-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.school-item:active { transform: scale(0.98); }

.school-avatar {
    width: 52px; height: 52px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.school-avatar-placeholder {
    width: 52px; height: 52px;
    border-radius: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.school-info { flex: 1; min-width: 0; }

.school-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.school-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-meta {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 2px;
    display: flex;
    gap: 0.8rem;
}

/* 我创建的学校 */
.my-school-item {
    border-left: 3px solid #ee5a24;
}
.my-school-item .key-badge {
    background: #fff3e0;
    color: #e65100;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
    margin-left: auto;
    flex-shrink: 0;
}

/* 创建按钮 */
.create-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}
.create-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* 创建弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-box h3 { margin: 0 0 1rem; color: var(--primary); }
.modal-box .form-row { margin-bottom: 0.8rem; }
.modal-box label { display: block; margin-bottom: 0.3rem; color: var(--text-secondary); font-size: 0.85rem; }
.modal-box input, .modal-box textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.modal-box input:focus, .modal-box textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.modal-box textarea { resize: vertical; min-height: 50px; }

.modal-submit {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-submit:hover { opacity: 0.9; }

.modal-cancel {
    width: 100%;
    padding: 0.7rem;
    background: #f5f5f5;
    color: var(--text-secondary);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* 提示消息 */
.alert-ok {
    background: #e8f5e9; color: #2e7d32;
    padding: 0.8rem 1rem; border-radius: 8px;
    margin: 1rem; font-size: 0.9rem;
}
.alert-err {
    background: #fce4ec; color: #c62828;
    padding: 0.8rem 1rem; border-radius: 8px;
    margin: 1rem; font-size: 0.9rem;
}

/* 空状态 - 白色圆角卡片 */
.empty-state-card {
    background: #fffef9;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(93,64,55,0.07);
    border: 1px solid rgba(200,180,150,0.2);
    margin-top: 0.5rem;
}

.empty-emoji {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    line-height: 1;
}

.empty-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 0.5rem;
}

.empty-sub {
    font-size: 0.85rem;
    color: #bcaaa4;
    line-height: 1.6;
    margin: 0;
}

.login-tip {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.login-tip a { color: #ee5a24; font-weight: 500; }

/* 响应式 */
@media (max-width: 600px) {
    .section-title { font-size: 1.4rem; }
}
