/* 基础样式 */

/* 内容容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 简单的导航栏设置 */

/* 减少上方空白区域 */
body {
    padding-top: 70px !important;
}

.about-hero, .contact-hero, .services-hero, .legal-hero {
    padding: 20px 0 !important;
    min-height: 40vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 移动端菜单默认隐藏 */
.mobile-menu-container {
    display: none;
}

/* 移动端导航栏优化 - 只在平板和手机端生效 */
@media (max-width: 768px) {
    .mobile-menu-container {
        display: block !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        z-index: 99998;
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-container.active {
        transform: translateY(0);
    }
    
    /* 移动端语言切换器优化 */
    .language-switcher {
        flex: 0 0 auto !important;
        min-width: 36px !important;
        max-width: 36px !important;
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
    
    .language-switcher-btn {
        padding: 5px !important;
        font-size: 18px !important;
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }
    
    .language-switcher-btn #current-language {
        font-size: 18px !important;
    }
    
    .language-dropdown {
        right: 0 !important;
        min-width: 110px !important;
        left: auto !important;
    }
    
    .language-dropdown-item {
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    /* 移动端菜单样式 */
    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu li {
        margin-bottom: 15px;
    }
    
    .mobile-menu a {
        display: block;
        padding: 12px 0;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid rgba(229, 90, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: var(--primary-color);
        padding-left: 10px;
    }
    
    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 20px;
    }
    
    .mobile-submenu li {
        margin-bottom: 8px;
    }
    
    .mobile-submenu a {
        font-size: 14px;
        color: var(--text-light);
        border-bottom: none;
        padding: 8px 0;
    }
}

/* 完全自定义的导航栏样式 - 美观版本 */
.custom-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(229, 90, 0, 0.15) !important;
    min-height: 70px !important;
    height: 70px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-nav-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 100% !important;
    margin-top: 0 !important;
}

.custom-nav {
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    height: 70px !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 99999 !important;
    background: transparent !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    justify-content: flex-start !important;
}

/* Logo样式优化 */
.custom-nav .logo {
    font-size: 26px !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    flex: 0 0 160px !important;
    transition: all 0.3s ease !important;
}

.custom-nav .logo span {
    color: #333 !important;
}

.custom-nav .logo:hover {
    transform: scale(1.05) !important;
}

/* 菜单样式优化 */
.custom-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 99999 !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    max-width: 800px !important;
}

.custom-menu > li {
    position: relative !important;
    padding: 15px 0 !important;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    text-align: center !important;
}

.custom-menu > li > a {
    color: #2B3A4A !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 10px 8px !important;
    position: relative !important;
    display: block !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    width: 100% !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.custom-menu > li > a:hover {
    color: var(--primary-color) !important;
    background: rgba(229, 90, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* 子菜单样式优化 */
.custom-submenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    padding: 12px 0 !important;
    min-width: 220px !important;
    z-index: 100000 !important;
    border: 1px solid rgba(229, 90, 0, 0.1) !important;
    animation: fadeInDown 0.3s ease !important;
}

.custom-menu > li:hover .custom-submenu {
    display: block !important;
}

.custom-submenu li {
    list-style: none !important;
    padding: 0 !important;
}

.custom-submenu a {
    display: block !important;
    padding: 10px 25px !important;
    color: #2B3A4A !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.custom-submenu a:hover {
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.08) 0%, rgba(0, 123, 255, 0.05) 100%) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px) !important;
}

/* 语言切换按钮样式 */
.language-switcher {
    position: relative !important;
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    min-width: 40px !important;
    max-width: 50px !important;
    margin-left: auto !important;
}

.language-switcher-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    border: 1px solid rgba(229, 90, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2B3A4A !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
}

.language-switcher-btn #current-language {
    font-size: 20px !important;
    line-height: 1 !important;
}

.language-switcher-btn:hover {
    background: rgba(229, 90, 0, 0.1) !important;
    border-color: rgba(229, 90, 0, 0.4) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(229, 90, 0, 0.15) !important;
}

.language-switcher-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}



.language-switcher-btn .dropdown-icon {
    width: 10px !important;
    height: 10px !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
}

.language-switcher-btn.active .dropdown-icon {
    transform: rotate(180deg) !important;
}

/* 语言下拉菜单 */
.language-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    min-width: 100px !important;
    z-index: 100000 !important;
    border: 1px solid rgba(229, 90, 0, 0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    margin-top: 5px !important;
}

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

.language-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    color: #2B3A4A !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
}

.language-dropdown-item::before {
    content: attr(data-flag);
    font-size: 18px !important;
    line-height: 1 !important;
}

.language-dropdown-item:hover {
    background: rgba(229, 90, 0, 0.08) !important;
    color: var(--primary-color) !important;
}

.language-dropdown-item.active {
    background: rgba(229, 90, 0, 0.1) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 99999;
    flex: 0 0 24px !important;
    flex-shrink: 0 !important;
    order: 2 !important;
}

/* 默认：桌面端显示桌面菜单，隐藏汉堡菜单 */
.hamburger-menu {
    display: none !important;
}

.custom-menu {
    display: flex !important;
}

/* 只在平板和手机端（≤768px）显示汉堡菜单 */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
    }
    
    .custom-menu {
        display: none !important;
    }
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #2B3A4A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 完全禁用Bootstrap导航栏响应式行为 */
/* 导航栏基础设置 */

/* 简化布局 - 直接使用sticky定位 */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* 为固定导航栏留出空间 */

/* 移动端优化 - 只在平板和手机端生效 */
@media (max-width: 768px) {
    .custom-header {
        height: 70px !important;
        min-height: 70px !important;
    }
    
    .custom-nav {
        height: 70px !important;
        padding: 0 15px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* 确保logo不被挤压 */
    .custom-nav .logo {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        font-size: 22px !important;
        min-width: 100px !important;
        margin-right: auto !important;
    }
    
    /* 确保语言切换器不被挤压 */
    .language-switcher {
        flex: 0 0 36px !important;
        flex-shrink: 0 !important;
        order: 2 !important;
        min-width: 36px !important;
        max-width: 36px !important;
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
    
    /* 确保汉堡菜单始终可见 */
    .hamburger-menu {
        display: flex !important;
        flex: 0 0 24px !important;
        flex-shrink: 0 !important;
        order: 3 !important;
        margin-left: 0 !important;
        width: 24px !important;
        height: 20px !important;
    }
    
    .language-switcher-btn {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 5px !important;
        border-radius: 6px !important;
    }
    
    .language-switcher-btn #current-language {
        font-size: 18px !important;
    }
    
    .hamburger-menu span {
        height: 2.5px !important;
    }
    
    /* 移动端菜单容器 */
    .mobile-menu-container {
        display: block !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
        border-top: 1px solid rgba(229, 90, 0, 0.1) !important;
        z-index: 99998 !important;
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    .mobile-menu-container.active {
        transform: translateY(0) !important;
    }
    
    /* 移动端菜单样式 */
    .mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    
    .mobile-menu > li {
        list-style: none !important;
        border-bottom: 1px solid rgba(229, 90, 0, 0.1) !important;
        padding-bottom: 15px !important;
    }
    
    .mobile-menu > li:last-child {
        border-bottom: none !important;
    }
    
    .mobile-menu > li > a {
        display: block !important;
        padding: 12px 0 !important;
        color: #2B3A4A !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        transition: color 0.3s ease !important;
    }
    
    .mobile-menu > li > a:hover {
        color: var(--primary-color) !important;
    }
    
    /* 移动端子菜单 */
    .mobile-submenu {
        display: none !important;
        margin-top: 10px !important;
        padding-left: 20px !important;
        border-left: 2px solid rgba(229, 90, 0, 0.2) !important;
    }
    
    .mobile-submenu.active {
        display: block !important;
    }
    
    .mobile-submenu li {
        list-style: none !important;
        margin: 8px 0 !important;
    }
    
    .mobile-submenu a {
        display: block !important;
        padding: 8px 0 !important;
        color: #6C757D !important;
        text-decoration: none !important;
        font-size: 14px !important;
        transition: color 0.3s ease !important;
    }
    
    .mobile-submenu a:hover {
        color: var(--primary-color) !important;
    }
    
    /* 语言切换按钮移动端优化 */
    .language-switcher {
        margin-left: 10px !important;
        min-width: 40px !important;
        max-width: 50px !important;
    }
    
    .language-switcher-btn {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 5px !important;
        border-radius: 6px !important;
    }
    
    .language-switcher-btn #current-language {
        font-size: 18px !important;
    }
    
    .hamburger-menu {
        width: 24px !important;
        height: 20px !important;
    }
    
    .hamburger-menu span {
        height: 2.5px !important;
    }

}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .custom-header {
        height: 60px !important;
        min-height: 60px !important;
    }
    
    .custom-nav {
        height: 60px !important;
        padding: 0 10px !important;
    }
    
    .mobile-menu-container {
        top: 60px !important;
    }
    
    .language-switcher {
        min-width: 120px !important;
        gap: 4px !important;
    }
    
    .lang-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    

}

/* 移除冲突的媒体查询 - 让移动端样式正常工作 */

:root {
    --primary-color: #E36C09;
    --secondary-color: #FFF8F5;
    --accent-color: #FF8A33;
    --text-color: #2B1A0A;
    --light-text: #F8F9FA;
    --dark-bg: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px !important;
}

/* 基础样式 */

/* 页面内容样式 */

/* 页面内容样式 */
.page-content {
    padding-top: 0; /* 删除重复的padding，因为body已经有70px了 */
    position: relative;
    z-index: 1;
}

/* 恢复页面内容之间的合理间距 */
.page-content > section {
    margin-top: 0; /* 第一个section紧贴导航栏 */
}

.page-content > section + section {
    margin-top: 40px; /* 后续section之间有合理间距 */
}

/* 确保所有页面导航图片上面的文字居中 - 简化版本 */
.hero, .about-hero, .contact-hero, .services-hero, .legal-hero {
    text-align: center;
}

.hero h1, .about-hero h1, .contact-hero h1, .services-hero h1, .legal-hero h1,
.hero p, .about-hero p, .contact-hero p, .services-hero p, .legal-hero p {
    text-align: center;
}

/* 确保不同语言的文本正确显示/隐藏 */
body.lang-de .text-en,
body.lang-de .text-zh {
    display: none;
}

body.lang-en .text-de,
body.lang-en .text-zh {
    display: none;
}

body.lang-zh .text-de,
body.lang-zh .text-en {
    display: none;
}

/* 简单的锚点跳转 */
html {
    scroll-behavior: smooth;
}

/* 英雄区域样式 - 简化版 */
.hero {
    position: relative;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 核心优势区域样式 */
.key-benefits {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-color);
    opacity: 0.8;
}

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

/* 关于我们页面样式 */
.about-content {
    padding: 80px 0;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 服务页面样式 */
.services-details {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.service-image {
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-info ul {
    list-style: none;
}

.service-info ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-info ul li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* 联系页面样式优化 */
.contact-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 联系信息区域样式 */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h2 {
    font-size: 2em;
    color: #1a365d;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-details li:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-details i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-details div {
    flex: 1;
}

.contact-details strong {
    display: block;
    font-size: 1.1em;
    color: #1a365d;
    margin-bottom: 5px;
}

.contact-details p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 联系表单区域样式 */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form h2 {
    font-size: 2em;
    color: #1a365d;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a365d;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .contact-details li {
        padding: 12px;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8em;
    }
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 联系信息样式 */
.footer-column.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 18px;
    position: relative;
    top: 3px;
}

/* 新闻订阅表单样式 */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 社交媒体链接样式 */
.social-media {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.social-media a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column.contact-info p {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin: 20px auto 0;
    }
    
    .social-media {
        justify-content: center;
    }
}

/* 语言切换样式 - 使用更严格的选择器和!important */
body.lang-de .text-de { display: block !important; }
body.lang-de .text-en { display: none !important; }
body.lang-de .text-zh { display: none !important; }

body.lang-en .text-de { display: none !important; }
body.lang-en .text-en { display: block !important; }
body.lang-en .text-zh { display: none !important; }

body.lang-zh .text-de { display: none !important; }
body.lang-zh .text-en { display: none !important; }
body.lang-zh .text-zh { display: block !important; }

/* 响应式设计 */
@media (max-width: 768px) {

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* 移动端：确保图片始终在描述上方 */
    .service-detail {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .service-image {
        order: 1 !important;
    }
    
    .service-info {
        order: 2 !important;
    }
    
    /* 关于我们页面：移动端确保图片在文字上方 */
    .story-content,
    .mission-content {
        flex-direction: column !important;
    }
    
    /* story-content: 第一个div是图片，第二个div是文字 - 图片已经在上面，保持顺序 */
    .story-content > div:first-child {
        order: 1 !important;
    }
    
    .story-content > div:last-child {
        order: 2 !important;
    }
    
    /* mission-content: 第一个div是文字，第二个div是图片 - 需要交换顺序 */
    .mission-content > div:first-child {
        order: 2 !important;
    }
    
    .mission-content > div:last-child {
        order: 1 !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button,
    .secondary-button {
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }



    .hero {
        background-attachment: scroll;
    }
}

/* 数据统计区域样式 */
.stats {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 客户评价区域样式 */
.testimonials {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: absolute;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    display: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    display: block;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
    padding-top: 30px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-controls button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* 合作伙伴区域样式 */
.partners {
    padding: 80px 0;
    background-color: white;
}

.partners h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
    text-align: center;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.partner-item span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

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

/* 响应式设计补充 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
        overflow: visible;
        padding: 5px;
        max-width: 100%;
    }
    
    .testimonial-card {
        min-width: 100%;
        width: calc(100% - 10px);
        margin: 0 0 20px 0;
        padding: 15px;
        box-sizing: border-box;
        position: relative;
        overflow: visible;
    }
    
    .testimonials .container {
        padding: 0 10px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }
    
    /* 德语文本特殊处理 */
    .text-de {
        word-break: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-item {
        padding: 15px;
    }
    
    .partner-item i {
        font-size: 2rem;
    }
    
    .partner-item span {
        font-size: 1rem;
    }
}

/* 法律声明页面样式 */
.legal-content {
    padding: 80px 0;
}

.legal-section {
    margin-bottom: 60px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-section ul {
    list-style: none;
    padding-left: 20px;
}

.legal-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-section ul li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 20px;
    }
    
    .legal-section h2 {
        font-size: 1.8rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
}

/* 确保子菜单不会被其他元素遮挡 */
.menu > li {
    padding-bottom: 1rem;
}

/* 添加下拉箭头指示器 */
.menu > li > a::after {
    content: '▾';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    top: 0;
    right: 0;
}

.menu > li:hover > a::after {
    transform: rotate(180deg);
} 

/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 15px;
    }
    
    .menu {
        gap: 20px;
        margin-left: 30px;
    }
    
    .language-selector {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .navbar {
        height: 70px;
        padding: 0 10px;
    }
    
    .menu {
        gap: 15px;
        margin-left: 20px;
    }
    
    .menu > li > a {
        font-size: 15px;
    }
    
    .language-selector {
        min-width: 160px;
        gap: 10px;
    }
    
    .language-selector button {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .menu {
        margin: 10px 0;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu > li {
        padding: 8px 0;
    }
    
    .language-selector {
        margin: 10px 0 0 0;
        justify-content: center;
        min-width: auto;
    }
    
    .logo {
        margin-bottom: 10px;
    }
} 

/* 联系页面英雄区域背景图片样式 */
.contact-hero {
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保背景图片正确显示 */
.contact-hero[style*="background"] {
    background-position: center top !important;
} 

/* 确保子菜单不会被其他元素遮挡 */
.submenu {
    z-index: 1000;
}

/* ===== 移动端优化样式 ===== */
@media (max-width: 768px) {
    /* 整体布局优化 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .menu {
        gap: 0.8rem;
    }
    
    .menu a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    /* 英雄区域优化 */
    .hero {
        padding: 3rem 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 服务卡片优化 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    /* 统计数字优化 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* 客户评价优化 */
    .testimonials-section {
        padding: 2rem 0.5rem;
    }
    
    .testimonials-slider {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        max-width: 100%;
    }
    
    .testimonial-card {
        min-width: 100%;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.5;
        word-break: break-word;
    }
    
    .testimonials h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* 合作伙伴优化 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .partner-item {
        padding: 1rem;
        text-align: center;
    }
    
    .partner-item i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .partner-item span {
        font-size: 0.9rem;
    }
    
    /* 页脚优化 */
    footer {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-column ul li {
        margin-bottom: 0.8rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
    
    /* 联系页面优化 */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-details li {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* 关于我们页面优化 */
    .about-content {
        padding: 2rem 1rem;
    }
    
    .about-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    /* 服务页面优化 */
    .services-content {
        padding: 2rem 1rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .service-image {
        order: 1;
    }
    
    .service-info {
        order: 2;
    }
    
    /* 关于我们页面：移动端确保图片在文字上方 */
    .story-content,
    .mission-content {
        flex-direction: column !important;
    }
    
    /* story-content: 第一个div是图片，第二个div是文字 - 图片已经在上面，保持顺序 */
    .story-content > div:first-child {
        order: 1 !important;
    }
    
    .story-content > div:last-child {
        order: 2 !important;
    }
    
    /* mission-content: 第一个div是文字，第二个div是图片 - 需要交换顺序 */
    .mission-content > div:first-child {
        order: 2 !important;
    }
    
    .mission-content > div:last-child {
        order: 1 !important;
    }
    
    .service-detail h2 {
        font-size: 1.6rem;
    }
    
    .service-detail h3 {
        font-size: 1.3rem;
    }
    
    /* 法律页面优化 */
    .legal-content {
        padding: 2rem 1rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
    }
    
    /* 联系信息优化 */
    .contact-item {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }
    
    .contact-item i {
        margin-right: 0.8rem;
        font-size: 1.1rem;
    }
    
    /* 社交媒体图标优化 */
    .social-icons {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    
    .menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
} 

/* ===== Netlify Forms 联系表单样式 ===== */
.contact-form-custom {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 90, 0, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* 下拉选择框样式 */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* 复选框组样式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-item span {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* 文本域样式 */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

/* 提交按钮样式 */
.form-submit {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    min-width: 200px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 90, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 必填字段标记 */
.form-group label:has(+ .form-control[required])::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* 表单验证样式 */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* 成功提交后的样式 */
.form-submitted {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    border: 1px solid #c3e6cb;
}

.form-submitted h3 {
    color: #155724;
    margin-bottom: 1rem;
}

.form-submitted p {
    color: #155724;
    font-size: 1.1rem;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .contact-form-custom {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 0.8rem;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .contact-form-custom {
        padding: 1rem;
    }
}

/* 锚点跳转高亮动画 */
@keyframes highlightSection {
    0% {
        background-color: rgba(229, 90, 0, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* 导航栏基础设置 */ 