/* Bind core specifications from tokens.css */
:root {
    --lumora-bg: #050612;
    --lumora-purple: #8f2dff;
    --lumora-purple-border: #b658e8;
    --lumora-text: #fff;
    --lumora-text-muted: #a29eb0;
    --lumora-card-width: 216px;
    --lumora-card-height: 278px;
    --lumora-card-radius: 9px;
    
    /* Elegant space glow gradients */
    --glow-violet: rgba(143, 45, 255, 0.4);
    --glow-cyan: rgba(0, 242, 254, 0.35);
}

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

body {
    background-color: var(--lumora-bg);
    /* 
      1:1 纯正极光背景还原系统（彻底废除多余发绿青光，重归原版高奢质感）：
      1. 第一层（右上方深层极光）：顶部偏右（80% 0%）注入饱和、纯正的罗兰紫极光（rgba(143, 45, 255, 0.28)），大范围弥散。
      2. 第二层（左上方暗夜深海蓝）：顶部偏左（20% 0%）融入纯正靛藏青蓝色（rgba(68, 80, 246, 0.12)），不带任何绿色分量，杜绝惨淡发绿！
      3. 第三层（播放器底垫洋紫）：在右侧（75% 45%）融入大面积暗罗兰紫（rgba(114, 16, 215, 0.15) 渐变到 rgba(64, 39, 60, 0.08)），提供暖紫折射。
    */
    background-image: 
        radial-gradient(circle at 80% 0%, rgba(143, 45, 255, 0.28) 0%, rgba(143, 45, 255, 0.06) 50%, rgba(5, 6, 18, 0) 80%),
        radial-gradient(circle at 20% 0%, rgba(68, 80, 246, 0.12) 0%, rgba(5, 6, 18, 0) 60%),
        radial-gradient(circle at 75% 45%, rgba(114, 16, 215, 0.15) 0%, rgba(64, 39, 60, 0.08) 40%, rgba(5, 6, 18, 0) 75%);
    background-repeat: no-repeat;
    color: var(--lumora-text);
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 72px; /* 补偿悬浮 header */
}

/* Cosmic breathing glow layer */
.bg-glow {
    position: absolute;
    width: 1000px;       /* 从 700px 扩容至 1000px，获得宏大的视觉蔓延 */
    height: 1000px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, var(--glow-violet) 0%, rgba(143, 45, 255, 0.15) 45%, rgba(5, 6, 18, 0) 75%);
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);  /* 加大高斯模糊，让大范围极光完美融合，绝无断层 */
    opacity: 0.9;         /* 提升亮度不透明度，重现高亮透气感 */
}

/* Core Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;       /* hero 区域自身是 1024px 设计稿不需要额外 padding */
    position: relative;
    z-index: 1;
}

/* -------------------- Header -------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px; /* 72px 悬浮栏，小巧灵动 */
    background: rgba(5, 6, 18, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
    width: 1024px;
    max-width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* 左右锁定 40px，和下方的模板区域完美对齐 */
}

.header-left {
    display: flex;
    align-items: center;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 9px;          /* 图标与文字之间的呼吸间距 */
    text-decoration: none;
    cursor: default;
}

.brand-icon {
    width: 36px;       /* 从 28px 微调至 36px，使品牌图标更加协调大气 */
    height: 36px;
    border-radius: 9px; /* 精致圆角比例，与 iOS App 原生图标圆角完美呼应 */
    object-fit: cover;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

/* CTA Dropdown Styles */
.header-cta-dropdown {
    position: relative;
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(143, 45, 255, 0.8) 0%, rgba(182, 88, 232, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px; /* 胶囊圆角 */
    padding: 8px 18px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(143, 45, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-btn-text-mobile {
    display: none;
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(143, 45, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(90deg, rgba(143, 45, 255, 0.95) 0%, rgba(182, 88, 232, 0.95) 100%);
}

.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.header-cta-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 170px;
    background: rgba(10, 11, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    
    /* 默认隐藏，带平滑上浮动画 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 101;
}

.header-cta-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.dropdown-item img {
    width: 100%;
    height: auto;
    display: block;
}

.dropdown-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 45, 255, 0.2);
}

/* -------------------- Hero Section -------------------- */
.hero-wrapper {
    position: relative;
    width: 1024px;     /* 固定 1024px，和像素稿宽度一致 */
    max-width: 100%;   /* 小于 1024px 视口时不超出 */
    height: 540px;
    margin: 0 auto;
    overflow: visible;
    z-index: 2;
    transform-origin: top center;
    transition: transform 0.3s ease, margin-bottom 0.3s ease;
}

.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 1024px;     /* 固定 1024px，内部绝对定位元素都基于此宽度 */
    height: 540px;
    z-index: 1;
    overflow: visible;
}

.hero-content {
    position: absolute;
    top: 124px; /* PSD 实测文字绝对定位起点 */
    left: 40px;  /* 微调到 40px，实现和 Header Logo 左边缘完美垂直对齐 */
    width: 410px;
    z-index: 10; /* 置于顶层，确保可交互和可点击 */
    text-align: left;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(90deg, #00f2fe 0%, var(--lumora-purple-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--lumora-text-muted);
    line-height: 1.55;
    margin-bottom: 36px;
    max-width: 380px;
}

/* -------------------- 矢量双端 Store Badges -------------------- */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-badges {
    display: flex;
    gap: 14px;
}

.store-badge-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.store-badge-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.store-badge-link:hover .store-badge-img {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(143, 45, 255, 0.35);
}

.cta-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    padding-left: 2px;
}

/* -------------------- 物理级 HTML/CSS 高奢双层毛玻璃播放器 -------------------- */
.glass-player-container {
    position: absolute;
    right: 40px;   /* 和 templates-section 的 padding: 40px 锁定，任何视口宽度下右边距始终对齐 */
    top: 118px;
    width: 500px;
    height: 376px;
    z-index: 5;
    overflow: visible;
}

/* 霓虹发光晕垫底 (让毛玻璃透射出极奢的极光霓虹) */
.player-glow-violet {
    position: absolute;
    width: 600px;
    height: 400px;
    /* 光心微调往下（ellipse at 50% 38%），精准照射在播放器顶边下方折射区 */
    background: radial-gradient(ellipse at 50% 38%, rgba(255, 77, 243, 0.26) 0%, rgba(143, 45, 255, 0.16) 45%, rgba(5, 6, 18, 0) 80%);
    left: -50px;
    top: -75px; /* 适度向下微调，让发光盘与卡片贴合度更完美，防止偏上过多流失 */
    z-index: 0;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.95;
}

.player-glow-cyan {
    display: none; /* 彻底合并为大渐变底光，隐藏第二个发光层 */
}

/* 
  后层半透明磨砂卡片：
  依照 PSD 完美 1:1，向右探出并高出主底座，
  搭配极亮高保真反光白边。
  究极黑科技：引入 mask-image 蒙版对高斯模糊与背景同时施加渐变消融，
  实现卡片顶部高亮磨砂、底部彻底无形融入背景的极奢叠影！
*/
.player-bg-card {
    position: absolute;
    left: 20px;
    top: 16px;
    width: 480px;
    height: 360px;
    border-radius: 24px;
    /* 极致交叉折射：底层的毛玻璃背景色完全对齐橙色箭头（左上几乎为 0 全透，右下为 12% 饱满乳白正常值） */
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    /* 极为醒目的亮白流光边缘 */
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
    
    /* 蒙版渐变反转：依照橙色箭头从左上到右下消融（左上 0%-35% 完全隐形归零，右下 70%-100% 饱满正常），达成交叉偏置毛玻璃 */
    -webkit-mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.6) 70%, #000 100%);
    mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.6) 70%, #000 100%);
}

/* 前层主播放器卡片：极致高透渐变毛玻璃底座 */
.player-main-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 480px;
    height: 360px;
    border-radius: 24px;
    /* 前层渐变毛玻璃：上半部 14% 乳白度保证磨砂豪华白雾，下半部完全为 0 清澈 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    /* 精美双层白光反射细线 */
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 2;
    overflow: hidden;
    
    /* 蒙版渐变：使高斯模糊与前层背景色、边框一同以极奢、丝滑的曲线向下消融，在 85% 高度处彻底完全消融，让底部留白与控制条 100% 物理清澈透底 */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0) 85%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0) 85%);
}

/* 视频视口容器：完美尊享用户手调参数，等比缩放的 16:9 大视口，极其惊艳 */
.player-video-viewport {
    position: absolute;
    left: -22px;
    top: 32px;
    width: 460px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15); /* 新增 1px 半透明微光白边，突出视频边界 */
    z-index: 3;
}

/* -------------------- 视频切换 Loading Spinner -------------------- */
.video-loading-spinner {
    position: absolute;
    top: 32px;
    left: -22px;
    width: 460px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4; /* 浮于视频视口之上 */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-loading-spinner.visible {
    opacity: 1;
}

.spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}



.showcase-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    background: #050612;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* 
  1:1 视频窗口底部内置控制栏：
  黑色高通透磨砂底色，紧密契合视频画面底部，是播放器画面的一部分！
*/
.video-player-bar {
    display: none; /* 按照用户指令隐藏控制层 */
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bar-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.bar-btn svg {
    width: 100%;
    height: 100%;
}

/* 控制栏内部极简进度条 */
.bar-progress-container {
    position: relative;
    width: 176px;
    height: 10px;
    display: flex;
    align-items: center;
    margin-left: 4px;
    cursor: pointer;
}

.bar-progress-bg {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.bar-progress-fill {
    position: absolute;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.bar-progress-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translate(-50%, 0);
    z-index: 5;
}

/* -------------------- 轮播指示器圆点（独立悬浮在视频底边正下方，1:1 还原原图白色药丸 + 小圆点）-------------------- */
.carousel-dots {
    position: absolute;
    top: 342px; /* 视频 top(32) + 视频高(280) + 间距(30) = 342px，比原来稍大一些 */
    left: -22px; /* 与视频左边齐平，确保水平居中于视频 */
    width: 460px; /* 与视频同宽，确保 justify-content: center 对齐视频中心 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* active：白色药丸（参考原图，为纯白、横向胶囊条，无发光阴影） */
.dot.active {
    width: 22px;
    height: 7px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: none;
}



/* -------------------- Templates Section -------------------- */
/* 注意：templates-section 实际不在 .container 内，是 body 的直接子元素，需要自己负责居中和宽度约束 */
.templates-section {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 40px; /* 内容区 = 944px，和 hero 内容宽度对齐 */
    box-sizing: border-box;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--lumora-text-muted);
    text-align: center;
    margin-bottom: 48px;
}

.templates-grid {
    display: grid;
    /* 流式布局：最小 210px。1080px 内容区下自动排 4−5 列 */
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* 
  核心正常化开发 (Pure Real Card Alignment)：
  GPT提供的图片本身就把极奢的圆角、粉紫发光边框、卡片内部文字切成了完美的高保真一体图 (216x278px)。
  因此，我们彻底废除 CSS 在 template-card 本身绘制的 background、border 和 overflow 剪切！
  允许图片自带的透明边缘和极美高光的流光细线无损地在页面中呼吸舒展，彻底根除“顶边缺失、右侧没有、没对齐”的低级 Bug！
*/
.template-card {
    width: 100%;                         /* 跟随 grid 格子宽度，不再固定 216px */
    aspect-ratio: 216 / 278;             /* 保持原始宽高比，不需要固定高度 */
    background: #0b0c24;                 /* 奢华深蓝底色 */
    border: 1px solid rgba(143, 45, 255, 0.35); /* 高保真发光紫色极细边框 */
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 高保真等比填充 216x278，杜绝拉伸和模糊 */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 渐变遮罩蒙版：确保各种画风原版 cover 上的白字均清晰易读 */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, rgba(5, 6, 18, 0.95) 0%, rgba(5, 6, 18, 0.6) 40%, rgba(5, 6, 18, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* HTML 真实文本布局 */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.card-author {
    font-size: 8px;
    font-weight: 600;
    color: #b658e8; /* 玫瑰金偏紫调高亮 */
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

/* Hover play glass button */
.hover-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(143, 45, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 20px rgba(143, 45, 255, 0.4);
    z-index: 5;
}

.hover-play-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 2px;
}

/* Card Hover animation & glow (100% smooth, no broken lines) */
.template-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(182, 88, 232, 0.85); /* 霓虹边框呼吸加亮 */
    box-shadow: 0 15px 35px rgba(143, 45, 255, 0.45), 
                0 0 15px rgba(143, 45, 255, 0.2);
}

.template-card:hover .card-image-wrapper img {
    transform: scale(1.06); /* 优雅平滑放大 */
}

.template-card:hover .hover-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* -------------------- Copyright Footer -------------------- */
.main-footer {
    padding: 40px 0 60px 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;       /* 元素之间的呼吸间隙 */
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

.footer-main-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 11px;
}

/* 窄屏下自动切换为垂直堆叠 */
@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-main-separator {
        display: none; /* 垂直折行时隐藏主竖线 */
    }
}

/* -------------------- Cinematic Video Showcase Lightbox Modal -------------------- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-modal.open {
    opacity: 1;
    pointer-events: auto;
}

/* Ultra-high translucency frosted glass backdrop */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 18, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.modal-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(143, 45, 255, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-modal.open .modal-content {
    transform: scale(1);
}

/* Glass close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 12;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-body video {
    width: 100%;
    height: auto;
    max-height: 75vh; /* 限制大屏高度，保留底部文字空间 */
    object-fit: contain; /* 按原视频比例播放，决不裁剪 */
    background: #000;
}

.modal-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 24px;
    background: rgba(5, 6, 18, 0.95);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1100px) {
    .hero-wrapper {
        transform: scale(0.85);
        margin-bottom: -81px; /* 补偿缩放导致的高度减少占位 (540 * 0.15 = 81px) */
    }
    
    .templates-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .hero-wrapper {
        transform: scale(0.7);
        margin-bottom: -162px; /* 补偿高度占位减少 (540 * 0.3 = 162px) */
    }
    
    /* 小屏让 gap 更紧凑，auto-fill 会自动处理列数 */
    .templates-grid {
        gap: 12px;
    }
    
    .main-header {
        height: 80px;
    }
}

@media (max-width: 720px) {
    .hero-wrapper {
        transform: scale(0.58);
        margin-bottom: -226.8px; /* 补偿高度占位减少 (540 * 0.42 = 226.8px) */
    }
}

/* 移动端优雅降级单栏大字高光布局 (彻底消除 PSD 遮罩拥挤问题) */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px; /* 移动端精简高度 */
        background: rgba(5, 6, 18, 0.85);
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
    }
    
    .header-container {
        width: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .header-right {
        display: none !important; /* 移动端彻底不显示右上角按钮，回归极致纯净高奢风 */
    }
    
    /* 彻底重构移动端 Hero 布局 */
    .hero-wrapper {
        transform: none;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0 20px 0;
    }
    
    .hero-content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 34px;
        line-height: 1.15;
        text-align: center;
        margin-bottom: 16px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
        margin-bottom: 24px;
    }
    
    .cta-badges {
        justify-content: center;
        gap: 12px;
    }
    
    .store-badge-img {
        height: 38px;
    }
    
    .cta-subtext {
        text-align: center;
    }
    
    /* 重构播放器容器，自适应手机宽度且绝无错位 */
    .glass-player-container {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 440px;
        height: 300px; /* 固定合理高度提供稳定的定位框 */
        z-index: 5;
        margin: 16px auto 0;
        overflow: visible;
    }
    
    .player-bg-card {
        display: none; /* 移动端隐藏后层旋转，防止溢出 */
    }
    
    .player-main-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
        z-index: 1;
    }
    
    .player-video-viewport {
        position: absolute;
        left: 12px;
        top: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px - 44px); /* 扣除底部的点和进度条空间 */
        border-radius: 8px;
        z-index: 3;
    }
    
    .showcase-carousel {
        position: relative;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
        box-shadow: none;
    }
    
    .carousel-dots {
        position: absolute;
        bottom: 12px;
        top: auto;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        z-index: 10;
    }
    
    /* 手机端进度条自动缩窄，彻底规避各种窄屏手机溢出 Bug */
    .bar-progress-container {
        width: 80px;
    }
    
    /* 模板一排两个，完美流式缩放 */
    .templates-section {
        padding: 30px 16px !important; /* 增加左右各 16px 呼吸边距，防贴边 */
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .template-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 0.77 !important; /* 维持黄金卡片高宽比 */
    }
    
    .card-info {
        padding: 10px !important;
    }
    
    .card-title {
        font-size: 11px !important;
    }
    
    .card-author {
        font-size: 7px !important;
        letter-spacing: 0.5px !important;
    }
}
