/* 顶部下载栏样式 */
.top-download-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.download-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.resource-title {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    flex: 1;
    min-width: 300px;
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 下载按钮样式优化 */
.download-btn {
    background: white;
    color: var(--primary);
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

.download-btn.primary-btn {
    background: white;
    color: var(--primary);
    padding: 14px 30px;
    font-size: 17px;
}

.download-btn.primary-btn:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

.download-btn.secondary-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

.download-btn.secondary-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 提取码提示样式 */
.extract-code-hint {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.extract-code-hint .code {
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 未找到链接提示 */
.no-link-message {
    color: white;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 文章内容标题美化 */
.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    color: var(--dark);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    padding-bottom: 8px;
}

.description-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-light);
}

.description-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.description-content h3 {
    font-size: 1.3rem;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.description-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
}

.description-content h5,
.description-content h6 {
    font-size: 1.1rem;
}

/* 单页特定样式补充 */
.main-container {
    margin: 25px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.card {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--dark);
    font-size: 18px;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.info-label {
    width: 90px;
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    color: var(--dark);
    font-weight: 500;
}

.description-content {
    line-height: 1.8;
    color: #444;
}

.description-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(52, 152, 219, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 下载链接区域样式 */
.download-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.download-section h3 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-link-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.extract-code {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.extract-code .code {
    font-weight: bold;
    color: #e74c3c;
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: #28a745;
}

.no-links {
    color: var(--text-gray);
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

/* 相关资源样式 */
.related-resources {
    margin-top: 30px;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .card-header {
        font-size: 16px;
    }
    
    .download-link-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-title {
        font-size: 1.5rem;
    }
    
    .download-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .download-btn {
        width: 100%;
    }
}
    