/**----index------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #fafafa;
    color: #222;
    line-height: 1.6;
    padding-top: 60px;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #2d3748;
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: white;
}

/* 搜索区域 */
.search-container {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    background-color: #fafafa;
}

.search-title {
    font-size: 36px;
    margin-bottom: 12px;
    color: #1a202c;
}

.search-subtitle {
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 16px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 100px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 24px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #3182ce;
}

/* 筛选区域 */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 14px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: #4299e1;
    color: #4299e1;
}

.filter-tag.active {
    background-color: #4299e1;
    color: white;
    border-color: #4299e1;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-size: 14px;
    color: #4a5568;
}

.sort-option {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.2s;
}

.sort-option:hover, .sort-option.active {
    color: #4299e1;
}

/* 热门搜索 */
.popular-section {
    margin: 40px 0;
}

.section-heading {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 600;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    padding: 5px 12px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-tag:hover {
    border-color: #4299e1;
    color: #4299e1;
}

/* 搜索结果 */
.results-container {
    margin-bottom: 40px;
}

.results-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    color: #4a5568;
    font-size: 14px;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.result-item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.result-item:hover {
    border-color: #4299e1;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
    transform: translateY(-3px);
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4299e1, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-item:hover::before {
    opacity: 1;
}

.file-header_1 {
    margin-bottom: 16px;
}

.file-nam_1 {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #1a202c;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-description_1 {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-meta-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

.meta-item:hover {
    background-color: #edf2f7;
    transform: translateX(2px);
}

.meta-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.meta-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-meta-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-item {
        padding: 16px;
    }

    .file-name {
        font-size: 15px;
    }
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 8px;
}

.page-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.page-link:hover {
    border-color: #4299e1;
    color: #4299e1;
}

.page-link.active {
    background-color: #4299e1;
    color: white;
    border-color: #4299e1;
}

.page-link.ellipsis {
    border: none;
    cursor: default;
}

.page-link.ellipsis:hover {
    color: #4a5568;
}

/* 页脚 */
footer {
    background-color: #2d3748;
    color: #a0aec0;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2d3748;
        border-top: 1px solid #4a5568;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 50;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .results-list {
        grid-template-columns: 1fr;
    }
}

/*************detail***************---------------------------------------------------------------------------------------*****/

        .tags-container {
    margin: 15px 0 20px;
}

.tags-label {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    background-color: #edf2f7;
    color: #4299e1;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tag-item:hover {
    background-color: #4299e1;
    color: white;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #fafafa;
    color: #222;
    line-height: 1.6;
    padding-top: 60px;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #2d3748;
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: white;
}

/* 内容详情页样式 */
.detail-page {
    padding: 30px 0;
}

.breadcrumb {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
}

.file-detail-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.file-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.file-detail-title {
    flex: 1;
}

.detail-file-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-file-meta {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 15px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-action-btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-action {
    background-color: #4299e1;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-action:hover {
    background-color: #3182ce;
}

.primary-action.loading {
    background-color: #90cdf4;
    cursor: wait;
}

.secondary-action {
    background-color: #f7fafc;
    color: #4a5568;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-action:hover {
    background-color: #edf2f7;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-info-section {
    margin-bottom: 30px;
}

.info-section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #4299e1;
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.info-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #4299e1;
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.info-card-icon {
    width: 24px;
    height: 24px;
    background-color: #ebf8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
    flex-shrink: 0;
}

.info-card-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.info-card-value {
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
    word-break: break-all;
}

.info-card-value.medium {
    font-size: 15px;
}

.info-card-value.small {
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeInUp 0.4s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
.info-card:nth-child(5) { animation-delay: 0.5s; }

.file-description {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.related-files {
    margin-top: 40px;
}



.result-item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.result-item:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.file-header {
    margin-bottom: 12px;
}

.file-name {
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.file-category {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.file-details {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

/* 下载提示 */
.download-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #38a169;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.download-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.error-notification {
    background-color: #e53e3e;
}

/* 页脚 */
footer {
    background-color: #2d3748;
    color: #a0aec0;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2d3748;
        border-top: 1px solid #4a5568;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 50;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .file-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        width: 120px;
    }

    .results-list {
        grid-template-columns: 1fr;
    }
}



.file-list {
    /*{#list-style: decimal;#}*/
    padding-left: 24px;
    margin: 0;
    /*{#display: grid;#}*/
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}


