/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #333;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 64px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.1);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
}

.nav-links li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

.nav-links li a:hover {
    color: #f02c8e;
}

.lang-btn {
    background: none;
    border: 1px solid #333;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #333;
    color: #fff;
}

/* Hero部分 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-video.loaded {
    opacity: 1;
}

/* 添加遮罩层使文字更清晰 */
/* .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);  
    z-index: -1;
} */

.hero-content {
    position: relative;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 .studio-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #f02c8e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #f02c8e;
}

/* 关于我们 */
.about {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;  /* 增加间距补偿移除背景后的视觉效果 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-item {
    padding: 1rem;  /* 减小内边距 */
}

.about-text p {
    text-align: justify;
    text-justify: inter-ideograph;
    margin-bottom: 0;
}

/* 产品展示 */
.products {
    padding: 5rem 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    display: block;  /* 使整个卡片可点击 */
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: #f02c8e;
    font-weight: 500;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.learn-more i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.product-card:hover .learn-more {
    opacity: 1;
    transform: translateX(0);
}

.product-card:hover .learn-more i {
    transform: translateX(5px);
}

.product-card:hover h3 {
    color: #f02c8e;
}

/* 联系我们 */
.contact {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.contact-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .map {
    flex: 1;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* 仅显示logo的链接样式 */
.social-links a.logo-only {
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;  /* 确保与其他按钮高度一致 */
    min-width: 100px;  /* 与其他按钮保持一致的宽度 */
    border: 1px solid #ff2442;  /* 添加边框 */
    border-radius: 30px;  /* 与其他按钮保持一致的圆角 */
    background-color:#ff2442;  /* 背景色 */
    transition: all 0.3s ease;
}

.social-links a.logo-only:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #ff2442;
}

.social-links .platform-logo-only {
    height: 32px;  /* 调整为与普通按钮文本高度一致 */
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

/* .social-links a.logo-only:hover .platform-logo-only {
    filter: brightness(2.5); 
} */

/* 平台logo样式 */
.social-links .platform-logo {
    height: 20px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* 统一社交媒体按钮宽度 */
.social-links a.douyin,
.social-links a.bilibili,
.social-links a.bambu {
    min-width: 100px;  /* 设置最小宽度确保一致性 */
    justify-content: center;  /* 内容居中 */
    text-align: center;  /* 文本居中 */
}

/* 社交媒体平台特定样式 */
.social-links a.xiaohongshu {
    background-color: #ffffff;
    color: #ff2442;
    border-color: #ff2442;
    background-image: url('/image/logos/xiaohongshu.png');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 10px center;
    padding-left: 40px;  /* 为图标留出空间 */
}

.social-links a.xiaohongshu:hover {
    background-color: #ff2442;
    color: white;
}

.social-links a.douyin {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

.social-links a.douyin:hover {
    background-color: #000000;
    color: white;
}

.social-links a.bilibili {
    background-color: #ffffff;
    color: #00a1d6;
    border-color: #00a1d6;
}

.social-links a.bilibili:hover {
    background-color: #00a1d6;
    color: white;
}

.social-links a.bambu {
    background-color: #ffffff;
    color: #ff7300;
    border-color: #ff7300;
}

.social-links a.bambu:hover {
    background-color: #ff7300;
    color: white;
}

/* 抖音按钮特定样式 */
.social-links a.douyin-button {
    width: 36px;
    height: 36px;
    overflow: hidden;
    padding: 0;
    border-radius: 6px;
}

.social-links .douyin-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.footer-info span, 
.footer-info .beian a {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    color: #999;
    font-size: 0.9rem;
}

.footer-info .separator {
    color: #999;
}

.beian a {
    text-decoration: none;
}

.footer-info span:hover,
.footer-info .beian a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 平板尺寸 */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* 手机尺寸 */
    /* 导航栏调整 */
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-right {
        flex-grow: 1;  /* 让右侧区域占据剩余空间 */
        justify-content: flex-end;  /* 将内容靠右对齐 */
    }

    .nav-links {
        gap: 0.3rem;  /* 减小间距 */
    }

    .nav-links li a {
        padding: 0.3rem 0.5rem;  /* 减小内边距 */
        font-size: 0.85rem;  /* 稍微减小字体 */
    }

    .lang-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
        margin-left: 0.3rem;  /* 添加左边距 */
    }

    .logo a {
        font-size: 1.1rem;  /* 稍微减小logo字体 */
    }

    .logo-image {
        height: 24px;  /* 移动端稍微减小图片尺寸 */
    }

    /* Hero 区域调整 */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }

    /* 产品卡片调整 */
    .product-grid {
        grid-template-columns: 1fr;  /* 单列显示 */
        padding: 0 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    /* 关于我们部分调整 */
    .about {
        padding: 3rem 1rem;
    }

    .about-content {
        gap: 2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* 页脚调整 */
    .footer-info {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-info .separator {
        display: none;
    }

    .social-links {
        margin-top: 1rem;
    }

    .social-links a {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }

    .slider-btn {
        display: none;
    }

    .nav-right {
        gap: 1rem;
    }

    .learn-more {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .nav-links li a {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .lang-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 加载状态样式 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f02c8e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态和错误状态 */
.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state i,
.error-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3,
.error-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

.error-state .btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #f02c8e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.error-state .btn:hover {
    background: #d0257a;
}

/* 各部分标题 */
h2 {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* 段落文字 */
p {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

/* 添加图片轮播相关样式 */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.slider-container img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* 添加加载状态样式 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

.product-video {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.product-video video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.order-button-container {
    margin: 30px 0;
}

.order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #f02c8e;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    background-color: #f02c8e;
}

.order-button:active {
    transform: translateY(0);
}

.order-button i {
    margin-right: 12px;
    font-size: 1.1em;
}

.product-images {
    width: 100%;  /* 占满容器宽度 */
    margin: 40px auto;
    padding: 0;   /* 移除内边距 */
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-images img {
    width: 100%;
    display: block;
}

/* 确保产品详情和图片展示区域宽度一致 */
.product-detail,
.product-images {
    max-width: 1200px;  /* 与产品详情部分相同的最大宽度 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.description p {
    text-align: justify;
    line-height: 1.8;  /* 增加行高使文字更易读 */
    margin: 1em 0;
    text-justify: inter-word;  /* 确保词间距均匀 */
}

/* 图片按钮样式 */
.social-links a.image-button {
    min-width: 100px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a.image-button .platform-image {
    width: 70%;
    height: 70%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 抖音按钮样式 */
.social-links a.douyin.image-button {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.social-links a.douyin.image-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* B站按钮样式 */
.social-links a.bilibili.image-button {
    background-color: #f3f7f8;
    color: #ffffff;
    border-color: #00a1d6;
}

.social-links a.bilibili.image-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Bambu按钮样式 */
.social-links a.bambu.image-button {
    background-color: #ebebeb;
    color: #ffffff;
    border-color: #20af20;
}

.social-links a.bambu.image-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Bambu按钮图片特定大小 */
.social-links a.bambu.image-button .platform-image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} 