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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
    background: var(--bg-white);
}

.lang-separator {
    color: var(--border-color);
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero区域 - 纯白背景，图片滑动 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.9);
    transform: scale(1.05);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    color: var(--bg-white);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--bg-white);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicators .indicator.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* 章节标题 */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 300;
    letter-spacing: -1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--primary-color);
}

/* 公司简介 */
.about {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-content {
    display: block;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 2;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-img.real-img,
.contact-img.real-img {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.about-img.real-img img,
.contact-img.real-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder.about-img {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0;
    min-height: 200px;
    color: var(--text-lighter);
}

.image-placeholder.about-img .placeholder-content {
    color: var(--text-lighter);
}

.image-placeholder.about-img:first-child {
    grid-column: 1 / -1;
    min-height: 250px;
}

/* 研发中心 */
.rnd {
    padding: 5rem 0;
    background: var(--bg-light);
}

.rnd-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rnd-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    display: block;
}

/* 产品中心 */
.products {
    padding: 5rem 0;
    background: var(--bg-white);
}

.product-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 2px solid var(--primary-color);
    font-weight: 300;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.product-card-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    padding: 0;
    margin: 0;
    line-height: 0;
    font-size: 0;
    height: 100%;
    min-height: 100%;
}

.product-card-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    object-fit: cover;
    line-height: 0;
    border: none;
}

.product-card-image {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    transition: var(--transition);
    background: var(--bg-white);
    object-fit: cover;
    line-height: 0;
    vertical-align: top;
    border: none;
}

.product-card:hover .product-card-image {
    transform: none;
}

.image-placeholder.product-img {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border: none;
    border-radius: 0;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-code-badge {
    display: none;
}

.product-card-content {
    width: 260px;
    flex-shrink: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid var(--border-color);
    overflow: hidden;
    align-self: stretch;
}

.product-card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
    letter-spacing: 0.2px;
    word-break: break-word;
    flex: 1;
}

.btn-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #e8f3ff;
    color: var(--primary-color);
    border: 1px solid #c8defa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
    width: auto;
    min-width: 160px;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.btn-view-details:hover {
    background: #d9eaff;
    color: var(--primary-color);
}

.btn-view-details svg {
    transition: var(--transition);
}

.btn-view-details:hover svg {
    transform: translateX(4px);
}

.product-card-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-view-image {
    display: none;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 3% auto;
    padding: 4rem;
    border-radius: 0;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    line-height: 1;
}

.close:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

#modalBody {
    padding: 1rem 0;
}

.product-detail-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.product-specs-table th,
.product-specs-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-weight: 300;
}

.product-specs-table th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 400;
    width: 40%;
    letter-spacing: 0.3px;
}

.product-specs-table tr:last-child td {
    border-bottom: none;
}

.product-specs-table tr:hover {
    background: var(--bg-light);
}

.product-detail-section {
    margin: 3rem 0;
}

.product-detail-section h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.product-detail-section p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 联系我们 */
.contact {
    padding: 5rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.en-text {
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1rem;
}

.contact-images {
    display: none;
}


/* 页脚 */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin: 0.75rem 0;
    opacity: 0.8;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }


    .modal-content {
        width: 95%;
        padding: 2rem;
    }

    .product-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .product-specs-table {
        font-size: 0.875rem;
    }

    .product-specs-table th,
    .product-specs-table td {
        padding: 1rem;
    }
}
