/* style.css */
@font-face {
    font-family: 'Douyin';
    src: url('/font/DouyinSansBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

@font-face {
    font-family: 'SourceHanSerifCN-SemiBold';
    src: url('/font/SourceHanSerifCN-SemiBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

@font-face {
    font-family: 'RacingSansOne-Regular';
    src: url('/font/RacingSansOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

@font-face {
    font-family: 'YouSheBiaoTiHei';
    src: url('/font/YouSheBiaoTiHei.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

@font-face {
    font-family: 'MiSans';
    src: url('/font/MiSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

@font-face {
    font-family: 'MiSans';
    src: url('/font/MiSans-Semibold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* 避免字体加载期间文字隐形 */
}

body {
    font-family: 'MiSans', serif;
    font-weight: 400;
}

p {
    color: #252525;
    font-size: 1.2rem;
    line-height: 2.2;
}

/* 作品标题 */
h1 {
    font-family: 'YouSheBiaoTiHei';
    font-size: 3.8rem;
    color: #000000;
}

/* 大标题 */
h2 {
    font-family: 'Douyin' !important;
    font-size: 1.9rem;
    color: #0052df;
}

h3 {
    font-family: 'Douyin' !important;
    font-size: 1.5rem;
    color: #0091f1;
    display: flex;
    align-items: center;
}


/* 链接文字 */
a {
    color: #269287; 
    text-decoration: none; 
    font-weight: 400; 
    transition: color 0.2s ease; 
}

a:hover {
    color: #1a655d; 
    text-decoration: underline; 
}


/* header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: transparent;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

/* --- header的按钮（毛玻璃质感） --- */
.btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    color: #269287;
    
    /* 毛玻璃核心代码 */
    background: rgba(255, 255, 255, 0.5); /* 半透明的白色背景 */
    backdrop-filter: blur(12px);           /* 模糊背后的内容 */
    -webkit-backdrop-filter: blur(12px);   /* 兼容 Safari 浏览器 */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 半透明的细边框，增强玻璃边缘感 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 非常轻微的阴影，让它浮起来 */
    
    transition: all 0.3s ease; /* 让所有状态变化都变得平滑 */
}

/* --- 主页大按钮样式 --- */
.btn-main {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.6); /* 主按钮稍微亮一点点，突出层级 */
}

/* --- 悬停效果 --- */
.btn:hover {
    background: rgba(255, 255, 255, 0.8); /* 鼠标放上去时，变得更不透明 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 阴影变大一点 */
}

/* --- 下拉菜单容器 --- */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* 【关键修复】使用 padding-top 代替 margin-top，搭建隐形悬停桥梁 */
    padding-top: 15px; 
    flex-direction: column;
    gap: 10px; /* 下拉菜单中，各个按钮之间的垂直间距 */
}

/* 鼠标悬停在父级时显示下拉菜单 */
.nav-item:hover .dropdown {
    display: flex;
}