:root {
    --bg: #f6f3ff;
    --bg-soft: #eef4ff;
    --card: #ffffff;
    --text: #111111;
    --muted: #5a5f6b;
    --line: rgba(17, 17, 17, 0.08);
    --accent: #2f6bff;
    --accent-2: #ff6b8a;
    --shadow: 0 18px 50px rgba(28, 20, 52, 0.08);
    --radius: 28px;
    --font-display: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 182, 214, 0.42), transparent 52%),
        radial-gradient(ellipse 70% 45% at 90% 0%, rgba(168, 198, 255, 0.45), transparent 48%),
        linear-gradient(180deg, #f7f2ff 0%, #f4f7ff 28%, #ffffff 62%);
    background-attachment: fixed;
    line-height: 1.75;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.cursor-glow,
body::before {
    display: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 200;
    background: linear-gradient(90deg, #ff6b8a, #2f6bff);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #6b7280;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: #9aa3b2;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-wrap: pretty;
    color: #111;
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    max-width: 16ch;
    margin-bottom: 20px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 62ch;
}

nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, calc(100% - 28px));
    z-index: 120;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #111;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
}

nav.is-scrolled {
    top: 12px;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(28, 20, 52, 0.06);
    backdrop-filter: blur(18px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px 12px 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #111;
}

.logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-copy strong {
    color: #111;
    font-weight: 800;
}

.logo-copy small {
    color: #4b5563;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #111;
    background: rgba(17, 17, 17, 0.05);
}

.nav-cta {
    margin-left: 8px;
    color: #fff !important;
    background: #111 !important;
    box-shadow: none;
}

.nav-cta:hover,
.nav-cta.active {
    background: #000 !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: #111;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 25px; }

body.nav-open .nav-toggle::before {
    top: 20px;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle span {
    opacity: 0;
}

body.nav-open .nav-toggle::after {
    top: 20px;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 20px 100px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.feature-grid,
.service-list,
.about-stack {
    perspective: 900px;
}

.orb-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.55;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: #ffc1d6;
    top: 12%;
    right: 8%;
    animation: drift 14s ease-in-out infinite;
}

.orb-2 {
    width: 240px;
    height: 240px;
    background: #c3d6ff;
    bottom: 12%;
    left: 6%;
    animation: drift 18s ease-in-out infinite reverse;
}

.orb-3 {
    width: 140px;
    height: 140px;
    background: #e4d4ff;
    top: 42%;
    left: 58%;
    animation: drift 12s ease-in-out infinite 1s;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.6rem);
    margin-bottom: 22px;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #2f6bff 10%, #7b5cff 55%, #ff6b8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--muted);
    max-width: 36em;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.clients {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 56px 0 72px;
}

.clients-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0;
    padding: 36px 56px;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: #333;
    text-align: center;
    background: radial-gradient(ellipse 68% 62% at center, #ffffff 0%, #ffffff 42%, rgba(255, 255, 255, 0.92) 58%, rgba(255, 255, 255, 0) 78%);
}

.clients-title span {
    color: #0078ff;
}

.clients-wall {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.marquee {
    overflow: hidden;
    height: 84px;
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    height: 84px;
    gap: 0;
    animation: marquee 42s linear infinite;
}

.marquee-row-2 .marquee-track {
    animation-direction: reverse;
    animation-duration: 48s;
}

.marquee-row-3 .marquee-track {
    animation-duration: 36s;
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    width: 300px;
    flex: 0 0 300px;
    filter: grayscale(1);
    opacity: 0.82;
}

.client-logo img {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.client-logo--square img {
    height: 52px;
    width: 52px;
}

.client-logo--tiktok img {
    height: 52px;
    max-width: 260px;
    opacity: 1;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: #111;
    color: #fff;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #000;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: #111;
    border-color: rgba(17, 17, 17, 0.14);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: #fff;
}

.intro {
    padding-top: 80px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: end;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.features {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(238, 244, 255, 0.7));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.feature-box,
.service-item,
.contact-info,
.about-card,
.contact-form {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.feature-box::after,
.service-item::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover,
.service-item:hover,
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(28, 20, 52, 0.12);
}

.feature-box:hover::after,
.service-item:hover::after {
    opacity: 1;
}

.feature-index {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    margin-bottom: 28px;
}

.feature-box h3,
.service-item h2,
.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.feature-box p,
.service-item p,
.about-card p,
.content p {
    color: var(--muted);
}

.cta-band {
    margin: 0 auto 40px;
    width: min(1120px, calc(100% - 40px));
    border-radius: 36px;
    padding: 56px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 182, 214, 0.35), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(168, 198, 255, 0.4), transparent 30%),
        #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 8px;
}

.cta-band p {
    color: var(--muted);
}

.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 48vh;
    display: flex;
    align-items: flex-end;
    padding: 160px 0 72px;
}

.page-banner .hero-bg {
    background: transparent;
}

.page-banner h1,
.page-banner p,
.page-banner .eyebrow {
    position: relative;
    z-index: 2;
    animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-banner h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    animation-delay: 0.1s;
}

.page-banner p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 1.08rem;
    animation-delay: 0.2s;
}

.content h2 {
    margin: 0 0 16px;
    font-size: 2rem;
}

.content p {
    margin-bottom: 16px;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.about-stack {
    display: grid;
    gap: 18px;
}

.service-list {
    display: grid;
    gap: 18px;
}

.service-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: start;
}

.service-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
}

.case-rail {
    grid-column: 1 / -1;
    --case-width: clamp(180px, 18vw, 240px);
    --case-height: calc(var(--case-width) * 16 / 9);
    min-height: calc(var(--case-height) + 40px);
    margin-top: 8px;
}

.case-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.case-marquee {
    overflow: hidden;
    padding: 4px 0 8px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.case-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: case-scroll 28s linear infinite;
    animation-play-state: paused;
}

.case-marquee.is-on .case-track {
    animation-play-state: running;
}

.service-item:nth-child(2) .case-track {
    animation-duration: 34s;
}

.service-item:nth-child(3) .case-track {
    animation-duration: 24s;
}

.case-marquee:hover .case-track {
    animation-play-state: paused;
}

.case-track figure {
    position: relative;
    width: var(--case-width);
    height: var(--case-height);
    aspect-ratio: 9 / 16;
    margin: 0;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f3f5fb;
    box-shadow: 0 12px 32px rgba(28, 20, 52, 0.1);
    cursor: pointer;
}

.case-track img,
.case-track video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #111827;
    transition: transform 0.5s ease;
}

.case-track figure:hover img,
.case-track figure:hover video {
    transform: scale(1.06);
}

.case-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.case-empty {
    min-height: var(--case-height, 320px);
    border: 1px dashed rgba(17, 17, 17, 0.12);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.drama-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(145deg, #07162d, #1555af);
}

.drama-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.55s ease;
}

.drama-cover-card:hover .drama-cover img {
    transform: scale(1.06);
}

.drama-cover-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.1;
    text-align: center;
}

.drama-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(4, 12, 28, 0.55));
}

.drama-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    padding-left: 3px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(9px);
}

.drama-player {
    position: fixed;
    z-index: 320;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    background: rgba(4, 10, 22, 0.78);
    backdrop-filter: blur(14px);
}

.drama-player[hidden] {
    display: none;
}

.drama-player-shell {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 60px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: #0a1426;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.drama-player-layout {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(280px, 1fr);
    min-height: min(720px, calc(100vh - 60px));
}

.drama-video-stage {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: #05080f;
}

.drama-video {
    position: relative;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.drama-video.is-ready {
    display: block;
}

.drama-video-empty {
    display: grid;
    gap: 14px;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.drama-video-empty[hidden] {
    display: none;
}

.drama-video-empty span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding-left: 3px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #fff;
}

.drama-video-empty p {
    margin: 0;
}

.drama-player-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
}

.drama-player-copy {
    min-height: 0;
}

.drama-player-title {
    margin: 0 0 16px;
    color: #10213e;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.2;
}

.drama-player-description {
    margin: 0;
    min-height: 4.5em;
    color: #64748b;
    line-height: 1.8;
    white-space: pre-line;
}

.drama-player-description:empty::before {
    content: "这部剧还没有填写简介。";
}

.drama-episodes {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(16, 33, 62, 0.08);
}

.drama-episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.drama-episode {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(16, 33, 62, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.7);
    color: #536177;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.drama-episode:hover,
.drama-episode.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(12, 88, 196, 0.22);
}

.drama-player-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #10213e;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body.drama-open {
    overflow: hidden;
}

/* 每张封面是一部独立的剧，点击后打开对应播放卡片。 */
.drama-library {
    grid-column: 1 / -1;
    margin-top: 10px;
}

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

.drama-cover-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.drama-cover-card .drama-cover {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(28, 20, 52, 0.1);
}

.drama-cover-card .drama-cover img,
.drama-cover-card .drama-cover-fallback {
    position: absolute;
    inset: 0;
}

.drama-cover-title {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-cover-card:hover .drama-cover {
    box-shadow: 0 16px 36px rgba(21, 76, 154, 0.16);
}

.drama-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(5, 14, 31, 0.58);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

@keyframes case-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(10, 12, 18, 0.78);
    backdrop-filter: blur(16px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-stage {
    width: min(1080px, 100%);
    max-height: calc(100vh - 80px);
}

.lightbox-image,
.lightbox-video {
    display: none;
    width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox.is-image .lightbox-image,
.lightbox.is-video .lightbox-video {
    display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-close {
    top: 22px;
    right: 22px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

body.lightbox-open {
    overflow: hidden;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #374151;
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8f9fd;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9aa3b2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(47, 107, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
    background: #fff;
}

.form-feedback {
    display: none;
    margin-top: 12px;
    color: #178a4c;
}

.form-feedback.is-visible {
    display: block;
}

footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 28px 20px 40px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.55);
}

footer .beian {
    margin-top: 8px;
}

footer .beian a {
    color: inherit;
    text-decoration: none;
}

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

.reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(6px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* 服务卡片里有视频，整卡做模糊会卡顿，只保留上浮淡入。 */
.service-item.reveal {
    filter: none;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-track video:not([src]) {
    background:
        radial-gradient(circle at 50% 42%, rgba(24, 113, 242, 0.22), transparent 46%),
        #111827;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-actions {
    animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 { animation-delay: 0.12s; }
.hero-content p { animation-delay: 0.22s; }
.hero-actions { animation-delay: 0.32s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 860px) {
    .clients-title {
        font-size: 22px;
        padding: 16px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 90px 14px auto;
        display: none;
        flex-direction: column;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(17, 17, 17, 0.06);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .intro-grid,
    .feature-grid,
    .about-layout,
    .contact-layout,
    .service-item,
    .cta-band {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cta-band {
        padding: 36px 24px;
        text-align: center;
    }

    .hero {
        min-height: 92vh;
        padding-top: 150px;
    }

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

    .drama-player {
        align-items: start;
        overflow-y: auto;
        padding: 18px;
    }

    .drama-player-shell {
        max-height: none;
        margin: auto 0;
        overflow: hidden;
    }

    .drama-player-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .drama-video-stage {
        aspect-ratio: 9 / 16;
        max-height: min(68vh, 620px);
    }

    .drama-player-info {
        min-height: 280px;
        padding: 28px 22px 24px;
    }

    .drama-episodes {
        margin-top: 34px;
        padding-top: 0;
    }

    .section-padding {
        padding: 88px 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
