/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-logo h2 {
    color: #00b4d8;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00b4d8;
}

/* 主内容区域 */
main {
    margin-top: 80px;
}

/* 轮播图区域 - 调整宽度与下方区域保持一致 */
.carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background: #000;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-content {
    text-align: center;
    color: #fff;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    z-index: 3;
    position: relative;
}

.carousel-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.carousel-subtitle {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.carousel-description {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-button {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.carousel-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-button:hover::before {
    left: 100%;
}

.carousel-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 轮播图控制按钮 - 调整位置适应新布局 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0.7;
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}

/* 轮播图指示器 - 调整位置适应新布局 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
    justify-content: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* 轮播图动画 - 参考官网效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 内容动画效果 */
.carousel-content {
    animation: slideInUp 1s ease-out;
}

.carousel-title {
    animation: slideInLeft 1.2s ease-out 0.2s both;
}

.carousel-subtitle {
    animation: slideInRight 1.2s ease-out 0.4s both;
}

.carousel-description {
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.carousel-button {
    animation: slideInUp 1.2s ease-out 0.8s both;
}

/* 处理浏览器窗口高度较小的情况 */
@media (max-height: 600px) {
    .carousel-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .carousel-image {
        object-fit: contain;
    }
}

/* 响应式轮播图 - 调整图片显示和尺寸 */
@media (max-width: 1200px) {
    .carousel-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .carousel-container {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .carousel-container {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .carousel-slide {
        padding: 0.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        opacity: 0.8;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    .carousel-indicators {
        bottom: 0.5rem;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        height: 100vh;
        min-height: 300px;
    }
    
    .carousel-container {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .carousel-slide {
        padding: 0.3rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    .carousel-prev {
        left: 0.3rem;
    }
    
    .carousel-next {
        right: 0.3rem;
    }
    
    .carousel-indicators {
        bottom: 0.3rem;
        gap: 0.6rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 超宽屏幕优化 */
@media (min-width: 1920px) {
    .carousel-section {
        max-height: 1000px;
    }
    
    .carousel-content {
        max-width: 1200px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .carousel-section {
        height: 100vh;
        min-height: 300px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-title {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    .carousel-subtitle {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }
    
    .carousel-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1rem;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .carousel-section {
        touch-action: pan-y pinch-zoom;
    }
    
    .carousel-prev,
    .carousel-next {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .carousel-indicators {
        touch-action: manipulation;
    }
    
    .indicator {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 减少动画效果（用户偏好设置） */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: opacity 0.3s ease-in-out;
    }
    
    .carousel-image {
        transition: none;
    }
    
    .carousel-content {
        animation: none;
    }
    
    .carousel-button,
    .carousel-prev,
    .carousel-next,
    .indicator {
        transition: none;
    }
}

/* 暗色模式优化 */
@media (prefers-color-scheme: dark) {
    .carousel-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    }
    
    .carousel-prev,
    .carousel-next {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .indicator {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* 产品展示区域 - 左右布局 */
.products-section {
    padding: 6rem 0;
    background: #0f0f0f;
    width: 100%;
    box-sizing: border-box;
}

.products-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    box-sizing: border-box;
}

.product-showcase-left,
.product-showcase-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.product-image-left,
.product-image-right {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-image-left:hover,
.product-image-right:hover {
    transform: translateY(-5px);
}

.showcase-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-image-left:hover .showcase-image,
.product-image-right:hover .showcase-image {
    transform: scale(1.05);
}

/* 底部产品展示区域 */
.bottom-showcase-section {
    padding: 6rem 0;
    background: #1a1a1a;
    width: 100%;
    box-sizing: border-box;
}

.bottom-showcase-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    box-sizing: border-box;
}

.bottom-showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bottom-showcase-item:hover {
    transform: translateY(-10px);
}

.bottom-showcase-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.bottom-showcase-item:hover .bottom-showcase-image {
    transform: scale(1.1);
}

.bottom-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-showcase-item:hover .bottom-showcase-overlay {
    transform: translateY(0);
}

.bottom-showcase-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.bottom-showcase-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* 公司承诺和工厂展示区域 */
.company-section {
    padding: 6rem 0;
    background: #1a1a1a;
}

.company-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.commitment-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 3rem;
    color: #fff;
}

.commitment-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.commitment-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.commitment-image {
    text-align: center;
}

.service-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00b4d8;
}

.commitment-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.commitment-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.commitment-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.commitment-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.factory-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    color: #fff;
}

.factory-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.factory-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.factory-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.factory-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.factory-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 产品视频展示区域 */
.video-section {
    padding: 6rem 0;
    background: #0f0f0f;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-title {
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background: #000;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h3 {
    color: #00b4d8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00b4d8;
}

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

/* 处理浏览器窗口宽度变化 */
@media (max-width: 1200px) {
    .products-container {
        max-width: 100%;
        padding: 0 1.5rem;
        gap: 4rem;
    }
    
    .bottom-showcase-container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

/* 中等屏幕响应式设计 */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .bottom-showcase-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 产品展示区域响应式 */
    .products-section {
        padding: 4rem 0;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .bottom-showcase-section {
        padding: 4rem 0;
    }
    
    .bottom-showcase-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-showcase-left,
    .product-showcase-right {
        gap: 1.5rem;
    }
    
    .showcase-image {
        min-height: 250px;
        max-height: 350px;
    }
    
    .bottom-showcase-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bottom-showcase-image {
        min-height: 250px;
        max-height: 350px;
    }
    
    .company-container {
        grid-template-columns: 1fr;
    }
    
    .commitment-features {
        grid-template-columns: 1fr;
    }
    
    .factory-images {
        grid-template-columns: 1fr;
    }
    
    .video-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-logo {
        gap: 0.3rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    /* 小屏幕产品展示区域 */
    .products-section {
        padding: 3rem 0;
    }
    
    .products-container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .bottom-showcase-section {
        padding: 3rem 0;
    }
    
    .bottom-showcase-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .showcase-image {
        min-height: 200px;
        max-height: 300px;
    }
    
    .bottom-showcase-image {
        min-height: 200px;
        max-height: 300px;
    }
    
    .bottom-showcase-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .bottom-showcase-overlay h3 {
        font-size: 1.2rem;
    }
    
    .bottom-showcase-overlay p {
        font-size: 0.9rem;
    }
    
    .commitment-title,
    .factory-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.hero-image,
.product-card,
.commitment-card,
.factory-card,
.video-item {
    animation: fadeInUp 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00b4d8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0096c7;
}
