:root {
    --bg-color: #080808;
    --text-color: #e0e0e0;
    /* 增强光束可见度 */
    --beam-color: rgba(255, 255, 255, 0.12); 
    --beam-core: rgba(255, 255, 255, 0.25);
    --accent-color: #8c8c8c;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Didot", "Playfair Display", "Times New Roman", serif;
    min-height: 100vh;
    perspective: 1000px;
}

/* 主页特有样式 */
body.home {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 子页面样式 - 左侧固定，右侧滚动 */
body.subpage {
    overflow: hidden;
    height: 100vh;
    padding: 0;
    display: flex;
}

/* 子页面内容区域 - 分割布局 */
body.subpage .page-content {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

/* 1. 全局噪点纹理 */
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

/* 2. 光束容器 - 从右上角到鼠标的光束 */
.beam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.beam {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* SVG光束路径 */
.beam svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 3. 内容区域 */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInContent 2s ease forwards;
    animation-delay: 0.5s;
}

h1 {
    font-size: 8vw;
    font-weight: 300; /* 英文细体 */
    font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #666666; /* 提高默认可见度 */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

/* 中文字符加粗衬线 */
h1 span[lang="zh"] {
    font-weight: 700;
    font-family: "Songti SC", "SimSun", "STSong", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", serif;
    font-size: 8vw;
    letter-spacing: 0.1em;
}

h1 span {
    display: block;
    font-size: 2vw;
    font-family: "Helvetica Neue", sans-serif;
    letter-spacing: 0.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #888888; /* 提高默认可见度 */
    transition: color 0.3s ease;
}

.intro-text {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666666; /* 提高默认可见度 */
    transition: color 0.3s ease;
}

/* 被光束照亮时的状态 */
.content.lit h1 {
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}
.content.lit h1 span {
    color: #e0e0e0;
}
.content.lit .intro-text {
    color: #888;
}

/* 4. 交互式光标 - 仅PC端显示 */
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s ease-out;
    will-change: transform;
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
}

/* 移动端优化 */
@media (max-width: 768px), (hover: none) {
    /* 隐藏自定义光标 */
    .cursor-ring,
    .cursor-dot {
        display: none;
    }
    
    /* 隐藏光束效果 */
    .beam-container {
        display: none !important;
    }
    
    /* 恢复默认光标 */
    * {
        cursor: auto !important;
    }
    
    /* 移动端内容样式优化 */
    .content {
        opacity: 1 !important;
        transform: none !important;
        animation: fadeInContent 1s ease forwards;
    }
    
    /* 移动端标题优化 */
    h1 {
        font-size: 12vw;
        margin-bottom: 30px;
    }
    
    h1 span {
        font-size: 4vw;
        margin-bottom: 15px;
    }
    
    /* 移动端介绍文字 */
    .intro-text {
        font-size: 1rem;
        line-height: 1.8;
        opacity: 0.9;
        margin-bottom: 40px;
    }
    
    /* 移动端导航 */
    .nav {
        bottom: 40px;
        gap: 40px;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* 移动端子页面布局 */
    body.subpage {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 40px 0 100px 0 !important;
    }
    
    body.subpage .page-content {
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 移动端标题区域 */
    .page-content .title-section {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px !important;
        text-align: center !important;
        position: static !important;
    }
    
    .page-content .title-section h1 {
        font-size: 10vw !important;
        margin-bottom: 20px !important;
    }
    
    /* 移动端内容滚动区域 */
    .page-content .content-scroll {
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    
    .page-content .content-container {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 20px !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端内容区域 */
    .page-content .content-section {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* 移动端列表样式 */
    .page-content .content-section ul {
        width: 100% !important;
        padding-left: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .page-content .content-section li {
        width: 100% !important;
        margin-bottom: 12px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
    }
    
    /* 移动端段落样式 */
    .page-content .content-section p {
        width: 100% !important;
        margin-bottom: 15px !important;
        line-height: 1.7 !important;
        word-wrap: break-word !important;
    }
    
    /* 移动端标题样式 */
    .page-content .content-section h2 {
        width: 100% !important;
        margin-bottom: 15px !important;
        font-size: 1.3rem !important;
    }
    
    /* 移动端footer */
    body.subpage .footer {
        position: static !important;
        margin-top: 40px !important;
        transform: none !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* 导航菜单 */
.nav {
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 80px;
    z-index: 60;
    opacity: 0; /* 初始隐藏 */
    animation: fadeInContent 2s ease forwards;
    animation-delay: 1s;
}

.nav a {
    text-decoration: none;
    color: #888888; /* 提高默认可见度 */
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    cursor: none;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #fff;
}
.nav a:hover::after {
    width: 100%;
}

/* 子页面内容样式 - 横向布局 */
.page-content {
    position: relative;
    z-index: 10;
}

/* 主页内容样式保持原样 */
body.home .page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

body.home .page-content h1 {
    text-align: center;
    margin-bottom: 60px;
}

/* 子页面标题区域 - 左侧固定 */
.page-content .title-section {
    flex: 0 0 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 60px 40px;
    position: relative;
}

.page-content .title-section h1 {
    margin-bottom: 40px;
}

/* 子页面内容滚动区域 - 右侧滚动 */
.page-content .content-scroll {
    flex: 1;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    padding: 0 40px 0 0;
}

/* 子页面内容容器 */
.page-content .content-container {
    display: flex;
    gap: 60px;
    padding: 0 40px;
    min-height: 80vh;
    align-items: flex-start;
}

/* 子页面内容区域 */
.page-content .content-section {
    flex: 0 0 320px;
    text-align: left;
    padding: 60px 30px;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-content .content-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-family: "Helvetica Neue", sans-serif;
}

.page-content .content-section p {
    font-size: 1.1rem;
    line-height: 2;
    color: #888;
    margin-bottom: 15px;
}

.page-content .content-section ul {
    list-style: none;
    padding: 0;
}

.page-content .content-section li {
    font-size: 1.05rem;
    line-height: 2.2;
    color: #888;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.page-content .content-section li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #666;
    font-size: 1.5rem;
}

.page-content .quote {
    font-style: italic;
    color: #999;
    border-left: 2px solid #444;
    padding-left: 20px;
    margin: 30px 0;
}

/* 子页面返回链接 - 与主页导航样式一致 */
.back-link {
    margin-top: 60px;
    text-align: center;
}

.back-link a {
    text-decoration: none;
    color: #888888;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    cursor: none;
    display: inline-block;
}

.back-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.back-link a:hover {
    color: #fff;
}

.back-link a:hover::after {
    width: 100%;
}

/* 页面底部备案号 */
.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 50;
    opacity: 0;
    animation: fadeInContent 2s ease forwards;
    animation-delay: 1.5s;
}

/* 子页面底部 - 在标题区域内 */
body.subpage .footer {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    animation: none;
    z-index: 50;
    pointer-events: auto;
    text-align: center;
    width: 100%;
}

.footer p {
    font-size: 0.75rem;
    color: #555;
    font-family: "Helvetica Neue", sans-serif;
    letter-spacing: 0.05em;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #888;
}

@keyframes fadeInContent {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    h1 { font-size: 12vw; }
    h1 span { font-size: 3vw; }
    .beam-container { width: 300vw; height: 300vw; }
    .nav { gap: 30px; bottom: 40px; }
    .page-content { padding: 0 20px; }
    .footer { bottom: 10px; }
}
