/* ============================================
   剧好找磁力站 - 主样式表
   ============================================ */

/* 表格样式 */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.resource-table thead {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: #fff;
}

.resource-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.resource-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: middle;
}

/* 名称列链接：超长截断 */
.resource-table .resource-title {
    display: inline-block;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.resource-table tbody tr:hover {
    background: #f5f9ff;
}

.resource-table tbody tr:last-child td {
    border-bottom: none;
}

/* 类型标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-movie {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-tv {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 下载按钮 */
.btn-download, .magnet-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download:hover, .magnet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.4);
}

/* 种子数 */
.seeds {
    color: #4caf50;
    font-weight: 500;
}

/* 文件大小 */
.file-size {
    color: #666;
    font-family: monospace;
}

/* 时间显示 */
.time-ago {
    color: #888;
    font-size: 12px;
}

/* 质量标签 */
.quality-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

.quality-720p {
    background: #4caf50;
    color: #fff;
}

.quality-1080p {
    background: #2196f3;
    color: #fff;
}

.quality-2160p {
    background: #ff9800;
    color: #fff;
}

/* 集数标签 */
.season-tag {
    background: #00897b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
}

.episode-tag {
    background: #e91e63;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* 链接样式 */
.resource-table a {
    color: #1976d2;
    text-decoration: none;
}

.resource-table a:hover {
    text-decoration: underline;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons button {
    flex-shrink: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
}

/* 章节标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title a {
    margin-left: auto;
    color: #1976d2;
    font-size: 14px;
    text-decoration: none;
}

.section-title a:hover {
    text-decoration: underline;
}

/* 质量筛选下拉框 */
.quality-select {
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

/* 侧边栏卡片 */
.sidebar .card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.sidebar .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #666;
}

.sidebar .stat-value {
    font-weight: 600;
    color: #333;
}

.sidebar .stat-value.green {
    color: #4caf50;
}

.sidebar a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #1976d2;
}

.sidebar a:last-child {
    border-bottom: none;
}

/* 搜索框样式 */
.sidebar-search {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-search form {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar-search input:focus {
    border-color: #1976d2;
}

.sidebar-search button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.3s;
}

.sidebar-search button:hover {
    transform: translateY(-2px);
}

/* 公告样式 */
.announcement {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #ff5252;
}

.announcement h4 {
    color: #ff5252;
    margin-bottom: 10px;
    font-size: 16px;
}

.announcement p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.announcement a {
    color: #1976d2;
    text-decoration: none;
}

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

/* 广告位 */
.ad-left, .ad-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
}

.ad-left {
    left: 20px;
}

.ad-right {
    right: 20px;
}

.ad-left img, .ad-right img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
