/* =========================================================
   霓凰映画 · 全局共享样式 (common.css)
   作用于所有页面：重置、背景层、顶部导航、页脚、响应式
   ========================================================= */

/* --- 全局重置 --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 页面基础 --- */
body {
    position: relative; /* 作为 absolute 子元素（导航/底部）的定位参照，使底部信息落在文档最底端 */
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #fff;
    background-color: #0a0a0a; /* 子页默认底色，首页会覆盖为 #000 */
    overflow-x: hidden;
}

/* --- 固定背景层 (视频/图片) --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 备用背景图：默认隐藏，无视频时由页面样式开启 */
.bg-image {
    display: none;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?q=80&w=2071&auto=format&fit=crop') no-repeat center center / cover;
}

/* --- 顶部导航 (全站统一，与首页一致：绝对定位 + 无背景 + 下划线动效) --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}
.logo-img {
    height: 30px; /* 与首页一致 */
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #d4af37;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: 0.3s;
    position: relative;
}
nav a:hover,
nav a.active {
    color: #d4af37; /* 当前页高亮金色 */
}
/* 导航下划线动效（全站一致） */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s;
}
nav a:hover::after {
    width: 100%;
}

/* --- 子页内容容器 --- */
.content {
    padding: 150px 10% 160px;
    max-width: 1400px;
    margin: 0 auto;
}
.page-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.page-sub,
.page-subtitle {
    color: #d4af37;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* --- 底部备案信息 (全站统一，与首页一致) --- */
#page-down {
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    z-index: 10;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
/* 竖线分隔符间距已缩小 */
.footer-links span:not(:last-child)::after,
.footer-links a:not(:last-child)::after {
    content: '丨';
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: normal;
}
.footer-links a {
    color: silver !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #d4af37 !important;
}

/* --- 响应式 (子页通用) --- */
@media (max-width: 768px) {
    header { padding: 20px; }
    nav { display: none; }
    .content { padding: 120px 20px 160px; }
    .page-title { font-size: 32px; }

    #page-down { left: 20px; right: 20px; bottom: 20px; }
    .footer-content { gap: 6px; }
    .footer-links span:not(:last-child)::after,
    .footer-links a:not(:last-child)::after {
        margin: 0 4px; /* 移动端竖线间距同步缩小 */
    }
}
