/* ========================================
   影视站模板样式 - 橙色简洁风格
   ======================================== */

:root {
    --color-accent: #d4641a;
    --color-accent-dark: #b5521200;
    --color-accent-hover: #e07220;
    --color-accent-light: #f5e6d8;
    --color-bg-page: #f0f2f4;
    --color-bg-card: #ffffff;
    --color-bg-input: #ffffff;
    --color-text-main: #222222;
    --color-text-sub: #555555;
    --color-text-dim: #999999;
    --color-line: #e2e4e8;
    --color-nav-bg: #ffffff;
    --color-nav-active-bg: #d4641a;
    --color-nav-active-txt: #ffffff;
    --color-header-bg: #ffffff;
    --color-header-text: #222222;
    --color-tag-bg: #f5e6d8;
    --color-tag-txt: #d4641a;
    --color-footer-bg: #2a2a2a;
    --color-footer-text: #aaaaaa;
    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-hover: 0 3px 10px rgba(0,0,0,0.13);
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', sans-serif;
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 12px;
    --gap-lg: 16px;
    --gap-xl: 24px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================================
   布局容器
   ======================================== */

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

/* 兼容旧模板标签名 */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.card-block {
    background: var(--color-bg-card);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ========================================
   顶部品牌区（不吸顶）
   ======================================== */

.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 12px 0;
    border-bottom: 2px solid var(--color-accent);
    box-shadow: var(--shadow-card);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    border-bottom: none;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    text-underline-offset: unset;
    display: inline-block;
}

.brand-title:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent-light);
    border: 1px solid #e8c49a;
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    white-space: nowrap;
}

.domain-badge .lbl {
    font-size: 11px;
    color: var(--color-text-sub);
    font-weight: 500;
}

.domain-badge .url-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.3px;
}

/* ========================================
   横幅区域
   ======================================== */

.banner-zone {
    margin: 6px 0;
}

.banner-zone .wrap {
    padding: 0 16px;
}

/* ========================================
   栏目导航
   ======================================== */

.nav-panel {
    background: var(--color-nav-bg);
    border-bottom: 2px solid var(--color-line);
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.nav-panel .wrap {
    padding: 0 16px;
}

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f2f2f2;
    min-height: 36px;
}

.cat-row:last-child {
    border-bottom: none;
}

.cat-zone-label {
    background: var(--color-accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    min-width: 42px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.cat-links-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    gap: 0;
}

.cat-links-area a {
    font-size: 13px;
    color: var(--color-text-main);
    padding: 6px 10px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    text-align: center;
}

.cat-links-area a:hover,
.cat-links-area a.active {
    background: var(--color-nav-active-bg);
    color: var(--color-nav-active-txt);
}

/* ========================================
   搜索区域
   ======================================== */

.search-zone {
    background: var(--color-bg-card);
    padding: 10px 0;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.search-zone .wrap {
    padding: 0 16px;
}

.search-form-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.search-form-box form {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-form-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-xs);
    padding: 0 10px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: var(--color-bg-input);
    outline: none;
    transition: border-color 0.2s;
}

.search-form-box input[type="text"]:focus {
    border-color: var(--color-accent-hover);
    box-shadow: 0 0 0 3px rgba(212,100,26,0.12);
}

.search-form-box button {
    height: 34px;
    padding: 0 11px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.search-form-box button:hover {
    background: var(--color-accent-hover);
}

/* ========================================
   热搜标签
   ======================================== */

.hot-tags-block {
    background: var(--color-bg-card);
    padding: 8px 0;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.hot-tags-block .wrap {
    padding: 0 16px;
}

.hot-tags-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hot-tags-inner h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
    margin-right: 6px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tags-list a {
    font-size: 12px;
    color: var(--color-text-sub);
    background: var(--color-tag-bg);
    border: 1px solid #e8c49a;
    border-radius: var(--radius-xs);
    padding: 2px 9px;
    transition: all 0.15s;
    color: var(--color-accent);
}

.tags-list a:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* ========================================
   内容区块 - 影片列表
   ======================================== */

.content-zone {
    padding: 6px 0;
}

.content-zone .wrap {
    padding: 0 16px;
}

.film-section {
    background: var(--color-bg-card);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.film-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 2px solid var(--color-accent);
    background: #fff;
}

.film-section-head h3.sec-title,
.film-section-head h4.sec-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text-main);
    position: relative;
    padding-left: 10px;
}

.film-section-head h3.sec-title::before,
.film-section-head h4.sec-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: var(--color-accent);
    border-radius: 2px;
}

.film-section-head h3.sec-title a,
.film-section-head h4.sec-title a {
    color: var(--color-text-main);
}

.film-section-head h3.sec-title a:hover,
.film-section-head h4.sec-title a:hover {
    color: var(--color-accent);
}

.count-badge {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-dim);
    margin-left: 8px;
}

/* 影片网格 */
.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.film-item {
    position: relative;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: #f8f8f8;
    transition: box-shadow 0.2s, transform 0.2s;
}

.film-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* 封面比例 600:350 */
.film-thumb {
    display: block;
    width: 100%;
    padding-top: 58.33%; /* 350/600 */
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
}

.film-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.film-item:hover .film-thumb img {
    transform: scale(1.05);
}

.film-meta {
    padding: 5px 6px 7px;
}

.film-meta h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a {
    color: var(--color-text-main);
}

.film-meta h5 a:hover {
    color: var(--color-accent);
}

/* ========================================
   详情页 - 标题栏
   ======================================== */

.detail-title-bar {
    background: var(--color-bg-card);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 15px;
    color: var(--color-text-main);
    line-height: 1.5;
    border-left: 4px solid var(--color-accent);
}

.detail-title-bar b {
    font-weight: 700;
}

.cat-link {
    color: var(--color-accent);
    margin-right: 6px;
    font-weight: 600;
}

.cat-link:hover {
    color: var(--color-accent-hover);
}

/* ========================================
   详情页 - 影片信息
   ======================================== */

.detail-info-box {
    background: var(--color-bg-card);
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 14px;
    color: var(--color-text-sub);
    line-height: 2;
}

/* 截图网格：单图占100% */
.capture-grid-box {
    margin-top: 10px;
}

.capture-grid-box picture {
    display: block;
    width: 100%;
}

.capture-grid-box picture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xs);
}

/* ========================================
   下载按钮区域
   ======================================== */

.dl-btn-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--color-bg-card);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.dl-btn:hover {
    background: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* 客户端下载链接 */
.client-link-pc,
.client-link-mobile {
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
}

.client-link-pc a,
.client-link-mobile a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ========================================
   分享区域
   ======================================== */

.share-panel {
    background: var(--color-bg-card);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-lbl {
    font-size: 12px;
    color: var(--color-text-sub);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url-txt {
    font-size: 12px;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--color-accent-hover);
}

/* ========================================
   视频播放器
   ======================================== */

.player-wrap {
    background: #000;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ========================================
   分页
   ======================================== */

.paging-zone {
    margin: 12px 0 6px;
    display: flex;
    justify-content: center;
}

.pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pager a,
.pager .cur-pg {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: var(--radius-xs);
    font-size: 13px;
    padding: 0 6px;
}

.pager a {
    background: var(--color-bg-card);
    color: var(--color-text-main);
    border: 1px solid var(--color-line);
    transition: all 0.15s;
}

.pager a:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.pager .cur-pg {
    background: var(--color-accent);
    color: #ffffff;
    border: 1px solid var(--color-accent);
    font-weight: 700;
}

/* ========================================
   友情链接
   ======================================== */

.links-section {
    background: var(--color-bg-card);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.links-section .sec-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-sub);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-line);
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.links-list dd {
    margin: 0;
}

.links-list a.lnk-item {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-sub);
    background: #f7f7f7;
    border: 1px solid var(--color-line);
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
}

.links-list a.lnk-item:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* ========================================
   页脚
   ======================================== */

.site-footer {
    background: var(--color-footer-bg);
    padding: 16px 0;
    margin-top: 8px;
}

.site-footer .wrap {
    padding: 0 16px;
}

.footer-copy {
    text-align: center;
    font-size: 12px;
    color: var(--color-footer-text);
    line-height: 1.8;
}

/* ========================================
   显示/隐藏辅助
   ======================================== */

.pc-only { display: block; }
.mobile-only { display: none; }

/* ========================================
   PC端导航栏宽度均分
   ======================================== */

@media (min-width: 769px) {
    .cat-row {
        min-height: 40px;
    }

    .cat-zone-label {
        font-size: 13px;
        min-width: 72px;
        padding: 0 10px;
    }

    .cat-links-area {
        display: flex;
        flex-wrap: nowrap;
    }

    .cat-links-area a {
        flex: 1;
        font-size: 14px;
        padding: 8px 5px;
        text-align: center;
    }
}

/* ========================================
   响应式 - 平板 (≤ 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* ========================================
   响应式 - 大屏手机 (≤ 768px)
   ======================================== */

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

    .wrap {
        padding: 0 10px;
    }

    /* 品牌 */
    .brand-title {
        font-size: 20px;
    }

    .domain-badge .url-val {
        font-size: 14px;
    }

    /* 导航 */
    .cat-zone-label {
        font-size: 10px;
        min-width: 0;
        width: 15%;
        padding: 0 3px;
    }

    .cat-links-area {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-links-area a {
        font-size: 13px;
        padding: 5px 4px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 搜索 */
    .search-form-box {
        flex-wrap: nowrap;
    }

    .search-form-box form {
        flex-wrap: nowrap;
    }

    .search-form-box input[type="text"] {
        font-size: 12px;
        height: 32px;
    }

    .search-form-box button {
        height: 32px;
        font-size: 11px;
        padding: 0 8px;
        flex-shrink: 0;
    }

    /* 影片网格 - 移动端2列 */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px 10px;
    }

    .film-section {
        overflow: hidden;
    }

    /* 详情 */
    .detail-title-bar {
        font-size: 14px;
        padding: 10px 12px;
    }

    .detail-info-box {
        font-size: 13px;
        padding: 12px;
    }

    .dl-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .tags-list a {
        font-size: 11px;
        padding: 2px 6px;
    }

    .pager a, .pager .cur-pg {
        min-width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }

    .film-section-head {
        padding: 8px 10px;
    }
}

/* ========================================
   响应式 - 小屏手机 (≤ 480px)
   ======================================== */

@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .domain-badge .url-val {
        font-size: 13px;
    }

    .domain-badge {
        padding: 3px 8px;
    }

    .cat-zone-label {
        font-size: 10px;
        width: 15%;
        min-width: 0;
    }

    .cat-links-area a {
        font-size: 12px;
        padding: 5px 2px;
    }

    .search-form-box input[type="text"] {
        height: 30px;
        font-size: 11px;
    }

    .search-form-box button {
        height: 30px;
        font-size: 11px;
        padding: 0 6px;
    }

    .film-meta h5 {
        font-size: 11px;
    }

    .dl-btn-zone {
        gap: 8px;
    }

    .dl-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
