/**
 * Single Product Page Styles
 * 产品详情页专用样式
 * 
 * @package Kadence_Child
 * @since 2.1.0
 */

/* ============================================
   产品页面基础样式
   ============================================ */

.product-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   面包屑导航
   ============================================ */

.product-breadcrumb {
    margin: 10px 0;
    font-size: 14px;
    color: #555555;
}

.product-breadcrumb a {
    color: #555555;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-breadcrumb span {
    color: #555555;
    font-weight: 500;
}

/* ============================================
   产品页面标题
   ============================================ */

.product-page-header {
    margin: 20px 0 30px 0;
}

.product-page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

/* ============================================
   产品内容区域布局
   ============================================ */

.product-content-area {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* ============================================
   产品图片区域
   ============================================ */

.product-image-area {
    display: flex;
    flex-direction: column;
    width: 800px;
    flex-shrink: 0;
}

.main-image-container {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.no-image-placeholder {
    aspect-ratio: 4/3;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   产品信息区域
   ============================================ */

.product-info {
    display: flex;
    flex-direction: column;
    width: 600px;
    flex-shrink: 0;
}

/* ============================================
   H2 标题全局样式
   ============================================ */

h2 {
    font-size: 24px;
    color: #000000;
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: normal;
    line-height: 1.4;
}

/* ============================================
   产品信息标题（特殊样式）
   ============================================ */

.product-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    color: #333;
    line-height: 1.3;
}

.product-price {
    margin-bottom: 20px;
}

.price-range {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.moq-info {
    font-size: 14px;
    color: #666;
}

/* ============================================
   产品规格表
   ============================================ */

.product-specifications {
    background: #fff;
    padding: 0;
    flex-grow: 1;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.specs-header h3 {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.arrow-icon {
    font-size: 18px;
    color: #666;
}

.specs-content {
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 15px;
}

.spec-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.spec-value {
    color: #333;
    text-align: left;
    flex: 1;
}

/* ============================================
   应用场景和价格说明
   ============================================ */

.application-section {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
}

.application-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin: 0 0 10px 0;
}

.application-list {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.price-notes-section {
    margin-bottom: 25px;
}

.price-notes-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 10px 0;
}

.price-notes-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* ============================================
   快速操作按钮
   ============================================ */

.product-quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    width: 90%;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.btn-contact {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-contact:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn-chat {
    background: #fff;
    color: #000000;
    border: 1px solid #333333;
}

.btn-chat:hover {
    background: #333333;
    color: white;
    text-decoration: none;
}

.btn-icon {
    font-size: 16px;
}

/* ============================================
   产品详情和侧边栏区域
   ============================================ */

.product-details-area {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

/* ============================================
   编辑器内容区域（仅布局容器）
   ============================================ */

.product-editor-content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   Gutenberg 编辑器内容样式 (gu- 命名空间)
   从 guteng 文件提取的样式
   ============================================ */

/* CSS 变量定义 */
.product-editor-content {
    /* 颜色变量 */
    --gu-primary: #0A4C7F;      /* 主色调 - 蓝色 */
    --gu-secondary: #E87722;    /* 次要色 - 橙色 */
    --gu-text-dark: #333333;    /* 深色文字 */
    --gu-text-medium: #666666;  /* 中色文字 */
    --gu-bg-white: #ffffff;     /* 白色背景 */
    --gu-bg-light: #f9f9f9;     /* 浅色背景 */
    --gu-bg-lighter: #f5f5f5;   /* 更浅背景 */
    --gu-border: #e0e0e0;       /* 边框色 */
    --gu-border-light: #ddd;    /* 浅边框色 */
    
    /* 字体大小变量 */
    --gu-title-size: 24px;
    --gu-title-size-mobile: 20px;
    --gu-text-size: 15px;
    --gu-text-size-small: 14px;
    --gu-text-size-xs: 12px;
    
    /* 间距变量 */
    --gu-spacing-large: 40px;
    --gu-spacing-medium: 30px;
    --gu-spacing-small: 20px;
    --gu-spacing-xs: 15px;
    --gu-spacing-xxs: 10px;
    
    /* 圆角变量 */
    --gu-radius: 8px;
    --gu-radius-small: 4px;
    --gu-radius-xs: 6px;
    
    /* 响应式断点变量 */
    --gu-breakpoint-tablet: 768px;
    --gu-breakpoint-mobile: 480px;
}

/* 通用容器样式 - 简洁版（无卡片效果） */
.product-editor-content [class*="gu-product-"] {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

/* 标题样式 - 简洁版 */
.product-editor-content [class*="gu-product-"] h2 {
    font-size: 22px;
    color: #000000;
    margin: 15px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    font-weight: normal;
}

/* 产品描述区域 */
.product-editor-content .gu-product-description p {
    line-height: 1.8;
    margin-bottom: var(--gu-spacing-xs);
    color: var(--gu-text-dark);
    font-size: var(--gu-text-size);
}

.product-editor-content .gu-product-description strong {
    color: var(--gu-primary);
    font-weight: 600;
}

/* 应用列表样式 - 简洁版（仅文字） */
.product-editor-content .gu-product-applications ul,
.product-editor-content .gu-product-features ul {
    list-style: disc;
    padding-left: var(--gu-spacing-small);
    margin: 0;
}

.product-editor-content .gu-product-applications li,
.product-editor-content .gu-product-features li {
    padding: 5px 0;
    margin-bottom: 8px;
    color: var(--gu-text-dark);
    font-size: var(--gu-text-size);
    line-height: 1.6;
}

/* 技术参数表格样式 */
.product-editor-content .gu-product-parameters table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--gu-spacing-small);
    font-size: var(--gu-text-size-small);
}

.product-editor-content .gu-product-parameters table th {
    background: var(--gu-primary);
    color: var(--gu-bg-white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--gu-border-light);
}

.product-editor-content .gu-product-parameters table td {
    padding: 12px;
    border: 1px solid var(--gu-border-light);
    color: var(--gu-text-dark);
}

.product-editor-content .gu-product-parameters table tr:nth-child(even) {
    background: var(--gu-bg-light);
}

/* FAQ 样式 */
.product-editor-content .gu-product-faq details {
    margin-bottom: var(--gu-spacing-xs);
    border: 1px solid var(--gu-border);
    border-radius: var(--gu-radius-xs);
    overflow: hidden;
    background: var(--gu-bg-white);
}

.product-editor-content .gu-product-faq summary {
    padding: var(--gu-spacing-xs) var(--gu-spacing-small);
    background: var(--gu-bg-lighter);
    cursor: pointer;
    font-weight: 600;
    color: var(--gu-primary);
    font-size: 16px;
    position: relative;
    padding-right: 40px;
    transition: background-color 0.2s ease;
}

/* 可访问性优化 - 添加悬停和聚焦状态 */
.product-editor-content .gu-product-faq summary:hover {
    background-color: var(--gu-bg-light);
}

.product-editor-content .gu-product-faq summary:focus {
    outline: 2px solid var(--gu-secondary);
    outline-offset: 2px;
}

.product-editor-content .gu-product-faq summary:focus-visible {
    outline: 2px solid var(--gu-primary);
}

.product-editor-content .gu-product-faq summary:after {
    content: "+";
    position: absolute;
    right: var(--gu-spacing-small);
    font-size: 24px;
    color: var(--gu-secondary);
    transition: transform 0.2s ease;
}

.product-editor-content .gu-product-faq details[open] summary:after {
    content: "−";
    transform: rotate(180deg);
}

.product-editor-content .gu-product-faq details p {
    padding: var(--gu-spacing-xs) var(--gu-spacing-small);
    margin: 0;
    color: var(--gu-text-medium);
    line-height: 1.6;
    font-size: var(--gu-text-size-small);
}

/* 响应式设计样式已合并到下方的全局媒体查询中 */

/* 可访问性优化 - 高对比度模式支持 */
@media (prefers-contrast: high) {
    .product-editor-content [class*="gu-product-"] {
        border-width: 2px;
    }
    
    .product-editor-content [class*="gu-product-"] h2 {
        border-bottom-width: 4px;
    }
}

/* 可访问性优化 - 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .product-editor-content .gu-product-faq summary,
    .product-editor-content .gu-product-faq summary:after {
        transition: none;
    }
}

.page-links {
    margin-top: 30px;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.page-links a:hover {
    background: #005a87;
}

/* ============================================
   侧边栏样式
   ============================================ */

.content-sidebar {
    width: 400px;
    flex-shrink: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 6rem;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================
   工厂直供标识
   ============================================ */

.factory-badge {
    margin-bottom: 20px;
    padding: 16px;
    background-color: rgba(10, 76, 127, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(10, 76, 127, 0.1);
}

.factory-badge-header {
    display: flex;
    align-items: center;
    color: #0073AA;
    margin-bottom: 8px;
}

.factory-badge-header i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.factory-badge-title {
    font-size: 17px;
    font-weight: 600;
    color: #0073AA;
}

.factory-badge-text {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
}

/* ============================================
   公司介绍
   ============================================ */

.company-intro {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo {
    margin-bottom: 16px;
}

.logo-image {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.company-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.company-description {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
    padding: 16px;
    text-align: left;
}

/* ============================================
   联系信息
   ============================================ */

.contact-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f8f9fa;
    padding: 16px;
}

.contact-header {
    margin-bottom: 16px;
}

.contact-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #0073AA;
}

.contact-title i {
    margin-right: 8px;
}

.contact-details {
    margin: 0;
    padding: 0;
    font-style: normal;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 15px;
}

.contact-item i {
    margin-top: 0.125rem;
    margin-right: 12px;
    color: #007bff;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item time {
    color: #6c757d;
}

/* ============================================
   社交媒体链接
   ============================================ */

.social-links {
    margin-top: 16px;
    padding: 16px;
    background-color: rgba(10, 76, 127, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(10, 76, 127, 0.1);
}

.social-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a4c7f;
    margin: 0 0 12px 0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(10, 76, 127, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 76, 127, 0.2);
}

.social-link:hover {
    background-color: rgba(10, 76, 127, 0.2);
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 76, 127, 0.2);
}

.social-link i {
    font-size: 1.2rem;
}

/* 特定社交平台的样式 */
.whatsapp-link:hover {
    background-color: #25d366;
    color: white;
}

.linkedin-link:hover {
    background-color: #0077b5;
    color: white;
}

.youtube-link:hover {
    background-color: #ff0000;
    color: white;
}

.email-link:hover {
    background-color: #ea4335;
    color: white;
}

/* ============================================
   技术支持
   ============================================ */

.support-section {
    margin-top: 20px;
    padding: 16px;
    background-color: rgba(10, 76, 127, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(10, 76, 127, 0.1);
}

.support-header {
    margin-bottom: 12px;
}

.support-title {
    font-size: 17px;
    font-weight: 700;
    color: #0073AA;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.support-title i {
    margin-right: 8px;
}

.support-text {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.5;
}

.support-link {
    font-size: 15px;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.support-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.support-link i {
    margin-left: 8px;
}

/* ============================================
   屏幕阅读器专用样式
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1500px) {
    .product-image-area {
        width: 700px;
    }
    
    .product-info {
        width: 500px;
    }
}

@media (max-width: 1200px) {
    .product-image-area {
        width: 600px;
    }
    
    .product-info {
        width: 450px;
    }
    
    .product-content-area {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* 产品页面布局 */
    .product-container {
        padding: 0;
    }
    
    .product-content-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-image-area {
        width: 100%;
    }
    
    .product-info {
        width: 100%;
    }
    
    .product-quick-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .product-details-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-sidebar {
        width: 100%;
    }
    
    .sticky-sidebar {
        position: static;
        top: auto;
        padding: 16px;
    }
    
    .logo-image {
        width: 150px;
        height: auto;
    }
    
    .social-link {
        width: 2rem;
        height: 2rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    /* Gutenberg 编辑器内容 */
    .product-editor-content [class*="gu-product-"] h2 {
        font-size: 18px;
    }

    .product-editor-content .gu-product-parameters table {
        font-size: var(--gu-text-size-xs);
    }

    .product-editor-content .gu-product-parameters table th,
    .product-editor-content .gu-product-parameters table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    /* 产品页面样式 */
    .product-page-title {
        font-size: 24px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-content-area {
        gap: 15px;
    }
    
    .price-range {
        font-size: 24px;
    }
    
    .specs-header h3 {
        font-size: 20px;
    }
    
    .spec-item {
        font-size: 14px;
    }
    
    /* Gutenberg 编辑器内容 */
    .product-editor-content .gu-product-parameters table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-editor-content .gu-product-applications li,
    .product-editor-content .gu-product-features li {
        padding: 3px 0;
        font-size: var(--gu-text-size-small);
    }
}

