/* ============================================================
   55Links 克隆版 - 公共样式
   配色：商务蓝 (#1f6fff) 为主，橙色 (#ff6a00) 为价格/CTA 强调
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #1f6fff;
  --blue-d: #1455d6;
  --orange: #ff6a00;
  --bg: #f4f6fa;
  --line: #e6e9f0;
  --text: #2b3340;
  --muted: #8a93a3;
  --green: #2bbf6a;
}
html, body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
ul { list-style: none; }
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 顶部条 ---------- */
.topbar { background: #0f1f3d; color: #c7d2e6; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #c7d2e6; margin-left: 14px; }
.topbar a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.header { background: #fff; border-bottom: 2px solid #ff8f1f; }
.header .container { display: flex; align-items: center; height: 88px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 26px; color: var(--blue); margin-right: 40px; white-space: nowrap; }
.logo .dot { color: var(--orange); }
.logo .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; border-left: 1px solid var(--line); padding-left: 8px; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; height: 40px; border: 2px solid var(--blue); border-right: none; border-radius: 4px 0 0 4px; padding: 0 12px; outline: none; font-size: 14px; }
.search button { width: 80px; background: var(--blue); color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }
.search button:hover { background: var(--blue-d); }
.header-tools { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.header-tools .tool { text-align: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.header-tools .tool b { display: block; color: var(--text); font-size: 13px; }
.header-tools .tool .cart-count { color: var(--orange); font-weight: 700; }

/* ---------- 主导航 ---------- */
.nav { background: linear-gradient(90deg, #ff9a1f, #ff6a00); }
.nav .container { display: flex; }
.nav a { color: #fff; padding: 0 22px; height: 46px; line-height: 46px; font-size: 15px; display: inline-block; }
.nav a:hover, .nav a.active { background: rgba(0,0,0,.12); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-top: 16px; }
.section-hd { display: flex; align-items: center; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.section-hd h3 { font-size: 16px; color: var(--text); position: relative; padding-left: 12px; }
.section-hd h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--blue); border-radius: 2px; }
.section-hd .more { margin-left: auto; color: var(--muted); font-size: 13px; }
.section-bd { padding: 16px 18px; }

/* 快捷筛选 */
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick a { background: var(--bg); border: 1px solid var(--line); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--text); }
.quick a:hover { border-color: var(--blue); color: var(--blue); background: #eef4ff; }

/* 分类网格 */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); }
.cat-grid a { background: #fff; text-align: center; padding: 14px 6px; font-size: 14px; color: var(--text); }
.cat-grid a:hover { background: #eef4ff; color: var(--blue); }
.cat-grid a span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 公告 */
.notice li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.notice li:last-child { border-bottom: none; }
.notice .date { color: var(--muted); white-space: nowrap; }
.notice .tag { background: var(--orange); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; }

/* 列表卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 14px; transition: .15s; background: #fff; }
.card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(31,111,255,.12); }
.card .name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card .name .icp { background: var(--green); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 3px; }
.card .name .badge-member { background: var(--blue); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 3px; }
.card .domain { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card .meta span { background: var(--bg); border-radius: 4px; padding: 2px 8px; font-size: 12px; color: #566; }
.card .meta b { color: var(--blue); }
.card .foot { display: flex; align-items: center; justify-content: space-between; }
.card .price { color: var(--orange); font-weight: 700; font-size: 18px; }
.card .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.card .buy { background: var(--orange); color: #fff; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.card .buy:hover { background: #e85f00; }

/* 资讯列表 */
.news-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.news-list .cate { background: #eef4ff; color: var(--blue); font-size: 11px; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.news-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .d { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 两栏布局 */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-top: 16px; align-items: start; }
.side .section { margin-top: 0; }
.side .section + .section { margin-top: 16px; }

/* 筛选工具条 */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .label { color: var(--muted); font-size: 13px; }
.toolbar select, .toolbar input { height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; outline: none; }
.toolbar select:focus, .toolbar input:focus { border-color: var(--blue); }
.toolbar .btn { background: var(--blue); color: #fff; border: none; height: 34px; padding: 0 16px; border-radius: 4px; cursor: pointer; }
.toolbar .btn:hover { background: var(--blue-d); }

/* 面包屑 */
.crumb { font-size: 13px; color: var(--muted); margin: 14px 0; }
.crumb a { color: var(--muted); }

/* 详情页 */
.detail-head { display: flex; gap: 20px; align-items: center; }
.detail-head .avatar { width: 80px; height: 80px; border-radius: 12px; background: linear-gradient(135deg,var(--blue),#5b9bff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.detail-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.detail-table td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; }
.detail-table td:nth-child(odd) { background: var(--bg); color: var(--muted); width: 160px; }

/* 页脚 */
.footer { background: #0f1f3d; color: #9fb0cc; margin-top: 30px; padding: 30px 0 18px; font-size: 13px; }
.footer .flinks { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-bottom: 16px; border-bottom: 1px solid #1c3052; }
.footer .flinks a { color: #9fb0cc; }
.footer .flinks a:hover { color: #fff; }
.footer .copy { text-align: center; margin-top: 16px; color: #6c7d9c; }

/* 购物车浮窗 */
#cart-panel { position: fixed; top: 0; right: -360px; width: 340px; height: 100%; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); z-index: 999; transition: right .25s; display: flex; flex-direction: column; }
#cart-panel.open { right: 0; }
#cart-panel .ch { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; }
#cart-panel .cb { flex: 1; overflow-y: auto; padding: 10px 16px; }
#cart-panel .ci { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
#cart-panel .ci .del { color: var(--orange); cursor: pointer; }
#cart-panel .cf { padding: 14px 16px; border-top: 1px solid var(--line); }
#cart-panel .cf .total { font-size: 15px; margin-bottom: 10px; }
#cart-panel .cf .total b { color: var(--orange); font-size: 20px; }
#cart-panel .cf .pay { width: 100%; background: var(--orange); color: #fff; border: none; height: 42px; border-radius: 4px; cursor: pointer; font-size: 15px; }
#cart-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 998; display: none; }
#cart-mask.open { display: block; }

/* 客服浮动 */
.kefu { position: fixed; right: 16px; bottom: 90px; z-index: 50; text-align: center; }
.kefu a { display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 10px; line-height: 52px; font-size: 12px; box-shadow: 0 4px 12px rgba(31,111,255,.4); }
.kefu a.wx { background: var(--green); box-shadow: 0 4px 12px rgba(43,191,106,.4); }
.kefu a:hover { transform: scale(1.06); }

/* 提示条 */
.toast { position: fixed; top: 40%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 12px 24px; border-radius: 6px; z-index: 1000; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; }
