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

body {
    font-family: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* 主容器 */
.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('../user_input_files/web_background.jpg') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

/* 背景遮罩 - 已移除，保持原图亮度 */
/* .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
} */

/* 顶部导航栏 */
.top-nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    height: 80px;
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 语言切换器 */
.language-switcher {
    position: relative;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.3);
}

.globe-icon {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
}

.lang-text {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

.language-switcher.active .arrow-icon {
    transform: rotate(180deg);
}

/* 语言下拉菜单 */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 16px;
    margin: 4px;
}

.lang-option:hover {
    background: rgba(255, 107, 74, 0.1);
}

.lang-option:first-child {
    border-radius: 16px 16px 8px 8px;
}

.lang-option:last-child {
    border-radius: 8px 8px 16px 16px;
}

.lang-flag {
    font-size: 16px;
}

.lang-option span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

/* 主要内容区域 */
.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    height: calc(100vh - 160px);
    padding: 0 48px;
}

.hero-text {
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.main-title {
    font-size: 64px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
}

.subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #F0F0F0;
    line-height: 1.5;
    opacity: 0.9;
}

/* 底部信息 */
.bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 48px 32px;
    height: 80px;
}

.icp-info span {
    font-size: 13px;
    color: #FFFFFF;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.icp-info span:hover {
    opacity: 1;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-link {
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.legal-link:hover {
    opacity: 0.8;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6B4A;
    transition: width 0.3s ease;
}

.legal-link:hover::after {
    width: 100%;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #4A4A4A;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #FF6B4A;
}

.modal-body {
    padding: 32px;
    line-height: 1.6;
    color: #4A4A4A;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav {
        padding: 20px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .lang-text {
        font-size: 12px;
    }
    
    .hero-content {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }
    
    .main-title {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .bottom-info {
        padding: 0 20px 24px;
        height: auto;
    }
    
    .legal-links {
        gap: 16px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}