/* 字体定义 */
@font-face {
    font-family: 'MiSans-Bold';
    src: url('/static/fonts/MiSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans-Medium';
    src: url('/static/fonts/MiSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans-Regular';
    src: url('/static/fonts/MiSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MiSans-Regular', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1440px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 28px;
    background: linear-gradient(90deg, #FF6B9C, #FF9A5A, #FFD166, #06D6A0, #118AB2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #FF6B9C, #FF9A5A);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* 语言切换器 */
.language-switcher {
    margin-left: 20px;
}

.language-switcher select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-switcher select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FF6B9C;
    box-shadow: 0 0 0 2px rgba(255, 107, 156, 0.2);
}

.language-switcher select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px;
}

/* 通用标题样式 */
h1 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FF6B9C, #FF9A5A, #FFD166, #06D6A0, #118AB2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 32px;
    margin-bottom: 16px;
    color: #ffffff;
}

h3 {
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* 通用文本样式 */
p {
    font-size: 16px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* 高亮框样式 */
.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 156, 0.1), rgba(255, 154, 90, 0.1));
    border: 1px solid rgba(255, 107, 156, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}
