/* ============================================
   Product Page Styles (Aligned with Index)
   ============================================ */

:root {
    --primary-green: #223e36;
    --accent-green: #2d5a4c;
    --accent-lime: #b1ff68;
    --glamox-red: #e41e26;
    --border-light: #eeeeee;
    --text-muted: #666666;
    --transition: all 0.3s ease;
}

/* --- Product Hero Layout --- */
.product-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumb-minimal {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-minimal a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.breadcrumb-minimal a:hover {
    color: var(--primary-green);
}

.breadcrumb-minimal span {
    margin: 0 8px;
}

.current-page {
    font-weight: 600;
    color: var(--primary-green);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 40px;
}

.visual-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-img-view {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 10px 10px 0px #e6eae6;
}

.main-img-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* --- 缩略图走马灯：箭头滑动 --- */
.thumb-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;          /* 固定最大宽度，与主图匹配 */
}

.thumb-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: var(--transition);
    padding: 0;
}

.thumb-arrow:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.thumb-strip {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow: hidden;           /* 隐藏溢出 */
    scroll-behavior: smooth;
    padding: 0 2px;
}

/* 隐藏默认滚动条 */
.thumb-strip::-webkit-scrollbar {
    display: none;
}
.thumb-strip {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 缩略图保持固定尺寸 */
.thumb-item {
    flex-shrink: 0;             /* 不压缩 */
    width: 80px;
    height: 60px;
    padding: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
    background: #fff;
    scroll-snap-align: start;
}

.thumb-item.active {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(34, 62, 54, 0.1);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* --- Info Side --- */
.info-side {
    padding-top: 20px;
}

.brand-label {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.prod-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 800;
    line-height: 1.1;
}

.prod-tagline {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--accent-green);
}

.prod-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 15px;
    border-left: 3px solid var(--accent-green);
    padding-left: 25px;
}

.info-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: #f8f9f8;
    padding: 20px;
    border-radius: 4px;
}

.info-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.cert-grid, .specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.cert-grid img, .specs-grid img {
    height: 28px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cert-grid img:hover {
    opacity: 1;
}

/* --- Tabs Navigation (Glamox Style inspired) --- */
.tabs-nav-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    z-index: 90;
    margin-top: 50px;
    padding: 0 20px;
}

.tabs-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;      /* 水平居中 */
    align-items: center;          /* 垂直居中 */
    gap: 10px;
}

.tab-trigger {
    padding: 22px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    border: none;
    background: none;
    margin-right: 30px;
    transition: color 0.3s;
}

.tab-trigger.active {
    color: var(--primary-green);
}

.tab-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-green);
}

/* --- Tab Panels --- */
.tab-panel {
    display: none;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease;
    min-height: 60vh;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Placeholder Content --- */
.placeholder-content {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 48px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* --- Technical Specs Style --- */
.specs-group {
    margin-bottom: 50px;
}

.specs-group-title {
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 20px;
    color: var(--primary-green);
}

.specs-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.specs-label {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.specs-value {
    flex: 1;
    color: var(--text-muted);
}

/* --- 3D Viewer --- */
.viewer-card {
    height: 650px;
    background: #f4f6f4;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
}
.viewer-card {
    position: relative;    
}


model-viewer {
    width: 100%;
    height: 100%;
    background: #f4f6f4;
}

.mount-sidebar {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
    background: rgba(80, 128, 142, 0.87);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mount-btn {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    filter: grayscale(1);
}

.mount-btn:hover {
    opacity: 0.9;
    background: rgba(34, 62, 54, 0.05);
}

.mount-btn.active {
    opacity: 1;
    filter: grayscale(0);
    background: var(--accent-green);
    box-shadow: 0 0 0 1px #9dbf86;
}

/* --- Tippy.js Theme Override --- */
.tippy-box[data-theme~='glass'] {
    background: rgba(34, 62, 54, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
}

.tippy-box[data-theme~='glass'] .tippy-arrow::before {
    color: rgba(34, 62, 54, 0.9);
}


div.operationguide p
{
    color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-size: 15px;
}


/* ============================================
   Downloads Section
   ============================================ */
.downloads-container {
    max-width: 900px;
    margin: 0 auto;
}

.downloads-category {
    margin-bottom: 50px;
}

.downloads-category:last-child {
    margin-bottom: 0;
}

.downloads-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.downloads-category-title i {
    font-size: 20px;
    color: var(--accent-green);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

/* --- 下载卡片 --- */
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #e5ecdb;;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.download-card:hover {
    /* border-color: rgba(80, 128, 142, 0.87); */
    box-shadow: 0 6px 20px rgba(34, 62, 54, 0.08);
    transform: translateY(-2px);
}

.download-card:hover .download-filename,
.download-card:hover .download-meta {
    /* color: #fff; */
    position: relative;
    z-index: 1;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover .download-action {
    /* color: #fff; */
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.download-card:hover .file-type-icon {
    position: relative;
    z-index: 1;
}

/* --- 文件图标 --- */
.download-icon-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.file-type-icon {
    font-size: 36px;
    transition: color 0.25s ease;
}

/* 文件类型颜色 */
.file-type-icon.pdf {
    color: #e41e26;
}

.file-type-icon.ies {
    color: #6b7db3;
}

.file-type-icon.image {
    color: #4a9e6b;
}

.file-type-icon.archive {
    color: #8b6b3e;
}

.download-card:hover .file-type-icon.pdf {
    color: #ff6b6b;
}

.download-card:hover .file-type-icon.ies {
    color: #a0b4f0;
}

.download-card:hover .file-type-icon.image {
    color: #6dd48d;
}

.download-card:hover .file-type-icon.archive {
    color: #c4a46b;
}

/* --- 文件信息 --- */
.download-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.download-filename {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.download-meta {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

/* --- 下载图标 --- */
.download-action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 20px;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 14px 16px;
    }

    .download-filename {
        font-size: 13px;
    }
}


/* ============================================
   Fullscreen Button
   ============================================ */
section#interactive{
    position: relative;
}


.fullscreen-btn {
    position: absolute;
  top: 12px;
  right: 12px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(80, 128, 142, 0.87);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
}

.fullscreen-btn:hover {
    background: var(--primary-green);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* 全屏状态下的样式调整 */
/* 容器基础样式 */
.viewer-card {
    position: relative;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

/* 核心：进入全屏后的样式重写[cite: 2] */
.viewer-card:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #0f1513; /* 使用工业深色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 全屏状态下的组件排版 */
.viewer-card.is-fullscreen .mount-sidebar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
}

.viewer-card.is-fullscreen model-viewer {
    width: 100%;
    height: 100%;
}

.viewer-card.is-fullscreen .fullscreen-btn {
    top: 30px;
    right: 30px;
    background: var(--primary-teal);
    color: white;
}


#sizes img
{
    width: 100%;
 
}