/* =========================================
          3. 数据库页专用样式 (Database Page Styles)
          ========================================= */
.page-wrapper {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-family: "Times New Roman", serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin: 0;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
}

.search-bar {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}

.search-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Sidebar */
.filter-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-title {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
}

.filter-list li{
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.filter-list li:hover:not(.search-btn)  {
    color: var(--primary-green);
}

/* Doc List */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
    border-left: 4px solid transparent;
}

.doc-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left-color: var(--primary-green);
}

.doc-type {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: var(--primary-blue);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.doc-type.rwe {
    background: var(--primary-green);
}

.doc-type.consensus {
    background: #1A3A59;
}

.doc-type.case {
    background: var(--accent-gold);
}

.doc-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.doc-title:hover {
    color: var(--primary-green);
    cursor: pointer;
}

.doc-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.doc-meta i {
    font-style: normal;
    color: #555;
    font-weight: bold;
}

.doc-abstract {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.doc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-tags span {
    background: #f9f9f9;
    color: #666;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.btn-download {
    background: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--primary-blue);
    color: white;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .layout-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .doc-list {
        order: 2;
    }

    aside {
        order: 1;
        width: 100%;
    }

    .filter-box {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    .doc-title {
        font-size: 1.2rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        max-width: none;
    }

    .doc-item {
        padding: 20px;
    }

    .doc-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download {
        width: 100%;
        text-align: center;
    }
}
