/* =========================================
   Flint 燧石影视模板 - 完整样式
   ========================================= */

/* ===== 全局基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #3a3a46;
    background: #f5f6f8;
    line-height: 1.65;
}
a {
    text-decoration: none;
    color: #3a3a46;
    transition: color 0.25s ease;
}
a:hover {
    color: #2b5cff;
}
ul, ol {
    list-style: none;
}
img {
    border: 0;
    max-width: 100%;
    vertical-align: middle;
    display: block;
}
h1, h2, h3, h4 {
    font-weight: 600;
    color: #1f1f2b;
}

/* ===== 双层头部 ===== */
.flint-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.flint-header-top {
    background: #2b2d3a;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.flint-top-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flint-top-right a {
    color: rgba(255,255,255,0.7);
    margin-left: 16px;
}
.flint-top-right a:hover {
    color: #fff;
}

.flint-header-main {
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.flint-main-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.flint-logo {
    font-size: 22px;
    font-weight: 700;
    color: #2b5cff;
    flex-shrink: 0;
}

/* 主导航 */
.flint-nav {
    flex: 1;
}
.flint-nav-list {
    display: flex;
    gap: 4px;
}
.flint-nav-item {
    position: relative;
}
.flint-nav-link {
    display: block;
    padding: 0 18px;
    line-height: 66px;
    font-size: 15px;
    color: #3a3a46;
    font-weight: 500;
}
.flint-nav-link.active,
.flint-nav-link:hover {
    color: #2b5cff;
}

/* 二级下拉菜单 */
.flint-subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 6px 0;
    display: none;
    z-index: 99;
}
.flint-nav-item:hover .flint-subnav {
    display: block;
}
.flint-subnav-link {
    display: block;
    padding: 0 20px;
    line-height: 40px;
    font-size: 14px;
    color: #3a3a46;
}
.flint-subnav-link:hover {
    background: #f0f3ff;
    color: #2b5cff;
}

/* 搜索框 */
.flint-search {
    flex-shrink: 0;
}
.flint-search-form {
    display: flex;
    align-items: center;
}
.flint-search-input {
    width: 220px;
    height: 38px;
    border: 1px solid #e4e6eb;
    background: #f5f6f8;
    border-radius: 19px;
    padding: 0 18px;
    outline: none;
    font-size: 13px;
    transition: all 0.25s;
}
.flint-search-input:focus {
    border-color: #2b5cff;
    background: #fff;
}
.flint-search-btn {
    height: 38px;
    padding: 0 20px;
    background: #2b5cff;
    color: #fff;
    border: none;
    border-radius: 19px;
    cursor: pointer;
    font-size: 13px;
    margin-left: -38px;
}

/* 移动端菜单按钮 */
.flint-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.flint-menu-btn span {
    width: 24px;
    height: 2px;
    background: #1f1f2b;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== 主容器 ===== */
.flint-container {
    max-width: 1320px;
    margin: 0 auto 36px;
    padding: 0 20px;
    width: 100%;
}
.flint-page {
    width: 100%;
}

/* ===== 焦点轮播幻灯片 ===== */
.flint-banner {
    margin-bottom: 30px;
}
.flint-banner-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    background: #e4e6eb;
}
.flint-banner-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}
.flint-banner-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}
.flint-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.flint-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.flint-banner-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(31,31,43,0.9));
    color: #fff;
}
.flint-banner-info h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}
.flint-banner-info p {
    font-size: 14px;
    opacity: 0.9;
}
.flint-banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}
.flint-banner-btn:hover {
    background: rgba(255,255,255,0.35);
}
.flint-btn-prev {
    left: 20px;
}
.flint-btn-next {
    right: 20px;
}
.flint-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.flint-banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.flint-banner-dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* ===== 区块通用 ===== */
.flint-home {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.flint-section {
    width: 100%;
}
.flint-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2b5cff;
}
.flint-section-head h2 {
    font-size: 18px;
}
.flint-more {
    font-size: 13px;
    color: #788898;
}
.flint-more:hover {
    color: #2b5cff;
}

/* ===== 视频卡片网格 ===== */
.flint-card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
}
.flint-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
}
.flint-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.flint-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e4e6eb;
}
.flint-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.flint-video-card:hover .flint-card-cover img {
    transform: scale(1.06);
}
.flint-card-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(31,31,43,0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}
.flint-card-info {
    padding: 10px 14px;
}
.flint-card-info h4 {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 筛选面板 ===== */
.flint-filter {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-filter-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #e4e6eb;
}
.flint-filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.flint-filter-label {
    width: 60px;
    flex-shrink: 0;
    font-size: 13px;
    color: #788898;
    padding-top: 5px;
    font-weight: 500;
}
.flint-filter-scroll {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.flint-filter-scroll::-webkit-scrollbar {
    display: none;
}
.flint-filter-scroll a {
    flex: 0 0 auto;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: #f5f6f8;
    color: #5a5a66;
    white-space: nowrap;
}
.flint-filter-scroll a.active {
    background: #2b5cff;
    color: #fff;
}
.flint-filter-scroll a:hover {
    background: #e8edff;
    color: #2b5cff;
}
.flint-filter-scroll a.active:hover {
    background: #2b5cff;
    color: #fff;
}

/* ===== 排序栏 ===== */
.flint-sort {
    background: #fff;
    border-radius: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
    height: 44px;
    line-height: 44px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-sort-list {
    display: flex;
    gap: 28px;
}
.flint-sort-item {
    font-size: 13px;
    color: #5a5a66;
}
.flint-sort-item.active {
    color: #2b5cff;
    font-weight: 500;
}

/* ===== 分页 ===== */
.flint-pagebar {
    text-align: center;
    margin-top: 30px;
}
.flint-pagebar a {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    margin: 0 4px;
    border: 1px solid #e4e6eb;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #5a5a66;
}
.flint-pagebar a.current {
    background: #2b5cff;
    color: #fff;
    border-color: #2b5cff;
}
.flint-pagebar a:hover:not(.current) {
    border-color: #2b5cff;
    color: #2b5cff;
}

/* ===== 面包屑导航 ===== */
.flint-crumb {
    margin-bottom: 16px;
    font-size: 13px;
    color: #788898;
}
.flint-crumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.flint-crumb-list li {
    display: flex;
    align-items: center;
}
.flint-crumb-list li + li::before {
    content: "›";
    margin: 0 8px;
    color: #d0d3da;
}
.flint-crumb-list li a {
    color: #788898;
}
.flint-crumb-list li a:hover {
    color: #2b5cff;
}
.flint-crumb-home a {
    color: #2b5cff;
    font-weight: 500;
}
.flint-crumb-back {
    margin-left: auto;
}
.flint-crumb-back a {
    padding: 4px 12px;
    border: 1px solid #e4e6eb;
    border-radius: 4px;
    background: #fff;
}
.flint-crumb-back a:hover {
    border-color: #2b5cff;
    color: #2b5cff;
}

/* ===== 详情页 ===== */
.flint-detail {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-detail-head {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
}
.flint-detail-poster {
    width: 200px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f6f8;
}
.flint-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flint-detail-body {
    flex: 1;
    min-width: 0;
}
.flint-detail-body h1 {
    font-size: 24px;
    margin-bottom: 16px;
}
.flint-detail-meta {
    line-height: 2.2;
    font-size: 14px;
    color: #5a5a66;
}
.flint-detail-meta dt {
    display: inline-block;
    width: 70px;
    color: #788898;
}
.flint-detail-meta dd {
    display: inline;
    margin-right: 12px;
}
.flint-detail-btn {
    margin-top: 20px;
}
.flint-detail-btn a {
    display: inline-block;
    padding: 10px 36px;
    background: #2b5cff;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
}
.flint-detail-btn a:hover {
    background: #1f49d9;
}

.flint-detail-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef0f4;
}
.flint-detail-block h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.flint-detail-block p {
    color: #5a5a66;
    line-height: 1.8;
    font-size: 14px;
}

/* ===== 集数列表 ===== */
.flint-episode {
    margin-top: 10px;
}
.flint-episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flint-episode-item {
    width: calc(10% - 7.2px);
}
.flint-episode-item a {
    display: block;
    text-align: center;
    padding: 8px 0;
    background: #f5f6f8;
    border-radius: 6px;
    font-size: 13px;
}
.flint-episode-item a:hover {
    background: #e8edff;
    color: #2b5cff;
}
.flint-episode-more {
    text-align: center;
    margin-top: 16px;
}
.flint-episode-more a {
    color: #2b5cff;
    cursor: pointer;
    font-size: 13px;
}
.flint-episode-hide {
    display: none;
}

/* ===== 播放器 ===== */
.flint-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
}
.flint-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 同类型推荐+排行榜 ===== */
.flint-related {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.flint-related-left {
    flex: 1;
    min-width: 0;
}
.flint-related-right {
    width: 240px;
    flex-shrink: 0;
}
.flint-rank {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-rank h3 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f4;
}
.flint-rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    border-bottom: 1px dashed #eef0f4;
}
.flint-rank-list li:last-child {
    border-bottom: none;
}
.flint-rank-num {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #eef0f4;
    border-radius: 4px;
    font-size: 12px;
    color: #788898;
    flex-shrink: 0;
    font-weight: 500;
}
.flint-rank-list li:nth-child(1) .flint-rank-num {
    background: #2b5cff;
    color: #fff;
}
.flint-rank-list li:nth-child(2) .flint-rank-num {
    background: #557dff;
    color: #fff;
}
.flint-rank-list li:nth-child(3) .flint-rank-num {
    background: #80a0ff;
    color: #fff;
}
.flint-rank-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 常见问题 ===== */
.flint-faq {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-faq h3 {
    font-size: 16px;
    margin-bottom: 16px;
}
.flint-faq-item {
    margin-bottom: 14px;
}
.flint-faq-item:last-child {
    margin-bottom: 0;
}
.flint-faq-item h4 {
    font-weight: 500;
    color: #1f1f2b;
    margin-bottom: 6px;
    font-size: 14px;
}
.flint-faq-item p {
    color: #5a5a66;
    line-height: 1.8;
    font-size: 14px;
}

/* ===== 评论区 ===== */
.flint-comment {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flint-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f4;
}
.flint-comment-head h2 {
    font-size: 18px;
}
.flint-comment-count {
    font-size: 13px;
    color: #788898;
}

.flint-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed #eef0f4;
}
.flint-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b5cff, #557dff);
    color: #fff;
    text-align: center;
    line-height: 40px;
    flex-shrink: 0;
    font-size: 14px;
}
.flint-comment-body {
    flex: 1;
    min-width: 0;
}
.flint-comment-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.flint-comment-user {
    font-weight: 500;
    color: #1f1f2b;
}
.flint-comment-tag {
    color: #788898;
    font-size: 12px;
}
.flint-comment-star {
    color: #ffb428;
    font-size: 12px;
}
.flint-comment-time {
    margin-left: auto;
    color: #999ca8;
    font-size: 12px;
}
.flint-comment-text {
    font-size: 14px;
    color: #5a5a66;
    line-height: 1.7;
}

/* ===== 底部：通栏左右布局 ===== */
.flint-footer {
    background: #2b2d3a;
    padding: 36px 0 24px;
    margin-top: 48px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}
.flint-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}
.flint-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.flint-footer-brand h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}
.flint-footer-brand p {
    font-size: 13px;
}
.flint-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.flint-footer-links a {
    color: rgba(255,255,255,0.6);
}
.flint-footer-links a:hover {
    color: #80a0ff;
}
.flint-footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    line-height: 2;
}

/* ===== 回到顶部 ===== */
.flint-backtop {
    position: fixed;
    right: 30px;
    bottom: 60px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 44px;
    cursor: pointer;
    display: none;
    z-index: 99;
    font-size: 18px;
    color: #2b5cff;
    transition: all 0.3s;
}
.flint-backtop:hover {
    background: #2b5cff;
    color: #fff;
}

/* ===== 空提示 ===== */
.flint-empty {
    background: #fff;
    border-radius: 12px;
    padding: 60px 0;
    text-align: center;
    color: #788898;
}
.flint-empty p {
    line-height: 2;
}

/* ===== 响应式适配 ===== */
@media screen and (max-width: 1200px) {
    .flint-card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .flint-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .flint-banner-wrap {
        height: 300px;
    }
    .flint-related-right {
        display: none;
    }
    .flint-episode-item {
        width: calc(20% - 6.4px);
    }
}

@media screen and (max-width: 768px) {
    .flint-header-top {
        display: none;
    }
    .flint-main-inner {
        height: 60px;
        gap: 16px;
    }
    .flint-logo {
        font-size: 20px;
    }

    .flint-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .flint-nav.show {
        display: block;
    }
    .flint-nav-link {
        line-height: 48px;
        border-bottom: 1px solid #eef0f4;
        padding: 0 20px;
    }

    .flint-subnav {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0 0 0 30px;
        background: #f5f6f8;
        border-radius: 0;
    }
    .flint-nav-item.open .flint-subnav {
        display: block;
    }

    .flint-menu-btn {
        display: flex;
        margin-left: auto; /* 关键：汉堡菜单固定在最右侧 */
    }
    .flint-search-input {
        width: 120px;
        height: 36px;
    }
    .flint-search-btn {
        height: 36px;
    }

    .flint-banner-wrap {
        height: 220px;
    }
    .flint-banner-info h3 {
        font-size: 18px;
    }

    .flint-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .flint-detail-head {
        flex-direction: column;
        align-items: center;
    }
    .flint-detail-body {
        text-align: center;
    }
    .flint-episode-item {
        width: calc(25% - 6px);
    }

    .flint-footer-main {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .flint-footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .flint-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .flint-search-input {
        width: 100px;
    }
    .flint-episode-item {
        width: calc(33.33% - 5.3px);
    }
}
