* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 2rem; /* 向右移动一点 */
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* 英文LOGO特殊样式 - 更大更美观 */
.logo-text.en {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: -0.5rem; /* 向左移动 */
    white-space: nowrap; /* 确保文字显示为一行 */
}

/* 英文LOGO中第一个字母W用橙色（加深） */
.logo-text.en::first-letter {
    color: #d97706; /* 更深的橙色 */
    font-size: 2.2rem;
    font-weight: 800;
    display: inline-block;
    margin-right: 2px;
    line-height: 1;
}

/* 英文界面下logo图片也稍微放大 */
html[lang="en"] .logo img {
    height: 80px;
    transition: height 0.3s ease;
}

/* 中文界面下logo图片增大 */
html[lang="zh-CN"] .logo img,
html:not([lang]) .logo img {
    height: 80px;
    transition: height 0.3s ease;
}

/* 中文界面下LOGO文字增大 */
html[lang="zh-CN"] .logo,
html:not([lang]) .logo {
    font-size: 1.8rem;
}

html[lang="zh-CN"] .logo-text,
html:not([lang]) .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 中文界面下LOGO整体左移 */
html[lang="zh-CN"] .logo,
html:not([lang]) .logo {
    margin-left: -8rem; /* 向左移动8rem */
}

/* 优化logo整体容器在英文模式下的布局 */
html[lang="en"] .logo {
    gap: 1rem;
    align-items: center;
    margin-left: -8rem; /* 向左移动8rem（相比之前的-10rem，向右移动了一点） */
}

/* 俄语界面下LOGO样式与英文界面一致 */
html[lang="ru"] .logo img {
    height: 80px;
    transition: height 0.3s ease;
}

html[lang="ru"] .logo {
    gap: 1rem;
    align-items: center;
    margin-left: -8rem;
}

/* 确保俄语界面下LOGO文字样式与英文界面完全一致 */
html[lang="ru"] .logo-text.en {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: -0.5rem;
    white-space: nowrap; /* 确保文字显示为一行 */
}

html[lang="ru"] .logo-text.en::first-letter {
    color: #d97706;
    font-size: 2.2rem;
    font-weight: 800;
    display: inline-block;
    margin-right: 2px;
    line-height: 1;
}

/* 英文界面下nav-container左侧padding减少，让logo更靠左 */
html[lang="en"] .nav-container {
    padding-left: 0;
}

/* 响应式优化 - 英文logo在移动端 */
@media (max-width: 768px) {
    html[lang="en"] .logo-text.en {
        font-size: 1.6rem;
    }
    
    html[lang="en"] .logo-text.en::first-letter {
        font-size: 2rem;
    }
    
    html[lang="en"] .logo img {
        height: 55px;
    }
    
    html[lang="en"] .logo {
        gap: 0.75rem;
        margin-left: -0.5rem;
    }
    
    html[lang="en"] .nav-container {
        padding-left: 0.5rem;
    }
    
    /* 中文界面在移动端也适当缩小 */
    html[lang="zh-CN"] .logo img,
    html:not([lang]) .logo img {
        height: 55px;
    }
    
    html[lang="zh-CN"] .logo,
    html:not([lang]) .logo {
        font-size: 1.5rem;
        margin-left: 0;
    }
    
    html[lang="zh-CN"] .logo-text,
    html:not([lang]) .logo-text {
        font-size: 1.5rem;
    }
    
    /* 俄语界面在移动端也使用与英文相同的样式 */
    html[lang="ru"] .logo-text.en {
        font-size: 1.6rem;
    }
    
    html[lang="ru"] .logo-text.en::first-letter {
        font-size: 2rem;
    }
    
    html[lang="ru"] .logo img {
        height: 55px;
    }
    
    html[lang="ru"] .logo {
        gap: 0.75rem;
        margin-left: -0.5rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: 5rem; /* 整体向右移动5rem */
}

/* 中文界面下导航菜单项间距增大 */
html[lang="zh-CN"] .nav-menu,
html:not([lang]) .nav-menu {
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap; /* 防止换行 */
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 语言切换按钮 */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 10rem; /* 向右移动更多 */
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 25px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap; /* 确保整个语言切换器不换行 */
    flex-shrink: 0; /* 防止被压缩 */
}

.lang-switcher:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--secondary-color);
}

.lang-switcher span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap; /* 确保文字不换行，中文显示为一行 */
}

.lang-switcher span.active {
    background: var(--secondary-color);
    color: var(--white);
}

.lang-switcher span:not(.active) {
    opacity: 0.6;
}

.lang-switcher span:not(.active):hover {
    opacity: 1;
}

/* 二级导航栏样式 */
.sub-navbar {
    background: var(--bg-light);
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.sub-navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sub-nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(59, 130, 246, 0.1);
    padding-bottom: 8px; /* 为滚动条留出空间 */
}

.sub-nav-menu::-webkit-scrollbar {
    height: 8px; /* 增加滚动条高度，更容易拖动 */
}

.sub-nav-menu::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.sub-nav-menu::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    cursor: grab; /* 鼠标悬停时显示抓取图标 */
}

.sub-nav-menu::-webkit-scrollbar-thumb:hover {
    background: #2563eb; /* 悬停时颜色加深 */
    cursor: grabbing; /* 拖动时显示抓取图标 */
}

.sub-nav-menu::-webkit-scrollbar-thumb:active {
    background: #1d4ed8; /* 点击时颜色更深 */
}

.sub-nav-menu li {
    flex-shrink: 0;
}

.sub-nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.sub-nav-menu a:hover,
.sub-nav-menu a.active {
    color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.1);
    border-bottom-color: var(--secondary-color);
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 首页Hero区域 */
.hero {
    color: var(--white);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景轮播容器 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 轮播单张图片 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color); /* 默认背景色，图片加载失败时显示 */
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* 背景遮罩层，确保文字可读性 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(59, 130, 246, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* 特性区域 */
.features {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 服务展示区域 */
.services-showcase {
    padding: 5rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: scale(1.02);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 关于我们页面 */
.about-section {
    padding: 4rem 2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
}

.about-intro-wrapper .about-text {
    margin-bottom: 0;
}

/* 公司简介图文并排布局 */
.about-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-company-image {
    text-align: center;
}

.about-company-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.about-company-image p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 新闻列表 */
.news-section {
    padding: 4rem 2rem;
}

.news-list {
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系表单 */
.contact-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact-info-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-text p {
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-navbar {
        top: 70px;
    }
    
    .sub-nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 移动端：公司简介图片和文字垂直排列 */
    .about-intro-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .sub-navbar {
        top: 120px;
    }
    
    .sub-nav-container {
        padding: 0 1rem;
    }
    
    .sub-nav-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

