/* ============================================================
   浙江远卓游乐设备有限公司 - 企业官网样式
   风格：马卡龙配色 / 大圆角 / 童趣可爱风
   适配：PC端为主
   ============================================================ */

/* ===== CSS 变量：马卡龙色系（修改配色改这里即可） ===== */
:root {
    --pink:      #FFAAA5;   /* 粉红 */
    --mint:      #A8E6CF;   /* 薄荷绿 */
    --sky:       #87CEEB;   /* 天蓝 */
    --lavender:  #D4A5FF;   /* 淡紫 */
    --peach:     #FFD3B6;   /* 蜜桃 */
    --lemon:     #FFEEAD;   /* 柠檬黄 */
    --rose:      #FFB7B2;   /* 玫瑰粉 */
    --lilac:     #E8D5F5;   /* 丁香紫 */

    --primary:   #FF8C94;   /* 主色 */
    --accent:    #6EC6CA;   /* 强调色 */
    --bg-light:  #FFF5F5;   /* 浅粉背景 */
    --bg-mint:   #F0FFF4;   /* 浅绿背景 */
    --bg-sky:    #F0F8FF;   /* 浅蓝背景 */
    --text:      #4A4A4A;   /* 正文色 */
    --text-light:#888888;   /* 浅文字色 */
    --white:     #FFFFFF;   /* 白色 */
    --shadow:    0 8px 30px rgba(255, 140, 148, 0.15); /* 粉色阴影 */
    --shadow-hover: 0 12px 40px rgba(255, 140, 148, 0.25);
    --radius-lg: 30px;      /* 大圆角 */
    --radius-md: 20px;      /* 中圆角 */
    --radius-sm: 12px;      /* 小圆角 */
    --radius-full: 50px;    /* 全圆角 */
    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 区域通用样式 ===== */
.section {
    padding: 100px 0;
}

.section:nth-child(odd) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

/* 标题下方可爱装饰线 */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--pink), var(--mint), var(--sky));
    border-radius: 10px;
    margin: 12px auto 0;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 170, 165, 0.2);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    /* 如果logo图片不存在，显示占位色块 */
    background: linear-gradient(135deg, var(--pink), var(--peach));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* 导航菜单 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.3s;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 14px;
    border: 2px solid var(--pink);
    border-radius: var(--radius-full);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.lang-switch:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

.lang-option {
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.3s;
    color: var(--text-light);
}

.lang-option.active {
    background: var(--primary);
    color: var(--white);
}

.lang-divider {
    color: var(--text-light);
}

/* ===== Banner 轮播 ===== */
.banner {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 72px;
}

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

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 图片加载前占位背景 */
    background: linear-gradient(135deg, var(--pink) 0%, var(--peach) 50%, var(--lemon) 100%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 170, 165, 0.3), rgba(135, 206, 235, 0.3));
    display: flex;
    align-items: center;
}

.banner-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.banner-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.banner-desc {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 36px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Banner 箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.banner-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev { left: 30px; }
.banner-next { right: 30px; }

/* Banner 圆点指示器 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--primary));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 140, 148, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 148, 0.5);
}

/* ===== 关于我们 ===== */
.about {
    background: var(--white) !important;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

/* 图片外框装饰 */
.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 4px dashed var(--pink);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
    /* 图片加载前占位 */
    background: linear-gradient(135deg, var(--mint), var(--sky));
    min-height: 460px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text);
}

/* 数据亮点 */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--bg-light), #FFF0F3);
    border-radius: var(--radius-md);
    flex: 1;
    transition: transform 0.3s;
}

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

.stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== 产品中心 ===== */
.products {
    background: var(--bg-mint);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    cursor: pointer;
}

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

.product-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    /* 占位色 */
    background: linear-gradient(135deg, var(--pink), var(--peach));
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== 工程案例 ===== */
.cases {
    background: var(--white) !important;
}

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

.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.4s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.case-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    /* 占位色 */
    background: linear-gradient(135deg, var(--lavender), var(--sky));
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}

.case-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.case-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== 发货实拍视频 ===== */
.video.section {
    background: var(--bg-mint);
}

.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.video-player {
    width: 100%;
    height: 600px;
    display: block;
    background: #000;
    border: 0;
}

/* ===== 联系我们 ===== */
.contact {
    background: var(--bg-sky);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form-wrap h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

/* 联系信息条目 */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateX(6px);
}

.contact-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
}

/* 留言表单 */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #F0E0E0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s;
    outline: none;
    background: #FFFAFA;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 170, 165, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #D0C0C0;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, #5A4A4A, #3D3434);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    color: var(--pink);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--pink);
    transform: translateX(4px);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

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

/* 滚动渐显 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式适配 (平板/手机) ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        height: 60vh;
        min-height: 400px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-desc {
        font-size: 1rem;
    }

    .banner-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .banner-prev { left: 10px; }
    .banner-next { right: 10px; }

    .section-title {
        font-size: 1.8rem;
    }

    /* 移动端导航变为竖向（如需可加汉堡菜单） */
    .nav-list {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== 图片放大灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

/* 产品图/案例图点击提示 */
.product-img,
.case-img {
    cursor: pointer;
}
