:root {
    --primary-color: #293654;
    --primary-light: #3a4a76;
    --primary-dark: #1c243f;
    --secondary-color: #f8f9fa;
    --accent-color: #3498db;
    --accent-dark: #2980b9;
    --text-color: #333;
    --light-text: #666;
    --light-bg: #f9f9fb;
    --dark-bg: #1c243f;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    /* 完全透明背景 */
    background: transparent;
    box-shadow: none;
}

header.scrolled {
    background: rgba(41, 54, 84, 0.95); /* 深色半透明背景 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* 立体感阴影 */
    padding: 20px 0;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 底部边框 */
}

header.scrolled.hidden {
    box-shadow: none;
}

header.scrolled::after {
    display: none;
}

header.hidden {
    transform: translateY(-100%);
}

.logo {
    height: 60px;
    min-width: 180px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

header.scrolled .logo {
    height: 60px;
    min-width: 180px;
}

header.scrolled .logo img {
    max-height: 60px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-wrap: nowrap;
}

header.scrolled nav {
    padding: 15px 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
    transform: skewX(-10deg);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links li:hover {
    transform: skewX(-10deg) translateY(-3px);
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: var(--transition);
    font-size: 18px;
    position: relative;
    padding: 10px 15px;
    display: block;
    transform: skewX(10deg);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    transform: skewX(-10deg);
}

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

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active:after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Language Switcher - 修改为图标切换 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
    text-decoration: none;
}

.language-switcher .lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.language-switcher .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.language-switcher .lang-toggle i {
    color: white;
    font-size: 18px;
}

/* Sections Common Styling */
section {
    padding: 100px 0;
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-20px);}
    60% {transform: translateX(-50%) translateY(-10px);}
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Alternating Background Colors */
.light-section {
    background-color: var(--light-bg);
}

.dark-section {
    background-color: var(--dark-bg);
    color: white;
}

.dark-section .section-title h2 {
    color: white;
}

.dark-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.dark-section .section-title h2:after {
    background: linear-gradient(to right, var(--accent-color), white);
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Content with Image */
.content-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.content-with-image:last-child {
    margin-bottom: 0;
}

.image-left {
    flex-direction: row;
}

.image-right {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.content-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.dark-section .content-text h3 {
    color: white;
}

.content-text p {
    margin-bottom: 25px;
    color: var(--light-text);
}

.dark-section .content-text p {
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    transition: all 0.3s;
    z-index: -1;
    border-radius: 50px;
    opacity: 0.9;
    transition: width 0.3s ease;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.btn:hover:before {
    width: 100%;
}

/* Tabs */
.tab-container {
    margin-top: 40px;
}

.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tabs li {
    padding: 12px 30px;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.dark-section .tabs li {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.tabs li.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
    min-width: 230px;
    margin: 0 15px 30px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.3rem;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-about {
    margin-bottom: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 12px;
    font-size: 14px;
    transition: margin-right 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover i {
    margin-right: 15px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Newsletter badge under subscription section */
.newsletter-badge {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
}

.newsletter-badge img {
    height: 80px;
    width: auto;
    max-width: 90%;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.newsletter-badge img:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 480px) {
    .newsletter-badge img {
        height: 34px;
    }
}

.beian-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.beian-link:hover {
    color: white;
    border-bottom: 1px solid white;
}

/* Icon and link color fixes */
.fas.fa-building {
    color: var(--primary-color);
}

.map-link {
    color: var(--primary-color);
}

.map-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-with-image {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 40px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: none;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    header.scrolled .nav-links {
        background: rgba(41, 54, 84, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-links li {
        margin: 15px 0;
        transform: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        color: var(--text-color);
        transform: none;
        padding: 15px;
        font-size: 16px;
    }
    
    header.scrolled .nav-links a {
        color: white;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 30px;
        width: 100%;
    }
}

/* 在文件末尾添加这些样式 */

/* 滚动状态下的导航样式 */
header.scrolled .nav-links a {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

header.scrolled .nav-links a:hover {
    color: #3498db;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

header.scrolled .nav-links a.active {
    color: #3498db;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

header.scrolled .hamburger {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

header.scrolled .language-switcher .lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header.scrolled .language-switcher .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

header.scrolled .language-switcher .lang-toggle i {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
