/* 网盘搜索网站 - 极客风 (SkillHub风格) */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    /* 极客风配色 - 深色导航简洁设计 */
    --sh-bg: #f5f7fa;
    --sh-card: #ffffff;
    --sh-nav-bg: #1a1a2e;
    --sh-nav-text: #ffffff;
    --sh-text: #2d3748;
    --sh-text-secondary: #718096;
    --sh-border: #e2e8f0;
    
    /* 主题色 - 科技蓝 */
    --sh-primary: #3182ce;
    --sh-primary-dark: #2c5282;
    --sh-primary-light: #63b3ed;
    --sh-accent: #4299e1;
    --sh-success: #48bb78;
    --sh-warning: #ed8936;
    --sh-danger: #f56565;
    
    /* 阴影 - 柔和现代 */
    --sh-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sh-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sh-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 圆角 */
    --sh-radius-sm: 6px;
    --sh-radius: 10px;
    --sh-radius-lg: 16px;
    
    /* 字体 */
    --sh-font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sh-font);
    background: var(--sh-bg);
    color: var(--sh-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========== 卡片工具类 ========== */
.sh-card {
    background: var(--sh-card);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
}

.sh-card-hover {
    transition: all 0.3s ease;
}

.sh-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow-md);
}

/* ========== 头部导航 - 深色 ========== */
.header {
    background: var(--sh-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sh-shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-accent) 100%);
    border-radius: var(--sh-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--sh-shadow);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--sh-nav-text);
    letter-spacing: -0.3px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--sh-primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--sh-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--sh-shadow);
}

/* 顶部分类浏览 */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-categories {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 4px;
}

.nav-cat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--sh-radius-sm);
    text-decoration: none;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.nav-cat-link:hover {
    background: var(--sh-primary);
    color: white;
    transform: scale(1.05);
}

/* ========== 搜索区域 ========== */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.search-section.center {
    padding: 90px 0 70px;
    text-align: center;
}

.search-section.top {
    padding: 50px 0 40px;
}

.search-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.search-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.search-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

/* 搜索框 */
.search-box {
    max-width: 720px;
    margin: 0 auto 35px;
    position: relative;
    z-index: 1;
}

.search-input-wrapper {
    display: flex;
    background: var(--sh-card);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--sh-primary-light);
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--sh-text);
    font-family: var(--sh-font);
}

.search-input::placeholder {
    color: var(--sh-text-secondary);
}

.search-btn {
    padding: 0 32px;
    background: var(--sh-primary);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sh-font);
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--sh-primary-dark);
}

/* ========== 网盘类型筛选 ========== */
.filter-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.type-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.type-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.type-tag.active {
    background: white;
    color: var(--sh-primary);
    font-weight: 600;
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    padding: 50px 0;
    background: var(--sh-bg);
}

/* ========== 区块标题 ========== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--sh-text);
}

.section-title span {
    font-size: 26px;
}

/* ========== 搜索结果 ========== */
.results-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sh-text);
}

.results-count {
    color: var(--sh-text-secondary);
    font-weight: 500;
    font-size: 13px;
    background: var(--sh-card);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--sh-border);
}

/* 激活的筛选器 */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-text);
    box-shadow: var(--sh-shadow-sm);
}

.filter-chip .remove {
    color: var(--sh-text-secondary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-chip .remove:hover {
    background: var(--sh-danger);
    color: white;
}

/* ========== 资源列表（文字列表） ========== */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-list-item {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-sm);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.resource-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow);
    border-color: var(--sh-primary-light);
}

.list-item-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.list-item-type {
    display: inline-block;
    padding: 5px 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--sh-radius-sm);
}

.list-item-category {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--sh-text-secondary);
    background: var(--sh-bg);
    padding: 4px 10px;
    border-radius: var(--sh-radius-sm);
}

.list-item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--sh-text);
}

.list-item-title a {
    color: var(--sh-text);
    text-decoration: none;
    transition: color 0.2s;
}

.list-item-title a:hover {
    color: var(--sh-primary);
}

.list-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--sh-text-secondary);
    min-width: 100px;
    text-align: right;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--sh-card);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--sh-text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* ========== 分页 ========== */
.pagination-wrapper {
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-btn {
    padding: 10px 18px;
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    color: var(--sh-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--sh-shadow-sm);
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--sh-bg);
    border-color: var(--sh-primary);
    color: var(--sh-primary);
}

.page-btn.current {
    background: var(--sh-primary);
    color: white;
    border-color: var(--sh-primary);
}

.page-ellipsis {
    padding: 10px;
    color: var(--sh-text-secondary);
    font-weight: 500;
}

/* ========== 热门资源 ========== */
.hot-section {
    margin-bottom: 50px;
}

/* ========== 关于我们 ========== */
.about-section {
    background: var(--sh-card);
    padding: 40px;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    border: 1px solid var(--sh-border);
}

.about-content {
    color: var(--sh-text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.about-content p {
    margin-bottom: 16px;
}

/* 免责声明样式 */
.disclaimer-content {
    color: var(--sh-text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.disclaimer-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sh-text);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-content h3:first-child {
    margin-top: 0;
}

.disclaimer-content p {
    margin: 0 0 8px;
}

.disclaimer-content a {
    color: var(--sh-primary);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-content a:hover {
    text-decoration: underline;
}

/* ========== 资源详情页 ========== */
.resource-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* 详情页顶部导航栏 */
.detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-sm);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--sh-radius-sm);
    border: 1px solid var(--sh-border);
    background: var(--sh-bg);
    transition: all 0.2s;
}

.back-link:hover {
    background: var(--sh-primary);
    color: white;
    border-color: var(--sh-primary);
}

.detail-nav-actions {
    display: flex;
    gap: 10px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-action-btn:hover {
    background: var(--sh-primary);
    color: white;
    border-color: var(--sh-primary);
}

/* 头部英雄区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
}

.detail-header {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-type {
    display: inline-block;
    padding: 6px 14px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--sh-radius-sm);
}

.detail-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-text-secondary);
    background: var(--sh-bg);
    padding: 6px 14px;
    border-radius: var(--sh-radius-sm);
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--sh-text);
}

.detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--sh-text-secondary);
    flex-wrap: wrap;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--sh-bg);
    border-radius: 20px;
    border: 1px solid var(--sh-border);
}

/* 分享区域 */
.detail-share {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 20px 32px;
    margin-bottom: 24px;
}

.detail-share h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--sh-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--sh-radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow-md);
}

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.qq { background: #12b7f5; }
.share-btn.copy { background: var(--sh-primary); }

/* 链接复制区域 */
.link-copy-box {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 24px 32px;
    margin-bottom: 24px;
}

.link-copy-box h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--sh-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-input-group {
    display: flex;
    gap: 10px;
}

.copy-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 14px;
    background: var(--sh-bg);
    color: var(--sh-text);
}

.copy-btn {
    padding: 12px 24px;
    background: var(--sh-primary);
    color: white;
    border: none;
    border-radius: var(--sh-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--sh-primary-dark);
}

.copy-btn.copied {
    background: var(--sh-success);
}

/* 相关资源推荐 */
.related-resources {
    margin-top: 40px;
    margin-bottom: 40px;
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sh-border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sh-text);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow-md);
    border-color: var(--sh-primary);
}

.related-item-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.related-item-type {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border-radius: var(--sh-radius-sm);
}

.related-item-category {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--sh-bg);
    border-radius: var(--sh-radius-sm);
}

.related-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sh-text);
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item:hover .related-item-title {
    color: var(--sh-primary);
}

.related-item-meta {
    font-size: 12px;
    color: var(--sh-text-secondary);
}

/* 资源图片 */
.detail-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 500px;
    padding: 20px;
}

.detail-image img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.detail-description {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.detail-description h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--sh-text);
}

.detail-description p {
    color: var(--sh-text-secondary);
    line-height: 1.8;
}

/* 豆瓣影片信息 */
.detail-douban {
    background: linear-gradient(135deg, #fef9f3 0%, #fdf3e7 100%);
    border: 1px solid #e8d5c4;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.detail-douban h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #8b5a2b;
}

.detail-douban .douban-content {
    color: var(--sh-text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

/* 链接状态检查 */
.link-status-box {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 20px 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--sh-border);
}

.link-status-box.status-success {
    border-left-color: var(--sh-success);
}

.link-status-box.status-warning {
    border-left-color: var(--sh-warning);
}

.link-status-box.status-error {
    border-left-color: var(--sh-danger);
}

.link-status-box.status-unknown {
    border-left-color: var(--sh-text-secondary);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sh-text);
}

.status-icon {
    font-size: 22px;
}

.status-tip {
    font-size: 13px;
    color: var(--sh-text-secondary);
    margin: 0;
}

/* 获取资源按钮 */
.detail-action {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.detail-get-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-accent) 100%);
    color: white;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-md);
    transition: all 0.3s ease;
}

.detail-get-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow-lg);
}

.detail-get-btn.disabled {
    background: var(--sh-text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

.detail-get-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.action-tip {
    font-size: 13px;
    color: var(--sh-text-secondary);
    margin: 16px 0 0;
}

/* 资源信息 */
.detail-info {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.detail-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sh-text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sh-border);
}

.info-label {
    font-size: 14px;
    color: var(--sh-text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-text);
}

/* 反馈区域 */
.detail-feedback {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 28px 32px;
}

.detail-feedback h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--sh-text);
}

.feedback-tip {
    font-size: 13px;
    color: var(--sh-text-secondary);
    margin-bottom: 16px;
}

.feedback-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-radius: var(--sh-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sh-font);
    transition: all 0.2s;
}

.feedback-toggle-btn:hover {
    background: #fed7d7;
}

/* 反馈表单 */
.feedback-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--sh-border);
    animation: slideIn 0.3s ease forwards;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sh-text);
}

.feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feedback-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--sh-bg);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--sh-text);
    transition: all 0.2s;
}

.feedback-type-option:hover {
    border-color: var(--sh-primary);
}

.feedback-type-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.feedback-type-option:has(input:checked) {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: white;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 14px;
    font-family: var(--sh-font);
    background: var(--sh-card);
    outline: none;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel,
.btn-submit {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sh-font);
    border-radius: var(--sh-radius-sm);
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background: var(--sh-bg);
    color: var(--sh-text);
    border: 1px solid var(--sh-border);
}

.btn-cancel:hover {
    background: var(--sh-border);
}

.btn-submit {
    background: var(--sh-primary);
    color: white;
}

.btn-submit:hover {
    background: var(--sh-primary-dark);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--sh-nav-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 35px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    font-weight: 400;
}

/* ========== 移动端分类浏览 ========== */
.mobile-categories {
    display: none;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    /* 隐藏顶部分类浏览 */
    .nav-categories {
        display: none;
    }
    
    /* 显示移动端分类 */
    .mobile-categories {
        display: block;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-cat-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 12px;
        text-align: center;
    }
    
    .mobile-cat-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .mobile-cat-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.2s;
    }
    
    .mobile-cat-link:hover {
        background: white;
        color: var(--sh-primary);
    }
    
    .mobile-cat-icon {
        font-size: 14px;
    }
    
    .mobile-cat-name {
        font-size: 12px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        height: 60px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
    
    .nav {
        gap: 12px;
    }
    
    .search-section.center {
        padding: 50px 0 40px;
    }
    
    .search-title {
        font-size: 28px;
    }
    
    .search-subtitle {
        font-size: 13px;
    }
    
    .search-subtitle span {
        margin: 3px;
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .search-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    /* 文字列表移动端适配 */
    .resource-list-item {
        padding: 14px 16px;
        display: grid;
        grid-template-areas: 
            "badges meta"
            "title title";
        grid-template-columns: 1fr auto;
        gap: 10px 12px;
        align-items: center;
    }
    
    .list-item-badges {
        grid-area: badges;
        flex-direction: row;
        min-width: auto;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }
    
    .list-item-type {
        padding: 4px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    .list-item-category {
        font-size: 11px;
        flex-shrink: 0;
        padding: 3px 8px;
    }
    
    .list-item-title {
        grid-area: title;
        width: 100%;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }
    
    .list-item-title a {
        display: block;
        word-break: break-all;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .list-item-meta {
        grid-area: meta;
        flex-direction: row;
        min-width: auto;
        gap: 8px;
        text-align: right;
        font-size: 11px;
    }
    
    /* 资源详情移动端适配 */
    .resource-detail {
        padding: 20px 0;
    }
    
    .detail-header,
    .detail-image,
    .detail-description,
    .detail-douban,
    .detail-action,
    .detail-info,
    .detail-feedback {
        padding: 20px;
    }
    
    .feedback-types {
        flex-direction: column;
        gap: 8px;
    }
    
    .feedback-type-option {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .detail-get-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        padding: 0 18px;
        font-size: 14px;
    }
    
    .filter-types {
        gap: 6px;
    }
    
    .type-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* 关于我们响应式 */
    .about-section {
        padding: 25px 20px;
    }
    
    .disclaimer-content {
        font-size: 14px;
    }
    
    .disclaimer-content h3 {
        font-size: 15px;
        margin: 20px 0 10px;
    }
    
    .about-cat-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ========== 资源投稿页面 ========== */
.submit-container {
    width: 900px;
    max-width: calc(100% - 40px);
    margin: 40px auto;
    padding: 0 20px;
}

.submit-header {
    text-align: center;
    margin-bottom: 30px;
}

.submit-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sh-text);
    margin-bottom: 10px;
}

.submit-header p {
    color: var(--sh-text-secondary);
}

.submit-form {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 30px;
}

/* 投稿页表单样式 */
.submit-form .form-group {
    margin-bottom: 20px;
}

.submit-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sh-text);
}

.submit-form .form-group label .required {
    color: var(--sh-danger);
}

.submit-form .form-group input[type="text"],
.submit-form .form-group textarea,
.submit-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 15px;
    font-family: var(--sh-font);
    background: var(--sh-card);
    color: var(--sh-text);
    transition: all 0.2s;
}

.submit-form .form-group input:focus,
.submit-form .form-group textarea:focus,
.submit-form .form-group select:focus {
    outline: none;
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.submit-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--sh-primary) 0%, #764ba2 100%);
    color: white;
    border-radius: var(--sh-radius-sm);
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.captcha-refresh {
    padding: 8px 15px;
    background: var(--sh-bg);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.captcha-refresh:hover {
    background: var(--sh-primary);
    color: white;
}

/* 提交按钮 */
.submit-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-form .btn-submit {
    flex: 1;
    padding: 15px;
    background: var(--sh-primary);
    color: white;
    border: none;
    border-radius: var(--sh-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--sh-shadow-sm);
    transition: all 0.2s;
    font-family: var(--sh-font);
}

.submit-form .btn-submit:hover {
    background: var(--sh-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--sh-shadow);
}

.btn-back {
    padding: 15px 30px;
    background: var(--sh-bg);
    color: var(--sh-text);
    text-decoration: none;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--sh-shadow-sm);
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--sh-border);
}

/* 提示信息 */
.alert {
    padding: 15px 20px;
    border-radius: var(--sh-radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.tips {
    background: #fff9e6;
    border: 1px solid #ffc107;
    border-radius: var(--sh-radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--sh-text);
}

.tips strong {
    color: var(--sh-primary);
}

/* ========== 动画 ========== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-list-item {
    animation: slideIn 0.3s ease forwards;
}

/* ========== 投稿页响应式 ========== */
@media (max-width: 768px) {
    .submit-container {
        margin: 20px auto;
    }
    
    .submit-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .submit-form .form-actions {
        flex-direction: column;
    }
    
    .captcha-group {
        flex-wrap: wrap;
    }
    
    .captcha-code {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .btn-back {
        width: 100%;
    }
}
