/* ==========================================================================
   Product Configuration Page Styles (Advanced)
   ========================================================================== */

.config-body {
    background: #13151a; /* Slightly adjusted dark background */
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh; /* 改为min-height，允许内容扩展 */
    overflow-x: hidden; /* 只隐藏水平滚动，允许垂直滚动 */
    overflow-y: auto; /* 允许垂直滚动 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 确保页面铺满整个屏幕，包括导航栏区域 */
    position: relative; /* 改为relative，避免绝对定位问题 */
    width: 100%;
}

.config-page {
    width: 100%;
    min-height: 100vh; /* 改为min-height，允许内容扩展 */
    display: flex;
    align-items: stretch;
    padding: 20px 0; /* 添加上下内边距 */
}

.config-showcase {
    display: flex; /* 改为flexbox，更自然 */
    flex-wrap: wrap; /* 允许换行 */
    width: 100%;
    gap: 0;
}

.config-column {
    flex: 1; /* 让列自适应宽度 */
    min-width: 300px; /* 最小宽度，防止过窄 */
    padding: 15px 25px; /* 减少顶部内边距，让logo更靠上 */
    background: transparent;
    transition: all 0.3s ease; /* 统一过渡时间 */
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: auto; /* 改为auto，让高度自适应内容 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 让元素按顺序排列 */
    box-sizing: border-box;
    overflow: visible; /* 改为visible，允许内容溢出 */
}

.config-column:hover {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transform: scale(1.02); /* Slightly larger scale */
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-right-color: rgba(255, 255, 255, 0.15);
}

.config-column:last-child {
    border-right: none;
}

.config-logo {
    position: relative; /* 改为相对定位，回归文档流 */
    margin-bottom: 20px; /* 使用margin，让下面的元素自然排列 */
    z-index: 10;
}

.config-logo img {
    width: 70px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.config-column:hover .config-logo img {
    opacity: 1;
}

.config-header {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 10px;
    margin-top: 0; /* 移除顶部边距，因为logo现在是相对定位 */
    margin-bottom: 10px; /* 减少底部间距 */
    transition: transform 0.3s ease; /* 统一过渡时间 */
}

.config-column:hover .config-header {
    transform: translateY(-10px);
}

.config-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    transition: all 0.3s ease;
    font-family: 'SimSun', '宋体', 'STSong', serif;
    letter-spacing: -0.5px;
}

.name-highlight {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.8em;
    opacity: 0.8;
    vertical-align: baseline;
    display: inline-block;
}

.config-column:nth-child(1) .name-highlight { color: #007AFF; }
.config-column:nth-child(2) .name-highlight { color: #34C759; }
.config-column:nth-child(3) .name-highlight { 
    color: #FF3B30; 
    font-weight: 600; 
    font-size: 1em; /* 和绒音保持一致的大小 */
}

.config-price {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.config-column:hover .config-price {
    color: #ddc6a8; /* hover时价格颜色 */
}

.config-price .currency, .config-price .suffix {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.7;
}

.config-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* No gap */
    margin-top: 0; /* 移除顶部边距 */
    margin-bottom: 15px; /* 减少底部间距 */
    padding: 0; /* Remove padding */
    transition: transform 0.3s ease; /* 统一过渡时间 */
}

.config-column:hover .config-specs {
    transform: translateY(-5px);
}

.config-spec-item {
    text-align: center;
    padding: 10px 5px;
    background: transparent; /* Remove background */
    border-radius: 8px;
}

.config-spec-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
    font-family: 'Times New Roman', 'Times', serif;
}

.config-spec-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.config-features {
    text-align: center;
    flex-grow: 0;
    margin: 0 0 25px 0; /* 减少底部间距 */
}

.config-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-features li {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600; /* 加粗文字 */
    line-height: 1.5;
    transition: color 0.3s ease;
    list-style: none; /* 去除列表样式 */
    position: relative; /* 为伪元素定位 */
}

/* 移除小蓝点 */
.config-features li:before {
    content: none; /* 移除小蓝点 */
}

.config-column:hover .config-features li {
    color: rgba(255, 255, 255, 0.9);
}

.config-visual {
    height: 180px; /* 固定图片区域高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-grow: 1; /* 占用剩余空间，让图片区域对齐 */
    transition: transform 0.3s ease; /* 统一过渡时间 */
    margin: 0; /* 移除边距 */
}

.config-column:hover .config-visual {
    transform: scale(1.1) translateY(-10px);
}

.config-action {
    opacity: 0;
    transition: opacity 0.1s ease; /* 进一步减少过渡时间 */
    position: static; /* 改为静态定位，让按钮成为正常流的一部分 */
    margin: 0 auto; /* 水平居中 */
    text-align: center;
    pointer-events: none;
    z-index: 20;
    margin-top: auto; /* 自动推到底部 */
    padding-bottom: 30px; /* 距离底部固定距离 */
    will-change: opacity; /* 提示浏览器优化opacity变化 */
    /* 预渲染优化 */
    transform: translateZ(0); /* 强制硬件加速 */
    backface-visibility: hidden; /* 防止闪烁 */
    /* 预加载优化 */
    contain: layout style paint; /* 隔离渲染层 */
    contain-intrinsic-size: 0 60px; /* 预留空间 */
}

.config-column:hover .config-action {
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0); /* 保持硬件加速 */
}

/* 按钮样式已删除，使用HTML中的样式 */



/* Visuals Enhancements */
.standard-box, .mini-circle, .ultra-split > div {
    transition: all 0.3s ease; /* 统一过渡时间 */
}

.standard-box {
    width: 100px; height: 75px; background: linear-gradient(145deg, #0A84FF, #0040DD); border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 123, 255, 0.35); transform: rotate(-20deg) skewX(-10deg);
    margin: 0 auto; /* 水平居中 */
}
.standard-box:before { content: ''; position: absolute; top: 15px; left: 15px; width: 25px; height: 25px; background: rgba(255,255,255,0.25); border-radius: 6px; }

.mini-circle {
    width: 90px; height: 90px; background: linear-gradient(145deg, #30D158, #208E4A); border-radius: 50%; box-shadow: 0 10px 25px rgba(48, 209, 88, 0.35);
    margin: 0 auto; /* 水平居中 */
}
/* 移除mini-circle中间的小点 */
.mini-circle:before { content: none; }

/* Mini产品图片样式 */
.mini-product-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.config-column:hover .mini-product-image {
    transform: scale(1.1) translateY(-10px);
}

/* 标准版产品图片样式 */
.standard-product-image {
    max-width: 350px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.config-column:hover .standard-product-image {
    transform: scale(1.1) translateY(-10px);
}

/* Ultra版产品图片样式 */
.ultra-product-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.config-column:hover .ultra-product-image {
    transform: scale(1.1) translateY(-10px);
}

.ultra-split { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
    margin: 0 auto; /* 水平居中 */
}
.split-charger { width: 75px; height: 25px; background: linear-gradient(145deg, #BF5AF2, #8A3AD9); border-radius: 12px; box-shadow: 0 5px 15px rgba(191, 90, 242, 0.3); }
.split-main { width: 65px; height: 95px; background: linear-gradient(145deg, #FF9F0A, #E85D04); border-radius: 12px; box-shadow: 0 8px 20px rgba(255, 159, 10, 0.35); }
.split-speaker { width: 75px; height: 75px; background: linear-gradient(145deg, #FF453A, #D92929); border-radius: 50%; box-shadow: 0 8px 20px rgba(255, 69, 58, 0.35); }


@media (max-width: 992px) {
    .config-name { font-size: 1.8rem; }
    .config-spec-value { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .config-body { overflow-y: auto; }
    .config-showcase { 
        flex-direction: column; /* 小屏幕时改为垂直排列 */
        height: auto; 
    }
    .config-column { 
        height: auto; 
        min-height: auto; 
        border-right: none; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
        padding: 15px 15px 30px; 
    }
    .config-column:hover { transform: scale(1.01); }
    .config-column:last-child { border-bottom: none; }
    .config-header { margin-top: 0; }
    .config-visual { margin-top: 0; height: 200px; }
    .config-action { opacity: 1; pointer-events: auto; padding-bottom: 20px; }
    .config-action .btn { padding: 12px 20px; font-size: 1rem; display: inline-block; margin: 5px; }
    .config-specs { grid-template-columns: repeat(2, 1fr); }
    .config-spec-value { font-size: 1.4rem; }
    .config-spec-label { font-size: 0.8rem; }
    .config-features li { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .config-column { padding: 10px 10px 20px; }
    .config-header { margin-top: 0; flex-direction: column; align-items: center; text-align: center; }
    .config-name { font-size: 1.6rem; margin-bottom: 5px; }
    .config-price { font-size: 1.2rem; }
    .config-specs { grid-template-columns: repeat(2, 1fr); }
    .config-spec-value { font-size: 1.2rem; }
    .config-spec-label { font-size: 0.7rem; }
    .config-features { text-align: center; }
    .config-features li { font-size: 0.85rem; }
    .config-visual { height: 180px; }
    .config-action .btn { padding: 10px 15px; font-size: 0.9rem; display: inline-block; margin: 3px; }
}

/* 增强滑动体验 */
.config-body {
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 确保内容可以正常滚动 */
.config-page {
    overflow: visible;
    position: relative;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .config-column:hover {
        transform: none; /* 移动端禁用hover效果 */
    }
    
    .config-column:active {
        transform: scale(0.98); /* 触摸时的反馈 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .config-column { 
        padding: 8px 8px 15px; 
        min-height: auto; /* 允许内容自适应高度 */
    }
    
    .config-header { 
        margin-top: 0; 
        margin-bottom: 15px;
    }
    
    .config-name { 
        font-size: 1.4rem; 
    }
    
    .config-price { 
        font-size: 1.1rem; 
    }
    
    .config-specs { 
        margin-bottom: 20px; 
    }
    
    .config-spec-value { 
        font-size: 1.1rem; 
    }
    
    .config-spec-label { 
        font-size: 0.65rem; 
    }
    
    .config-features { 
        margin-bottom: 20px; 
    }
    
    .config-features li { 
        font-size: 0.8rem; 
        padding: 3px 0;
    }
    
    .config-visual { 
        height: 150px; 
        margin-bottom: 15px;
    }
    
    .config-action .btn { 
        padding: 8px 12px; 
        font-size: 0.85rem; 
        min-width: 140px;
    }
}

/* 确保在所有设备上都能滚动 */
html, body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 修复可能的滚动问题 */
.config-body * {
    box-sizing: border-box;
}

/* 优化触摸设备的滚动体验 */
@media (max-width: 768px) {
    .config-body {
        overflow-y: auto !important; /* 强制允许垂直滚动 */
        -webkit-overflow-scrolling: touch;
    }
    
    .config-showcase {
        height: auto !important; /* 强制自适应高度 */
        min-height: auto;
    }
    
    .config-column {
        height: auto !important; /* 强制自适应高度 */
        min-height: auto;
        overflow: visible;
    }
}
