/* css/style.css - 完全重置和重新整理 */
:root {
    --primary-color: #4a6cf7;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-color: #eaeaea;
    --shadow-color: rgba(0,0,0,0.08);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 头部样式 ===== */
header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-top {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

header h1 a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 搜索框 */
.search-box {
    max-width: 700px;
    margin: 0 auto 20px;
}

.search-box form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-box button:hover {
    background: #3a5ce5;
}

/* 快速链接 */
.quick-links {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.quick-links span {
    margin-right: 10px;
    opacity: 0.9;
}

.quick-links a {
    color: white;
    text-decoration: none;
    margin: 0 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: var(--transition);
    display: inline-block;
}

.quick-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* ===== 主要内容区域 ===== */
main {
    padding: 25px 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.main-header h2 {
    font-size: 1.4rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header h2 i {
    color: var(--primary-color);
}

.stats {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 20px;
}

/* ===== 广告横幅 ===== */
.ad-banner {
    margin: 20px 0;
    padding: 0;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px dashed #ddd;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ad-banner:hover {
    border-color: var(--primary-color);
}

.ad-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ad-placeholder i {
    margin-bottom: 10px;
    display: block;
}

.ad-placeholder p {
    margin: 5px 0;
    font-weight: 500;
}

.ad-placeholder small {
    color: #aaa;
    font-size: 12px;
}

.search-ad, .detail-ad {
    margin: 25px 0;
}

/* ===== 资源列表 ===== */
.resource-list-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.resource-list {
    padding: 0;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

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

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

.resource-header {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
}

.resource-index {
    background: #f0f2f5;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

/* 网盘标签样式 */
.resource-tag, .pan-type {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #91d5ff;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-tag i, .pan-type i {
    font-size: 11px;
}

/* 不同网盘类型颜色 */
.quark-pan {
    background: #f0f9ff;
    color: #1890ff;
    border-color: #91d5ff;
}

.thunder-pan {
    background: #fff7e6;
    color: #fa8c16;
    border-color: #ffd591;
}

.baidu-pan {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.ali-pan {
    background: #f0f5ff;
    color: #2f54eb;
    border-color: #adc6ff;
}

.other-pan {
    background: #f6f6f6;
    color: #8c8c8c;
    border-color: #d9d9d9;
}

.resource-title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 资源链接 */
.resource-link {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 操作按钮 */
.resource-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-get, .btn-copy, .btn-primary, .btn-secondary {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-get, .btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-get:hover, .btn-primary:hover {
    background: #3a5ce5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(74, 108, 247, 0.3);
}

.btn-copy, .btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.btn-copy:hover, .btn-secondary:hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

.btn-get-small {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-get-small:hover {
    background: #3a5ce5;
    transform: translateY(-1px);
}

/* ===== 搜索页面样式 ===== */
.search-intro {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.intro-content i {
    color: #ddd;
    margin-bottom: 20px;
}

.intro-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.intro-content p {
    color: #666;
    margin-bottom: 25px;
}

.popular-searches h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-tag {
    background: #f0f2f5;
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid #dee2e6;
}

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

/* 无结果页面 */
.no-results {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.no-results-content i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.no-results-content p {
    color: #666;
    margin-bottom: 25px;
}

.suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.suggestions h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}

.suggestions ul {
    list-style: none;
    padding-left: 0;
}

.suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 15px;
}

.suggestions li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.suggestions a {
    color: var(--primary-color);
    text-decoration: none;
}

.suggestions a:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== 详情页面样式 ===== */
.resource-detail-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-meta i {
    color: var(--primary-color);
}

.detail-content {
    padding: 30px;
}

.download-box, .description-box, .link-box {
    margin-bottom: 30px;
}

.download-box h3, .description-box h3, .link-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-box h3 i {
    color: var(--primary-color);
}

.tip {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.description-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    line-height: 1.7;
    color: #444;
    font-size: 14px;
}

.link-content {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.link-content input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

.link-content input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 相关资源推荐 */
.related-resources {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.related-resources h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-resources h3 i {
    color: var(--primary-color);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.related-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.related-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.related-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-item a:hover {
    color: var(--primary-color);
}

/* ===== 网站地图 ===== */
.site-map {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.site-map h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-map h3 i {
    color: var(--primary-color);
}

.site-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.site-map-links a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.site-map-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: var(--transition);
    font-size: 13px;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .prev,
.pagination .next {
    padding: 8px 18px;
}

.page-info {
    color: #888;
    font-size: 13px;
    margin-left: 15px;
}

/* ===== 错误提示 ===== */
.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #fcc;
    margin-bottom: 20px;
    font-size: 13px;
}

/* ===== 复制提示 ===== */
.copy-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ===== 高亮搜索关键词 ===== */
mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    color: #333;
}

/* ===== 返回首页按钮 ===== */
.back-home {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.back-home:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 底部样式 ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p {
    margin-bottom: 8px;
    color: #bdc3c7;
    font-size: 13px;
}

.footer-section a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 13px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

    
    
    /* ===== 移动端紧凑布局 ===== */
@media (max-width: 768px) {
    /* 资源列表容器 */
    .resource-list-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    /* 资源项 - 紧凑布局 */
    .resource-item {
        padding: 12px 15px;
        margin: 0;
        border-bottom: 1px solid #eee;
        gap: 10px;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .resource-item:last-child {
        border-bottom: none;
    }
    
    /* 资源头部 - 一行显示序号和网盘类型 */
    .resource-header {
        flex: 1;
        min-width: 0;
        align-items: center;
        gap: 10px;
    }
    
    /* 序号和网盘类型放在同一行 */
    .resource-index {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    /* 网盘标签 - 紧凑样式 */
    .resource-tag {
        padding: 3px 8px;
        font-size: 10px;
        flex-shrink: 0;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .resource-tag i {
        font-size: 9px;
        margin-right: 2px;
    }
    
    /* 资源标题 - 多行显示，限制高度 */
    .resource-title {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    
    .resource-link {
        color: #333;
        text-decoration: none;
        display: block;
        max-height: 36px;
        overflow: hidden;
    }
    
    .resource-link:hover {
        color: var(--primary-color);
    }
    
    /* 操作按钮 - 缩小并放在同一行后面 */
    .resource-actions {
        flex-shrink: 0;
        margin-left: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        min-width: 70px;
    }
    
    .btn-get, .btn-copy {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
        justify-content: center;
        gap: 4px;
        border-radius: 4px;
    }
    
    .btn-get {
        background: var(--primary-color);
        color: white;
        border: none;
    }
    
    .btn-copy {
        background: #f5f5f5;
        color: #666;
        border: 1px solid #ddd;
        font-size: 10px;
    }
    
    /* 主头部调整 */
    .main-header {
        padding: 15px 15px 10px;
        margin-bottom: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-header h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .stats {
        font-size: 11px;
        justify-content: space-between;
        width: 100%;
    }
    
    /* 广告调整 */
    .ad-container {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .ad-image {
        max-height: 80px;
        min-height: 60px;
    }
    
    .ad-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 5px;
        right: 5px;
    }
    
    .ad-controls {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    /* 分页调整 */
    .pagination {
        margin-top: 15px;
        padding: 15px 0;
        gap: 5px;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* 网站地图调整 */
    .site-map {
        padding: 15px;
        margin-top: 20px;
    }
    
    .site-map-links {
        gap: 8px;
    }
    
    .site-map-links a {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* 超小屏幕手机优化 */
@media (max-width: 480px) {
    .resource-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .resource-header {
        gap: 6px;
    }
    
    .resource-index {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .resource-tag {
        padding: 2px 6px;
        font-size: 9px;
        max-width: 50px;
    }
    
    .resource-title {
        font-size: 12px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .resource-actions {
        min-width: 65px;
        margin-left: 8px;
        gap: 4px;
    }
    
    .btn-get, .btn-copy {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 65px;
    }
    
    .btn-get {
        background: var(--primary-color);
    }
    
    .btn-get span, .btn-copy span {
        display: none; /* 隐藏图标文字，只显示按钮文字 */
    }
    
    .btn-get i, .btn-copy i {
        margin-right: 0;
    }
    
    /* 更紧凑的广告 */
    .ad-container {
        margin: 8px 0;
    }
    
    .ad-image {
        max-height: 70px;
        min-height: 50px;
    }
    
    /* 搜索页面特定优化 */
    .search-intro, .no-results {
        padding: 20px 15px;
        margin: 10px 0;
    }
    
    .intro-content i, .no-results-content i {
        font-size: 2.5rem;
    }
    
    .search-tags, .pan-search-tags {
        gap: 6px;
    }
    
    .search-tag, .pan-search-tag {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* 超小屏幕手机（iPhone SE等） */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .resource-item {
        padding: 8px 10px;
    }
    
    .resource-index {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .resource-tag {
        padding: 1px 4px;
        font-size: 8px;
        max-width: 45px;
    }
    
    .resource-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .resource-actions {
        min-width: 60px;
    }
    
    .btn-get, .btn-copy {
        padding: 4px 6px;
        font-size: 9px;
        min-width: 60px;
    }
    
    /* 按钮只显示文字，不显示图标 */
    .btn-get i, .btn-copy i {
        display: none;
    }
    
    /* 搜索框优化 */
    .search-box input {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .search-box button {
        padding: 0 15px;
        font-size: 13px;
    }
    
    /* 快速链接隐藏部分 */
    .quick-links {
        display: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .resource-item {
        padding: 8px 12px;
        min-height: 50px;
    }
    
    .resource-title {
        -webkit-line-clamp: 1;
        max-height: 20px;
    }
    
    .resource-link {
        max-height: 20px;
    }
    
    .resource-actions {
        flex-direction: row;
        gap: 5px;
    }
    
    .btn-get, .btn-copy {
        min-width: 55px;
        padding: 5px;
    }
}
    
    
    
    
    
    
    
    
    .container {
        padding: 0 12px;
    }
    
    header {
        padding: 15px 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .site-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .search-box form {
        border-radius: 25px;
    }
    
    .search-box input {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .search-box button {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .quick-links {
        display: none;
    }
    
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stats {
        align-self: flex-start;
    }
    
    .stats span {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .ad-banner {
        min-height: 80px;
        margin: 15px 0;
    }
    
    .resource-item {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }
    
    .resource-header {
        gap: 10px;
    }
    
    .resource-title {
        font-size: 14px;
        white-space: normal;
        line-height: 1.4;
    }
    
    .resource-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-get, .btn-copy, .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 12px;
        flex: 1;
    }
    
    .search-intro, .no-results {
        padding: 30px 20px;
    }
    
    .search-tags {
        gap: 8px;
    }
    
    .search-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .suggestions {
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-header {
        padding: 20px;
    }
    
    .detail-header h1 {
        font-size: 1.3rem;
    }
    
    .detail-meta {
        gap: 10px;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .link-content {
        flex-direction: column;
    }
    
    .link-content input {
        width: 100%;
    }
    
    .related-resources {
        padding: 20px;
    }
    
    .related-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .btn-get-small {
        align-self: flex-end;
        width: auto;
    }
    
    .site-map {
        padding: 20px;
    }
    
    .site-map-links {
        gap: 10px;
    }
    
    .site-map-links a {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 15px 0;
    }
    
    .pagination a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .copy-notification {
        bottom: 80px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .resource-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .resource-index, .resource-tag {
        align-self: flex-start;
    }
    
    .resource-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-get, .btn-copy, .btn-primary, .btn-secondary {
        width: 100%;
        padding: 12px;
    }
    
    .pagination a {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* 网盘搜索相关样式 */
.hot-search {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3) !important;
}

.pan-search-info {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #91d5ff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pan-search-info i {
    color: #1890ff;
}

.search-tips {
    background: #f0f9ff;
    border: 1px solid #91d5ff;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1890ff;
    font-size: 13px;
}

.tip-content i {
    font-size: 16px;
    margin-top: 2px;
}

.tip-content strong {
    color: #0050b3;
}

/* 网盘搜索标签 */
.pan-search-suggestions {
    margin: 25px 0;
}

.pan-search-suggestions h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pan-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pan-search-tag {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.pan-search-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.quark-tag {
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: white;
    border-color: #4a6cf7;
}

.baidu-tag {
    background: linear-gradient(135deg, #2932e1, #4a54e8);
    color: white;
    border-color: #2932e1;
}

.thunder-tag {
    background: linear-gradient(135deg, #ff8e53, #ffab76);
    color: white;
    border-color: #ff8e53;
}

.ali-tag {
    background: linear-gradient(135deg, #00c1de, #00d9f9);
    color: white;
    border-color: #00c1de;
}

.hot-tag {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53) !important;
    color: white !important;
    border-color: #ff6b6b !important;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pan-search-tags {
        flex-direction: column;
        gap: 10px;
    }
    
    .pan-search-tag {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .pan-search-suggestions h4 {
        justify-content: center;
    }
    
    .search-tips {
        padding: 12px;
        font-size: 12px;
    }
    
    .tip-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quick-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-links a {
        margin: 0 4px;
    }
}

/* 移动端按钮文字隐藏 */
@media (max-width: 480px) {
    .btn-text {
        display: none;
    }
    
    .btn-get, .btn-copy {
        padding: 6px;
        min-width: 50px;
    }
    
    .btn-get i, .btn-copy i {
        margin: 0;
        font-size: 12px;
    }
}

/* 移动端紧凑布局特定样式 */
.compact-layout .resource-item {
    padding: 10px 12px;
    min-height: 60px;
}

.compact-layout .resource-header {
    align-items: flex-start;
}

.compact-layout .resource-title {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 2px;
}

/* 移动端特定工具类 */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}