/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* DHL风格配色 */
:root {
    --dhl-red: #D40511;
    --dhl-yellow: #FFCC00;
    --dhl-dark-red: #A30000;
    --dhl-dark-yellow: #E6B800;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--dhl-red) 0%, var(--dhl-dark-red) 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-right: 0.5rem;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.language-btn.active {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    border-color: var(--dhl-yellow);
}

.language-indicator {
    color: white;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-right: 1rem;
}

/* 语言切换动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 语言切换过渡效果 */
[data-lang-key] {
    transition: opacity 0.3s ease;
}

.language-switching [data-lang-key] {
    opacity: 0.5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--dhl-yellow);
}

.contact-info {
    color: white;
    font-weight: bold;
}

.phone {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--dhl-red) 0%, var(--dhl-dark-red) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dhl-yellow);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--dhl-yellow);
    color: var(--dhl-yellow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dhl-red);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dhl-yellow);
}

.stat-label {
    font-size: 1rem;
    color: white;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--background-light);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dhl-red);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--dhl-red);
    margin-bottom: 1rem;
}

.advantages-list {
    list-style: none;
    margin-top: 1rem;
}

.advantages-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 服务项目 */
.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dhl-red);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 4px solid var(--dhl-red);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dhl-red);
    margin-bottom: 1rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--dhl-red);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--dhl-yellow);
}

/* 成功案例 */
.cases {
    padding: 80px 0;
    background: var(--background-light);
}

.cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dhl-red);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-item {
    background: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-item h3 {
    color: var(--dhl-red);
    margin: 1.5rem 1.5rem 1rem;
}

.case-item p {
    margin: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.case-item h3 {
    color: var(--dhl-red);
    margin-bottom: 1rem;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dhl-red);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--dhl-red);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(8, 8, 8, 0.854);
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--dhl-red);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dhl-red);
    box-shadow: 0 0 0 2px rgba(212, 5, 17, 0.1);
}

/* 联系我们微信二维码 */
.wechat-qrcode {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--dhl-yellow);
}

.wechat-qrcode img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.wechat-qrcode p {
    color: var(--dhl-red);
    font-weight: bold;
    margin: 0;
}

.wechat-link {
    color: var(--dhl-red);
    text-decoration: none;
    border-bottom: 1px dashed var(--dhl-yellow);
    cursor: pointer;
}

.wechat-link:hover {
    color: var(--dhl-dark-red);
    border-bottom-color: var(--dhl-red);
}

/* 咨询弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dhl-red);
}

.modal h3 {
    color: var(--dhl-red);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-phone, .modal-wechat {
    text-align: center;
}

.modal-phone h4, .modal-wechat h4 {
    color: var(--dhl-red);
    margin-bottom: 1rem;
}

.modal-phone-number {
    display: inline-block;
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.modal-phone-number:hover {
    background: var(--dhl-red);
    color: white;
    transform: scale(1.05);
}

.modal-qrcode img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--dhl-yellow);
    margin-bottom: 0.5rem;
}

.modal-address {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.modal-address h4 {
    color: var(--dhl-red);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-address p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--dhl-dark-red) 0%, #800000 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--dhl-yellow);
    margin-bottom: 1rem;
}

.footer-contact h4 {
    color: var(--dhl-yellow);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */

/* 超大屏幕优化 */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板设备优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端主要断点 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 15px;
        position: relative;
    }
    
    /* 语言切换器移动端样式 */
    .language-switcher {
        margin-left: 1rem;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .language-indicator {
        display: none;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        min-width: 60px;
        text-align: center;
    }
    
    /* 隐藏桌面导航菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--dhl-red) 0%, var(--dhl-dark-red) 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* 汉堡菜单样式 */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* 联系信息在移动端隐藏 */
    .contact-info {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 5px 0;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 内容区域优化 */
    .about, .services, .cases, .contact {
        padding: 60px 0;
    }
    
    .about h2, .services h2, .cases h2, .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card, .case-item {
        padding: 1.5rem;
    }
    
    /* 联系表单优化 */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 14px;
    }
    
    /* 微信二维码优化 */
    .wechat-qrcode {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .wechat-qrcode img {
        width: 120px;
        height: 120px;
    }
    
    /* 移动端弹窗优化 */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .modal-contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-phone-number {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        display: block;
        text-align: center;
    }
    
    .modal-qrcode img {
        width: 100px;
        height: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0.8rem 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 18px;
        font-size: 1rem;
        max-width: 250px;
    }
    
    .about h2, .services h2, .cases h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .service-card, .case-item {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 92%;
        padding: 1.2rem;
    }
    
    /* 触摸优化 */
    .btn, .nav-menu a, .service-link {
        min-height: 44px; /* 最小触摸目标大小 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}