﻿/* 外贸网站样式 */

:root {
    --primary: #0066cc;
    --primary-dark: #004499;
    --secondary: #00a8e8;
    --dark: #0a1628;
    --dark-light: #1a2a44;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo i {
    color: var(--secondary);
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary);
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 232, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 168, 232, 0.15);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 通用section */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* 产品中心 */
.products {
    padding: 100px 0;
    background: var(--dark-light);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.product-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-grid.active {
    display: grid;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.product-img {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.btn-more {
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-more:hover {
    text-decoration: underline;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--dark);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: var(--dark-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 20px;
    color: var(--secondary);
    width: 24px;
}

.info-item span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* 页脚 */
.footer {
    padding: 40px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--secondary);
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 产品详情弹窗 */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow-y: auto;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: var(--dark-light);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 40px;
}

.modal-hero {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.modal-hero-img {
    width: 300px;
    min-width: 300px;
    height: 280px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-hero-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-hero-info {
    flex: 1;
}

.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-title-en {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid var(--secondary);
    color: var(--secondary);
}

.modal-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.modal-specs {
    width: 100%;
    border-collapse: collapse;
}

.modal-specs th,
.modal-specs td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.modal-specs th {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    width: 200px;
    background: rgba(255, 255, 255, 0.03);
}

.modal-specs td {
    color: rgba(255, 255, 255, 0.9);
}

.modal-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 产品卡片优化 */
.product-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 102, 204, 0.3);
    color: var(--secondary);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .nav, .lang-switch {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-num {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        flex-direction: column;
        gap: 30px;
    }

    .modal-hero {
        flex-direction: column;
    }

    .modal-hero-img {
        width: 100%;
        min-width: auto;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 13px;
    }

    .modal-app-images {
        grid-template-columns: 1fr;
    }
}

/* 应用场景图片 */
.modal-app-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.app-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.app-image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.app-image-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.app-image-item:hover::after {
    opacity: 1;
}

/* 图片预览 */
.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-preview-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-preview-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 产品图片可点击 */
.modal-hero-img img {
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-hero-img img:hover {
    transform: scale(1.05);
}

/* 标题图标 */
.modal-section-title i {
    margin-right: 8px;
    opacity: 0.7;
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .modal-title {
        font-size: 18px;
    }
}
