:root {
    --primary: #e50914;
    --primary-dim: #b80610;
    --bg: #f4f5f7;
    --bg-card: #ffffff;
    --text: #2a2a2a;
    --text-muted: #888;
    --border: #eee;
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --radius: 12px;
}
* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }


.wide-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container { max-width: 800px; margin: 52px auto 2rem; padding: 0 1rem; }

/* 影视详情：左内链 | 宽屏内容 | 右内链 */
.movie-page-wrap {
    --inlink-accent: #e50914;
    padding-bottom: 2.5rem;
}

.movie-stage {
    max-width: 1280px;
    margin: 52px auto 0;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 1.25rem;
    align-items: start;
}

.movie-center {
    min-width: 0;
    max-width: 860px;
    width: 100%;
    justify-self: center;
}

.movie-page-wrap .breadcrumb {
    padding: 0;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.movie-page-wrap .card {
    margin-bottom: 1.25rem;
}

.movie-tags-card {
    padding: 1.2rem 1.5rem;
}

.post-inlinks-rail {
    position: sticky;
    top: 72px;
    align-self: start;
}

.post-inlinks-rail .inlink-block {
    margin-bottom: 0.75rem;
}

.post-inlinks-rail .inlink-block-title {
    font-size: 0.82rem;
}

.post-inlinks-rail .inlink-cat-list a {
    font-size: 0.8rem;
    padding: 0.38rem 0.45rem;
}

.post-inlinks-rail .inlink-cat-list .cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.25rem;
}

.post-inlinks-rail .inlink-hot-list a {
    font-size: 0.8rem;
}

.post-inlinks-rail .inlink-tag-cloud .cloud-tag {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
}

.rail-adjacent-item {
    display: block;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.rail-adjacent-item + .rail-adjacent-item {
    margin-top: 0.35rem;
    border-top: 1px dashed #eee;
    padding-top: 0.65rem;
}

.rail-adjacent-item:hover {
    background: #fff5f5;
}

.rail-adj-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.rail-adj-title {
    display: block;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rail-adjacent-item:hover .rail-adj-title {
    color: #e50914;
}

.movie-center-inlinks {
    margin-top: 0.25rem;
}

.movie-center-inlinks .inlink-related-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-page-wrap .post-inlinks-rail .inlink-cat-list li.is-current a,
.movie-page-wrap .post-inlinks-rail .inlink-cat-list a:hover {
    background: #fff5f5;
    color: #e50914;
}

.movie-page-wrap .inlink-hot-list a:hover,
.movie-page-wrap .inlink-tag-cloud .cloud-tag:hover,
.movie-page-wrap .inlink-quick a:hover {
    color: #e50914;
}

@media (max-width: 1100px) {
    .movie-stage {
        grid-template-columns: 1fr;
        max-width: 860px;
    }

    .post-inlinks-rail {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .post-inlinks-rail-left {
        order: 2;
    }

    .movie-center {
        order: 1;
        max-width: none;
    }

    .post-inlinks-rail-right {
        order: 3;
    }
}

@media (max-width: 640px) {
    .movie-stage {
        margin-top: 48px;
        padding: 0 0.75rem;
    }

    .post-inlinks-rail {
        grid-template-columns: 1fr;
    }

    .movie-center-inlinks .inlink-related-media {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb - 文章页无额外 padding（避免与 style.css 首页规则冲突） */
.breadcrumb { padding: 0; font-size: 0.8rem; color: #999; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumb a { color: #999; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ccc; margin: 0 0.2rem; }

/* Card base */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.08); }

/* Cover image - 需 !important 覆盖 mobile_responsive.css 全局 img 规则 */
.post-page .cover-wrap { text-align: center; margin-bottom: 0.75rem; }
.post-page .cover-wrap .cover-image {
    display: inline-block;
    width: auto !important;
    max-width: 160px !important;
    max-height: 240px !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Post header */
.post-header { margin-bottom: 0; }
.post-header .top-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.post-header .cat-tag { display: inline-block; padding: 0.25rem 0.7rem; background: var(--primary); color: #fff; font-size: 0.75rem; border-radius: 20px; text-decoration: none; transition: background 0.2s; }
.post-header .cat-tag:hover { background: var(--primary-dim); }
.post-header .meta-item { font-size: 0.82rem; color: var(--text-muted); }
.post-header h1 { font-size: 1.7rem; font-weight: 700; line-height: 1.45; color: #1a1a1a; margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: #888; font-size: 0.82rem; }
.rating-pill { display: inline-flex; align-items: center; gap: 0.3rem; background: #fff7e6; color: #d48806; border: 1px solid #ffe58f; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.rating-pill .star { color: #faad14; }

/* Content */
.post-content { line-height: 1.85; font-size: 1.05rem; color: #333; }
.post-content p { margin-bottom: 1.1rem; }
.post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 1rem; color: #1a1a1a; padding-bottom: 0.4rem; border-bottom: 1px solid #eee; }
.post-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.8rem; color: #2a2a2a; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1.2rem 0 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.3s; }
.post-content img:hover { transform: scale(1.01); }
.post-content a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed #ffb8b8; transition: color 0.2s, border-bottom-color 0.2s; }
.post-content a:hover { color: var(--primary-dim); border-bottom-color: var(--primary); }
.post-content blockquote { margin: 1.5rem 0; padding: 0.8rem 1.2rem; border-left: 3px solid var(--primary); background: #fafafa; border-radius: 0 6px 6px 0; color: #555; font-style: italic; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content code { background: #f5f5f5; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.92em; color: #c53030; font-family: 'SF Mono', Monaco, monospace; }
.post-content pre { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.9rem; margin: 1rem 0; }
.post-content pre code { background: none; color: inherit; padding: 0; font-size: 0.9rem; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.post-content th, .post-content td { padding: 0.6rem 0.8rem; border: 1px solid #e0e0e0; }
.post-content th { background: #f8f8f8; font-weight: 600; text-align: left; }

/* Divider */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, #ddd, transparent); margin: 1.5rem 0; border: none; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.post-tags a { display: inline-block; padding: 0.3rem 0.8rem; background: #f5f5f5; color: #666; text-decoration: none; border-radius: 20px; font-size: 0.8rem; border: 1px solid transparent; transition: all 0.2s; }
.post-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Download section */
.download-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 2rem; text-align: left; border: 1px solid var(--border); }
.download-card h3 { font-size: 1rem; color: #444; margin-bottom: 1rem; font-weight: 600; text-align: left; }
.dl-accordion { border: 1px solid #ececec; border-radius: 10px; overflow: hidden; background: #fafafa; }
.dl-panel + .dl-panel { border-top: 1px solid #ececec; }
.dl-panel-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.1rem; border: none; background: #f3f3f3; cursor: pointer; text-align: left; font: inherit; color: #333; }
.dl-panel-head:hover { background: #ececec; }
.dl-panel-title { font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
.dl-panel-arrow { width: 10px; height: 10px; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; margin-top: -4px; }
.dl-panel:not(.is-open) .dl-panel-arrow { transform: rotate(-45deg); margin-top: 2px; }
.dl-panel-body { display: none; background: #fff; }
.dl-panel.is-open .dl-panel-body { display: block; }
.dl-file-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem; border-top: 1px solid #f0f0f0; }
.dl-file-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.dl-file-link { color: #222; text-decoration: none; font-size: 0.92rem; line-height: 1.5; word-break: break-all; }
.dl-file-link:hover { color: var(--primary); text-decoration: underline; }
.dl-file-link.is-locked { color: #888; }
.dl-file-size { color: #999; font-size: 0.82rem; white-space: nowrap; }
.dl-file-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.dl-action-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 0.38rem 0.85rem; border-radius: 6px; font-size: 0.82rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid #ddd; background: #fff; color: #333; }
.dl-copy-btn:hover:not(.is-disabled) { border-color: #bbb; background: #fafafa; }
.dl-download-btn { background: #111; border-color: #111; color: #fff; }
.dl-download-btn:hover { background: #333; border-color: #333; color: #fff; }
.dl-action-btn.is-muted { background: #888; border-color: #888; color: #fff; pointer-events: auto; }
.dl-action-btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.dl-form-inline { display: inline; margin: 0; padding: 0; }
.dl-form-inline .dl-download-btn { border: none; }
.dl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.dl-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.65rem 1.5rem; color: #fff; text-decoration: none; border-radius: 8px; font-size: 0.92rem; font-weight: 500; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0.92; }
.dl-btn-login { background: #888 !important; }
.dl-btn-login:hover { background: #666 !important; }
.dl-btn-locked { background: #bbb !important; cursor: not-allowed; pointer-events: none; opacity: 0.7; }
.dl-btn-cost { position: relative; }
.dl-btn-cost::after { content: ''; position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; background: #ffd700; border-radius: 50%; box-shadow: 0 0 4px #ffd700; }
.dl-form { display: inline; margin: 0; padding: 0; }
.dl-form .dl-btn { border: none; cursor: pointer; }
.dl-tip { font-size: 0.82rem; color: #888; margin-top: 0.8rem; text-align: left; }
.dl-failure { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.dl-failure-count { font-size: 0.88rem; color: #666; margin-bottom: 0.6rem; }
.dl-failure-count strong { color: #e50914; font-size: 1rem; }
.dl-failure-msg { font-size: 0.85rem; margin-bottom: 0.6rem; padding: 0.5rem 0.8rem; border-radius: 6px; }
.dl-failure-msg.success { background: #d4edda; color: #155724; }
.dl-failure-msg.error { background: #f8d7da; color: #721c24; }
.dl-failure-form { display: inline; margin: 0; }
.dl-failure-btn { display: inline-flex; align-items: center; padding: 0.45rem 1.2rem; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #666; font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.dl-failure-btn:hover { border-color: #e50914; color: #e50914; }
.dl-failure-btn.done { cursor: default; background: #f5f5f5; color: #999; border-color: #eee; }
.dl-failure-btn.login { color: #e50914; border-color: #f0c0c0; }
.dl-icon { display: inline-block; width: 1em; height: 1em; font-size: 1.1em; }

/* Footer — 使用全局 site-footer 样式（style.css） */

/* Mobile */
@media (max-width: 768px) {
    .wide-container, .container { padding: 0 0.8rem; }
    .post-page .container { margin: 48px auto 1.5rem; }
    .card { padding: 1.2rem; border-radius: 10px; }
    .post-header h1 { font-size: 1.4rem; }
    .post-content { font-size: 1rem; }
    .dl-file-row { flex-direction: column; align-items: stretch; }
    .dl-file-actions { justify-content: flex-end; }
    .dl-links { flex-direction: column; align-items: stretch; }
    .dl-btn { justify-content: center; }
    .post-page .cover-wrap .cover-image {
        max-width: 120px !important;
        max-height: 180px !important;
    }
}
