:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #c0a080;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo h1 {
    color: var(--light-text);
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

nav {
    min-width: 100px;
    /* 保持导航栏的最小宽度，维持布局平衡 */
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.trademark {
    height: 30px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 产品轮播 */
.product-slider {
    position: relative;
    overflow: hidden;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.product-slider:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    animation: none;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.slide h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* 添加产品按钮容器样式 */
.product-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.price {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.price a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 1.5;
}

.price a:hover {
    color: #fff;
    background-color: var(--accent-color);
    text-decoration: none;
}

/* 品牌故事 */
.brand-story {
    padding: 2rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-story h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.brand-story p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.brand-story p:last-child {
    margin-bottom: 2rem;
}

/* 视频容器 */
.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.video {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.video video {
    width: 100%;
    height: auto;
}

.video h3 {
    padding: 1rem;
    color: var(--light-text);
    text-align: center;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }
}

/* 防止图片和视频被下载的样式 */
.slide img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* 视频元素保护 */
.video video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 禁用右键菜单 */
.product-slider {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 视频容器允许交互 */
.video-container {
    pointer-events: auto;
}

.video {
    pointer-events: auto;
}

.icp {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icp a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.icp a:hover {
    opacity: 1;
}

/* 微信二维码弹窗样式 */
.wechat-popup,
.douyin-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-content img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.close-popup {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.close-popup:hover {
    color: var(--accent-color);
}

.popup-content p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
}

.service-wechat {
    margin-top: 0.5rem;
}

.service-wechat-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-wechat-link:hover {
    color: #a67c52;
    text-decoration: underline;
}

/* 官方售后微信弹窗样式 */
.service-wechat-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-link {
    margin: 0;
}

.video-link a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 1.5;
}

.video-link a:hover {
    color: #fff;
    background-color: var(--accent-color);
    text-decoration: none;
}

/* 视频弹窗样式 */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-popup .popup-content {
    max-width: 800px;
    width: 90%;
    position: relative;
}

.video-popup video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 产品故事页面的额外样式 */
.product-stories .product-slider {
    height: 300px;
}

.product-stories .slide {
    height: 300px;
}

.product-stories .slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
}

.product-stories .slider-container {
    height: 100%;
}

@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
}

.product-stories .slider-container {
    transition: transform 0.5s ease-in-out;
}

.product-stories .product-slider .slider-arrow {
    z-index: 100;
}