/*
 * Product Detail Page Styles
 * For products-show.html
 */

body {
    scroll-behavior: smooth;
}

/* 产品详情内容区样式 - 统一字体大小 */
.cms-rich-content {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}
.cms-rich-content p {
    margin-bottom: 1rem;
}
.cms-rich-content strong {
    font-weight: 700;
    color: #1e293b;
}
.cms-rich-content a {
    color: #137fec;
    text-decoration: underline;
}
.cms-rich-content a:hover {
    color: #0e62b8;
}
.cms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.cms-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 14px;
}
.cms-rich-content table th,
.cms-rich-content table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}
.cms-rich-content table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    width: 180px;
    font-size: 14px;
}
.cms-rich-content ul,
.cms-rich-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.cms-rich-content li {
    margin-bottom: 0.5rem;
    font-size: 14px;
}
.cms-rich-content h1,
.cms-rich-content h2,
.cms-rich-content h3,
.cms-rich-content h4 {
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    font-size: 16px;
}
.cms-rich-content h1 { font-size: 20px; }
.cms-rich-content h2 { font-size: 18px; }
.cms-rich-content h3 { font-size: 16px; }
.cms-rich-content h4 { font-size: 15px; }
.cms-rich-content blockquote {
    border-left: 4px solid #137fec;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}
.cms-rich-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}
.cms-rich-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 14px;
}
.cms-rich-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 14px;
}
.cms-rich-content span {
    font-size: 14px !important;
}
.cms-rich-content div {
    font-size: 14px !important;
}

/* ==========================================
   全局宽度调整 - 1440px -> 1700px
   ========================================== */
.max-w-\[1440px\] {
    max-width: 1700px !important;
}

/* 4列网格布局支持 */
@media (min-width: 1024px) {
    .lg\:grid-cols-4-expanded {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 功能性样式 */
.whatsapp-pulse {
    display: none !important;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.action-group-fixed {
    position: fixed !important;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.action-btn {
    width: 52px;
    height: 52px;
    background-color: #137fec;
    color: white;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    transform: translateY(-5px);
    background-color: #0e62b8;
}

/* 修改这里：让 CSS 同时支持旧的 scroll-reveal 和新的 fixed-action-btn */
.scroll-reveal,
.fixed-action-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    height: 0;
    margin: 0;
    display: flex !important;
}

/* 激活状态：当 JS 加上 .show 类时弹出 */
.scroll-reveal.show,
.fixed-action-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    height: 52px !important;
    margin-bottom: 8px !important;
}