:root {
    /* 日间模式变量 */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f6f6;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --accent-color: #007bff;
    --accent-rgb: 0, 123, 255;
    --background-image: url("../images/background_day.jpg");
}

/* 夜间模式变量 */
.dark-theme {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --accent-color: #0078D4;
    --accent-rgb: 0, 120, 212;
    --background-image: url("../images/background_night.jpg");
}

/* 基础样式 */
html, body {
    min-width: 1200px;
    margin: 0;
    padding: 0;
}

.background-image {
    /* margin-top: -45vh; */
    background-image: var(--background-image);
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

/* 设置 header 样式 */
header {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    min-width: 900px;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* 当滚动时添加背景色 */
header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 深色主题下的导航栏样式 */
.dark-theme header {
    background-color: rgba(40, 40, 40, 0.4);
}

.dark-theme header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 让 header 内部 div 里的内容水平排列 */
header > div {
    max-width: 1200px;
    min-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 2fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* 分隔线样式 */
.divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 10px;
}

/* logo 和标题部分样式 */
.logo-title {
    display: flex;
    align-items: center;
    font-size: 35px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 20px;
}

/* 导航菜单样式 */
nav {
    justify-self: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 18px;
}

nav a:hover {
    color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.1);
}

nav a.active {
    background-color: var(--accent-color);
    color: white;
}

/* 右侧工具栏样式 */
.tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 图标按钮样式 */
.icon-button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

.icon-button .material-icons-round {
    font-size: 20px;
}

/* 主题切换动画 */
.theme-switch .material-icons-round {
    transition: transform 0.3s ease;
}

.theme-switch:hover .material-icons-round {
    transform: rotate(30deg);
}

/* 语言切换按钮样式 */
.language-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.current-lang {
    font-size: 14px;
    font-weight: 500;
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* Hero 内容样式 */
.hero-content {
    position: relative;
    /* margin-top: 350px; */
    z-index: 2;
    text-align: center;
    max-width: 400px;
    min-width: 400px;
    padding: 40px 60px;
    /* position: absolute; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFadeIn 0.8s ease-out forwards 0.5s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* 深色主题适配 */
.dark-theme .hero-content {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .hero-title {
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.dark-theme .hero-subtitle {
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 动画关键帧 */
@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    --color: rgba(255, 194, 137, 0.3);
    background-color: #ffffff;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 55px 55px;
  }

/* From Uiverse.io by adamgiebl */ 
.dark-theme .container {

    --color: rgba(114, 114, 114, 0.3);
    background-color: #191a1a;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 55px 55px;
}

/* 页脚样式 */
footer {
    background-color: var(--bg-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

