/* Flux Pro Patches
   目的：把模板里零散的 inline style/旧样式收敛到... */

:root{ --pro-primary:#2D7EFF; }

/* Year copy placeholder: keep layout stable */
[data-toggle="year-copy"]{min-width:4ch; display:inline-block;}

/* Floating action button (cart page) */
.pro-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:84px;
  height:84px;
  z-index:1040;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pro-fab a{ text-decoration:none; }
.pro-fab .pro-fab-btn{
  width:84px;
  height:84px;
  border-radius:999px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}
.pro-fab .pro-fab-btn i{ margin-bottom:6px; }
.pro-fab .pro-fab-btn span{ font-size:12px; line-height:1; color:#fff; opacity:.95; }

/* Dropdown menu spacing */
.dropdown-menu{ border-radius:14px; box-shadow:0 22px 60px rgba(0,0,0,.12); border:1px solid rgba(0,0,0,.05); }
.dropdown-item{ padding:.55rem 1rem; }

/* Announcements table: better readability */
.table.table-sm td, .table.table-sm th{ padding:.6rem .75rem; }

/* Remove aggressive animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .block, .btn, a{ transition:none !important; }
  .animated{ animation:none !important; }
}

/* 404 page */
.pro-404{
  min-height:calc(100vh - 74px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 16px;
}
.pro-404 .pro-404-card{
  max-width:720px;
  width:100%;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:0 26px 70px rgba(15,23,42,.12);
  border:1px solid rgba(15,23,42,.06);
  padding:28px 22px;
}
.pro-404 .pro-404-title{ font-size:64px; font-weight:850; letter-spacing:1px; }
.pro-404 .pro-404-desc{ color:rgba(15,23,42,.68); line-height:1.9; }


/* layer 弹窗按钮与主题色统一（首页公告） */
.layui-layer-btn .layui-layer-btn0{border-color:var(--pro-primary);background-color:var(--pro-primary);color:#fff !important;}
.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333 !important;border-radius:6px;font-weight:500;cursor:pointer;text-decoration:none;font-size:14px;}


/* ─────────────────────────────────────────────────────────
   Footer legal notice + disclaimer page
   ───────────────────────────────────────────────────────── */
.pro-footer .pro-footer-legal{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.pro-footer .pro-footer-legal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.pro-footer .pro-footer-legal__title{
  font-weight:750;
  font-size:14px;
  letter-spacing:.2px;
  color:rgba(255,255,255,.92);
}
.pro-footer .pro-footer-legal__actions{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.45);
}
.pro-footer .pro-footer-legal__sep{ opacity:.7; }
.pro-footer .pro-footer-legal__link{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  transition:all .18s ease;
}
.pro-footer .pro-footer-legal__link:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.22);
  transform:translateY(-1px);
}
.pro-footer .pro-footer-legal__summary{
  margin-top:10px;
  font-size:12.5px;
  line-height:1.9;
  color:rgba(255,255,255,.62);
  max-width:980px;
}

/* Disclaimer page */
.pro-legal-hero{
  padding:34px 0 10px;
  background:
    radial-gradient(800px 300px at 20% 10%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(700px 280px at 80% 0%, rgba(14,165,233,.16), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,0));
}
.pro-legal-hero__wrap{ max-width:980px; margin:0 auto; }
.pro-legal-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:650;
  color:rgba(15,23,42,.75);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.14);
  padding:6px 10px;
  border-radius:999px;
}
.pro-legal-hero__title{
  margin:14px 0 10px;
  font-size:34px;
  font-weight:850;
  letter-spacing:.2px;
  color:#0f172a;
}
.pro-legal-hero__sub{
  margin:0 0 16px;
  color:rgba(15,23,42,.68);
  line-height:1.85;
  max-width:860px;
}
.pro-legal-tabs{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.8);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}
.pro-legal-tab{
  border:0;
  background:transparent;
  padding:9px 14px;
  border-radius:999px;
  font-weight:750;
  color:rgba(15,23,42,.72);
  cursor:pointer;
  transition:all .18s ease;
}
.pro-legal-tab:hover{ background:rgba(37,99,235,.07); color:#1d4ed8; }
.pro-legal-tab.is-active{
  background:#2563eb;
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}
.pro-legal-section{ padding-top:14px; padding-bottom:30px; }
.pro-legal-card{
  display:none;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow:0 24px 60px rgba(15,23,42,.10);
  padding:18px 18px 14px;
}
.pro-legal-card.is-active{ display:block; }
.pro-legal-card__title{
  font-size:16px;
  font-weight:850;
  color:#0f172a;
  margin:0 0 10px;
}
.pro-legal-list{
  margin:0;
  padding-left:18px;
  color:rgba(15,23,42,.72);
  line-height:1.9;
}
.pro-legal-list li{ margin:8px 0; }
.pro-legal-muted{ color:rgba(15,23,42,.56); }
.pro-legal-help{
  margin-top:14px;
  background:rgba(37,99,235,.06);
  border:1px solid rgba(37,99,235,.14);
  border-radius:16px;
  padding:14px 14px;
}
.pro-legal-help__title{ font-weight:850; color:#0f172a; }
.pro-legal-help__desc{ margin-top:6px; color:rgba(15,23,42,.70); line-height:1.8; }
.pro-legal-help__actions{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }

/* ===== Home Hero (Conversion Optimized) ===== */
.pro-home-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.90);
  font-size:12px;
  letter-spacing:.4px;
}

.pro-home-hero-title{
  font-size:54px;
  line-height:1.06;
  font-weight:900;
  letter-spacing:.2px;
  margin:14px 0 12px;
}

.pro-home-hero-title__sub{
  display:block;
  margin-top:10px;
  font-size:18px;
  font-weight:750;
  opacity:.88;
}

.pro-home-hero-sub{
  font-size:16px;
  line-height:1.8;
  color:rgba(255,255,255,.78);
  max-width:720px;
  margin:0 0 10px;
}

.pro-home-hero-proof{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:rgba(255,255,255,.70);
  margin:10px 0 12px;
}
.pro-home-hero-proof i{
  font-style:normal;
  opacity:.45;
}

.pro-home-hero-badges{ margin-top:12px; }
.pro-home-badge{
  border-radius:999px;
  padding:8px 12px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
}

.pro-home-hero-cta .btn-hero{
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
}

@media (max-width: 768px){
  .pro-home-hero-title{ font-size:38px; }
  .pro-home-hero-title__sub{ font-size:16px; }
}

/* ─────────────────────────────────────────────────────────
   Cart 产品列表（表格版）
   - 修复：CPU/价格/表头换行
   - 优化：分类胶囊横向滚动 + 搜索/计数
   v2026.01.16
   ───────────────────────────────────────────────────────── */

.page-cart .pro-cart-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 50px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
}

.page-cart .pro-cart-cats{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  overflow:auto;
  padding:2px 2px;
  -webkit-overflow-scrolling:touch;
  max-width:100%;
}

.page-cart .pro-cart-cats::-webkit-scrollbar{ height:8px; }
.page-cart .pro-cart-cats::-webkit-scrollbar-thumb{ background:rgba(15,23,42,.12); border-radius:999px; }

.page-cart .pro-cat-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  color:rgba(15,23,42,.74);
  font-weight:750;
  font-size:13px;
  white-space:nowrap;
  text-decoration:none;
  transition:all .15s ease;
}

.page-cart .pro-cat-pill:hover{
  border-color:rgba(37,99,235,.35);
  color:#1d4ed8;
  background:rgba(37,99,235,.05);
  transform:translateY(-1px);
}

.page-cart .pro-cat-pill.is-active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}

.page-cart .pro-cart-tools{ flex:1; display:flex; justify-content:flex-end; }
.page-cart .pro-cart-search{ width:min(520px, 100%); }

.page-cart .pro-cart-meta{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.page-cart .pro-cart-count{ font-size:12.5px; color:rgba(15,23,42,.62); }
.page-cart .pro-cart-count span{ font-weight:850; color:#0f172a; }
.page-cart .pro-cart-total{ opacity:.65; font-weight:700; }

@media (max-width: 768px){
  .page-cart .pro-cart-tools{ width:100%; justify-content:stretch; }
  .page-cart .pro-cart-search{ width:100%; }
}


/* 列表与下方模块/页脚间距 */
.page-cart .pro-cart-table-wrap{ margin-bottom:40px; }
.page-cart .pro-cart-table-resp{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 20px 60px rgba(15,23,42,.06);
}

.page-cart .pro-cart-table{
  margin:0;
  min-width:1100px;
}

.page-cart .pro-cart-table thead th{
  background:#f8fafc;
  border-bottom:1px solid rgba(15,23,42,.08);
  color:rgba(15,23,42,.72);
  font-weight:850;
  white-space:nowrap;
}

.page-cart .pro-cart-table td,
.page-cart .pro-cart-table th{
  padding:16px 14px;
  vertical-align:middle;
}

.page-cart .pro-cart-row{ transition:background-color .12s ease; }
.page-cart .pro-cart-row:hover{ background:rgba(37,99,235,.04); }

/* 列宽 & 不换行：修复 Xeon / 价格 分行问题（但允许硬盘/带宽自动换行，避免参数被遮挡） */
.page-cart .pro-cart-table .td-cpu,
.page-cart .pro-cart-table .td-mem,
.page-cart .pro-cart-table .td-ddos,
.page-cart .pro-cart-table .td-ip,
.page-cart .pro-cart-table .td-price{
  white-space:nowrap;
  word-break:keep-all;
}

/* 硬盘/带宽可能很长：允许换行，保证完整显示 */
.page-cart .pro-cart-table .td-disk,
.page-cart .pro-cart-table .td-bw{
  white-space:normal;
  word-break:break-word;
}

.page-cart .pro-model-name{ font-weight:800; color:#0f172a; }
.page-cart .pro-model-badges .badge{ border-radius:999px; padding:.35rem .55rem; }

.page-cart .pro-price-main{
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}
.page-cart .pro-price-cycle{ opacity:.75; font-weight:750; }

.page-cart .pro-td-action .btn{
  border-radius:999px;
  padding:10px 18px;
  font-weight:800;
}

.page-cart .pro-cart-empty{
  padding:14px 12px;
  color:rgba(15,23,42,.62);
  text-align:center;
}
