
/* MD3 本地图标调用 */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  src: url('../icon/googlematerial/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* 其它英日文字体  */
html[lang="en"] body { 
    font-family: 'Klee One', sans-serif; 
}

/* 中文模式 */
html[lang="zh"] body { 
    font-family: 'LXGW WenKai', sans-serif; 
}

/* 日文模式 */
html[lang="ja"] body { 
    font-family: 'Yuji Syuku', serif; 
}

.logo{
    width: 4%; 
    height: 4%;
}


/* 颜色与主题变量 */
:root {
    --color-pink: #ec4899;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-emerald: #10b981;
}

/* 深色模式下的变量 */
[data-bs-theme="dark"] body {
    background-color: #050505; /* 极深灰黑底色 */
    color: #ededed;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-nav: rgba(0, 0, 0, 0.5);
    --text-float: rgba(255, 255, 255, 0.03);
}

/* 浅色模式下的玻璃变量 */
[data-bs-theme="light"] body {
    background-color: #f8fafc;
    color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-nav: rgba(255, 255, 255, 0.5);
    --text-float: rgba(0, 0, 0, 0.03);
}

.text-pink { color: var(--color-pink) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-emerald { color: var(--color-emerald) !important; }

/*   背景层级 */
/* -3 粒子动画 */
.bg-layer-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    pointer-events: none; /* 穿透点击 */
}

/* -2: 浮动文字 */
.bg-layer-floating {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.float-text {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-float);
    white-space: nowrap;
    user-select: none;
    animation: floatAnim 10s ease-in-out infinite alternate;
}
.t1 { top: 15%; left: 5%; animation-delay: 0s; }
.t2 { bottom: 30%; right: 5%; font-size: 3rem; animation-delay: -3s; animation-direction: alternate-reverse; }
.t3 { top: 50%; left: -5%; font-size: 1.5rem; animation-delay: -6s; }

@keyframes floatAnim {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-30px) translateX(20px); }
}

/* -1视差插画  */
#parallax-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 70vh; 
    z-index: -1;
    pointer-events: none; /* 穿透点击 */
    overflow: hidden; 
    
    

    /* 渐变遮罩 */
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    transition: opacity 0.5s ease;
}

/* 深色模式下降低插画亮度 */
[data-bs-theme="dark"] #parallax-container {
     opacity: 1; 
    
    filter: brightness(0.6) contrast(1.1); 
}

/* 视差层通用设置 */
.parallax-layer {
    position: absolute;
    bottom: -19%; 
    left: -5%;
    width: 110%; 
    height: 110%;
    
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    
    /*  GPU 加速 */
    will-change: transform; 
    
    /* 缓冲动画 */
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 图层分配  */

.layer-middle {
    background-image: url('../image/bg-back2.webp');
    opacity: 1;
}

.layer-back {
    background-image: url('../image/bg-back.webp');
    filter: blur(1px);
    opacity: 1;
}


.layer-front {
    background-image: url('../image/bg-front.webp');
    opacity: 1;
}


.layer-front {
    z-index: 3;
    left: -5%; 
    bottom: -19%;
}

.layer-middle {
    z-index: 2;
    left: -5%; 
    bottom: -19%;
}

.layer-back {
    z-index: 1;
    left: -5%; 
    bottom: -19%;
}


/* UI 组件 */
.page-content {
    position: relative;
    z-index: 10;
    margin-top: 100px;
}

.glass-nav {
    background: var(--glass-nav) !important;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-spotlight:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 10px 40px -10px rgba(236, 72, 153, 0.2);
}

/* 渐变文字 */
.text-gradient-main {
    background: linear-gradient(to right, #3b82f6, #ec4899, #8b5cf6, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.animate-gradient {
    animation: gradientShift 6s linear infinite;
}
@keyframes gradientShift {
    to { background-position: 200% center; }
}

/* 顶部小徽章 */
.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 600;
}

/* 玻璃按钮 */
.glass-btn {
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    color: inherit;
    backdrop-filter: blur(5px);
}
.glass-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: inherit;
}
.glass-dropdown {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}
.icon-sm { font-size: 1.1rem; }
.icon-lg { font-size: 2.5rem; }