@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

body {
    font-family: 'Roboto', '微软雅黑', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #222;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.topbar {
    background: #1976d2;
    color: #fff;
    font-size: 0.98em;
    padding: 8px 0;
    letter-spacing: 1px;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(25,118,210,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.25em;
    color: #1976d2;
    font-weight: 700;
}
.logo img {
    margin-right: 10px;
}
.main-nav a {
    color: #222;
    text-decoration: none;
    margin: 0 18px;
    font-size: 1.08em;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
    color: #1976d2;
}
.main-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #1976d2;
    transition: width 0.3s;
    position: absolute;
    left: 0; bottom: -2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
    width: 100%;
}

.banner {
    background: linear-gradient(120deg, #1976d2 60%, #90caf9 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
}
.banner-content {
    position: relative;
    z-index: 2;
}
.banner h1 {
    font-size: 2.8em;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.banner p {
    font-size: 1.3em;
    margin-bottom: 28px;
    letter-spacing: 1px;
}
.banner-btn {
    display: inline-block;
    background: #fff;
    color: #1976d2;
    font-weight: 700;
    border-radius: 24px;
    padding: 12px 36px;
    font-size: 1.1em;
    box-shadow: 0 2px 12px rgba(25,118,210,0.10);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.banner-btn:hover {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 6px 24px rgba(25,118,210,0.18);
}

.products {
    background: #f7faff;
    padding: 60px 0 40px 0;
}
.products h2 {
    text-align: center;
    color: #1976d2;
    margin-bottom: 38px;
    font-size: 2em;
    letter-spacing: 2px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(25,118,210,0.10);
    flex: 1 1 220px;
    max-width: 260px;
    min-width: 200px;
    padding: 32px 18px 24px 18px;
    text-align: center;
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(25,118,210,0.18);
}
.product-card img {
    height: 64px;
    margin-bottom: 18px;
}
.product-card h3 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.18em;
}
.product-card p {
    color: #444;
    font-size: 1em;
}

.about {
    padding: 60px 0 40px 0;
    background: #fff;
}
.about-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.about-text {
    flex: 1 1 340px;
    min-width: 260px;
}
/* 公司简介区块字体加大、颜色丰富 */
.about-text h2 {
    color: #ff9800;
    font-size: 2.2em;
    background: linear-gradient(90deg, #ff9800 30%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 18px;
}
.about-text p {
    font-size: 1.18em;
    color: #333;
    line-height: 2;
    margin-bottom: 18px;
}
.about-text ul {
    margin: 18px 0 0 18px;
    font-size: 1.08em;
    color: #43a047;
    font-weight: bold;
}
.about-text ul li {
    margin-bottom: 8px;
    background: linear-gradient(90deg, #43a047 0%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-img {
    flex: 1 1 320px;
    min-width: 220px;
    text-align: center;
}
.about-img img {
    width: 90%;
    max-width: 340px;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(25,118,210,0.10);
}

.news {
    background: #f7faff;
    padding: 60px 0 40px 0;
}
.news h2 {
    text-align: center;
    color: #1976d2;
    margin-bottom: 38px;
    font-size: 2em;
}
/* 新闻区块标题和日期多色 */
.news h2 {
    color: #43a047;
    background: linear-gradient(90deg, #43a047 60%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.news-list {
    max-width: 700px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e3e9f7;
    font-size: 1.08em;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    color: #1976d2;
    font-weight: 700;
    margin-right: 18px;
    min-width: 90px;
}
/* 新闻区块标题和日期多色 */
.news-date {
    color: #ff9800;
    font-weight: 700;
    background: linear-gradient(90deg, #ff9800 60%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.news-item a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.news-item a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.contact {
    background: #fff;
    padding: 60px 0 40px 0;
}
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}
.contact-info {
    flex: 1 1 320px;
    min-width: 220px;
    background: #f7faff;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 2px 12px rgba(25,118,210,0.06);
    color: #1976d2;
    font-size: 1.08em;
}
.contact-form {
    flex: 1 1 320px;
    min-width: 220px;
    background: #f7faff;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 2px 12px rgba(25,118,210,0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form h3 {
    color: #1976d2;
    margin-bottom: 8px;
}
.contact-form input, .contact-form textarea {
    border: 1px solid #b0bec5;
    border-radius: 6px;
    padding: 10px;
    font-size: 1em;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border: 1.5px solid #1976d2;
}
.contact-form textarea {
    min-height: 80px;
    resize: vertical;
}
.contact-form button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}
/* 按钮多色渐变 */
.banner-btn, .contact-form button {
    background: linear-gradient(90deg, #1976d2 60%, #ff9800 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(25,118,210,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.contact-form button:hover {
    background: #1565c0;
    box-shadow: 0 6px 18px rgba(25,118,210,0.18);
}
/* 按钮多色渐变 */
.banner-btn:hover, .contact-form button:hover {
    background: linear-gradient(90deg, #ff9800 60%, #1976d2 100%);
    color: #fff;
}

.site-footer {
    background: #1976d2;
    color: #fff;
    text-align: center;
    padding: 22px 0 12px 0;
    font-size: 1em;
    letter-spacing: 1px;
    margin-top: 0;
}
/* 页脚多色 */
.site-footer {
    background: linear-gradient(90deg, #1976d2 60%, #43a047 100%);
    color: #fff;
}

/* 轮播图样式 */
.carousel {
    background: #fff;
    box-shadow: 0 2px 12px rgba(25,118,210,0.08);
    padding: 0;
    margin-bottom: 0;
    position: relative;
}
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide {
    display: none;
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    transition: opacity 0.6s;
    z-index: 1;
}
.carousel-slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
}
.carousel-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 0;
}
.carousel-caption {
    position: absolute;
    left: 8%;
    bottom: 18%;
    background: rgba(25,118,210,0.75);
    color: #fff;
    padding: 24px 38px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(25,118,210,0.18);
    min-width: 260px;
    max-width: 420px;
    text-align: left;
}
.carousel-caption h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: 2px;
}
/* 轮播图标题多色 */
.carousel-caption h1 {
    background: linear-gradient(90deg, #1976d2 60%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.carousel-caption p {
    font-size: 1.1em;
    margin: 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25,118,210,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }
.carousel-btn:hover {
    background: #1976d2;
}

@media (max-width: 900px) {
    .carousel-wrapper {
        height: 220px;
    }
    .carousel-slide img {
        height: 220px;
    }
    .carousel-caption {
        left: 4%;
        bottom: 10%;
        padding: 12px 18px;
        font-size: 0.95em;
    }
    .carousel-caption h1 {
        font-size: 1.1em;
    }
}
@media (max-width: 600px) {
    .carousel-wrapper {
        height: 120px;
    }
    .carousel-slide img {
        height: 120px;
    }
    .carousel-caption {
        left: 2%;
        bottom: 4%;
        padding: 6px 8px;
        font-size: 0.85em;
    }
}

/* 产品卡片区块微调 */
.product-list {
    gap: 18px;
}
.product-card {
    box-shadow: 0 2px 10px rgba(25,118,210,0.08);
    border-radius: 10px;
    padding: 24px 12px 18px 12px;
    min-width: 200px;
    max-width: 260px;
    height: 320px;
    background: #fff;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 丰富产品卡片配色 */
.product-card:nth-child(3n+1) {
    background: linear-gradient(135deg, #e3f2fd 60%, #fff 100%);
    border: 2px solid #1976d2;
}
.product-card:nth-child(3n+2) {
    background: linear-gradient(135deg, #fffde7 60%, #fff 100%);
    border: 2px solid #ff9800;
}
.product-card:nth-child(3n) {
    background: linear-gradient(135deg, #e8f5e9 60%, #fff 100%);
    border: 2px solid #43a047;
}
/* 统一所有产品图片为cover，无留白 */
.product-card img {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: none;
    display: block;
}
.product-card h3 {
    font-size: 1.08em;
    margin-bottom: 6px;
}
/* 产品卡片标题多色 */
.product-card h3 {
    color: #1976d2;
    font-size: 1.12em;
    background: linear-gradient(90deg, #1976d2 60%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.product-card p {
    font-size: 0.98em;
    color: #555;
}
.product-card:nth-child(n+1):nth-child(-n+4) img,
.product-card:nth-child(8) img {
    object-fit: contain !important;
    background: #f7f7f7;
}
.product-card:nth-child(4) img {
    object-fit: contain !important;
    background: #f7f7f7;
}
.product-card:nth-child(7) img,
.product-card:nth-child(8) img {
    height: 200px !important;
    object-fit: cover !important;
}
.product-card:nth-child(5) img {
    object-fit: contain !important;
    background: #f7f7f7;
}

@media (max-width: 900px) {
    .about-flex, .contact-flex, .product-list {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .banner {
        padding: 40px 0 24px 0;
    }
    .banner h1 {
        font-size: 1.3em;
    }
    .container {
        padding: 0 4px;
    }
} 