body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333647;
    background-color: #F5F7FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 42px;
    height: 42px;
    background-color: #165DFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-slogan {
    font-size: 13px;
    color: #86909C;
    margin-top: 2px;
}

.search-wrapper {
    flex: 1;
    min-width: 280px;
}

.search-container {
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 1px solid #E5E6EB;
    border-radius: 12px;
    font-size: 16px;
    color: #333647;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.search-input::placeholder {
    color: #86909C;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #86909C;
    font-size: 18px;
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 110px;
    background: linear-gradient(135deg, #165DFF 0%, #0F48D9 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #0F48D9 0%, #0A36A8 100%);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.search-button:active {
    transform: translateY(-50%) scale(0.98);
}

.resource-detail-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0F1F3;
    margin: 32px 0;
    animation: fadeIn 0.3s ease forwards;
}

/* -------------- 电脑端：内容区居中核心样式（新增操作按钮居中） -------------- */
@media (min-width: 769px) {
    /* 1. 资源标题居中 */
    .resource-detail-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 80%; /* 避免过长标题撑满屏幕，提升美观度 */
    }

    /* 2. 资源元信息（网盘类型、大小、浏览量等）整体居中 */
    .resource-detail-meta {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. 各区块标题（资源描述、提取码、下载地址等）居中 */
    .resource-description-section .section-title,
    .extraction-code-section .section-title,
    .download-section .section-title,
    .quark-qrcode-section .section-title {
        text-align: center;
        margin-bottom: 16px; /* 增加标题与内容间距，提升呼吸感 */
        justify-content: center; /* 确保带图标的标题完全居中 */
    }

    /* 4. 资源描述文本居中 */
    .description-content {
        text-align: center;
        max-width: 85%; /* 限制宽度，避免长文本换行混乱 */
        margin-left: auto;
        margin-right: auto;
    }

    /* 5. 提取码容器居中 */
    .code-container {
        margin-left: auto;
        margin-right: auto;
    }

    /* 6. 下载按钮居中 - 修复核心 */
    .download-section {
        text-align: center; /* 让按钮容器文本居中 */
    }
    .download-button {
        display: inline-flex; /* 保持按钮为行内块级元素 */
        margin-left: auto;
        margin-right: auto;
        width: auto; /* 确保按钮宽度自适应内容 */
    }

    /* 7. 夸克二维码提示文本保持居中（增强一致性） */
    .qrcode-tip {
        text-align: center;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    /* 新增：操作按钮区域（返回首页、举报资源）电脑端居中 */
    .actions-container {
        justify-content: center; /* 按钮水平居中 */
        margin-left: auto;
        margin-right: auto; /* 容器整体居中，适配不同宽度 */
    }
}
/* -------------- 电脑端居中样式结束 -------------- */

.resource-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #333647;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F1F3;
    line-height: 1.4;
}

.resource-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #86909C;
    margin-bottom: 24px;
}

.resource-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resource-detail-meta-item i {
    font-size: 14px;
    color: #165DFF;
}

.disk-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.disk-badge.baidu { background-color: #37A0FF; color: #FFFFFF; }
.disk-badge.aliyun { background-color: #FF6700; color: #FFFFFF; }
.disk-badge.quark { background-color: #722ED1; color: #FFFFFF; }
.disk-badge.weiyun { background-color: #00B42A; color: #FFFFFF; }
.disk-badge.xunlei { background-color: #FF6100; color: #FFFFFF; }
.disk-badge.uc { background-color: #2CB5E8; color: #FFFFFF; }
.disk-badge.unknown { background-color: #86909C; color: #FFFFFF; }

.resource-description-section, 
.extraction-code-section, 
.download-section {
    margin-bottom: 20px;
}

.related-articles-section {
    margin-top: 36px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333647;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #165DFF;
    font-size: 16px;
}

.description-content {
    color: #333647;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px;
    background-color: #F9FAFC;
    border-radius: 8px;
    border: 1px solid #F0F1F3;
    max-width: 100%;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #F9FAFC;
    border-radius: 8px;
    border: 1px solid #F0F1F3;
    max-width: 280px;
    height: auto;
}

.code-label {
    font-size: 14px;
    font-weight: 500;
    color: #86909C;
    white-space: nowrap;
}

.code-value {
    font-size: 16px;
    font-weight: 600;
    color: #165DFF;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.code-value:hover {
    color: #0F48D9;
    text-decoration: underline;
}

.download-button {
    padding: 12px 32px;
    background: linear-gradient(135deg, #165DFF 0%, #0F48D9 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(22, 93, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-button:hover {
    background: linear-gradient(135deg, #0F48D9 0%, #0A36A8 100%);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.articles-list {
    display: grid;
    gap: 18px;
}

.article-item {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F0F1F3;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #E5E6EB;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title a {
    color: #333647;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: #165DFF;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-summary {
    font-size: 13px;
    color: #86909C;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #86909C;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta-item i {
    font-size: 12px;
}

.actions-container {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding-top: 16px;
    border-top: 1px solid #F0F1F3;
}

.action-button {
    padding: 10px 24px;
    border: 1px solid #E5E6EB;
    background-color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333647;
}

.action-button:hover {
    border-color: #165DFF;
    color: #165DFF;
    background-color: rgba(22, 93, 255, 0.03);
}

.action-button.report-button {
    background: linear-gradient(135deg, #FF4D4F 0%, #F5222D 100%);
    color: #FFFFFF;
    border-color: #FF4D4F;
}

.action-button.report-button:hover {
    background: linear-gradient(135deg, #F5222D 0%, #D32F2F 100%);
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.2);
}

/* 相关资源推荐样式 - 修复布局问题 */
.related-resources-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F0F1F3;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #333647;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    color: #165DFF;
    font-size: 16px;
}

.results-list {
    display: grid;
    gap: 12px;
}

.resource-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #F0F1F3;
    animation: fadeIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #E5E6EB;
}

.resource-header {
    margin-bottom: 8px;
}

.resource-title {
    font-size: 14px;
    font-weight: 600;
}

.resource-title a {
    color: #333647;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-title a:hover {
    color: #165DFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 元信息与按钮容器 - 关键修复 */
.resource-meta-container {
    display: flex;
    justify-content: space-between; /* 确保两侧元素分离 */
    align-items: center; /* 垂直居中对齐 */
    width: 100%;
    white-space: nowrap; /* 防止换行 */
}

/* 左侧元信息区域 */
.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 增加元信息之间的间距 */
    font-size: 11px;
    color: #86909C;
    flex: 1; /* 占据所有可用空间 */
    overflow: hidden;
}

.resource-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 右侧按钮区域 */
.resource-footer {
    margin: 0 0 0 10px; /* 与左侧保持距离 */
    white-space: nowrap; /* 按钮不换行 */
}

.view-button {
    padding: 5px 12px;
    background: linear-gradient(135deg, #165DFF 0%, #0F48D9 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(22, 93, 255, 0.12);
}

.view-button:hover {
    background: linear-gradient(135deg, #0F48D9 0%, #0A36A8 100%);
    box-shadow: 0 2px 6px rgba(22, 93, 255, 0.15);
}

.footer {
    background-color: #FFFFFF;
    border-top: 1px solid #F0F1F3;
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: #86909C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #165DFF;
}

.copyright {
    color: #86909C;
    font-size: 12px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #F0F1F3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-wrapper {
        width: 100%;
        min-width: unset;
    }

    .resource-detail-card {
        padding: 20px 16px;
    }

    .resource-detail-title {
        font-size: 20px;
        text-align: left; /* 移动端恢复左对齐，适配小屏幕阅读习惯 */
        max-width: 100%;
    }

    .resource-detail-meta {
        gap: 12px;
        font-size: 12px;
        justify-content: flex-start; /* 移动端元信息左对齐 */
    }

    .section-title {
        font-size: 15px;
        text-align: left; /* 移动端区块标题左对齐 */
        justify-content: flex-start; /* 移动端带图标标题左对齐 */
    }

    .description-content {
        text-align: left; /* 移动端描述文本左对齐 */
        max-width: 100%;
    }

    /* 新增：提取码容器移动端居中 */
    .code-container {
        max-width: 240px;
        gap: 6px;
        padding: 6px 10px;
        margin-left: auto; /* 左margin自动 */
        margin-right: auto; /* 右margin自动，实现居中 */
    }

    .code-label {
        font-size: 13px;
    }

    .code-value {
        font-size: 15px;
        padding: 3px 0;
    }

    .download-button {
        width: 100%;
        justify-content: center;
        margin-left: 0; /* 移动端按钮占满宽度，无需额外居中 */
    }

    .actions-container {
        flex-direction: column;
        gap: 8px;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    .article-title {
        font-size: 15px;
    }

    .article-summary {
        font-size: 12px;
    }

    .article-meta {
        gap: 12px;
        font-size: 11px;
    }

    .related-title {
        font-size: 16px;
    }

    .resource-card {
        padding: 12px 10px;
    }

    /* 移动端相关资源适配 */
    .resource-meta {
        gap: 6px;
        font-size: 10px;
    }
    
    .view-button {
        padding: 4px 10px;
        font-size: 11px;
    }

    .footer-links {
        gap: 16px;
    }

    .qrcode-tip {
        max-width: 100%;
        text-align: center; /* 移动端二维码提示保持居中，提升扫码引导性 */
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }

    .search-input {
        height: 52px;
        font-size: 15px;
        padding: 0 18px 0 48px;
    }

    .search-button {
        width: 90px;
        height: 44px;
        font-size: 14px;
    }

    .resource-detail-title {
        font-size: 18px;
    }

    .footer-link {
        font-size: 13px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* 夸克二维码区域样式 */
.quark-qrcode-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9fafc;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}
.qrcode-container {
    text-align: center;
    margin-top: 10px;
}
.qrcode-tip {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.5; /* 增加行高，提升移动端阅读体验 */
}
/* 下载按钮下方提示框样式 */
.download-tip {
    margin-top: 12px; /* 与下载按钮保持间距 */
    padding: 10px 16px;
    background-color: #FFF8E6; /* 浅橙色背景，醒目且不刺眼 */
    border: 1px solid #FFD591; /* 橙色边框 */
    border-radius: 8px; /* 与现有容器圆角统一 */
    font-size: 13px;
    color: #E67E22; /* 橙色文本，突出提醒 */
    text-align: center; /* 文本居中，与下载按钮对齐 */
    max-width: 500px; /* 限制最大宽度，避免过宽 */
    margin-left: auto; /* 自动左右边距，实现居中 */
    margin-right: auto;
    line-height: 1.6;
}

/* 提示框内强调文本样式（转存二字） */
.download-tip strong {
    color: #E64A19; /* 深橙色，强化重点 */
    font-weight: 600;
}

/* 移动端适配（保持与现有移动端风格一致） */
@media (max-width: 768px) {
    .download-tip {
        max-width: 100%; /* 移动端占满容器宽度 */
        padding: 8px 12px;
        font-size: 12px;
        margin-top: 10px;
    }
}