/* ===================== 产品页通用（虚拟主机 / 服务器租用 / 云服务器） ===================== */

/* ---------- Banner 适配固定导航 ---------- */
.hero{padding-top:calc(var(--nav-h) + 16px)}
.theme-btn{top:calc(var(--nav-h) + 18px)}
@media (max-width:900px){
  .hero{padding-top:calc(var(--nav-h) + 16px)}
}

/* ---------- Banner 底部整行分类导航 ---------- */
.hero-cats{position:relative;background:linear-gradient(180deg,#080d1e 0%,#060a16 100%);border-top:1px solid rgba(140,170,255,.14)}
.hero-cats::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(79,140,255,.55),transparent)}
.hero-cats .container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 24px}
.hero-cats .product-tabs{margin:0;width:100%;max-width:1200px;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.hero-cats .product-tabs::before,.hero-cats .product-tabs::after{display:none}
.hero-cats .product-tabs button,.hero-cats .product-tabs a{position:relative;padding:18px 12px;border-radius:0;text-align:center;font-size:16px;font-weight:600;letter-spacing:.5px;color:rgba(255,255,255,.9);background:transparent;border:none;transition:all .28s}
.hero-cats .product-tabs button+button,.hero-cats .product-tabs a+a{border-left:1px solid rgba(140,170,255,.14)}
.hero-cats .product-tabs button:hover,.hero-cats .product-tabs a:hover{color:#fff;background:rgba(255,255,255,.09)}
.hero-cats .product-tabs button.active,.hero-cats .product-tabs a.active{color:#fff;font-weight:700;background:linear-gradient(180deg,rgba(109, 109, 109, 0.22),rgba(255,122,47,.05))}
.hero-cats .product-tabs button.active::after,.hero-cats .product-tabs a.active::after{content:"";position:absolute;left:16%;right:16%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,#e60012,#ff7a2f);box-shadow:0 0 12px rgba(230,0,18,.55)}

/* ---------- 产品区 ---------- */
.prod-sec{position:relative;background:#fff;padding:88px 0 96px}
.prod-sec .product-tabs{margin-bottom:0}
.prod-sec .product-subtabs{margin:14px 0 18px}

/* 二级分类：深色分类条内的第二行，与顶级分类视觉连贯 */
.hero-cats .sub-tabs{width:100%;max-width:1200px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:14px 12px 14px}
.hero-cats .sub-tabs a{display:inline-flex;align-items:center;padding:7px 16px;border-radius:999px;border:1px solid rgba(140,170,255,.22);background:rgba(255,255,255,.05);font-size:13px;font-weight:600;color:rgba(255,255,255,.78);white-space:nowrap;transition:all .28s}
.hero-cats .sub-tabs a:hover{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(140,170,255,.42)}
.hero-cats .sub-tabs a.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#e60012,#ff7a2f);box-shadow:0 6px 16px rgba(230,0,18,.32)}
.hero-cats .sub-tabs__empty{width:100%;margin:0;padding:0 12px 14px;text-align:center;font-size:13px;color:rgba(255,255,255,.6)}

/* 当前分类标题 */
.panel-head{text-align:center;margin-bottom:38px}
.panel-head h2{font-size:28px;font-weight:800;color:var(--text);letter-spacing:1px}
.panel-head h2::after{content:"";display:block;width:46px;height:3px;border-radius:2px;margin:14px auto 0;background:linear-gradient(90deg,var(--primary),#ff7a2f)}
.panel-head p{margin-top:14px;color:var(--text-2);font-size:14.5px}

/* ---------- 操作系统切换 + 系统简介（虚拟主机列表页） ---------- */
.os-switch-wrap{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin:0 auto 34px}
.os-switch{display:inline-flex;align-items:center;gap:4px;padding:5px;border-radius:999px;background:#f5f6fa;border:1px solid #e6e9f2;box-shadow:inset 0 1px 3px rgba(24,24,28,.05)}
.os-switch__item{position:relative;display:inline-flex;align-items:center;gap:7px;padding:10px 26px;border-radius:999px;font-size:15px;font-weight:600;color:#5e6a7e;white-space:nowrap;transition:all .3s cubic-bezier(.4,0,.2,1)}
.os-switch__item i{font-size:15px;line-height:1}
.os-switch__item:hover{color:var(--primary)}
.os-switch__item.active{color:#fff;background:linear-gradient(135deg,#e60012,#ff7a2f);box-shadow:0 6px 16px rgba(230,0,18,.28)}
.os-switch__item.active:hover{color:#fff}

.os-desc{display:flex;align-items:center;gap:12px;padding:11px 18px;border-radius:14px;background:#f7f8fc;border:1px solid #e6e9f2;box-shadow:0 6px 18px rgba(24,24,28,.05);max-width:520px}
.os-desc__ico{flex-shrink:0;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#e60012,#ff7a2f);box-shadow:0 8px 18px rgba(230,0,18,.26)}
.os-desc__body{min-width:0}
.os-desc__title{font-size:13px;font-weight:700;color:#1f2430;letter-spacing:.5px;margin-bottom:2px}
.os-desc__text{font-size:13.5px;line-height:1.6;color:#5e6a7e}
.os-desc__text b{color:var(--primary);font-weight:700}
.os-desc__tags{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:4px}
.os-desc__tags span{display:inline-block;padding:3px 9px;border-radius:6px;font-size:11.5px;font-weight:700;color:var(--primary);background:#fff;border:1px solid rgba(230,0,18,.22);white-space:nowrap}

/* 产品卡片：与深色 Banner 过渡更自然 */
.prod-sec .product-card{border-color:#eef0f7;box-shadow:0 8px 24px rgba(24,24,28,.05)}
.prod-sec .product-card:hover{box-shadow:0 18px 38px -10px rgba(24,24,28,.14);border-color:#e2e8f4}

/* 修正 banner 内联 .btn 对页脚按钮的影响 */
.footer-actions .btn{height:auto;padding:14px 34px}
.footer-actions .btn-line{padding:13px 30px}

/* ---------- 响应式 ---------- */
@media (max-width:1024px){
  .prod-sec{padding:64px 0 72px}
  .panel-head{margin-bottom:30px}
}
@media (max-width:768px){
  .prod-sec{padding:48px 0 56px}
  .panel-head{margin-bottom:24px}
  .panel-head h2{font-size:22px}
  .panel-head p{font-size:13.5px}
  /* 分类导航：手机端横向滚动 */
  .hero-cats .container{padding:0}
  .hero-cats .product-tabs{display:flex;width:auto;max-width:none;justify-content:flex-start;overflow-x:auto;padding:0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .hero-cats .product-tabs::-webkit-scrollbar{display:none}
  .hero-cats .product-tabs button,.hero-cats .product-tabs a{flex-shrink:0;white-space:nowrap;padding:14px 18px;font-size:15px;color:rgba(255,255,255,.9)}
  .hero-cats .product-tabs button+button,.hero-cats .product-tabs a+a{border-left:none}
  /* 二级分类：手机端横向滚动 */
  .hero-cats .sub-tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:0 16px 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .hero-cats .sub-tabs::-webkit-scrollbar{display:none}
  .hero-cats .sub-tabs a{flex-shrink:0;padding:7px 14px;font-size:12.5px}
  /* 切换与简介：上下堆叠居中 */
  .os-switch-wrap{flex-direction:column;gap:14px;margin-bottom:26px}
  .os-switch__item{padding:9px 20px;font-size:14px}
  .os-desc{max-width:100%;width:100%;justify-content:center;flex-wrap:wrap;row-gap:8px;padding:12px 14px}
  .os-desc__tags{margin-left:0}
}
