/* 文档页面样式 */
.docs-section {
    padding-top: 100px;
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
}

.docs-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.doc-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.doc-icon i {
    font-size: 2rem;
    color: #e74c3c;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.doc-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
}

.doc-actions {
    display: flex;
    gap: 10px;
}

.doc-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
}

.download-btn {
    background-color: var(--secondary-color);
}

.download-btn:hover {
    background-color: #2980b9;
}

.preview-btn {
    background-color: var(--primary-color);
}

.preview-btn:hover {
    background-color: #1a252f;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.preview-container {
    width: 100%;
    height: 80vh;
}

#pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* 页脚样式调整 */
.footer-links a.active {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .preview-container {
        height: 70vh;
    }
}
