/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #2a2a2a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 语言切换按钮 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 15px;
    background-color: #404040;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover {
    background-color: #555555;
}

.lang-btn.active {
    background-color: #007acc;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 3px solid #007acc;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 300;
}

.tagline {
    font-size: 1.2rem;
    color: #cccccc;
    font-style: italic;
}

/* 导航菜单 */
nav {
    background-color: #1a1a1a;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
    margin-left: -10px;
    flex-shrink: 0;
}

.company-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.company-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name-zh {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a9eff;
    margin-bottom: 2px;
}

.company-name-en {
    font-size: 0.9rem;
    font-weight: 400;
    color: #cccccc;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #333333;
    color: #007acc;
}

.nav-link.active {
    background-color: #007acc;
    border-bottom-color: #005599;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* 主要内容区域 */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #007acc;
    font-weight: 300;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
    line-height: 1.8;
}

.company-info {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    background-color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

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

.info-item h3 {
    color: #007acc;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-item p {
    color: #cccccc;
    font-size: 1rem;
}

/* 首页关于我们部分 */
.home-about-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #404040;
}

.home-about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #007acc;
    font-weight: 300;
}

/* 关于我们页面 */
.company-intro {
    margin-bottom: 40px;
    text-align: center;
}

.company-intro h2 {
    color: #007acc;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 300;
}

.company-intro h3 {
    color: #007acc;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 300;
}

.company-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #007acc;
    font-weight: 300;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: #333333;
    padding: 40px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

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

.advantage-item h3 {
    color: #007acc;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.advantage-item p {
    color: #cccccc;
    line-height: 1.8;
}

/* 产品介绍页面 */
.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #007acc;
    font-weight: 300;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-item {
    display: flex;
    align-items: center;
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    min-height: 300px;
}

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



.product-content {
    flex: 1;
    padding: 40px;
}

.product-content h3 {
    color: #007acc;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.product-content p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #2a2a2a;
}

.product-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 轮播功能样式 */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-image.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(0, 122, 204, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #007acc;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 应用场景页面 */
.applications-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #007acc;
    font-weight: 300;
}

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

.application-item {
    background-color: #333333;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

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

.application-item h3 {
    color: #007acc;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.application-item p {
    color: #cccccc;
    line-height: 1.8;
}

/* 联系我们页面 */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007acc;
    font-weight: 300;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cccccc;
    font-style: italic;
}

.contact-button-container {
    text-align: center;
    margin-top: 50px;
}

.contact-button {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, #007acc, #005a99);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 122, 204, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 204, 0.4);
    background: linear-gradient(135deg, #0088ff, #007acc);
}

.contact-button:active {
    transform: translateY(-1px);
}

/* 紧急联系信息样式 */
.emergency-contact {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.emergency-contact h3 {
    color: #007acc;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.emergency-contact p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-info p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    padding: 8px 16px;
    background: rgba(0, 122, 204, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 122, 204, 0.2);
}

.contact-info strong {
    color: #007acc;
}

.contact-button span {
    position: relative;
    z-index: 1;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-button:hover::before {
    left: 100%;
}



/* 页脚 */
footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid #007acc;
    margin-top: 60px;
}

footer p {
    color: #cccccc;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .nav-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        position: relative;
    }

    .logo-section {
        justify-content: flex-start;
    }

    .company-logo {
        height: 45px;
    }

    .company-name-zh {
        font-size: 0.9rem;
    }

    .company-name-en {
        font-size: 0.7rem;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 隐藏导航菜单，点击后显示 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(40, 40, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-link {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .info-grid,
    .advantages-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .product-item {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .product-content {
        padding: 30px 20px;
    }
    
    .product-image {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        order: -1;
        background-color: #2a2a2a;
        min-height: 250px;
        width: 100%;
    }
    
    .image-carousel {
        position: relative;
        width: 100%;
        height: 250px;
        max-width: 100%;
    }
    
    .carousel-container {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .carousel-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-image.active {
        opacity: 1;
    }
    
    /* 移动端直接使用轮播图片样式，移除冲突的img样式 */
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .contact-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .emergency-contact {
        margin-top: 30px;
        padding: 25px 20px;
    }
    
    .emergency-contact h3 {
        font-size: 1.2rem;
    }
    
    .emergency-contact p {
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0 30px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .info-item,
    .advantage-item,
    .product-content,
    .application-item {
        padding: 25px;
    }
    
    .contact-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .emergency-contact {
        margin-top: 25px;
        padding: 20px 15px;
    }
    
    .emergency-contact h3 {
        font-size: 1.1rem;
    }
    
    .emergency-contact p {
        font-size: 0.95rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* 高分辨率显示器优化 (4K及以上) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    header h1 {
        font-size: 4rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .info-item h3,
    .advantage-item h3,
    .product-content h3,
    .application-item h3 {
        font-size: 1.8rem;
    }
    
    .info-item p,
    .advantage-item p,
    .product-content p,
    .application-item p {
        font-size: 1.2rem;
    }
    
    .company-logo {
        height: 80px;
    }
    
    .company-name-zh {
        font-size: 1.5rem;
    }
    
    .company-name-en {
        font-size: 1rem;
    }
}

/* 超高分辨率显示器优化 (8K) */
@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
        padding: 0 60px;
    }
    
    header h1 {
        font-size: 5rem;
    }
    
    .hero h2 {
        font-size: 4.5rem;
    }
    
    .info-item,
    .advantage-item,
    .product-content,
    .application-item {
        padding: 50px;
    }
}

/* 高DPI设备优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .company-logo,
    .carousel-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 超小屏幕设备 (320px以下) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .info-item,
    .advantage-item,
    .product-content,
    .application-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .company-name-zh {
        font-size: 0.7rem;
    }
    
    .company-name-en {
        font-size: 0.6rem;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    header {
        padding: 20px 0;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .nav-header {
        padding: 5px;
    }
}

/* 打印样式优化 */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .language-switcher,
    .carousel-controls,
    .carousel-dots {
        display: none !important;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}