/* ===== 基础样式重置 ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Noto Sans SC', 'Inter', sans-serif; 
    line-height: 1.6; 
    color: #333; 
}

/* ===== 语言切换器样式 ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-link:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.1);
}

.lang-link.active {
    color: white;
    background: #DC2626;
}

/* ===== 页面加载动画 ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A8A 0%, #DC2626 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.logo-animation h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #DC2626);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 导航栏样式 ===== */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    padding: 1rem 0; 
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.6s ease-out;
}

.navbar.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-logo h2 { 
    color: #DC2626; 
    font-size: 1.5rem; 
    font-weight: 700; 
}

.nav-logo span { 
    color: #1E3A8A; 
}

.nav-menu { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

.nav-link { 
    text-decoration: none; 
    color: #333; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-link:hover { 
    color: #DC2626; 
}

/* ===== Hero区域样式 ===== */
.hero { 
    height: 100vh; 
    background: linear-gradient(135deg, #1E3A8A 0%, #DC2626 50%, #F59E0B 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

.hero-subtitle { 
    font-size: 1.5rem; 
    margin-bottom: 2rem; 
}

.hero-description { 
    font-size: 1.1rem; 
    margin-bottom: 3rem; 
}

.cta-buttons {
    /* 移除初始隐藏状态，直接显示 */
}

.btn { 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 50px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
    text-decoration: none; 
    display: inline-block; 
    margin: 0 0.5rem; 
}

.btn-primary { 
    background: white; 
    color: #DC2626; 
}

.btn-primary:hover { 
    background: #f8f9fa; 
    transform: translateY(-2px); 
}

.btn-secondary { 
    background: transparent; 
    color: white; 
    border: 2px solid white; 
}

.btn-secondary:hover { 
    background: white; 
    color: #DC2626; 
}

/* ===== 通用容器样式 ===== */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

.section { 
    padding: 5rem 0; 
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: #1E3A8A; 
}

.section-subtitle { 
    text-align: center; 
    font-size: 1.2rem; 
    color: #666; 
    margin-bottom: 3rem; 
}

/* ===== 关于我们样式 ===== */
.about { 
    background: #f8f9fa; 
}

.about-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}

.about-text h3 { 
    font-size: 1.8rem; 
    color: #1E3A8A; 
    margin-bottom: 1rem; 
}

.about-text p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #666; 
    margin-bottom: 1.5rem; 
}

/* ===== 业务服务样式 ===== */
.services { 
    background: white; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem; 
}

.service-card { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    text-align: center; 
    transition: transform 0.3s; 
    opacity: 0;
    transform: translateY(30px);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover { 
    transform: translateY(-10px); 
}

.service-icon { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, #DC2626, #F59E0B); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    font-size: 2rem; 
    color: white; 
}

.service-card h3 { 
    font-size: 1.5rem; 
    color: #1E3A8A; 
    margin-bottom: 1rem; 
}

.service-card p { 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 1.5rem; 
}

/* ===== 作品展示样式 ===== */
.portfolio { 
    background: #f8f9fa; 
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem; 
}

.portfolio-item { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    transition: transform 0.3s; 
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover { 
    transform: translateY(-5px); 
}

.portfolio-image { 
    height: 200px; 
    background: linear-gradient(135deg, #1E3A8A, #DC2626); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 3rem; 
}

.portfolio-content { 
    padding: 1.5rem; 
}

.portfolio-content h3 { 
    font-size: 1.3rem; 
    color: #1E3A8A; 
    margin-bottom: 0.5rem; 
}

.portfolio-content p { 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
}

/* ===== 联系我们样式 ===== */
.contact { 
    background: white; 
}

.contact-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    margin-top: 3rem; 
}

.contact-info h3 { 
    font-size: 1.5rem; 
    color: #1E3A8A; 
    margin-bottom: 1.5rem; 
}

.contact-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 1.5rem; 
}

.contact-icon { 
    width: 50px; 
    height: 50px; 
    background: linear-gradient(135deg, #DC2626, #F59E0B); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    margin-right: 1rem; 
    font-size: 1.2rem; 
}

.contact-form { 
    background: #f8f9fa; 
    padding: 2rem; 
    border-radius: 15px; 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    color: #333; 
    font-weight: 500; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 1rem; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-size: 1rem; 
}

.form-group textarea { 
    height: 120px; 
    resize: vertical; 
}

.submit-btn { 
    width: 100%; 
    padding: 1rem; 
    background: linear-gradient(135deg, #DC2626, #F59E0B); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
}

/* ===== 页脚样式 ===== */
.footer { 
    background: #1E3A8A; 
    color: white; 
    padding: 3rem 0 1rem; 
    text-align: center; 
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #B91C1C;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}
