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

: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); 
    }
}

/* 2. 应用到爆款卡片 */
.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-hot { 
    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;
}

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

.card-hot .buy-btn:hover {
    background: #ff8800 !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);
}

.badge { 
    position: absolute; 
    top: 12px; 
    right: 15px; 
    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);
}
.badge-hot { background: #000; color: #fff; border: none; }

.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. 强制产品网格在手机端只显示一列 */
    .grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 核心：1fr 代表占满一行 */
        gap: 20px !important;
        width: 100% !important;
    }

    /* 2. 确保容器没有限制宽度 */
    .container {
        padding: 0 15px !important;
    }

    /* 3. 头部导航：Logo 靠左，链接靠右 */
    .nav-flex {
        display: flex !important;
        flex-direction: column !important;
    }
    .logo {
        text-align: left !important;
        width: 100% !important;
    }
    .nav-links {
        width: 100% !important;
        justify-content: flex-end !important; /* 链接靠右 */
        display: flex !important;
        gap: 10px;
    }
}




/* --- 底部及其他 (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; }
