/* ============================================================
   影视拍摄模板 · Film
   ============================================================ */
.tpl-film {
    /* 桥接令牌：供共享 frontend.css 的区块渲染器（.fw-*）使用，映射自本模板 --tpl-* 调色板 */
    --brand-600: var(--tpl-primary);
    --brand-700: color-mix(in srgb, var(--tpl-primary) 80%, #000);
    --brand-400: var(--tpl-primary-2);
    --brand-300: color-mix(in srgb, var(--tpl-primary) 55%, #fff);
    --brand-200: color-mix(in srgb, var(--tpl-primary) 32%, #fff);
    --brand-50:  color-mix(in srgb, var(--tpl-primary) 12%, #fff);
    --brand-100: color-mix(in srgb, var(--tpl-primary) 18%, #fff);
    --surface: var(--tpl-surface);
    --surface-hover: var(--tpl-surface-2);
    --surface-sunken: var(--tpl-surface-2);
    --text: var(--tpl-text);
    --text-muted: var(--tpl-text-muted);
    --text-subtle: color-mix(in srgb, var(--tpl-text-muted) 65%, #fff);
    --border: var(--tpl-border);
    --gray-900: color-mix(in srgb, var(--tpl-text) 90%, #000);
    --gray-300: var(--tpl-text-muted);
    --gray-400: color-mix(in srgb, var(--tpl-text-muted) 75%, #fff);
    --gray-500: color-mix(in srgb, var(--tpl-text-muted) 55%, #fff);
    --tpl-primary: #ffd700;
    --tpl-primary-2: #ffecb3;
    --tpl-accent: #e53935;
    --tpl-surface: #0a0a0a;
    --tpl-surface-2: #141414;
    --tpl-text: #f5f5f5;
    --tpl-text-muted: #9e9e9e;
    --tpl-border: #2a2a2a;
    --tpl-radius: 0;
    --tpl-radius-card: 0;
    --tpl-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.tpl-film body {
    background: var(--tpl-surface);
    color: var(--tpl-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

.tpl-film .fw-topbar,
.tpl-film .fw-header,
.tpl-film .fw-footer {
    background: var(--tpl-surface);
    border-color: var(--tpl-border);
}

.tpl-film .fw-link,
.tpl-film .fw-mlink,
.tpl-film .fw-footer a {
    color: var(--tpl-text);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.tpl-film .fw-link:hover,
.tpl-film .fw-mlink:hover {
    color: var(--tpl-primary);
}

.tpl-film .fw-link.active {
    color: var(--tpl-primary);
}

.tpl-film .fw-logo {
    color: var(--tpl-primary);
    font-weight: 800;
}

/* Hero */
.fm-hero {
    background: var(--tpl-surface);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
}

.fm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 40%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.fm-hero-reel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 35%;
    display: flex;
    gap: 12px;
    opacity: 0.15;
    pointer-events: none;
}

.fm-reel-strip {
    flex: 1;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        var(--tpl-primary) 40px,
        var(--tpl-primary) 42px
    );
}

.fm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.fm-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--tpl-primary);
    margin-bottom: 20px;
}

.fm-hero-title {
    font-size: clamp(48px, 7vw, 90px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.fm-hero-title span {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--tpl-primary);
    text-stroke: 1.5px var(--tpl-primary);
}

.fm-hero-lead {
    font-size: 18px;
    color: var(--tpl-text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.fm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .3s ease;
    border: 2px solid transparent;
}

.fm-btn-primary {
    background: var(--tpl-primary);
    color: #000;
}

.fm-btn-primary:hover {
    background: #fff;
    color: #000;
}

.fm-btn-outline {
    border-color: var(--tpl-primary);
    color: var(--tpl-primary);
    margin-left: 16px;
}

.fm-btn-outline:hover {
    background: var(--tpl-primary);
    color: #000;
}

/* Sections */
.fm-section {
    padding: 100px 0;
}

.fm-section-dark {
    background: var(--tpl-surface-2);
}

.fm-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.fm-section-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Works · 作品画廊 */
.fm-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.fm-work-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.fm-work a {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: box-shadow .3s ease, transform .3s ease;
}

.fm-work a:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--tpl-primary), 0 16px 38px rgba(0,0,0,0.55);
}

.fm-work-feature a {
    aspect-ratio: auto;
    height: 100%;
}

.fm-work-img {
    position: absolute;
    inset: 0;
    background: var(--tpl-surface-2);
}

.fm-work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.fm-work a:hover .fm-work-img img {
    transform: scale(1.06);
}

.fm-work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity .3s ease;
}

.fm-work-overlay i {
    font-size: 56px;
    color: var(--tpl-primary);
}

.fm-work-view {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
}

.fm-work a:hover .fm-work-overlay {
    opacity: 1;
}

.fm-work-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.fm-work-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fm-work-body p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Services */
.fm-services {
    margin-bottom: 80px;
}

.fm-service-head,
.fm-news-head {
    text-align: center;
    margin-bottom: 36px;
}

.fm-service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.fm-service-card {
    background: var(--tpl-surface-2);
    border: 1px solid var(--tpl-border);
    padding: 28px 16px;
    text-align: center;
    transition: all .25s ease;
}

.fm-service-card:hover {
    border-color: var(--tpl-primary);
    transform: translateY(-4px);
}

.fm-service-card i {
    font-size: 32px;
    color: var(--tpl-primary);
    margin-bottom: 14px;
}

.fm-service-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* News */
.fm-news-list {
    max-width: 720px;
    margin: 0 auto;
}

.fm-news-item {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid var(--tpl-border);
    text-decoration: none;
    color: var(--tpl-text);
}

.fm-news-item:last-child {
    border-bottom: none;
}

.fm-news-item time {
    font-size: 12px;
    color: var(--tpl-text-muted);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.fm-news-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 0;
}

.fm-news-item:hover h4 {
    color: var(--tpl-primary);
}

.fm-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #141414, #141414 16px, #1f1f1f 16px, #1f1f1f 32px);
}

/* Block overrides */
.tpl-film .fw-section-head h2 {
    font-size: 36px;
    font-weight: 800;
}

.tpl-film .fw-card {
    background: var(--tpl-surface-2);
    border: 1px solid var(--tpl-border);
    color: var(--tpl-text);
}

.tpl-film .fw-card-title,
.tpl-film .fw-card-text {
    color: var(--tpl-text);
}

.tpl-film .fw-hero {
    background: var(--tpl-surface);
}

@media (max-width: 991px) {
    .fm-hero-reel {
        display: none;
    }
    .fm-works {
        grid-template-columns: repeat(2, 1fr);
    }
    .fm-work-feature {
        grid-column: span 2;
        grid-row: span 1;
    }
    .fm-work-feature a {
        aspect-ratio: 16/10;
        height: auto;
    }
    .fm-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .fm-works {
        grid-template-columns: 1fr;
    }
    .fm-work-feature {
        grid-column: auto;
    }
    .fm-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fm-btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }
}
