/* Google Fonts 引入 (可选，提升字体质感) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient: linear-gradient(to right, #243949 0%, #517fa4 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --accent-color: #00d2ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f2027; 
    background: -webkit-linear-gradient(to right, #2c5364, #203a43, #0f2027); 
    background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 - 悬浮毛玻璃效果 */
nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.links a:hover, .links a.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* 那个语言切换按钮 */
button#lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

button#lang-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    color: #000;
}

/* 主容器 - 卡片式设计 */
.container {
    max-width: 850px;
    margin: 3rem auto;
    width: 90%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: var(--glass-border);
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeIn 0.8s ease-out;
}

/* 标题 */
h1 {
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 输入框区域 */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 播放按钮 */
button.play-btn {
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

button.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

button.play-btn:active {
    transform: translateY(0);
}

/* 视频播放器 */
video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #000;
    outline: none;
}

/* 文字内容样式 (Help/About) */
.content-text p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* 语言切换控制 */
body.lang-en .zh { display: none !important; }
body.lang-zh .en { display: none !important; }

/* 简单的入场动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端适配 */
@media (max-width: 600px) {
    .container { padding: 1.5rem; margin: 1rem auto; width: 95%; }
    .input-group { flex-direction: column; background: transparent; padding: 0; border: none; }
    input[type="text"] { background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 10px; }
    button.play-btn { width: 100%; }
}

/* === 新增 Logo 样式 (复制到 style.css 最底部) === */

/* Logo 容器 */
a.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; /* 图片和文字的间距 */
    margin-right: auto; /* 把其他菜单挤到右边去 */
}

/* Logo 图片大小 */
a.nav-logo img {
    height: 32px; /* 调整 Logo 高度 */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* 加一点阴影让白色图标更立体 */
}

/* Logo 文字 */
.logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #00d2ff); /* 给文字加个渐变色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 调整一下原有的 nav 布局间距 */
nav {
    gap: 20px;
}

/* 移动端适配：屏幕太小时隐藏 Logo 文字，只留图标 */
@media (max-width: 768px) {
    .logo-text { display: none; }
    nav { padding: 1rem 5%; } /* 调整移动端内边距 */
}
