/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: transparent;
    box-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-right: 2rem;
    opacity: 0.95;
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15))
           brightness(1.02);
    transition: all 0.3s ease;
    transform: perspective(1000px)
               translateZ(0);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    font-family: 'Noto Serif SC', serif;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-scrolled .nav-links a {
    color: #333;
    font-weight: 600;
}

/* 滚动时的导航栏样式 */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 产品展示区样式 */
.product-showcase {
    max-width: 100%;
    margin: 0;
    position: relative;
}

.product-slider {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1);
    transition: transform 8s ease;
}

/* 激活状态的幻灯片图片缩放效果 */
.swiper-slide-active img {
    transform: scale(1);
}

/* 添加渐变遮罩，让导航文字更清晰 */
.product-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        transparent 20%,
        transparent 70%,
        rgba(0,0,0,0.01) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* 产品信息区样式 */
.product-info {
    margin: 3rem auto;
    padding: 0 5%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    background: #fff;
    text-align: left;
}

/* 产品标题 */
.product-title {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.4;
}

/* 产品简介 */
.product-brief {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* 价格区域 */
.price-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, #fff, #fafafa);
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    text-align: left;
}

.price {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 3.2rem;
    color: #ff0000;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    letter-spacing: 2px;
    justify-content: flex-start;
}

.price::before {
    content: '¥';
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2.4rem;
    margin-right: 0.3rem;
    font-weight: 400;
    color: #ff0000;
}

.promotion {
    font-family: 'Noto Serif SC', serif;
    color: #666;
    margin-top: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(255,0,0,0.05);
    border-radius: 4px;
    display: inline-block;
    text-align: left;
}

/* 产品参数样式 */
.product-params {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: left;
}

.product-params h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.product-params ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: flex-start;
}

.product-params li {
    font-family: 'Noto Serif SC', serif;
    margin: 0.8rem 0;
    color: #555;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.product-params li span {
    color: #888;
    margin-right: 1rem;
    font-size: 1rem;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 2rem 5%;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 产品详情样式 */
.feature-item {
    margin: 2rem 0;
}

.feature-item ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.feature-item li {
    margin-bottom: 0.5rem;
}

.product-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.product-photos img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 购买选项样式 */
.purchase-options {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.color-select, .quantity-selector {
    margin-bottom: 1.5rem;
}

.color-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.color-btn.active {
    border-color: #ff4400;
    color: #ff4400;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.add-to-cart {
    background: #fff0e6;
    color: #ff4400;
    border: 1px solid #ff4400;
}

.buy-now {
    background: #ff4400;
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-slider {
        height: 400px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-photos {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* 需要添加移动端菜单按钮 */
    }
} 

/* 轮播图内容区域样式 */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    z-index: 2;
    width: 100%;
    padding: 4rem 10% 2rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.12) 50%,
        rgba(0,0,0,0) 100%
    );
    backdrop-filter: blur(1px);
}

/* 移除之前添加的额外效果 */
.slide-content::before,
.slide-content::after {
    display: none;
}

/* 恢复文字样式 */
.slide-content h2 {
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.slide-content p {
    text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
}

/* 轮播图标题 */
.slide-content h2 {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1s forwards;
    color: #fff;
    text-shadow: 2px 2px 25px rgba(0,0,0,0.4),
                 0 0 35px rgba(0,0,0,0.2),
                 1px 1px 2px rgba(0,0,0,0.3);
}

/* 轮播图副标题 */
.slide-content p {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInRight 1s 0.3s forwards;
    max-width: 800px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 20px rgba(0,0,0,0.3),
                 0 0 30px rgba(0,0,0,0.2),
                 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

/* 更新动画效果 */
@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 优化分页器样式 */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.7);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    transform: scale(1.2);
}

/* 滚动时 logo 的样式 */
.nav-scrolled .logo img {
    height: 65px;
    opacity: 1;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1))
            brightness(1);
}

/* logo 悬停效果 */
.logo:hover img {
    transform: perspective(1000px)
               translateZ(10px)
               scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2))
            brightness(1.05);
}

/* 导航链接悬停效果 */
.nav-links a:hover {
    color: #ff4400;
}

/* 滚动后的导航链接悬停效果 */
.nav-scrolled .nav-links a:hover {
    color: #ff4400;
}

/* 可以添加一个下划线动画效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff4400;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 全局字体设置 */
body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏字体 */
.nav-links a {
    font-family: 'Noto Serif SC', serif;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

/* 轮播图标题 */
.slide-content h2 {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1s forwards;
    color: #fff;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

/* 轮播图副标题 */
.slide-content p {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInRight 1s 0.3s forwards;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
}

/* 产品标题 */
.product-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.4rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 价格显示 */
.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
}

/* 各级标题统一风格 */
h1, h2, h3 {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 按钮文字 */
button {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* 顾客评价区样式 */
.review-item {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.reviewer-name {
    color: #666;
    margin-right: 1rem;
}

.review-stars {
    color: #ff4400;
}

.review-content {
    color: #333;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.review-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 内容区域通用样式 */
.product-info,
.product-details,
.customer-reviews,
.purchase-guide,
.related-products,
.purchase-options {
    margin: 3rem auto;
    padding: 0 5%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    background: #fff;
    text-align: left;
}

/* 各区域的标题统一样式 */
.product-details h2,
.customer-reviews h2,
.purchase-guide h2,
.related-products h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 内容区域的段落统一样式 */
.product-details p,
.customer-reviews p,
.purchase-guide p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 列表样式统一 */
.feature-item ul,
.product-params ul {
    padding-left: 0;
    list-style: none;
}

.feature-item li,
.product-params li {
    margin: 0.8rem 0;
    color: #555;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* 产品特点序号样式 */
.feature-number {
    color: #ff4400;
    font-size: 1.2rem;
    margin-right: 1rem;
    position: relative;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    align-self: center;
    margin-top: 10px;
}

.feature-item li {
    display: flex;
    align-items: flex-start;
    margin: 1.2rem 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    padding-left: 0.5rem;
}

/* 购买指南样式 */
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.guide-images {
    display: flex;
    gap: 1.5rem;
}

.guide-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-image:hover img {
    transform: scale(1.05);
}

.guide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

.guide-text {
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
}

.guide-text h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
}

.guide-text ul {
    list-style: none;
}

.guide-text li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.guide-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #ff4400;
    border-radius: 50%;
}

/* 相关推荐样式 */
.product-card {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:not(.brand-logo)::after {
    content: '更多好物';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 3px;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-card:not(.brand-logo):hover::after {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 中间的品牌logo卡片特殊样式 */
.brand-logo {
    background: linear-gradient(145deg, #fff, #f8f8f8);
}

.brand-logo img {
    padding: 2rem;
    object-fit: contain;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-card:not(.brand-logo)::after {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

/* 相关推荐九宫格样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3x3 网格 */
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* 品牌故事弹窗样式 */
.brand-story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.brand-story {
    padding: 1rem 0;
}

.story-item {
    margin-bottom: 2rem;
}

.story-item h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.story-item p {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 添加动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: modalFadeIn 0.4s ease-out;
}

/* 联系方式弹窗样式 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.contact-info {
    text-align: center;
    padding: 1rem 0;
}

.contact-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.contact-item .phone {
    font-size: 2rem;
    color: #ff4400;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-item .email {
    font-size: 1.6rem;
    color: #333;
    letter-spacing: 1px;
}
 