/*产品详情 start*/
/* 移动端统计数据恢复提示 */
.stats-restore-tooltip {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 98;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.stats-restore-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stats-restore-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 0.9rem;
    color: #777;
    margin-top: calc(var(--stats-height) + 20px);
    transition: margin-top 0.4s ease;
}

.stats-hidden .breadcrumb {
    margin-top: 38px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 文章标题 */
.article-header {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.article-content {
    flex: 1.2;
}

.sidebar {
    width: 380px;
    flex-shrink: 0;
}

/* 轮播图 */
.gallery {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.gallery-slide img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

.gallery-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: white;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
}

.zoom-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 右侧信息栏 */
.info-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.info-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.info-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value {
    color: var(--primary-color);
    font-weight: 500;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-value a:hover {
    text-decoration: underline;
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* 文章内容 */
.article-body {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    line-height: 2.4rem;
}
.article-body p{
   line-height: 2rem;
}
.article-section {
    margin-bottom: 30px;
}

.article-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.article-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
}

.feature-item i {
    color: var(--primary-color);
}

/* 相关主题 */
.related-themes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-theme {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.related-theme:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.related-theme-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-theme-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-theme-info {
    flex: 1;
}

.related-theme-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.related-theme-price {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 相关文章 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-article {
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    display: block;
}

.related-article:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.related-article-title {
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-article-date {
    font-size: 0.85rem;
    color: #777;
}

/* 评论区域 */
.comments-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 1.5rem;
}

.comment-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.comment-list {
    margin-top: 30px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.8rem;
    color: #777;
}

.comment-content {
    line-height: 1.6;
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-image {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.close-image:hover {
    color: #ddd;
}

/* 左侧栏 (PC端) */
.left-toolbar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

.toolbar-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.toolbar-item:hover {
    transform: scale(1.1);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 移动端工具栏 */
.mobile-toolbar {
    position: fixed;
    bottom: 70px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

/* 响应式 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .breadcrumb {
        margin-top: calc(var(--stats-height) + 20px);
    }
    
    .stats-hidden .breadcrumb {
        margin-top: 20px;
    }
    
    .left-toolbar {
        display: none;
    }
    
    .mobile-toolbar {
        display: flex;
    }
}

/*产品详情 end*/