/* ==================== 曲蔻官网样式 ==================== */

/* ============================================
           曲蔻 (Qu Kou) 品牌变量系统
============================================ */
:root {
    --primary-color: #026344; /* 主色调：曲蔻品牌绿 */
    --primary-dark: #a68b4b; /* 金色 */
    --primary-light: #e8d9b5; /* 主色浅色：hover状态 */
    --text-dark: #333333;
    --text-gray: #666666; /* 辅助文本 */
    --text-light: #999999; /* 次要文本 */
    --text-red: #ff0000;
    --bg-white: #ffffff;
    --bg-light: #faf8f5; /* 页面背景色 */
    --bg-gray: #f5f5f5;
    --bg-dark: #000000;
    --border-color: #e5e5e5;
    --border-gray: #2a2a2a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", serif;
    --transition: all 0.3s ease;           /* 统一过渡动画 */
    --border-radius: 10px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

		
/* ==================== 页面预加载 Loading ==================== */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 纯白色背景，可自行改色 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* 最高层级，覆盖所有内容 */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
/* 加载完成后隐藏 */
.page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 禁止点击穿透 */
}

.preloader-inner {
    text-align: center;
}
/* Logo 样式 */
.preloader-logo {
    width: 120px;
    height: 90px;
    margin: 0 auto 25px;
}
/* 旋转加载图标（纯CSS，无需图标库） */
.preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color); /* 主色调旋转条 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* 加载文字 */
.preloader-text {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 1px;
}
/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航 ==================== */
.site-header {
    background: var(--primary-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-inner img {
	width:180px; height:135px;
}

.logo {
    display: block;
    width: 180px;
    height: 135px;
    background: url(https://www.qukoucm.com/static/images/logo.jpg) left top no-repeat;
    background-size: 180px 135px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 15px;
    color: var(--bg-white);
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-light);
	font-weight:bold;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions a {
	color: var(--primary-light);
	font-weight: bold;
	font-style: italic;
}

.header-actions a i {
	font-size:21px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-light);
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
}

/* ==================== Banner轮播 ==================== */
/* 轮播整体容器 */
.banner {
	position: relative;
	width: 100%;
	height: 485px;
	min-height: 300px;
	overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* 隐藏非激活项，防止遮挡 */
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.banner-slide .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
    padding: 0 20px;
    top: 80%;
    transform: translateY(-50%);
}

.banner-slide h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.banner-slide p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 15px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

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

.banner-dot.active {
    background-color: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* 移动端箭头样式 */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.banner-nav-prev {
    left: 15px;
}

.banner-nav-next {
    right: 15px;
}

.banner:hover .banner-nav-btn {
    opacity: 1;
}

/* ==================== 通用区块标题 ==================== */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 15px;
	text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .line {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 16px auto 0;
}

/* ==================== 产品网格 ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    background-color: var(--primary-light);
    color: var(--text-dark);
    font-size: 12px;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-info .product-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-info .product-price {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info .product-price .original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* ==================== 品牌优势 ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
	background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-icon i {
    color: #ffffff;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 文章列表 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.news-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* 卡片样式 */
.comment-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comment-card.visible {
    transform: translateY(0);
    opacity: 1;          /* ✅ 显示 */
}

.comment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 顶部品牌色高光线 */
.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

        .comment-card:hover::before {
            transform: scaleX(1);
        }

        /* 头部：头像 + 昵称 + 评分 + 标签 */
        .comment-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            margin-right: 12px;
            flex-shrink: 0;
            object-fit: cover;
            border: 2px solid transparent;
            background: linear-gradient(white, white) padding-box,
                        linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
        }

        .user-info {
            flex: 1;
        }

        .username {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 4px;
            color: var(--text-dark);
            font-family: var(--font-serif);
        }

        /* 评分样式 */
        .score {
            font-size: 13px;
            color: var(--text-gray);
            margin-bottom: 8px;
        }

        .score span {
            color: var(--primary-dark); /* 使用金色高亮分数 */
            font-weight: bold;
            font-size: 14px;
        }

        /* 标签样式 */
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            padding: 2px 10px;
            font-size: 12px;
            border-radius: 20px;
            background: rgba(2, 99, 68, 0.08); /* 品牌绿透明背景 */
            color: var(--primary-color);
            border: 1px solid rgba(2, 99, 68, 0.2);
            transition: var(--transition);
            cursor: default;
        }

        .tag:hover {
            background: var(--primary-color);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(2, 99, 68, 0.2);
        }

        /* 评论内容 */
        .comment-content {
            font-size: 14px;
            color: var(--text-gray);
            margin-bottom: 16px;
            line-height: 1.8;
            word-wrap: break-word;
        }

        /* 图片缩略图区域 */
        .comment-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 12px;
        }

        .comment-images img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }

        .comment-images img:hover {
            transform: scale(1.05);
            border-color: var(--primary-color);
        }

        .comment-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px dashed var(--border-color);
            font-size: 12px;
            color: var(--text-light);
        }
		
/* ==================== 页脚 ==================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    padding: 60px 0 40px;
    font-family: "Microsoft YaHei", sans-serif;
}

.footer-inner {
    margin-bottom: 40px;
    text-align: center;
}

/* 品牌介绍模块 */
.footer-brand .brand-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer-brand .brand-name span {
    font-size: 20px;
    margin-left: 10px;
    font-weight: 400;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition);
    text-decoration: none;
    font-size: 16px;
}

.social-links a:hover {
    border-color: var(--primary-light);
    background-color: var(--primary-color);
    color: var(--text-gray);
    transform: translateY(-2px);
}

/* 底部版权栏 */
.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-bottom a {
    color: var(--text-gray);
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ==================== 友情链接板块（最底部） ==================== */
.friend-links {
    border-top: 1px solid var(--border-gray);
    padding-top: 30px;
    text-align: center;
}

.friend-links h4 {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    justify-content: center;
}

.links-list a {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.links-list a:hover {
    color: var(--primary-light);
}

/* ==================== 返回顶部样式 ==================== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 80px;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  /* 阴影与层级 */
  box-shadow: 0 4px 12px rgba(2, 99, 68, 0.3);
  z-index: 9999;
  /* 动画效果 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* hover悬浮效果 */
.back-to-top:hover {
  background-color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(2, 99, 68, 0.4);
}

/* 显示状态 */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================== 页面标题 ==================== */
.page-header {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 15px;
	text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 产品列表页 ==================== */
.product-list-page {
    padding: 60px 0;
}

.product-list-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    font-weight: 500;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.category-list a:hover,
.category-list a.active {
    color: var(--primary-color);
}

.category-list .count {
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* ==================== 产品详情页 ==================== */
.product-detail-page {
    padding: 60px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery .main-image {
    aspect-ratio: 1;
    background-color: var(--bg-light);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    aspect-ratio: 1;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--bg-light);
    transition: border-color 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-summary .subtitle {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.product-summary .price {
    padding: 20px;
    background-color: var(--bg-light);
    margin-bottom: 25px;
}

.product-summary .price .current-price {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 600;
}

.product-summary .price .original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 15px;
}

.product-meta {
    margin-bottom: 25px;
}

.product-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.product-meta .meta-label {
    width: 120px;
    color: var(--text-gray);
    font-size: 14px;
}

.product-meta .meta-value {
    flex: 1;
}

.spec-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-option {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.spec-option:hover,
.spec-option.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.quantity-selector button:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

.product-actions {
    margin-top: 30px;
}

.product-actions .btn-primary {
	background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
	border-radius: 30px;
    text-align: center;
    padding: 16px 32px;
    font-size: 16px;
}

.product-tabs {
    border-top: 1px solid var(--border-color);
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.tab-nav a {
    padding: 18px 40px;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.tab-nav a:hover,
.tab-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.tab-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.tab-content p a {
    color: var(--primary-color);
}

.tab-content ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none; /* 不用浏览器默认圆点 */
}

.tab-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.tab-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.tab-content ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    counter-reset: tab-ol;
}

.tab-content ol li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
    counter-increment: tab-ol;
}

.tab-content ol li::before {
    content: counter(tab-ol) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* 标签页内容默认隐藏，仅激活的显示 */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

/* 评价列表页面独立样式 */
.review-main-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
}
.review-list-wrap { width: 100%; }
.review-empty-tip {
    text-align: center;
    padding: 60px 0;
    color: var(--text-gray);
    font-size: 16px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
.review-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
    opacity: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    visibility: visible;
}
.review-card.visible {
    transform: translateY(0);
    opacity: 1;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.review-card:hover::before { transform: scaleX(1); }
.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.review-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,var(--primary-color),var(--primary-dark)) border-box;
}
.review-user-info { flex: 1; }
.review-username {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-family: var(--font-serif);
}
.review-score {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.review-score span {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 14px;
}
.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.review-tag {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 20px;
    background: rgba(2, 99, 68, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(2,99,68,0.2);
    transition: var(--transition);
    cursor: default;
}
.review-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2,99,68,0.2);
}
.review-content {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
    word-wrap: break-word;
}
.review-content a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}
.review-content a:hover { color: var(--primary-color); }
.review-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.review-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.review-images img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}

/* 右侧边栏 */
.review-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.review-sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
}
.review-sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    font-weight: 500;
}
.review-popular-product {
    list-style: none;
    padding: 0; margin: 0;
}
.review-popular-product li {
    position: relative;
    padding: 12px 0 12px 35px;
    border-bottom: 1px dashed var(--border-color);
}
.review-popular-product li:last-child { border-bottom: none; }
.review-rank-num {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}
.review-rank-num.rank-1 {
    background-color: #e10602;
    color: #ffffff;
}
.review-rank-num.rank-2 {
    background-color: #f60;
    color: #ffffff;
}
.review-rank-num.rank-3 {
    background-color: #fcc;
    color: #333;
}
.review-rank-num.rank-4,
.review-rank-num.rank-5 {
    background-color: #999;
    color: #ffffff;
}
.review-popular-product li a {
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
	transition: var(--transition);
}
.review-popular-product li a:hover { padding-left: 10px; color: var(--primary-color); }

        /* ========== 评论详情主体 ========== */
        .dp-detail-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        .dp-detail-layout {
            display: flex;
            gap: 40px;
            margin-bottom: 60px;
        }

        /* 左侧：图片区域 */
        .dp-detail-images {
            flex: 0 0 480px;
            position: sticky;
            top: 20px;
            align-self: flex-start;
        }

        .dp-main-image {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: var(--border-radius);
            margin-bottom: 12px;
            background: var(--bg-gray);
            transition: opacity 0.3s ease;
        }

        .dp-thumb-list {
            display: flex;
            gap: 10px;
        }

        .dp-thumb-list .dp-thumb {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            background: var(--bg-gray);
            opacity: 0.7;
        }

        .dp-thumb-list .dp-thumb:hover,
        .dp-thumb-list .dp-thumb.dp-active {
            border-color: var(--primary-color);
            opacity: 1;
        }

        /* 右侧：评论信息 */
        .dp-detail-info {
            flex: 1;
            min-width: 0;
        }

        /* 用户信息行 */
        .dp-detail-user {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .dp-detail-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 14px;
            border: 2px solid transparent;
            background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                        linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
        }

        .dp-detail-user-info {
            flex: 1;
        }

        .dp-detail-username {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .dp-detail-username span {
			font-size: 14px;
			margin-left: 10px;
			color: var(--primary-dark);
			font-weight: 600;
		}
		
        .dp-detail-meta {
            font-size: 13px;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dp-detail-meta .dp-meta-divider {
            color: var(--border-color);
        }

        /* 评分 */
        .dp-detail-rating {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .dp-detail-rating .dp-stars {
            color: var(--primary-dark);
            font-size: 18px;
            letter-spacing: 3px;
            margin-right: 10px;
        }

        .dp-detail-rating .dp-score {
            font-size: 14px;
            color: var(--primary-dark);
            font-weight: 600;
        }

        /* 标签 */
        .dp-detail-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }

        .dp-detail-tags .dp-tag {
            display: inline-block;
            padding: 4px 14px;
            background: rgba(2, 99, 68, 0.08);
            color: var(--primary-color);
            font-size: 12px;
            border-radius: 20px;
            border: 1px solid rgba(2, 99, 68, 0.2);
            transition: var(--transition);
        }

        .dp-detail-tags .dp-tag:hover {
            background: var(--primary-color);
            color: var(--bg-white);
            transform: translateY(-1px);
        }

        /* 评论正文 */
        .dp-detail-content {
            font-size: 15px;
            color: var(--text-gray);
            line-height: 2;
            margin-bottom: 30px;
        }

        /* 互动栏 */
        .dp-detail-actions {
            display: flex;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }

        .dp-detail-actions .dp-read-count {
            font-size: 14px;
            color: var(--text-light);
        }

        /* ========== TA购买的产品 ========== */
        .dp-related-section {
            margin-top: 40px;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .dp-related-section.dp-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .dp-related-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 24px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--primary-color);
            display: inline-block;
            font-family: var(--font-serif);
            letter-spacing: 1px;
        }

        .dp-product-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            max-width: 280px;
        }

        .dp-product-card {
            background: var(--bg-white);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            position: relative;
            border: 1px solid var(--border-color);
        }

        .dp-product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(2, 99, 68, 0.12);
            border-color: var(--primary-color);
        }

        .dp-product-img-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            overflow: hidden;
            background: var(--bg-gray);
        }

        .dp-product-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

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

        /* 查看更多 - 默认隐藏，hover显示 */
        .dp-product-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 12px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            text-align: center;
        }

        .dp-product-card:hover .dp-product-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .dp-product-overlay .dp-btn-more {
            display: inline-block;
            padding: 6px 20px;
            background: var(--primary-color);
            color: var(--bg-white);
            font-size: 12px;
            border-radius: 20px;
            transition: var(--transition);
            cursor: pointer;
            letter-spacing: 1px;
        }

        .dp-product-overlay .dp-btn-more:hover {
            background: #014d34;
        }

        .dp-product-info {
            padding: 14px 12px;
        }

        .dp-product-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dp-product-subtitle {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 两端对齐核心 */
        .dp-product-price-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
        }

        .dp-product-price {
            font-size: 18px;
            color: var(--primary-dark);
        }

        .dp-product-price-row  span {
            font-size: 12px;
            color: var(--text-light);
        }



        /* ========== 滚动入场动画 ========== */
        .dp-fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .dp-fade-in-up.dp-visible {
            opacity: 1;
            transform: translateY(0);
        }
		
/* ==================== 文章列表页 ==================== */
.news-list-page {
    padding: 60px 0;
}

.news-list-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.class-sort {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
}

.class-sort h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    font-weight: 500;
}

.class-sort-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.class-sort-content a {
    padding: 6px 14px;
    background-color: var(--bg-light);
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.class-sort-content a:hover,.class-sort-content .current {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.news-list-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-item-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
}

.news-item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-item-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.news-item-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 侧边热门文章 */
.popular-news li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 8px;
}
.popular-news li:last-child {
    border-bottom: none;
}
.popular-news .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}
.popular-news .rank-1 {
    background-color: #e10602;
    color: #ffffff;
}
.popular-news .rank-2 {
    background-color: #f60;
    color: #ffffff;
}
.popular-news .rank-3 {
    background-color: #fcc;
    color: #333;
}
.popular-news .rank-4,
.popular-news .rank-5 {
    background-color: #999;
    color: #ffffff;
}
.popular-news a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.5;
	transition: var(--transition);
}

.popular-news a:hover {
    padding-left: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    padding: 6px 14px;
    background-color: var(--bg-light);
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ==================== 文章详情页 ==================== */
.news-detail-page {
    padding: 60px 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-gray);
}

.article-summary {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 6px 6px 0;
}
.article-summary h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-summary h3 i {
    color: var(--primary-color);
    font-size: 16px;
}
.article-summary p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.reading-time {
    text-align: center;
    margin: 15px 0 25px;
    font-size: 14px;
    color: var(--text-gray);
}
.reading-time span {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-gray);
    border-radius: 20px;
}
.reading-time i {
    color: var(--primary-color);
    margin-right: 6px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: bold;
    text-align: center;
}

.article-content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    font-weight: bold;
    color: var(--primary-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0 0;
}

.article-content p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content blockquote {
    padding: 20px 30px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    margin: 20px 0;
    font-style: italic;
    color: var(--text-gray);
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none; /* 不用浏览器默认圆点 */
}

.article-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.article-content ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    counter-reset: tab-ol;
}

.article-content ol li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
    counter-increment: tab-ol;
}

.article-content ol li::before {
    content: counter(tab-ol) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.article-content table {
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  width: 100%;
  table-layout: fixed;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-content table th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 10px 8px;
  border: 1px solid var(--primary-color);
  white-space: normal;
  text-align: left;
  min-width: 0;
}

.article-content table td {
  padding: 10px 8px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
  background: transparent;
  min-width: 0;
  /* 文字自动换行核心两行 */
  white-space: normal;
  word-break: break-all;
}

.article-content table tbody tr:nth-child(even) {
  background-color: var(--bg-light);
}

.article-content table tbody tr:hover {
  background-color: var(--primary-light) !important;
  transition: var(--transition);
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags .label {
    font-size: 14px;
    color: var(--text-gray);
}

.article-tags a {
    padding: 5px 12px;
    background-color: var(--bg-light);
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-prev,
.nav-next {
    padding: 20px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: var(--primary-light);
}

.nav-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

    /* 相关文章样式 */
    .related-articles {
        margin-top: 50px;
        padding-top: 30px;
        border-top: 1px solid var(--border-color);
    }
    
    .related-articles h3 {
        font-family: var(--font-serif);
        font-size: 22px;
        margin-bottom: 25px;
        text-align: center;
        letter-spacing: 1px;
        color: var(--text-dark);
    }
    
    .related-articles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .related-article-card {
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        transition: var(--transition);
        overflow: hidden;
    }
    
    .related-article-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
    }
    
    .related-article-img {
        aspect-ratio: 16/9;
        overflow: hidden;
    }
    
    .related-article-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .related-article-card:hover .related-article-img img {
        transform: scale(1.05);
    }
    
    .related-article-content {
        padding: 15px;
    }
    
    .related-article-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.4;
        font-weight: 500;
    }
    
    .related-article-title a {
        color: var(--text-dark);
        transition: var(--transition);
    }
    
    .related-article-title a:hover {
        color: var(--primary-color);
    }
    
    .related-article-excerpt {
        font-size: 13px;
        color: var(--text-gray);
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 正文内推荐产品模块样式 */
    .article-recommend {
        margin: 40px 0;
        padding: 25px;
        background-color: var(--bg-light);
        border-radius: 6px;
        text-align: center;
    }
    .article-recommend h3 {
        font-size: 18px;
        color: var(--text-dark);
        margin-bottom: 15px;
    }
    .article-recommend img {
        max-width: 200px;
        margin: 0 auto 10px;
    }
    .article-recommend h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .article-recommend .price {
        color: #c9a96e;
        font-weight: bold;
        margin-bottom: 10px;
    }

/* ==================== 品牌介绍页 ==================== */
.about-page {
    padding: 60px 0;
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-hero h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}
.about-hero h2 {
	font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-hero p {
	text-align:left;
    font-size: 17px;
    color: var(--text-gray);
    line-height: 2;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-video {
    width: 550px;
    height: 318px;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
		
.about-image {
    aspect-ratio: 4/3;
    background-color: var(--bg-light);
    overflow: hidden;
}

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

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-text p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 15px;
}

.timeline-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-white);
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-year {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.timeline-content p a {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: underline;
}

.values-section {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.value-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-info-section {
    background-color: var(--bg-white);
}

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

.contact-info-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-light);
}

.contact-info-item .icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 留言表单 */
.form-container {
    background: var(--bg-light);
    padding: 40px 100px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin: 50px auto;
}

.form-title {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
	font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 2px;
}

.form-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

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

.required {
    color: var(--text-red);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
    background: var(--bg-white);
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.checkbox-item input {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--primary-light);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#statusMessage {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.success{
	color:var(--primary-color);
	font-weight:bold;
	padding:10px;
	display:block;
	text-align:center;
}
.error{
	color:var(--text-red);
	font-weight:bold;
	padding:10px;
	display:block;
	text-align:center;
}

/* ==================== 404页面 ==================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 500;
}

.error-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

            .dp-detail-layout {
                flex-direction: column;
            }

            .dp-detail-images {
                flex: none;
                width: 100%;
                position: static;
            }

            .dp-product-grid {
                grid-template-columns: repeat(2, 1fr);
            }
			
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .product-list-layout {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-list-layout,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-section.reverse {
        direction: ltr;
    }

    .about-video {
		width: 100%;
		height: auto;
  }
    .about-video video {
		width: 100%;
		height: auto;
  }
  
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 90px;
        height: 68px;
    }
	
    .preloader-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
	
    .header-inner {
    height: 80px;
	}

    .header-inner img { margin:0 0 0 -50px;}

    .logo {
    margin:0 0 0 -50px;
	}
	
    .main-nav {
        display: none;
		}
	
    .main-nav a {
    font-size: 18px;
	}
	
    .mobile-menu-btn {
        display: block;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .banner-nav-btn {
        opacity: 1;
        width: 35px;
        height: 35px;
    }
    .banner {
        height: 185px;
		min-height: 180px;
    }
    
    .slide-content h2 {
        font-size: 32px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

   /* 移动端始终显示箭头 */
    .banner-nav-btn {
        opacity: 1;
        width: 35px;
        height: 35px;
    }
    
    .slide-content {
        padding: 0 15px; /* 移动端增加内边距 */
    }
    
    .slide-content h2 {
        font-size: 24px; /* 移动端标题字号优化 */
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px; /* 移动端描述字号优化 */
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 5px 15px; /* 移动端按钮优化 */
        font-size: 14px;
    }
    
    /* 移动端圆点缩小 */
    .banner-dot {
        width: 12px;
    }
    
    .banner-dot.active {
        width: 20px;
    }

    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }

    .about-video {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        overflow: hidden;
    }

    .about-video video {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: contain;
    }

    .about-text {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
  
    .about-section {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }
  
    .about-text .btn-outline {
        width: 100%;
        display: block;
        text-align: center;
    }
  
    .video-box {
        width: 95vw;    /* 占可视宽度95%，留边距 */
        height: auto;   /* 高度跟随比例自动变化 */
    }
			
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr); /* 一行2列 */
        gap: 20px;
    }
    .feature-item {
        padding: 0 10px 20px 10px;
    }
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    .feature-item h3 {
        font-size: 16px;
    }
    .feature-item p {
        font-size: 13px;
    }

    .review-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .review-sidebar {
        position: static;
        order: 2;
    }
    .review-list-wrap { order: 1; }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .review-images {
        grid-template-columns: repeat(2, 1fr);
    }
	
    .comments-grid {
        grid-template-columns: 1fr;
    }
            
    .comment-images {
        grid-template-columns: repeat(2, 1fr);
    }
            
    .comment-card {
        padding: 20px;
    }

            .dp-detail-images {
                flex: none;
            }

            .dp-main-image {
                aspect-ratio: 4/3;
            }

            .dp-thumb-list .dp-thumb {
                width: 60px;
                height: 60px;
            }

            .dp-product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .dp-detail-username {
                font-size: 16px;
            }
			
            .dp-detail-username span {
				margin-left: 8px;
            }

            .dp-nav-links {
                display: none;
            }
			
    .news-grid {
        grid-template-columns: 1fr;
    }
    
  .news-list-layout {
    grid-template-columns: 1fr;
  }

  .popular-news li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
  }

  .popular-news .rank-num {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .popular-news a {
    flex: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
  }
	
  .sidebar {
    position: static;
    margin-top: 30px;
  }
	
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-list-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-content {
        padding: 0 20px 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkbox-group {
        gap: 10px;
    }

    .checkbox-item {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .article-header h1 {
    font-size: 25px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
        
    .related-articles h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
        
    .related-article-content {
        padding: 12px;
    }
        
    .related-article-title {
        font-size: 15px;
    }

    .article-recommend {
        padding: 20px;
    }
		
    .error-code {
        font-size: 80px;
    }
    
    .page-header {
    padding: 30px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }
    
    .tab-nav a {
        padding: 15px 20px;
        font-size: 14px;
    }
	
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-brand .brand-name {
        font-size: 24px;
    }

    .footer-brand .brand-name span {
        font-size: 18px;
    }

    .footer-brand p {
        font-size: 14px;
        padding: 0 15px;
    }

    .footer-bottom {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .friend-links {
        padding-top: 25px;
    }

    .links-list {
        gap: 15px 20px;
    }
	
    .back-to-top {
        right: 20px;
		bottom: 60px;
		width: 40px;
		height: 40px;
		font-size: 16px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    .comments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 200px;
    }
    .slide-content h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    .slide-content p {
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 13px;
    }
    
    .banner-nav-btn {
        width: 30px;
        height: 30px;
    }
	
    .features {
        gap: 15px;
    }
}
