/* 公共样式 - Common Styles */

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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

/* 导航栏 - 优化：高度缩小 30% */
.navbar {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    padding: 0.7rem 0; /* 从 1rem 改为 0.7rem */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 59px; /* 从 84px 改为 59px，缩小 30% */
    width: auto;
    transform: scaleX(1.3);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scaleX(1.3) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem; /* 增大 25%: 原 0.9rem → 1.125rem */
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #D4A574;
}

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

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

/* 语言切换器 - 优化：尺寸缩小 25% */
.language-switcher {
    position: relative;
    margin-left: 2rem;
}

.lang-toggle {
    background: linear-gradient(135deg, #333, #2c2c2c);
    color: white;
    border: 1px solid rgba(212, 165, 116, 0.3);
    padding: 0.375rem 0.75rem; /* 从 0.5rem 1rem 改为 0.375rem 0.75rem */
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.675rem; /* 从 0.9rem 改为 0.675rem */
}

.lang-toggle:hover {
    background: linear-gradient(45deg, #D4A574, #F0C987);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.globe-icon {
    font-size: 1.2rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #333, #2c2c2c);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 90px; /* 从 120px 改为 90px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem; /* 从 0.5rem 1rem 改为 0.375rem 0.75rem */
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(212, 165, 116, 0.2);
    color: #D4A574;
}

.lang-option.active {
    background: rgba(212, 165, 116, 0.3);
    color: #D4A574;
}

/* 多语言内容控制 */
[data-lang] .lang-content {
    display: none;
}

[data-lang="zh"] .lang-zh,
[data-lang="ja"] .lang-ja {
    display: block;
}

[data-lang] .lang-content.lang-zh,
[data-lang] .lang-content.lang-ja {
    display: none;
}

[data-lang="zh"] .lang-content.lang-zh,
[data-lang="ja"] .lang-content.lang-ja {
    display: block;
}

/* 通用区块样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    color: #D4A574;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #ccc;
}

/* 页面标题横幅 - 统一样式 */
.page-hero {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    padding: 3rem 2rem 2rem; /* 进一步减少高度 */
    text-align: center;
    margin-top: 60px;
    border-bottom: 3px solid #D4A574;
}

.page-hero h1 {
    font-size: 2.5rem; /* 减小字体大小 */
    color: #D4A574;
    margin-bottom: 0.5rem; /* 减小间距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.1rem; /* 减小字体大小 */
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚 */
.footer {
    background: #0f0f0f;
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid #D4A574;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
