/* ========================================
   6. 教师页面模块
======================================== */

/* 6.1 教师卡片 */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.teacher-card {
    background: var(--glass, rgba(255, 255, 255, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.85));
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(66, 165, 245, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(66, 165, 245, 0.15);
}

.avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--light);
    background-color: #eee;
}

.social-display-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    background: rgba(255, 248, 225, 0.4);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.icon-tag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    line-height: 20px;
    text-align: center;
    font-style: normal;
    font-weight: bold;
}

/* 6.2 教师页面布局 */
.teacher-page-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
}

.teacher-side {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.teacher-cat {
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
}

.teacher-cat.active {
    background: #f1f8e9;
    color: var(--primary-dark);
    font-weight: bold;
}

.teacher-main {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.teacher-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.teacher-search input {
    margin: 0;
}

/* 6.3 教师主页 / 编辑 */
.teacher-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.teacher-link {
    background: #f3f3f3;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

.teacher-course-list {
    margin-top: 10px;
}

.teacher-course-item {
    background: #f9fafb;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 10px;
    margin-top: 6px;
    cursor: pointer;
}

.teacher-signature {
    color: #666;
    font-size: 12px;
    margin: 6px 0;
}

.link-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.link-row input {
    margin: 0;
}

.platform-select {
    width: 100%;
}

/* 6.4 邀请码面板 */
.invite-panel {
    background: #fffbe6;
    border: 1px dashed #ffe58f;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.invite-code {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
    margin-right: 6px;
}


/* ========================================
   8. 详情页 / 评论区
======================================== */
.detail-section {
    text-align: left;
    margin-top: 12px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-tag {
    background: #f1f3f5;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 11px;
}

.detail-outline {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.detail-actions button {
    flex: 1;
}

.edit-area {
    background: #f8ffe6;
    border: 1px dashed #c5e1a5;
    padding: 10px;
    border-radius: 12px;
    margin-top: 12px;
}

.edit-area input,
.edit-area textarea {
    width: 100%;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.comment-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
}

.comment-meta {
    color: #888;
    font-size: 11px;
}

.reply-list {
    margin-top: 6px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.reply-input {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}


/* ========================================
   12. 响应式适配
======================================== */

/* 12.2 手机端 */
@media (max-width: 600px) {
    .teacher-page-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .teacher-side {
        padding: 10px;
    }

    .teacher-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .teacher-grid .teacher-card {
        padding: 12px 8px;
        border-radius: 16px;
        min-width: 0;
    }

    .teacher-grid .avatar-circle {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }

    .teacher-grid .teacher-card b {
        font-size: 13px;
    }

    .teacher-grid .teacher-card p {
        font-size: 11px;
    }

    .teacher-grid .social-display-list {
        gap: 4px;
        margin-top: 6px;
    }

    .teacher-grid .social-item {
        font-size: 9px;
        padding: 2px 4px;
    }

    .teacher-grid .btn-ui-tag-edit,
    .teacher-grid .btn-ui-tag-del {
        font-size: 10px;
        padding: 3px 6px;
    }
}