/*
 * 短剧网盘资源站 - 主样式表
 */

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 布局 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 头部 ========== */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.logo:hover {
    color: #2563eb;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: #4b5563;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    text-decoration: none;
}

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

.search-box input {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 220px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    padding: 8px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #1d4ed8;
}

/* ========== 主内容区 ========== */
.main {
    padding: 32px 0;
    min-height: calc(100vh - 64px - 200px);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #d1d5db;
}

.breadcrumb .current {
    color: #1f2937;
}

/* ========== 短剧区块 ========== */
.drama-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h2 {
    font-size: 1.25rem;
    color: #1f2937;
    position: relative;
    padding-left: 12px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2563eb;
    border-radius: 2px;
}

.more-link {
    font-size: 0.9rem;
    color: #6b7280;
}

.more-link:hover {
    color: #2563eb;
}

/* ========== 短剧网格 ========== */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* ========== 短剧卡片 ========== */
.drama-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.drama-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.drama-card-link {
    display: block;
    color: inherit;
}

.drama-card-link:hover {
    text-decoration: none;
}

.drama-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #e5e7eb;
}

.drama-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.drama-card:hover .drama-card-image img {
    transform: scale(1.05);
}

.episode-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.drama-card-info {
    padding: 12px;
}

.drama-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.drama-card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.drama-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.drama-card-tags .tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
}

/* ========== 详情页 ========== */
.drama-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.drama-cover {
    position: relative;
}

.drama-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.drama-info h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.4;
}

.drama-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

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

.drama-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.drama-tags a {
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.drama-tags a:hover {
    background: #dbeafe;
    text-decoration: none;
}

.get-link-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 16px;
}

.get-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
    text-decoration: none;
}

/* ========== 内容区块 ========== */
.content-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.content-section h2 {
    font-size: 1.15rem;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.content-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ========== 资源信息表格 ========== */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.resource-table th,
.resource-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.resource-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    width: 120px;
}

.resource-table td {
    color: #4b5563;
}

/* ========== 标签云 ========== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tag-item {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

.tag-item .count {
    font-size: 0.8rem;
    opacity: 0.7;
}

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

.page-link {
    padding: 8px 14px;
    background: #fff;
    color: #4b5563;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

.page-link.active {
    background: #2563eb;
    color: #fff;
}

.page-ellipsis {
    color: #9ca3af;
    padding: 0 8px;
}

/* ========== 每日更新 ========== */
.daily-group {
    margin-bottom: 32px;
}

.daily-date {
    font-size: 1.1rem;
    color: #1f2937;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-date::before {
    content: '📅';
}

/* ========== 搜索页 ========== */
.search-header {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.search-header h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.search-form-large {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-large input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
}

.search-form-large input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-form-large button {
    padding: 14px 32px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.search-result-info {
    color: #6b7280;
    margin-bottom: 20px;
}

.search-result-info strong {
    color: #2563eb;
}

.no-result {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-result h2 {
    color: #6b7280;
    margin-bottom: 16px;
}

.hot-searches {
    margin-top: 24px;
}

.hot-searches h3 {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.hot-searches-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hot-searches-list a {
    padding: 6px 14px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hot-searches-list a:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* ========== 404页面 ========== */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
}

.error-page h1 {
    font-size: 6rem;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.error-page p {
    color: #6b7280;
    margin-bottom: 32px;
}

/* ========== 跳转页 ========== */
.go-page {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.go-page h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.go-page p {
    color: #6b7280;
    margin-bottom: 24px;
}

.countdown {
    font-size: 3rem;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ========== 页脚 ========== */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 40px 0 24px;
    margin-top: 48px;
}

.footer a {
    color: #d1d5db;
}

.footer a:hover {
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.copyright {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #374151;
    font-size: 0.85rem;
}

.copyright p {
    margin-bottom: 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
        margin-top: 12px;
    }

    .search-box {
        flex: 1;
    }

    .search-box input {
        width: 100%;
    }

    .drama-detail {
        grid-template-columns: 1fr;
    }

    .drama-cover {
        max-width: 200px;
        margin: 0 auto;
    }

    .drama-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .content-section {
        padding: 16px;
    }

    .resource-table th {
        width: 80px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .drama-card-info {
        padding: 8px;
    }

    .drama-card-title {
        font-size: 0.85rem;
    }

    .search-form-large {
        flex-direction: column;
    }

    .search-form-large button {
        width: 100%;
    }
}

/* ========== 页面头部区块 ========== */
.page-header {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.page-header p {
    color: #6b7280;
}

.page-header strong {
    color: #2563eb;
}

/* ========== 热门搜索区块 ========== */
.hot-searches-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.hot-searches-section h2 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 12px;
}

/* ========== 详情页辅助样式 ========== */
.drama-highlights {
    color: #4b5563;
    margin-bottom: 16px;
}

.drama-btn-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 12px;
}

/* ========== 内容区块标题 ========== */
.content-section h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #1f2937;
}

/* ========== 标签云激活状态 ========== */
.tag-item.active {
    background: #2563eb;
    color: #fff;
}

/* ========== SEO 内容区块 ========== */
.content-section.seo-content {
    margin-top: 32px;
}

