* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: white;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    color: #ff6b00;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.1rem;
}

.logo-text p {
    font-size: 0.8rem;
    color: #666;
}

.settings-btn {
    background: white;
    border: 1px solid #eaeaea;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-btn:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 左侧面板 */
.left-panel {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
}

.input-section {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.input-header i {
    color: #ff6b00;
    font-size: 1.125rem;
}

.input-header span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.input-desc {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

#questionInput {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: #fff;
}

#questionInput:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.model-selector {
    margin: 1rem 0;
}

.model-selector label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

#modelSelect {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

#modelSelect:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.generate-btn {
    width: 100%;
    background: #ff6b00;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    background: #e65c00;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 示例问题区域 */
.examples-section {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.25rem;
}

.examples-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.examples-header i {
    color: #ff9f43;
    font-size: 1rem;
}

.examples-header span {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f5f5f5;
    color: #333;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eaeaea;
}

.tag:hover {
    background: #eaeaea;
    border-color: #ddd;
}

.tag.orange {
    background: #fff3e0;
    color: #e65c00;
    border-color: #ffcc80;
}

.tag.blue {
    background: #e3f2fd;
    color: #0277bd;
    border-color: #90caf9;
}

/* 右侧面板 */
.right-panel {
    flex: 2;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eaeaea;
}

.card-header h2 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 下载PNG按钮样式 - 参考.tag.orange */
.action-btn:nth-child(2) {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.action-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #e55a2b, #e8851a);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

/* 下载HTML按钮样式 - 参考.tag.blue */
.action-btn:nth-child(3) {
    background: linear-gradient(135deg, #4dabf7, #339af0);
    color: white;
    border: 2px solid rgba(77, 171, 247, 0.3);
}

.action-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #3c9ae8, #2b8ce0);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(77, 171, 247, 0.3);
}

.card-container {
    width: 100%;
    min-height: 600px;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-container iframe {
    width: 100%;
    height: auto;
    min-height: 100%;
    border: none;
    border-radius: 4px;
    display: block;
    background: white;
}

/* 知识卡片内容样式 */
.html-content {
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-y: auto;
    max-height: 100%;
}

.html-content h1, .html-content h2, .html-content h3 {
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.html-content h1:first-child,
.html-content h2:first-child,
.html-content h3:first-child {
    margin-top: 0;
}

.html-content p {
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
}

.html-content .highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    margin: 0.1rem;
}

/* 自定义滚动条样式 */
.card-container::-webkit-scrollbar {
    width: 8px;
}

.card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* 加载状态 */
.loading-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-animation {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.loading-text p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.loading-progress {
    width: 180px;
    height: 3px;
    background: #eaeaea;
    border-radius: 1.5px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: #ff6b00;
    border-radius: 1.5px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* 设置弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eaeaea;
}

.modal-header h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #999;
    padding: 0.25rem;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 1.25rem;
}

.setting-section {
    margin-bottom: 1.5rem;
}

.setting-section h4 {
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.setting-item {
    margin-bottom: 1rem;
    position: relative;
}

.setting-item label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.setting-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.375rem;
}

.setting-item input {
    width: calc(100% - 70px);
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
}

.setting-item input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.test-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.625rem 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    position: absolute;
    right: 0;
    top: 24px;
}

.test-btn:hover {
    background: #218838;
}

.test-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.api-help {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.375rem;
}

.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.setting-toggle label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.setting-toggle .setting-desc {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

.setting-toggle input[type="checkbox"] {
    width: auto;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eaeaea;
    text-align: right;
}

.save-btn {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.save-btn:hover {
    background: #e65c00;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .left-panel {
        min-width: auto;
        max-width: none;
    }
    
    .card-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .input-section,
    .examples-section,
    .right-panel {
        padding: 0.75rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .card-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-actions button {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        touch-action: manipulation;
    }
    
    .card-container {
        min-height: 300px;
        border-radius: 8px;
    }
    
    .card-container iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        min-height: 350px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 移动端已审核卡片网格调整 */
    .approved-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 0.5rem;
    }
    
    /* 移动端卡片样式优化 */
    .approved-card {
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background: white;
        border: 1px solid #e1e5e9;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .approved-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .approved-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #333;
        line-height: 1.3;
    }
    
    .card-preview {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.75rem;
        color: #888;
    }
    
    .card-date {
        color: #007bff;
    }
    
    .card-author {
        color: #28a745;
    }
    
    /* 移动端卡片操作按钮调整 */
    .action-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 移动端知识分享区域优化 */
    .section-container {
        padding: 1rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    /* 平板端显示3个卡片 */
    .approved-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* 小平板端显示2个卡片 */
    .approved-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .input-section,
    .examples-section,
    .right-panel {
        padding: 0.5rem;
    }
    
    .card-container {
        min-height: 250px;
        margin: 0.5rem 0;
        border-radius: 6px;
    }
    
    .card-container iframe {
        width: 100% !important;
        height: auto !important;
        min-height: 300px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-actions button {
        width: 100%;
        margin: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .card-actions button:active {
        transform: scale(0.98);
    }
    
    /* 超小屏幕已审核卡片优化 */
    .approved-cards-grid {
        padding: 0 0.25rem;
        gap: 10px;
    }
    
    .approved-card {
        padding: 0.75rem;
    }
    
    .approved-card h4 {
        font-size: 0.9rem;
    }
    
    .card-preview {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .card-meta {
        font-size: 0.7rem;
    }
    
    .section-container {
        padding: 0.75rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* 卡片内容样式 */
.knowledge-card {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

.knowledge-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.knowledge-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.knowledge-card p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.knowledge-card .highlight {
    background-color: #fff3e0;
    padding: 0 0.25rem;
    border-radius: 2px;
    border-bottom: 2px solid #ffcc80;
    font-weight: 500;
}

.knowledge-card .highlight-blue {
    color: #0277bd;
    font-weight: 500;
}

.knowledge-card .highlight-green {
    color: #2e7d32;
    font-weight: 500;
}

.knowledge-card .card-section {
    margin: 2rem 0;
    padding: 1.8rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.knowledge-card .card-section h3 {
    margin-bottom: 1.2rem;
    margin-top: 0;
    color: #007bff;
    font-weight: 600;
}

.knowledge-card .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.knowledge-card .card-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-card .card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.knowledge-card .card-item h4 {
    margin-bottom: 0.8rem;
    margin-top: 0;
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
}

.knowledge-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: #007bff;
}

.knowledge-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.knowledge-card .card-text {
    font-size: 0.75rem;
    color: #666;
}

.knowledge-card .summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.knowledge-card .summary-box h3 {
    margin-bottom: 1.2rem;
    margin-top: 0;
    color: white;
    font-weight: 600;
}

.knowledge-card .summary-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.knowledge-card .summary-content {
    flex: 1;
}

.knowledge-card .summary-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.error-state {
    text-align: center;
    color: #e74c3c;
    padding: 2rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.retry-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.retry-btn:hover {
    background: #c0392b;
}

/* 个人信息区域 */
.personal-info-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 1px solid #e1e8ff;
}

.personal-info-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #4a5568;
}

.personal-info-section .section-header i {
    color: #667eea;
}

/* 照片上传 */
.photo-upload {
    position: relative;
    margin-bottom: 1rem;
}

.photo-label {
    display: block;
    cursor: pointer;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 120px;
}

.photo-preview:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.photo-preview i {
    font-size: 2rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.photo-preview span {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.photo-preview small {
    color: #718096;
    font-size: 0.875rem;
}

.photo-preview.has-image {
    padding: 0;
    border-style: solid;
    border-color: #667eea;
}

.photo-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e53e3e;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 10;
}

.remove-photo:hover {
    background: #c53030;
}

/* 信息输入 */
.info-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.875rem;
}

.input-group label i {
    color: #667eea;
    font-size: 0.875rem;
}

.input-group input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 已审核知识展示区域 */
.approved-knowledge-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 3rem 0;
    margin-top: 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.approved-knowledge-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.approved-knowledge-section .section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.approved-knowledge-section .section-header h2 i {
    color: #48bb78;
}

.approved-knowledge-section .section-header p {
    color: #718096;
    font-size: 1.1rem;
}

.approved-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loading-approved {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.loading-approved i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.approved-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.approved-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.approved-card h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.card-preview {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.card-date {
    color: #888;
}

.card-author {
    color: #667eea;
    font-weight: 500;
}

/* 简化版知识卡片样式 */
.approved-card-simple {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.approved-card-simple:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.card-question {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-simple {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.card-meta-simple .card-author {
    color: #666;
    margin-right: 10px;
}

.card-meta-simple .card-school {
    color: #888;
    font-size: 0.85rem;
    margin: 0 10px;
}

.card-meta-simple .card-date {
    color: #999;
    font-size: 0.8rem;
}

/* 查看更多按钮 */
.view-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

.approved-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.approved-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.approved-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.approved-card-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.approved-card-info p {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
}

.approved-card-question {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.approved-card-preview {
    background: #f7fafc;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.approved-card-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #f7fafc);
}

.approved-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.approved-card-date {
    font-size: 0.75rem;
    color: #a0aec0;
}

.approved-card-action {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.approved-card-action:hover {
    background: #5a67d8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-inputs {
        grid-template-columns: 1fr;
    }
    
    .approved-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-container {
        padding: 20px 15px;
    }
    
    .approved-card-simple {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .card-question {
        font-size: 0.95rem;
    }
    
    .card-meta-simple {
        font-size: 0.8rem;
    }
    
    .view-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* 点赞按钮样式 */
.approved-card-simple {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-content {
    flex: 1;
    cursor: pointer;
}

.card-like-section {
    flex-shrink: 0;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #666;
    min-width: 60px;
    justify-content: center;
}

.like-btn:hover {
    background: #f8f9fa;
    border-color: #ff4757;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.15);
}

.like-btn.liked {
    background: #fff5f5;
    border-color: #ff4757;
    color: #ff4757;
}

.like-btn.liked:hover {
    background: #ffe8e8;
}

.like-btn i {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.like-btn.liked i {
    color: #ff4757;
}

.like-btn:hover i {
    color: #ff4757;
}

.like-count {
    font-weight: 500;
    font-size: 0.85rem;
}

/* knowledge-list.html 中的卡片样式调整 */
.knowledge-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.knowledge-card .card-content {
    flex: 1;
}

.knowledge-card .card-like-section {
    flex-shrink: 0;
    margin-top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .approved-card-simple {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .card-like-section {
        align-self: flex-end;
    }
    
    .knowledge-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .knowledge-card .card-like-section {
        align-self: flex-end;
        margin-top: 0;
    }
    
    .like-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 50px;
    }
}

/* 网站底部ICP备案信息样式 */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.icp-info {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.icp-info a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #495057;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 15px 0;
    }
    
    .icp-info {
        font-size: 0.8rem;
    }
}