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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* 导航栏 */
.navbar {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #000;
    margin: 0;
}

.logo .subtitle {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
    margin-top: 5px;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    font-size: 14px;
    letter-spacing: 1.5px;
    color: #333;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #000;
    font-weight: 600;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1001;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:hover {
    background: #f9f9f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 首页大图 */
.hero {
    height: 100vh;
    min-height: 500px;
    position: relative;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.08);
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    letter-spacing: 3px;
}

/* 产品系列 */
.products-section,
.new-arrivals-section,
.hot-sales-section {
    padding: 80px 0;
}

.new-arrivals-section {
    background: #f9f9f9;
}

.hot-sales-section {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

/* 新品和热销标签 */
.new-tag,
.hot-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    border-radius: 2px;
}

.new-tag {
    background: #00d9a5;
}

.hot-tag {
    background: #ff4757;
}

.product-image {
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.products-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card .product-image a {
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    cursor: pointer;
}

.product-card .product-image a:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    transition: all 0.3s;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* 品牌特色 */
.features-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-section p,
.footer-section li {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
}

/* 在线客服按钮 */
.service-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00d9a5;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,217,165,0.4);
    transition: all 0.3s;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,217,165,0.5);
}

/* 在线客服窗口 */
.service-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    z-index: 999;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #00d9a5;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.service-header h4 {
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.service-body {
    padding: 20px;
}

.service-body p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 - 平板 */
@media (min-width: 769px) and (max-width: 1200px) {
    .products-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 手机 */
        aspect-ratio: auto !important;
    }
    .product-card,
    .gallery-item {
        height: auto !important;
    }
}
/* ======================================== */

/* ========== 产品图片完整显示 - 禁止上下裁剪 ========== */
    }
    .product-card,
    .gallery-item {
        height: auto !important;
        max-height: none !important;
    }
}
/* ======================================== */

/* ========== 移动端产品图片优化 ========== */
@media (max-width: 768px) {
    /* 产品列表图片 */
    .product-image {
        height: 280px !important;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .product-image img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    
    /* 新闻图片 */
    .news-image {
        height: 200px !important;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .news-image img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* 产品卡片 */
    .product-card .product-image {
        height: 300px !important;
    }
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar .logo h1 {
        font-size: 20px;
    }
    
    .navbar .logo .subtitle {
        font-size: 11px;
    }
    
    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .navbar .nav-menu.active {
        display: flex;
    }
    
    .navbar .nav-menu li {
        width: 100%;
    }
    
    .navbar .nav-menu a {
        display: block;
        padding: 10px;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #000;
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 3px;
    }
}
