/*
Theme Name: Helo Engine
Description: WordPress主题基于河洛时空引擎静态模板
Version: 1.0
Author: Helo Engine Team
*/

/* 全局变量 */
:root {
    --color-bg: #050505;
    --color-cyan: #00F0FF;
    --color-gold: #D4AF37;
    --color-red: #C41E3A;
}

/* 基础样式 */
body {
    background-color: var(--color-bg);
    color: white;
    font-family: 'Noto Serif SC', serif;
    overflow-x: hidden;
    margin: 0;
}

.font-zen { font-family: 'Noto Serif SC', serif; }
.font-cyber { font-family: 'Cinzel', serif; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* 按钮特效 */
.btn-cyber {
    background: transparent;
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}
.btn-cyber:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    letter-spacing: 2px;
    color: white;
}

/* 金色按钮 */
.btn-gold {
    border-color: var(--color-gold) !important;
    color: var(--color-gold) !important;
}
.btn-gold:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
    color: white !important;
}

/* 导航栏 */
.glass-nav {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;

}

/* 加载动画 */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease;
}

/* 背景 Canvas - 移动端优化 dvh */
#canvas-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    z-index: -1; opacity: 0.6; pointer-events: none;
}

/* 下拉菜单 */
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); min-width: 140px; padding: 8px 0;
    display: none; flex-direction: column; gap: 4px;
    border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 100;
}
.nav-item:hover .dropdown-menu { display: flex; }
.dropdown-item {
    padding: 8px 16px; text-align: center; font-size: 0.75rem;
    color: #aaa; transition: all 0.2s; white-space: nowrap; display: block;
}
.dropdown-item:hover { color: white; background: rgba(255,255,255,0.05); }

/* 头像样式 */
.img-cover {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

/* 旋转动画 */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.animate-spin-slow { animation: spin-slow linear infinite; }
.animate-spin-reverse { animation: spin-reverse linear infinite; }

/* 传承者下方菜单样式 */
.master-menu-item {
    font-size: 0.9rem; color: #777; transition: all 0.3s;
    border-bottom: 1px solid transparent; padding-bottom: 4px;
    cursor: pointer; letter-spacing: 2px; text-decoration: none;
}
.master-menu-item:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }

/* 强制全屏 Section - 移动端优化 dvh */
.full-screen-section {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* 避开导航栏 */
    padding-bottom: 80px;
}

/* 文章卡片样式 */
.article-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #222;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%;
    background: var(--color-gold); transform: scaleY(0); transition: 0.3s;
}
.article-card:hover { transform: translateY(-5px); border-color: #444; }
.article-card:hover::before { transform: scaleY(1); }

.tag {
    font-family: 'Inter', sans-serif; font-size: 0.7rem; padding: 2px 8px;
    border: 1px solid #333; color: #888; margin-right: 5px;
}
.tag.quant { color: var(--color-cyan); border-color: rgba(0, 240, 255, 0.3); }
.tag.yijing { color: var(--color-gold); border-color: rgba(212, 175, 55, 0.3); }

/* 表单样式 */
.input-group { margin-bottom: 1.5rem; position: relative; }
.input-cyber {
    width: 100%; background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333; color: white; padding: 15px;
    font-family: 'Inter', sans-serif; transition: all 0.3s;
    outline: none;
}
.input-cyber:focus {
    border-color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}
.input-label {
    position: absolute; left: 15px; top: 15px; color: #666; font-size: 0.8rem;
    pointer-events: none; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.input-cyber:focus + .input-label,
.input-cyber:not(:placeholder-shown) + .input-label {
    top: -10px; left: 10px; font-size: 0.6rem; color: var(--color-cyan); background: #050505; padding: 0 5px;
}

/* 联系卡片 */
.contact-info-card {
    border-left: 2px solid var(--color-gold);
    padding-left: 2rem;
}

/* --- 二级导航 (Sub-Nav) --- */
.sub-nav {
    position: fixed; top: 73px;
    left: 0; width: 100%; z-index: 40;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: center; padding: 10px 0;
    backdrop-filter: blur(5px);
}
.sub-nav-item {
    margin: 0 15px; font-size: 0.85rem; color: #666;
    cursor: pointer; transition: 0.3s; position: relative;
    text-decoration: none; padding-bottom: 4px;
}
.sub-nav-item a{text-transform: uppercase}
.sub-nav-item:hover { color: var(--color-cyan); }
.sub-nav-item.active {
    color: var(--color-cyan); /* 庄子页使用青色高亮 */
    border-bottom: 1px solid var(--color-cyan);
}

/* 父容器 */
.pager {
    display: flex;
    justify-content: space-between;   /* PC 端两端对齐 */
    align-items: center;
    gap: 1rem;                        /* 可选：让两按钮之间始终有点空隙 */
}

/* 按钮本身 */
.pager a {
    padding: .5rem 1rem;
    background: #eee;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

/* 手机端：强制上下两行 */
@media (max-width: 767px) {
    .pager {
        flex-direction: column;         /* 垂直方向 */
        align-items: stretch;           /* 让按钮宽度 100% 撑满 */
    }
}

.card-glass { background: rgba(20,20,20,0.4); border: 1px solid #222; padding: 2rem; transition: 0.3s; }
.card-glass:hover { border-color: var(--color-gold); transform: translateY(-5px); }

/* --- 视频播放器样式 --- */
.video-container {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #000; border: 1px solid #333; margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.video-list { max-height: 400px; overflow-y: auto; }
.video-item {
    display: flex; gap: 10px; padding: 15px; cursor: pointer; transition: 0.3s;
    border-bottom: 1px solid #222; border-left: 2px solid transparent;
}
.video-item:hover { background: rgba(255,255,255,0.05); }
.video-item.active {
    border-left: 2px solid var(--color-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
}
.video-thumb {
    width: 80px; height: 50px; background: #222; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #555; border: 1px solid #333;
}

/* --- 文章列表 --- */
.article-card {
    border: 1px solid #222; padding: 1.5rem; transition: all 0.3s; background: rgba(0,0,0,0.3);
}
.article-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

/* --- 加载与背景 --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease;
}
#canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; z-index: -1; opacity: 0.6; pointer-events: none; }

/* 法律文档容器 */
.legal-container {
    max-width: 900px; /* 稍微收窄，增加精致感 */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* 条款卡片 */
.legal-section {
    border-left: 1px solid #333; /* 边框变细 */
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.legal-section::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 0%;
    width: 1px;
    background: var(--color-gold);
    transition: height 0.5s ease;
}
.legal-section:hover::before {
    height: 100%;
}

/* 高亮风险警示 */
.risk-alert {
    background: rgba(196, 30, 58, 0.05);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 2rem;
    border-radius: 2px;
    margin-bottom: 3rem;
}

.timeline-item { border-left: 1px solid #333; padding-left: 2rem; position: relative; margin-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 0; width: 9px; height: 9px; background: var(--color-gold); border-radius: 50%; }
.timeline-year { font-family: 'Cinzel', serif; color: var(--color-gold); font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- 订阅页特有样式 --- */
.plan-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid #222;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.plan-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-10px);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.feature-list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
    color: #888;
    font-size: 0.9rem;
}
.feature-list li:last-child { border-bottom: none; }