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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.navbar .container {
    padding-left: 0;
    padding-right: 20px;
    max-width: 100%;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    padding-left: 15px;
    margin-left: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -15px;
    margin-top: -2px;
    padding-left: 0;
}

.logo img {
    height: 50px;
    width: auto;
    margin-left: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

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

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* 首页横幅 */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    width: fit-content;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle-main {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.4;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-factory-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 3;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* 通用区块样式 */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 公司介绍 */
.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-intro,
.about-service {
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

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

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* SMT介绍 */
.smt-section {
    background: var(--bg-light);
}

.smt-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.smt-history {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.history-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.history-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.history-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.history-item p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.smt-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* MES系统介绍 */
.mes-section {
    background: var(--bg-white);
}

.mes-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.mes-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-card p {
    padding: 0 1rem 1.5rem;
    color: var(--text-light);
}

/* 产品介绍 */
.products-section {
    background: var(--bg-light);
}

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

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
}

/* 主要客户 */
.customers-section {
    background: var(--bg-white);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

.customer-logo {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.customer-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.customer-logo:hover img {
    filter: grayscale(0%);
}

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: var(--accent-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.en-name {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.wechat-qr {
    margin-top: 1rem;
}

.wechat-qr img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 3px solid white;
}

.contact-map {
    grid-column: 1 / -1;
}

.map-container {
    margin-top: 1rem;
}

.map-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.map-link:hover {
    transform: scale(1.02);
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.map-placeholder p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.map-address {
    font-size: 0.95rem !important;
    opacity: 0.9;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 2rem 0;
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-main {
        font-size: 1.5rem;
    }
    
    .hero-right {
        padding: 2rem 0;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .smt-history {
        grid-template-columns: 1fr;
    }
    
    .mes-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .customers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hero {
        min-height: auto;
        height: auto;
        padding-top: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle-main {
        font-size: 1.3rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-right {
        padding: 1.5rem;
    }
    
    .hero-image-wrapper {
        max-width: 100%;
    }
    
    .hero-image-badge {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .smt-images {
        grid-template-columns: 1fr;
    }
    
    .mes-features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-values {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle-main {
        font-size: 1.2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
    }
    
    .hero-image-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* 语言切换动画 */
[data-i18n] {
    transition: opacity 0.3s ease;
}

/* 日语字体 */
body[data-lang="ja"] {
    font-family: 'Noto Sans JP', 'Noto Sans SC', sans-serif;
}

/* 英文字体 */
body[data-lang="en"] {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
}

