/* 全局样式 - 教案活井 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a202c; background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); min-height: 100vh; }

/* 头部样式 */
header { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; padding: 1rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0; display: flex; align-items: center; gap: 0.5rem; }
header h1::before { content: '📚'; font-size: 1.75rem; }

/* 移动端菜单切换按钮 */
.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.mobile-menu-toggle span { width: 25px; height: 3px; background-color: white; border-radius: 2px; transition: all 0.3s ease; }

/* 导航样式 */
.main-nav ul { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; gap: 0.25rem; }
.main-nav ul li { margin: 0; }
.main-nav ul li a { color: white; text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.2s ease; display: inline-block; }
.main-nav ul li a:hover { background-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
.main-nav ul li a.active { background-color: rgba(255,255,255,0.25); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* 主内容样式 */
main { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }

/* 英雄区域 */
.hero { text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%); border-radius: 16px; margin-bottom: 3rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.hero h2 { font-size: 2.75rem; margin-bottom: 1.25rem; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; letter-spacing: -0.025em; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; color: #4a5568; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.btn-primary { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; border: none; padding: 1rem 2.25rem; font-size: 1.1rem; font-weight: 600; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); }

/* 功能区域 */
.features { margin-bottom: 3rem; }
.features h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; color: #1a202c; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.feature-item { background-color: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); transition: all 0.3s ease; display: flex; flex-direction: column; border: 1px solid #e2e8f0; }
.feature-item:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04); border-color: #c7d2fe; }
.feature-icon { font-size: 3.5rem; margin-bottom: 1rem; text-align: center; }
.feature-item h3 { margin-bottom: 0.75rem; color: #4f46e5; text-align: center; font-size: 1.35rem; font-weight: 700; }
.feature-item p { margin-bottom: 1.5rem; flex-grow: 1; color: #4a5568; }
.btn-secondary { background-color: white; color: #4f46e5; border: 2px solid #c7d2fe; padding: 0.75rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; align-self: center; }
.btn-secondary:hover { background-color: #4f46e5; color: white; border-color: #4f46e5; transform: translateY(-1px); }

/* 演示区域 */
.demo { margin-bottom: 3rem; }
.demo h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; color: #1a202c; font-weight: 700; }
.demo-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.75rem; }
.demo-step { background-color: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); flex: 1; min-width: 260px; text-align: center; position: relative; padding-top: 3rem; border: 1px solid #e2e8f0; }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 1.25rem; box-shadow: 0 4px 6px -1px rgba(79,70,229,0.3); }
.demo-step h3 { margin-bottom: 0.75rem; color: #4f46e5; font-weight: 700; }
.demo-step p { color: #4a5568; }

/* UI组件展示区域 */
.ui-components { margin-bottom: 3rem; }
.ui-components h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; color: #1a202c; font-weight: 700; }
.component-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.component-item { background-color: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.component-item h3 { margin-bottom: 1rem; color: #1a202c; text-align: center; font-weight: 700; }
.component-preview { display: flex; justify-content: center; align-items: center; padding: 1.25rem; background-color: #f7fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.subject-selector, .grade-selector { width: 100%; padding: 0.875rem; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s ease; }
.subject-selector:focus, .grade-selector:focus { outline: none; border-color: #4f46e5; }
.topic-input { width: 100%; padding: 0.875rem; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s ease; }
.topic-input:focus { outline: none; border-color: #4f46e5; }
.btn-generate { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; border: none; padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.btn-generate:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

/* 按钮点击效果 */
button.clicked { transform: scale(0.97); transition: transform 0.1s ease; }

/* 页脚样式 */
footer { background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); color: white; margin-top: 3rem; padding-top: 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.footer-info h3 { margin-bottom: 1rem; color: #c7d2fe; font-size: 1.25rem; font-weight: 700; }
.footer-info p { color: #a0aec0; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1rem; color: #c7d2fe; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { color: #a0aec0; text-decoration: none; transition: color 0.2s ease; }
.footer-links ul li a:hover { color: #c7d2fe; }
.footer-contact p { color: #a0aec0; margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding: 1.75rem 0; border-top: 1px solid #4a5568; margin-top: 1rem; }
.footer-bottom p { color: #a0aec0; font-size: 0.95rem; }

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container { padding: 0 1rem; }
    .mobile-menu-toggle { display: flex; }
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
    .main-nav.active { max-height: 500px; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.5rem; }
    .main-nav ul li a { display: block; text-align: center; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1.05rem; }
    .demo-container { flex-direction: column; align-items: center; }
    .demo-step { width: 100%; }
    main { padding: 2rem 1rem; }
    .footer-container { padding: 1.5rem 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .component-grid { grid-template-columns: 1fr; }
    .course-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .experience-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .result-actions { flex-direction: column; }
    .upload-form { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions button { width: 100%; }
    .training-tabs { flex-direction: column; }
    .training-tab { border-bottom: 1px solid #e2e8f0; border-radius: 0; }
    .training-tab.active { border-bottom: 2px solid #4f46e5; }
    .tab-content { padding: 1rem; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.25rem; }
    .hero h2 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .feature-item { padding: 1.5rem; }
    .component-item { padding: 1.5rem; }
    .demo-step { padding: 1.5rem; }
    .grading-form { padding: 1.5rem; }
    .grading-results { padding: 1.5rem; }
    .result-section { padding: 1.25rem; }
    .chart-container { height: 200px; }
    .course-card { padding: 1.25rem; }
    .resource-card { padding: 1.25rem; }
    .experience-card { padding: 1.25rem; }
    .assessment-form { padding: 1.5rem; }
    .question-item { padding: 1rem; }
}

/* 作业批改辅助样式 */
.hero.small { padding: 2rem; margin-bottom: 1.5rem; }
.hero.small h2 { font-size: 2rem; }
.grading-section { margin-bottom: 3rem; }
.grading-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background-color: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.grading-form { background-color: #f7fafc; padding: 2rem; border-radius: 10px; border: 1px solid #e2e8f0; }
.grading-form h3 { margin-bottom: 1.5rem; color: #4f46e5; font-weight: 700; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #2d3748; }
.form-group select, .form-group input, .form-group textarea { width: 100%; padding: 0.875rem; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s ease; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #4f46e5; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.grading-results { background-color: #f7fafc; padding: 2rem; border-radius: 10px; border: 1px solid #e2e8f0; }
.grading-results h3 { margin-bottom: 1.5rem; color: #4f46e5; font-weight: 700; }
.result-section { margin-bottom: 2rem; padding: 1.5rem; background-color: white; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.result-section h4 { margin-bottom: 1rem; color: #2d3748; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; font-weight: 700; }
.result-content { line-height: 1.8; color: #4a5568; }
.result-content h5 { margin-top: 1rem; margin-bottom: 0.5rem; color: #4f46e5; font-weight: 700; }
.result-content h6 { margin-top: 1rem; margin-bottom: 0.5rem; color: #4a5568; font-weight: 600; }
.result-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.result-content li { margin-bottom: 0.5rem; }
.chart-container { margin-top: 1.5rem; height: 300px; position: relative; }
.loading { display: flex; justify-content: center; align-items: center; padding: 2rem; color: #718096; font-style: italic; }

/* 响应式设计 - 作业批改页面 */
@media (max-width: 768px) {
    .grading-section .container { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
    .form-actions { flex-direction: column; }
    .form-actions button { width: 100%; }
    .chart-container { height: 250px; }
}

@media (max-width: 480px) {
    .grading-form, .grading-results { padding: 1.25rem; }
    .chart-container { height: 200px; }
}

/* ==================== 网络状态和弱网模式样式 (FR-5) ==================== */
.network-status-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.network-status-indicator.online {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    color: white;
}

.network-status-indicator.offline {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    color: white;
}

.network-status-indicator.weak-network {
    background: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
    color: white;
}

.network-notification {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    max-width: 90%;
}

.network-notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 1;
}

.text-only-mode {
    background: white !important;
}

.text-only-mode img,
.text-only-mode .complex-graphics,
.text-only-mode video,
.text-only-mode canvas {
    display: none !important;
}

[data-network-mode="text-only"] {
    --bg-gradient: white;
}

/* ==================== 内容纠错反馈样式 (FR-6) ==================== */
.quick-report-btn {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.report-error-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    transition: all 0.2s ease;
}

.report-error-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.feedback-toast {
    animation: slideIn 0.3s ease;
}

.feedback-toast.success {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 纠错入口按钮 */
.feedback-entry-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-entry-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

/* ==================== 教研群共享池样式 (FR-7) ==================== */
.shared-pool-section {
    margin-bottom: 3rem;
}

.shared-pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shared-pool-header h3 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.5rem;
}

.shared-pool-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

.shared-pool-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #4f46e5;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.shared-pool-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.shared-pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.shared-plan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.shared-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe;
}

.shared-plan-certified {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
}

.shared-plan-certified:hover {
    border-color: #d97706 !important;
    box-shadow: 0 10px 20px -3px rgba(245, 158, 11, 0.2) !important;
}

.shared-plan-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.shared-plan-header h4 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 700;
}

.shared-plan-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #718096;
    flex-wrap: wrap;
}

.shared-plan-body {
    padding: 1.5rem;
}

.shared-plan-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
}

.author-school {
    font-size: 0.85rem;
    color: #718096;
}

.shared-plan-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 12px;
    font-size: 0.85rem;
}

.shared-plan-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4a5568;
}

.shared-plan-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shared-plan-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    background: #f7fafc;
}

.shared-plan-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.shared-plan-btn.view {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    color: white;
}

.shared-plan-btn.download {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    color: white;
}

.shared-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 分享模态框 */
.share-modal {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

/* 用户设置面板 */
.user-settings-section {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.user-settings-section h4 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
}

/* Tabs 样式 */
.shared-pool-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.pool-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #718096;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pool-tab:hover {
    color: #4f46e5;
}

.pool-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 空状态 */
.empty-pool-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.empty-pool-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-pool-state h4 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.empty-pool-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* ==================== 专家审核标记样式 (FR-8) ==================== */
.wangming-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    cursor: help;
    animation: badgeShine 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.wangming-badge-icon {
    background: white;
    color: #f59e0b;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
}

.wangming-badge-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes badgeShine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6), 0 0 20px rgba(251, 191, 36, 0.3);
    }
}

.wangming-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.wangming-badge-small .wangming-badge-icon {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
}

.template-card-certified {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
}

.template-card-certified::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #f59e0b transparent transparent;
}

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.review-modal {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    color: #4a5568;
}

.review-modal h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-standards {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.review-standards h4 {
    color: #4f46e5;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.review-standards ul {
    list-style: none;
    padding: 0;
}

.review-standards li {
    padding: 0.4rem 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.review-rating-section {
    margin-bottom: 1.5rem;
}

.review-rating-section h4 {
    color: #4f46e5;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.review-rating-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.review-rating-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.2s ease;
}

.review-rating-options label:hover {
    background: #e0e7ff;
    color: #4f46e5;
}

.review-rating-options input[type="radio"] {
    accent-color: #4f46e5;
}

.review-comment-section {
    margin-bottom: 1.5rem;
}

.review-comment-section h4 {
    color: #4f46e5;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.review-comment-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.review-comment-section textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.review-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-approve {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-reject {
    padding: 0.75rem 1.5rem;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    background: #cbd5e0;
}

/* 审核管理面板样式 */
.review-admin-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.review-admin-section h4 {
    margin-bottom: 1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviewer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reviewer-card {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reviewer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-card-name {
    font-weight: 600;
    color: #2d3748;
}

.reviewer-card-title {
    font-size: 0.85rem;
    color: #718096;
}

.reviewer-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #4a5568;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .shared-pool-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shared-pool-stats {
        justify-content: center;
    }
    
    .shared-pool-search {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .shared-pool-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .shared-pool-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .shared-pool-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .pool-tab {
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .pool-tab.active {
        background: #4f46e5;
        color: white;
        border-color: #4f46e5;
    }
}
