/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
    height: 100%;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #000000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-links a:hover {
    color: #000000;
}

/* 下拉菜单 */
.nav-links .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px 0;
    min-width: 180px;
    display: block;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    list-style: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-links li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links .submenu li {
    margin: 0;
    padding: 0;
    height: auto;
    display: block;
}

.nav-links .submenu li a {
    padding: 10px 30px;
    font-size: 13px;
    color: #666666;
    text-transform: none;
    display: block;
}

.nav-links .submenu li a::after {
    display: none;
}

.nav-links .submenu li a:hover {
    color: #000000;
    background-color: #f9f9f9;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    margin-left: 15px;
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.language-switcher a:hover {
    color: #000000;
}

.language-switcher a.active {
    color: #000000;
    font-weight: 700;
}

/* 英雄区 */
.hero {
    padding: 0;
    text-align: center;
    margin-top: 80px;
    background: #ffffff;
}

.hero > .container {
    max-width: none;
    padding: 0;
}

.hero-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.hero-content > h1 {
    font-size: 48px;
    padding-top: 80px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content > p {
    font-size: 18px;
    color: #666666;
    padding-bottom: 80px;
}

.hero-poster {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #f5f5f5;
    width: 100%;
    height: calc(100vh - 80px);
}

.carousel-container,
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #222222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-control.prev {
    left: 32px;
}

.carousel-control.next {
    right: 32px;
}

.carousel-control:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.32);
}

.carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 28px;
    height: 2px;
    border: 0;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.indicator.active {
    background: #111111;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #000000;
}

.btn:hover {
    background-color: transparent;
    color: #000000;
}

.hero .btn {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.hero .btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* 产品展示 */
.products {
    padding: 100px 0;
    background-color: #ffffff;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
}

.product-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 0;
    background: none;
    color: #666666;
    border: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #000000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn:hover,
.filter-btn.active {
    color: #000000;
}

.filter-btn.active::after {
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: #ffffff;
    overflow: hidden;
    group: relative;
}

.product-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.7s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px 0 10px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-info p {
    color: #888888;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-info .product-code {
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 1px;
}

.product-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 96px;
    padding: 10px 18px;
    border: 1px solid #d8d8d8;
    background-color: #ffffff;
    color: #222222;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #000000;
    background-color: #000000;
    color: #ffffff;
}

.pagination-btn:disabled {
    color: #aaaaaa;
    cursor: not-allowed;
}

.pagination-status {
    min-width: 180px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

.page-size-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 14px;
}

.page-size-select {
    height: 38px;
    padding: 0 28px 0 10px;
    border: 1px solid #d8d8d8;
    background-color: #ffffff;
    color: #222222;
    font-size: 14px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-info p {
    color: #555555;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-info p strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form {
    background-color: #ffffff;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #999999;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0 10px;
    border: none;
    border-bottom: 1px solid #dddddd;
    background: transparent;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000000;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 12px;
    color: #000000;
}

.form-group textarea {
    height: 100px;
    resize: none;
    margin-top: 10px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
}

/* 页脚 */
.footer {
    background-color: #111111;
    color: #ffffff;
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
    color: #999999;
    margin-bottom: 15px;
}

.footer-info a {
    color: #999999 !important;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222222;
    font-size: 13px;
    color: #777777;
    letter-spacing: 1px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #aaaaaa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-poster {
        height: 60vh;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .carousel-control.prev {
        left: 18px;
    }

    .carousel-control.next {
        right: 18px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links li {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .language-switcher {
        margin-top: 20px;
    }
    
    .hero {
        margin-top: 140px;
    }
    
    .products {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-poster {
        height: 50vh;
    }

    .carousel-control {
        display: none;
    }
    
    .products h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
