/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f7f7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left a {
    margin-right: 15px;
    color: #666;
    transition: color 0.3s;
}

.top-left a.active,
.top-left a:hover {
    color: #ffce37;
}

.top-right span {
    margin-left: 20px;
}

/* 导航栏 */
.nav {
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #ffce37;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 关于GBS */
.about {
    background: #fff;
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-left {
    width: 280px;
    color: #595757;
}

.about-left h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.about-left h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.qr-code {
    width: 200px;
    margin: 100px 0 20px;
}

.qr-text {
    font-size: 18px;
    text-align: center;
}

.about-right {
    flex: 1;
}

.about-right video {
    margin-bottom: 20px;
}

.about-right p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 产品服务 */
.product {
    background: #f2f2f2;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 20px;
    color: #999;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 24px;
    color: #333;
}

.service-icons {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
}

.icon-item img {
    height: 120px;
}

.service-list {
    display: flex;
    gap: 30px;
}

.service-item {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.service-item ul li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
}

.service-item ul li:before {
    content: "・";
    position: absolute;
    left: 0;
}

/* 广告图 */
.ad-section {
    background: #fff;
    padding: 40px 0;
}

/* 特色功能区 */
.feature {
    padding: 60px 0;
}

.yellow-bg {
    background: #ffce37;
}

.feature-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.feature-content.reverse {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-text h2 span:first-child {
    font-weight: bold;
}

.feature-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 仓库图片 */
.warehouse {
    background: #fff;
    padding: 40px 0;
}

.warehouse .container {
    display: flex;
    gap: 20px;
}

.warehouse img {
    flex: 1;
}

/* 合作伙伴 */
.partner {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.partner h3 {
    font-size: 20px;
    color: #999;
    margin-bottom: 10px;
}

.partner h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-item img {
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0);
}

/* 联系我们 */
.contact {
    background: #fff;
    padding: 60px 0;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 2;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.company-info {
    margin-top: 20px;
    font-weight: bold;
}

.contact-qr {
    flex: 1;
    text-align: center;
}

.contact-qr img {
    width: 120px;
    margin: 0 auto 20px;
}

.contact-qr p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background: #ffce37;
    color: #333;
    border-radius: 25px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffd84d;
}

/* 页面底部 */
.footer {
    background: #eec045;
    padding: 40px 0;
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-content .line {
    width: 95px;
    margin: 0 auto 10px;
}

.footer-content p {
    font-size: 18px;
}

.footer-logo {
    width: 240px;
    margin: 30px auto 0;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffce37;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.back-top.show {
    opacity: 1;
}

.back-top:hover {
    background: #ffd84d;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-right span {
        margin: 0 10px;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .menu a {
        font-size: 14px;
    }

    .banner {
        height: 250px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-left {
        width: 100%;
        text-align: center;
    }

    .qr-code {
        margin: 30px auto 20px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .service-icons {
        flex-direction: column;
        align-items: center;
    }

    .service-list {
        flex-direction: column;
    }

    .feature-content,
    .feature-content.reverse {
        flex-direction: column;
    }

    .feature-text h2 {
        font-size: 28px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-content {
        flex-direction: column;
    }

    .warehouse .container {
        flex-direction: column;
    }

    .back-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
