/* 评价区域样式 */
.reviews-section {
    padding: 4rem 2rem;
    background-color: #F5F5F1;
}

.reviews-section .reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-section h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.reviews-header {
    margin-bottom: 2rem;
}

.reviews-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-value {
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-value .stars {
    margin-left: 1rem;
    font-size: 1.2rem;
    color: #d4af37;
}

.based-on {
    font-size: 0.9rem;
    color: #666;
}

.recommend-rate {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.review-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.review-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
}

.review-tab.active {
    border-bottom: 2px solid #000;
}

.review-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filters-btn, .write-review-btn {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.filters-btn i, .write-review-btn i {
    margin-right: 0.5rem;
}

.sort-reviews {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.sort-label {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background-color: #fff;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hidden-review {
    display: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    margin-bottom: 0.75rem;
}

.stars {
    color: #d4af37;
}

.review-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.review-content {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-recommend {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-recommend i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

.review-recommend i.fa-times-circle {
    color: #F44336;
}

.review-helpful {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.helpful-actions {
    display: flex;
    gap: 1rem;
}

.helpful-btn {
    color: #666;
    text-decoration: none;
}

.helpful-btn:hover {
    color: #000;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.show-more-btn {
    padding: 0.75rem 2rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.show-more-btn:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .reviews-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recommend-rate {
        margin-top: 1rem;
    }
    
    .review-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-btn, .write-review-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 产品页面样式 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 1rem;
    padding: 0 2rem;
}

.product-gallery {
    position: sticky;
    top: 2rem;
    max-width: 450px;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    max-height: 400px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.thumbnail-grid img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail-grid img:hover {
    opacity: 0.8;
}

.product-info {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    order: 1;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: -20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin: 10px 0;
    order: 2;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 15px 0 20px;
    order: 3;
    display: block;
    border: none;
    padding: 0;
}

.price {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 20px 0;
    order: 4;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #555;
    order: 5;
}

.product-meta {
    order: 6;
    margin-top: 20px;
}

.product-benefits,
.product-ingredients,
.product-usage {
    margin-bottom: 1.5rem;
}

.product-benefits h3,
.product-ingredients h3,
.product-usage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.product-benefits ul,
.product-ingredients ul {
    list-style: none;
    padding: 0;
}

.product-benefits li,
.product-ingredients li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-benefits li:before,
.product-ingredients li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.product-usage ol {
    padding-left: 1.2rem;
}

.product-usage li {
    margin-bottom: 0.8rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.add-to-cart-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0 1.5rem;
    height: 36px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background-color: #b8941f;
}

.add-to-cart-btn i {
    font-size: 0.9rem;
}

/* 新的产品页面布局 */
.product-container {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 80px auto 4rem;
    padding: 0 2rem;
}

.product-gallery-column {
    display: flex;
    flex-direction: column;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--color-accent);
    opacity: 1;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.main-image-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-product-image {
    width: 100%;
    max-width: 500px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.main-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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

.product-info-column {
    padding-top: 1rem;
}

.product-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: -20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin: 10px 0;
    order: 1;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 15px 0 20px;
    order: 2;
    display: block;
    border: none;
    padding: 0;
}

.price {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 20px 0;
    order: 3;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #555;
    order: 4;
}

.product-meta {
    order: 5;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.meta-item i {
    color: var(--color-accent);
}

.spec-box {
    border: 1px solid #ddd;
    padding: 5px 15px;
    display: inline-block;
}

/* 产品链接样式 */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
}

.product-link h3 {
    transition: color 0.3s ease;
}

.product-link:hover h3 {
    color: var(--color-accent);
}

/* 产品详情部分 */
.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-section {
    margin-bottom: 4rem;
}

.section-title, .related-products h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title:after, .related-products h2:after {
    display: none;
}

.section-content {
    display: flex;
    gap: 2rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item h3, .effect-image h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.ingredient-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.ingredient-image {
    width: 100%;
    text-align: center;
    height: 450px;
    overflow: hidden;
}

.ingredient-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.texture-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.texture-image {
    border-radius: 5px;
    overflow: hidden;
}

.texture-image img {
    width: 100%;
    height: auto;
    display: block;
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.technology-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.technology-image {
    border-radius: 5px;
    overflow: hidden;
}

.technology-image img {
    width: 100%;
    height: auto;
    display: block;
}

.effect-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.effect-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    text-align: center;
}

.effect-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.effect-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.effect-image:hover img {
    transform: scale(1.1);
}

.effect-image h4 {
    padding: 1rem 1rem 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.effect-image p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.usage-instructions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.usage-steps p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.usage-timing h3, .routine-steps h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.timing-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.routine-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #999;
}

.step-circle.active {
    background-color: #000;
    border-color: #000;
}

@media (max-width: 992px) {
    .effect-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .effect-gallery {
        grid-template-columns: 1fr;
    }
}

/* 产品详情部分样式增强 */
.product-section.highlight-section {
    background-color: rgba(245, 245, 241, 0.8);
    padding: 3rem 0;
    margin: 1rem 0 2rem;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.product-section.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245, 245, 241, 0.8);
    z-index: -1;
}

.product-section.highlight-section .section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-section.highlight-section .section-title {
    color: #333;
    position: relative;
    padding-bottom: 1.5em;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

.product-section.highlight-section .section-title:after {
    display: none;
}

.ingredient-image {
    width: 100%;
    text-align: center;
    height: 450px;
    overflow: hidden;
}

.ingredient-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-content.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .section-content.two-columns {
        grid-template-columns: 1fr;
    }
    
    .text-column {
        padding-right: 0;
    }
    
    .ingredient-image {
        margin-top: 2rem;
    }
}

/* 相关产品部分 */
.related-products {
    background-color: #F5F5F1;
    padding: 3rem 2rem;
}

.related-products h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    height: 3.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .price {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.view-product {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.view-product:hover {
    border-color: var(--color-accent);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 80px 1fr;
    }
    
    .product-info-column {
        grid-column: span 2;
    }
    
    .texture-gallery,
    .effect-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .main-image-column {
        order: -1;
    }
    
    .section-content,
    .two-columns,
    .technology-content {
        grid-template-columns: 1fr;
    }
    
    .texture-gallery,
    .effect-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
