/* 基于原布局的卡片美化版 */

:root { 
    --primary: #0071e3; 
    --primary-hover: #0077ed;
    --telegram: #229ED9; 
    --text: #1d1d1f; 
    --text-light: #86868b;
    --bg: #f5f5f7; 
    --border: #d2d2d7;
}

/* --- 爆款产品 (Hot: true) 专属美化 --- */

/* 1. 定义橙色呼吸灯动画 */
@keyframes hot-glow {
    0% { 
        border-color: #ff9500; 
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2); 
    }
    50% { 
        border-color: #ffcc00; 
        box-shadow: 0 0 20px rgba(255, 149, 0, 0.4); 
    }
    100% { 
        border-color: #ff9500; 
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2); 
    }
}

/* --- 爆款产品 (Hot: true) 专属橙色呼吸灯美化 --- */

/* 1. 定义橙色呼吸灯动画帧 */
@keyframes hot-glow {
    0% { 
        border-color: #ff9500; 
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2); 
    }
    50% { 
        border-color: #ffcc00; 
        box-shadow: 0 0 20px rgba(255, 149, 0, 0.4); 
    }
    100% { 
        border-color: #ff9500; 
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2); 
    }
}

/* 2. 应用到爆款卡片 (.card-hot) */
.card-hot { 
    /* 强制橙色边框并应用呼吸动画 */
    border: 2px solid #ff9500 !important; 
    animation: hot-glow 3s infinite ease-in-out;
    transition: all 0.4s ease;
}

/* 3. 悬停时停止呼吸，变为稳定的橙色深阴影并位移 */
.card-hot:hover {
    animation: none;
    border-color: #ff8800 !important;
    box-shadow: 0 15px 35px rgba(255, 149, 0, 0.25) !important;
    transform: translateY(-8px);
}

/* 4. 爆款标签美化：橙色渐变背景 + 白色文字 */
/* 适配你现在的 badge 结构，同时作用于 .badge-hot 和 hot 卡片内的 badge */
.badge-hot, 
.card-hot .badge:not(.badge-prefix) { 
    background: linear-gradient(135deg, #ff9500, #ffcc00) !important; 
    color: #fff !important; 
    border: none !important;
    font-weight: 700;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

/* 5. 联动修改：让爆款的价格和主按钮也变成橙色，保持视觉统一 */
.card-hot .price {
    color: #ff9500 !important;
}

.card-hot .buy-btn {
    background: #ff9500 !important;
    border: none !important;
    color: #fff !important;
}

.card-hot .buy-btn:hover {
    background: #ff8800 !important;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3) !important;
}





/* 基础样式 */
body { 
    font-family: "PingFang SC", "SF Pro Display", "Microsoft YaHei", sans-serif; 
    line-height: 1.5; 
    color: var(--text); 
    margin: 0; 
    background: #fff; 
    -webkit-font-smoothing: antialiased; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 导航样式 */
nav { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(10px); 
    padding: 15px 0; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.nav-link:hover { text-decoration: underline; }
.lang-switch { background: #eee; padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; text-decoration: none; color: #333; font-weight: bold; transition: background 0.2s; }
.lang-switch:hover { background: #ddd; }

header { padding: 60px 0 30px; text-align: center; }
header h1 { font-size: 2.8rem; font-weight: 600; margin: 0; color: #000; }
header p { font-size: 1.2rem; color: var(--text-light); margin-top: 15px; }

/* 核心：产品网格 4 列布局 */
.grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin: 40px 0; 
}

/* --- 【重点美化项】产品卡片 --- */
.card { 
    background: #fff; 
    border-radius: 18px; 
    padding: 25px; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    /* 升级动画曲线，让回弹感更自然 */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    position: relative; 
}

/* 悬停动效：边框变色 + 柔和发光投影 */
.card:hover { 
    transform: translateY(-6px);
    border-color: var(--primary); 
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.12); 
}

/* 热门方案特别样式 */
.card-hot { 
    border: 2px solid #1d1d1f; 
}
.card-hot:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 1. 把定位交给容器 */
.badge-group {
    position: absolute;
    top: 12px;
    right: 15px;
    display: flex;    /* 让里面的标签并排 */
    gap: 6px;         /* 标签之间的间距 */
    z-index: 10;
}

/* 2. 修改 .badge 样式，去掉定位 */
.badge {
    /* 删掉 position: absolute; */
    /* 删掉 top 和 right; */
    background: var(--bg); 
    color: var(--text); 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap; /* 防止文字换行 */
}

/* 3. 热门标签样式保持不变 */
.badge-hot { 
    background: #000; 
    color: #fff; 
    border: none; 
}

/* 4. 如果你想让“香港”标签看起来不一样（可选） */
.badge-prefix {
    background: #f0f0f0;
    color: #666;
}


.card h2 { font-size: 1.4rem; margin: 0 0 5px; color: #000; }
.tagline { 
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
    display: block; 
    min-height: 2.4em; 
}

/* 参数列表细节美化 */
.specs { list-style: none; padding: 0; margin: 0 0 20px; flex-grow: 1; }
.specs li { 
    padding: 8px 0; 
    border-bottom: 1px dashed #f0f0f0; /* 改为虚线更有精致感 */
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    transition: background 0.2s;
}
/* 参数行悬停高亮提示 */
.specs li:hover { background: rgba(0, 113, 227, 0.03); }

.specs li b { color: var(--text-light); font-weight: 400; } /* 标签弱化 */
.specs li span { color: var(--text); text-align: right; font-weight: 500; } /* 数值加深 */

/* 价格与按钮区块 */
.price-box { 
    text-align: center; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #f5f5f7; 
}
.price { 
    font-size: 1.8rem; /* 略微加大字号 */
    font-weight: 700; 
    color: #000; 
    transition: color 0.3s;
}
.card:hover .price { color: var(--primary); } /* 联动变色 */
.price small { font-size: 0.85rem; color: var(--text-light); font-weight: 400; }

.btn-group { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; /* 适当调宽主按钮 */
    gap: 8px; 
    margin-top: 20px; 
}

.buy-btn, .tg-btn { 
    padding: 10px 5px; 
    border-radius: 10px; 
    text-align: center; 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-decoration: none; 
    transition: all 0.2s ease; 
}

/* 立即购买按钮动态 */
.buy-btn { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.15);
}
.buy-btn:hover { 
    background: var(--primary-hover); 
    transform: scale(1.03); /* 轻微放大反馈 */
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.25);
}

.tg-btn { 
    background: #fff; 
    color: var(--telegram); 
    border: 1px solid var(--telegram); 
}
.tg-btn:hover { background: var(--bg); }

/* 点击瞬间的触感反馈 */
.buy-btn:active, .tg-btn:active {
    transform: scale(0.96);
}

/* --- 响应式适配：确保手机端完美显示 --- */

/* 1. 平板/小屏电脑 (1200px 以下) */
@media (max-width: 1200px) {
    .grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    } 
}

/* 2. 手机端 (768px 以下)核心优化 */
@media (max-width: 768px) {
    /* 1. 强制父容器换行，这是解决挤压的关键 */
    .nav-flex {
        flex-direction: column !important; /* 强制上下排布 */
        align-items: flex-start !important; /* 靠左对齐 */
        gap: 10px; /* 两行之间的间距 */
    }

    /* 2. Logo 独占一行，解决“官方网站”折行问题 */
    .logo {
        width: 100% !important; /* 占满宽度 */
        text-align: left !important;
        font-size: 2.2rem !important; /* 稍微放大点，更有标题感 */
        white-space: nowrap !important; /* 严禁文字内部折行 */
    }

    /* 3. 链接组：占满一行并向右对齐 */
    .nav-links {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important; /* 链接靠右 */
        align-items: center !important;
        gap: 15px !important; /* 链接间的间距 */
    }

    /* 4. 优化链接和语言切换按钮 */
    .nav-links a, .lang-switch {
        font-size: 0.8rem !important; /* 别设 0.6 了，太小了看不清 */
        white-space: nowrap !important;
    }



    /* 5. 针对你圈出的【标题区块】进行高度压缩和字体缩小 */
    header {
        padding: 15px 0 5px !important; /* 极大幅度减小上下间距 */
    }

    header h1 {
        font-size: 2.5rem !important; /* 缩小标题字号 */
        line-height: 1.8 !important;
        margin-bottom: 5px !important;
        padding: 0 10px !important;
    }

    header p {
        font-size: 0.8rem !important; /* 缩小下方描述文字 */
        margin-top: 0 !important;
        padding: 0 20px !important;
        color: #86868b !important;
        line-height: 1.4 !important;
    }

    /* 6. 确保产品卡片依然是一行一个 */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}





/* --- 底部及其他 (SEO/Footer) --- */
.floating-tg { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--telegram); 
    color: #fff; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    box-shadow: 0 4px 15px rgba(34,158,217,0.4); 
    z-index: 1000; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.floating-tg:hover { transform: scale(1.1) rotate(5deg); }

.seo-section { background: var(--bg); padding: 60px 0; border-top: 1px solid #eee; }
.seo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.seo-item h3 { font-size: 1.1rem; margin-bottom: 10px; color: #000; }
.seo-item p { font-size: 0.9rem; color: #424245; line-height: 1.6; }

footer { text-align: center; padding: 40px; border-top: 1px solid #eee; color: var(--text-light); font-size: 0.8rem; background: #fff; }
.footer-links a { color: var(--text-light); text-decoration: none; margin: 0 10px; }
