* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 88%; /* 增加container宽度 */
    margin: 0 auto;
    /*padding: 0 20px;*/
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 19px 0;
    font-size: 24px;
}

@media (max-width: 1600px) {
    .navbar {
        font-size: 20px;
    }
}

.navbar .container {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
}

.navbar-brand .logo {
    height: 36px;
    width: 190px;
    /*height: 30px; !* 调整logo大小 *!*/
    /* 移除滤镜，因为logo本身就是白色 */
}

.navbar-actions {
    margin-left: auto;
}

.navbar-menu {
    margin-left: 80px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 1600px) {
    .navbar-nav {
        gap: 1.5rem;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    padding: 0.5rem 1rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 5.5px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    font-weight: 700;
    font-family: "MontserratSemiBold";
}

.nav-link:hover::after {
    width: 80%;
}

/* Light background pages: use black navbar text */
.header.black-nav .nav-link {
    color: #494646;
}

.header.black-nav .nav-link::after {
    background: #65B8E1;
}

.header.black-nav .nav-link:hover {
    /*color: #000000;*/
}

.header.black-nav .dropdown-toggle {
    color: #494646 !important;
}

.header.black-nav .dropdown-toggle::after {
    color: #65B8E1;
}

.global-submenu-container.black-nav .submenu-text {
    color: #494646;
}

.global-submenu-container.black-nav .submenu-item:hover .submenu-text {
    color: #65B8E1;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: #ffffff !important;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(5px);
}

/* Global Submenu Container - Fixed positioning for proper backdrop filter */
.global-submenu-container {
    position: fixed;
    top: 82px; /* 调整导航栏高度 */
    left: 0;
    right: 0;
    width: 100%;
    /* 与主导航完全相同的毛玻璃效果 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 动画和状态 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0;
    margin: 0;
}

.global-submenu-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-section {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.submenu-section.active {
    display: block;
}

.submenu-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 1.8rem 20px;
}

.submenu-item {
    display: block;
    text-decoration: none;
    position: relative;
}

.submenu-text {
    color: #ffffff;
    font-size: 24px;
    font-family: "SourceHanSansSCLight";
    /*font-weight: 500;*/
    /*padding: 0.8rem 1.5rem;*/
    display: block;
    transition: color 0.3s ease;
    border-radius: 6px;
}

@media(max-width: 1600px) {
    .submenu-text {
        font-size: 20px;
    }
}

.submenu-item:hover .submenu-text {
    font-family: "SourceHanSansSCMedium";
    font-weight: 500;
    color: #3083AC;
}

.submenu-arrow {
    transition: transform 0.3s ease;
}

.nav-item[data-has-submenu="true"]:hover .submenu-arrow {
    transform: rotate(180deg);
}

/* Language Switch */
.language-switch {
    position: relative;
}

.language-switch .lang-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.language-switch .lang-btn:hover {
    /*background: rgba(255, 255, 255, 0.2);*/
    /*transform: scale(1.1);*/
}

.language-switch .world-icon {
    width: 42px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* In black-nav (light background) use black icon */
.header.black-nav .language-switch .world-icon {
    filter: invert(1) brightness(0);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 0.5rem;
}

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

.language-dropdown .lang-option {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.language-dropdown .lang-option:last-child {
    border-bottom: none;
}

.language-dropdown .lang-option:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(5px);
}

.language-dropdown .lang-option.current {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        display: none; /* 移动端可以后续添加汉堡菜单 */
    }
    
    .navbar-brand .logo {
        height: 28px; /* 移动端稍小一些 */
    }
    
    .language-switch .lang-btn {
        width: 40px;
        height: 40px;
    }
    
    .language-switch .world-icon {
        width: 20px;
        height: 20px;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
    
    .dropdown-menu {
        min-width: 150px;
    }
    
    /* Mobile submenu adjustments */
    .global-submenu-container {
        padding: 1rem 0;
    }
    
    .submenu-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .submenu-text {
        font-size: 14px;
        padding: 0.75rem 1rem;
    }
    
    /* Mobile footer adjustments */
    .footer-navigation {
        gap: 5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-brand .logo {
        height: 26px; /* 更小屏幕进一步缩小 */
    }
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #494646;
    padding: 3rem 0 2rem;
    /*border: 1px solid #979797;*/
}

/* Footer container width override */
.footer .container {
    width: 83%;
    max-width: none;
    margin: 0 auto;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    margin: 0 3rem 2rem;
    align-items: flex-start;
}

.footer-nav-section {
    flex: 0 0 auto;
    width: auto;
}

.footer-nav-section h4 {
    font-size: 16px;
    margin-bottom: 0.75rem;
    color: #494646;
    font-family: "MontserratSemiBold";
}

.footer-nav-title {
    color: #494646;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-nav-title:hover {
    color: #3083AC;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links li {
    margin-bottom: 0.5rem;
}

.footer-nav-links a {
    color: #494646;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-nav-links a:hover {
    color: #3083AC;
}

.footer-brand-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    position: relative;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.social-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #666;
    font-size: 14px;
    gap: 2rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 10rem;
    flex: 1;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
}

.company-info,
.record-info {
    white-space: nowrap;
}

.company-info a,
.record-info a,
.footer-link a {
    font-size: 16px;
    color: #494646;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-info a:hover,
.record-info a:hover,
.footer-link a:hover {
    color: #3083AC;
}

.company-info span,
.record-info span,
.footer-link span {
    color: #666;
}

.footer-link {
    white-space: nowrap;
}

/* 微信二维码弹窗样式 */
.wechat-modal {
    position: absolute;
    bottom: 50px;
    right: 100px;
    width: 350px;
    /*height: 100%;*/
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wechat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wechat-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wechat-modal-header {
    /*display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;*/
    padding: 10px;
    position: relative;
    background: #eee;
}

.wechat-modal-header h3 {
    margin: 0;
    color: #494646;
    font-size: 16px;
    text-align: center;
    /*font-weight: 600;*/
}

.wechat-modal-close {
    position: absolute;
    right: 6px;
    top: 6px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    /*display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;*/
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*.wechat-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}*/

.wechat-modal-body {
    padding: 32px 24px;
    text-align: center;
}

.wechat-modal-body img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.wechat-modal-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand-social {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .wechat-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .wechat-modal-body {
        padding: 24px 20px;
    }
    
    .wechat-modal-body img {
        width: 160px;
        height: 160px;
    }
}