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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-section {
    background: #f5f5f5;
    color: #283593;
    padding: 15px 0;
    width: 100%;
}

.top-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.logo h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo a {
    color: #1A237E;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #0D1B67;
}

.logo-subtitle {
    font-size: 1rem;
    color: #3F51B5;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

.main-navigation {
    background: #00afec;
    border-radius: 4px;
    margin: 0 auto 15px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-items {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    justify-content: center;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    display: inline-block;
    padding: 9px 22px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.active {
    color: white;
    font-weight: 600;
    background-color: #87d156;
    border-radius: 4px;
}

.nav-link.active::after {
    content: '';
    display: none;
}

.nav-link:hover {
    color: white;
    background-color: #87d156;
    border-radius: 4px;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 10px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: none;
    outline: none;
    background-color: white;
    color: #333;
}

.search-button {
    background-color: #3F51B5;
    color: white;
    border: none;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #283593;
}

.content {
    min-height: 400px;
    margin: 12px auto;
    max-width: 1000px;
    width: 100%;
}

.page-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.page-header .page-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0 0 10px;
    display: inline-block;
}

.page-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 5px 0;
}

.section-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background-color: #3F51B5;
    border-radius: 3px;
    margin-right: 10px;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}

.resource-item {
    padding: 9px 15px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    border-color: #ddd;
    background-color: #fafafa;
}

.resource-category {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #7f8c8d;
    min-width: 70px;
}

.resource-category a {
    color: #7f8c8d;
    transition: color 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
}

.resource-category a:hover {
    color: #3F51B5;
    background-color: #f0f2ff;
}

.resource-title {
    flex: 1;
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-title a {
    color: #2c3e50;
    transition: color 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.resource-title a:hover {
    color: #3F51B5;
    background-color: #f0f2ff;
}

.resource-date {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #7f8c8d;
    min-width: 80px;
    text-align: right;
}

.no-resources {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.no-resources p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.05rem;
}

.no-resources a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #3498db;
    transition: all 0.2s ease;
}

.no-resources a:hover {
    text-decoration: none;
    background-color: #3498db;
    color: #fff;
}

.tag-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-item {
    margin: 0;
    transition: transform 0.2s ease;
}

.tag-item:hover {
    transform: scale(1.05);
}

.tag-item a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f2ff;
    color: #3F51B5;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tag-item a:hover {
    background-color: #3F51B5;
    color: white;
}

.tag-count {
    display: inline-block;
    background-color: rgba(63, 81, 181, 0.15);
    color: #3F51B5;
    font-size: 0.8rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.tag-item a:hover .tag-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-size-1 { font-size: 90%; }
.tag-size-2 { font-size: 100%; }
.tag-size-3 { font-size: 110%; }
.tag-size-4 { font-size: 120%; }
.tag-size-5 { font-size: 130%; }

.pagination {
    list-style: none;
    padding: 15px 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #3F51B5;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.pagination-link:hover {
    background-color: #f0f2ff;
    border-color: #ddd;
}

.pagination-item.active .pagination-link {
    background-color: #3F51B5;
    color: white;
    border-color: #3F51B5;
    font-weight: 500;
}

.pagination-item.disabled .pagination-link {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 6px 8px;
    color: #7f8c8d;
    font-size: 0.95rem;
    align-self: center;
}

.notification {
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    justify-content: center;
}

.detail-content {
    line-height: 1.8;
    padding: 10px 20px;
    color: #424242;
    max-width: 800px;
    margin: 10px auto;
    text-align: left;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px auto;
    display: block;
}

.resource-action {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #3F51B5;
    color: white;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.action-button:hover {
    background-color: #283593;
}

.action-button.secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.action-button.secondary:hover {
    background-color: #e9e9e9;
}

.related-resources {
    margin-top: 30px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.category-item a:hover {
    background-color: #f0f2ff;
    border-color: #d1d9ff;
}

.category-name {
    font-size: 1.1rem;
    color: #2c3e50;
}

.category-count {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f2ff;
    color: #3F51B5;
    border-radius: 10px;
    font-size: 0.8rem;
}

.search-results-count {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f2ff;
    border-radius: 6px;
    color: #3F51B5;
    font-size: 0.9rem;
    text-align: center;
}

.highlight {
    background-color: #fff3cd;
    padding: 0 3px;
    border-radius: 2px;
    color: #856404;
    font-weight: 500;
}

.loading-indicator {
    text-align: center;
    padding: 20px 15px;
    color: #7f8c8d;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(63, 81, 181, 0.2);
    border-radius: 50%;
    border-top-color: #3F51B5;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.resource-notification {
    text-align: center;
    padding: 15px;
    color: #7f8c8d;
    display: none;
    font-size: 1.05rem;
}

.resource-notification.error {
    color: #e74c3c;
}

.footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 30px 0;
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

.copyright a {
    color: #3F51B5;
    transition: color 0.2s ease;
}

.copyright a:hover {
    color: #283593;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3F51B5;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(63, 81, 181, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #283593;
    transform: translateY(-2px);
}

.password-hint {
    background-color: #f0f2ff;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 20px auto;
    text-align: center;
    max-width: 500px;
}

.password-hint strong {
    color: #3F51B5;
    margin-right: 8px;
}

.password-code {
    display: inline-block;
    padding: 3px 10px;
    background-color: white;
    border: 1px dashed #3F51B5;
    border-radius: 4px;
    color: #3F51B5;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0;
}

.download-item {
    flex: 1;
    min-width: 200px;
}

.download-item.baidu-pan,
.download-item.quark-pan {
    flex: none;
    min-width: auto;
    width: 180px;
}

.download-button {
    width: 100%;
    padding: 12px 0;
    text-align: center;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-button:hover {
    transform: translateY(-2px);
}

.baidu-pan .download-button {
    background-color: #2d81f7;
}

.baidu-pan .download-button:hover {
    background-color: #1e68d1;
}

.quark-pan .download-button {
    background-color: #00b42a;
}

.quark-pan .download-button:hover {
    background-color: #009122;
}

.download-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-viewer.show {
    display: flex;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.report-modal.show {
    display: flex;
}

.report-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    position: relative;
}

.report-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
}

.report-modal-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.report-form-group {
    margin-bottom: 15px;
}

.report-form-label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.report-form-select, .report-form-input, .report-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.report-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.report-form-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.report-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.report-msg {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.report-msg.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.report-msg.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

#downloadNotice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#downloadNotice.show {
    display: flex;
}

.notice-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

.notice-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.notice-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.notice-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notice-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.notice-btn:first-child {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.notice-btn:last-child {
    background-color: #3498db;
    color: white;
}

@media (max-width: 1024px) {
    .main-navigation {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .resource-item {
        padding: 7px 10px;
    }
    
    .resource-title {
        font-size: 0.95rem;
    }
    
    .search-input {
        padding: 12px 16px;
    }
    
    .search-button {
        padding: 0 22px;
    }
    
    .nav-link {
        padding: 7px 18px;
        font-size: 14px;
    }
    
    .detail-title,
    .page-header .page-title {
        font-size: 1.5rem;
    }
    
    .image-viewer-close {
        right: 0;
    }
    
    .pagination-link {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .resource-category, .resource-date {
        display: none;
    }
    
    .resource-item {
        justify-content: center;
        padding: 11px 12px;
    }
    
    .resource-title {
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-items {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 7px 12px;
        font-size: 13px;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 6px;
    }
    
    .search-input {
        border-radius: 6px 6px 0 0;
        border-bottom: 1px solid #eee;
    }
    
    .search-button {
        border-radius: 0 0 6px 6px;
        padding: 12px;
        width: 100%;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination-link {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
    
    .tag-item a {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-button {
        width: 100%;
    }
    
    .no-resources {
        padding: 30px 15px;
    }
    
    .no-resources p {
        font-size: 1rem;
    }
}