/* 博丽灵梦阴阳玉导航站样式 */

/* CSS变量定义 */
:root {
    --primary-red: #DC143C;
    --primary-white: #FFFFFF;
    --secondary-red: #B22222;
    --light-red: #FFB6C1;
    --dark-red: #8B0000;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --text-dark: #333333;
    --text-light: #666666;
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    overflow-x: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
                linear-gradient(135deg, #2b0f17 0%, #3b0c12 35%, #4a0a12 60%, #1b090d 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* 背景图片层 */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('./admin_backgrounds/default_bg2.jpg');
    filter: none;
    transform: scale(1);
    transition: transform 20s ease-in-out, filter 0.3s ease, opacity 0.4s ease;
}

/* 暗化遮罩层 */
.site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    pointer-events: none;
}

/* 背景图案 */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(229, 57, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(255, 213, 79, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}



/* 主容器 */
.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* 中央区域 */
.center-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 70vh;
}

/* 阴阳玉容器 */
.yin-yang-container {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.yin-yang-container:hover {
    transform: scale(1.3);
}

/* SVG阴阳太极样式 */
.yin-yang {
    filter: drop-shadow(0 6px 22px rgba(229, 57, 53, 0.9));
    transform-origin: center;
    opacity: 1;
    width: 180px;
    height: 180px;
    transition: filter 0.4s ease;
}

.yin-yang-container:hover .yin-yang {
    filter: drop-shadow(0 12px 40px rgba(229, 57, 53, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

.yin-yang circle,
.yin-yang path {
    opacity: 1;
}

/* 旋转动画 */
.rotating {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

/* 清理旧的阴阳玉样式，现在使用SVG */

/* 导航布局 */
.navigation-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 导航框基础样式 - 红边白背景矩形框 */
.nav-box {
    position: absolute;
    width: 56px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #dc143c;
    border-radius: 0;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    pointer-events: all;
    box-shadow: 
        0 8px 25px rgba(220, 20, 60, 0.3);
    opacity: 0;
    transform: translate(-50%, 0) scale(0.1);
    transform-origin: 50% 0;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 显示状态的导航框 */
.nav-box.show {
    opacity: 1;
    pointer-events: all;
    /* transform: scale(1);  移除以避免覆盖内联位移与旋转 */
}



.nav-box:hover {
    /* 移除transform以避免覆盖内联位移与旋转 */
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 12px 30px rgba(220, 20, 60, 0.4),
        0 4px 10px rgba(220, 20, 60, 0.3);
    border: 4px solid #b71c1c;
}

.nav-box h3 {
    font-size: 1.1em;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    writing-mode: vertical-rl;
    text-orientation: upright;
    transform: none;
    white-space: normal;
    letter-spacing: 0.04em;
}

.nav-box .nav-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 1;
}

/* 导航框位置现在通过transform在.show状态中设置 */

/* 导航框位置 - 太阳光芒式布局（四根针从阴阳玉下方辐射），框竖直朝向中心 */
.nav-left-down.show {
    /* transform由JS控制以自动对准视觉中心 */
    /* transition-delay: 0.1s;  左下偏，第一根针 - 图片画廊 （已由JS控制顺序） */
}

.nav-down-left.show {
    /* transform由JS控制以自动对准视觉中心 */
    /* transition-delay: 0.2s;  正下偏左，第二根针 - 工具集合 （已由JS控制顺序） */
}

.nav-down-right.show {
    /* transform由JS控制以自动对准视觉中心 */
    /* transition-delay: 0.3s;  正下偏右，第三根针 - 游戏中心 （已由JS控制顺序） */
}

.nav-right-down.show {
    /* transform由JS控制以自动对准视觉中心 */
    /* transition-delay: 0.4s;  右下偏，第四根针 - 博客文章 （已由JS控制顺序） */
}

/* 底部信息区域 */
.footer-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px;

    border: 1px solid rgba(220, 20, 60, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.site-description {
    text-align: center;
    margin-bottom: 25px;
}

.site-description h2 {
    color: var(--primary-red);
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.site-description p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1em;
}

.site-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: center;
}

.info-item {
    padding: 10px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.1);
}

.info-label {
    font-weight: 600;
    color: var(--primary-red);
    margin-right: 5px;
}

.info-value {
    color: var(--text-dark);
}

/* 个人信息按钮 */
.profile-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    z-index: 1000;
}

.profile-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.4);
}

.profile-icon {
    font-size: 1.2em;
    margin-right: 8px;
    color: white;
}

.profile-text {
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .navigation-layout {
        width: 400px;
        height: 400px;
    }
    
    .nav-box {
        width: 72px;
        height: 110px;
        padding: 10px;
    }
    
    .nav-box .nav-icon {
        font-size: 2em;
        margin-bottom: 5px;
    }
    
    .nav-box h3 {
        font-size: 1.05em;
        margin-bottom: 3px;
    }
    
    .nav-box p {
        font-size: 0.75em;
    }
    
    .yin-yang {
        width: 150px;
        height: 150px;
    }
    
    .footer-info {
        padding: 20px;
        margin-top: 20px;
    }
    
    .site-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-button {
        width: 100px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .navigation-layout {
        width: 300px;
        height: 300px;
    }
    
    .nav-box {
        width: 60px;
        height: 100px;
        padding: 8px;
    }
    
    .nav-box .nav-icon {
        font-size: 1.5em;
    }
    
    .nav-box h3 {
        font-size: 0.95em;
    }
    
    .nav-box p {
        font-size: 0.7em;
    }
    
    .yin-yang {
        width: 120px;
        height: 120px;
    }
    
    .main-container {
        padding: 10px;
    }
}