/* ==========================
   基础重置 & 全局样式
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* 按钮样式 & 特效 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background-color: #0066ff;
    color: #fff;
}

.primary-btn:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.inquiry-btn {
    padding: 8px 20px;
    border: 1px solid #0066ff;
    border-radius: 4px;
    background-color: #fff;
    color: #0066ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-btn:hover {
    background-color: #0066ff;
    color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #0066ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0052cc;
}

/* 按钮波纹特效 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================
   导航栏样式 & 特效
   ========================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0066ff;
}

.search-icon {
    font-size: 16px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* ==========================
   英雄区样式
   ========================== */
.hero-section {
    background-color: #c9cdd4;
    padding: 60px 0;
    color: #fff;
}

.hero-inner {
    max-width: 800px;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-desc {
    font-size: 14px;
    color: #f0f2f5;
    margin-bottom: 10px;
    line-height: 1.7;
}

.hero-size-text {
    font-size: 12px;
    color: #a8adb8;
    margin-bottom: 20px;
}

/* ==========================
   标签栏样式
   ========================== */
.tab-bar {
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.tab-list {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
}

.tab-item {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.tab-item:hover {
    color: #0066ff;
}

.top-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================
   简介模块样式
   ========================== */
.intro-section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.intro-text {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.read-more-link {
    font-size: 12px;
    color: #0066ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================
   轮播模块样式 & 特效
   ========================== */
.product-carousel-section,
.multi-carousel-section,
.product-grid-section,
.mixed-layout-section,
.text-product-grid-section,
.form-section {
    padding: 40px 0;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.carousel-btn:hover {
    color: #0066ff;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

.carousel-card,
.product-card,
.text-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.carousel-card:hover,
.product-card:hover,
.text-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.card-img-placeholder,
.product-img-placeholder,
.img-placeholder {
    background-color: #eaeaea;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.card-img-placeholder:hover,
.product-img-placeholder:hover,
.img-placeholder:hover {
    background-color: #d5d5d5;
}

.card-title,
.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-desc,
.product-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #0066ff;
}

.dot:hover:not(.active) {
    background-color: #999;
}

.group-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.carousel-group {
    margin-bottom: 40px;
}

/* ==========================
   大标题模块样式
   ========================== */
.big-title-section {
    padding: 40px 0;
    text-align: center;
}

.big-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.big-title-desc {
    font-size: 12px;
    color: #666;
}

/* ==========================
   图文交错模块样式
   ========================== */
.mixed-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mixed-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.mixed-row.reverse {
    grid-template-columns: 2fr 1fr;
}

.mixed-text {
    text-align: center;
}

.text-small {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.text-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.text-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* ==========================
   带文字产品网格样式
   ========================== */
.text-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.text-product-card .card-img-placeholder {
    position: relative;
    height: 300px;
    background: linear-gradient(to bottom, #eaeaea, #ccc);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 15px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text-product-card:hover .img-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.overlay-link {
    font-size: 12px;
    color: #fff;
    text-decoration: underline;
}

/* ==========================
   表单模块样式
   ========================== */
.form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.item-text {
    font-size: 12px;
    color: #666;
}

.item-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.form-right {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: #666;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 12px;
}

.form-textarea {
    height: 80px;
    resize: none;
}

.upload-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-btn {
    position: relative;
    padding: 10px;
    border: 1px solid #0066ff;
    border-radius: 4px;
    color: #0066ff;
    cursor: pointer;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ==========================
   悬浮按钮样式 & 特效
   ========================== */
.float-contact-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 45px;
    height: 45px;
    background-color: #999;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.float-btn:hover {
    background-color: #0066ff;
    transform: translateY(-3px);
}

/* ==========================
   页脚样式 & 特效
   ========================== */
.footer-section {
    background-color: #0a1a33;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
}

.read-more-link {
    color: #0066ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0052cc;
}

.col-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066ff;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 12px;
}

.contact-info i {
    margin-top: 3px;
    color: #999;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #223a5e;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0066ff;
}

.copyright-text {
    font-size: 12px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-to-top {
    width: 25px;
    height: 25px;
    background-color: #0066ff;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
}

/* ==========================
   响应式适配
   ========================== */
@media (max-width: 992px) {
    /* 导航栏 */
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }

    /* 轮播模块 */
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 产品网格 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 图文交错模块 */
    .mixed-row,
    .mixed-row.reverse {
        grid-template-columns: 1fr;
    }

    /* 带文字产品网格 */
    .text-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 表单模块 */
    .form-wrapper {
        grid-template-columns: 1fr;
    }

    /* 页脚 */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 轮播模块 */
    .carousel-grid {
        grid-template-columns: 1fr;
    }

    /* 产品网格 */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* 带文字产品网格 */
    .text-product-grid {
        grid-template-columns: 1fr;
    }

    /* 悬浮按钮 */
    .float-contact-buttons {
        right: 10px;
    }
    .float-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    /* 页脚 */
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}