/* ===== 电商引流推广系统 - 前台样式 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:#f6f6f6; color:#333;
}
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }

/* 顶部导航 */
.topbar {
  position:sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid #eee;
}
.topbar-inner {
  max-width:1200px; margin:0 auto; padding:0 16px;
  height:60px; display:flex; align-items:center; justify-content:space-between;
}
.brand { display:flex; align-items:center; gap:10px; }
.brand-logo {
  width:38px; height:38px; border-radius:50%;
  background:#e02e24; color:#fff; font-size:20px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.brand-name { font-size:20px; font-weight:700; color:#e02e24; }
.topbar-right { display:flex; align-items:center; gap:14px; font-size:14px; }
.topbar-right a.btn {
  background:#e02e24; color:#fff; padding:7px 16px; border-radius:20px; font-weight:600;
}
.topbar-right .user-tip { color:#666; }
.topbar-right .user-tip b { color:#e02e24; }

/* 搜索区 */
.search-wrap { background:#e02e24; padding:28px 16px 34px; }
.search-box {
  max-width:720px; margin:0 auto;
  background:#fff; border-radius:28px; display:flex; align-items:center;
  padding:6px 6px 6px 22px; box-shadow:0 6px 18px rgba(224,46,36,.25);
}
.search-box input {
  flex:1; border:none; outline:none; font-size:15px; background:transparent;
}
.search-box button {
  background:#e02e24; color:#fff; border:none; border-radius:22px;
  padding:10px 26px; font-size:15px; cursor:pointer;
}
.hot-words {
  max-width:720px; margin:14px auto 0; text-align:center;
}
.hot-words span { color:rgba(255,255,255,.85); font-size:13px; margin-right:10px; }
.hot-words a {
  display:inline-block; color:#fff; font-size:13px; margin:0 6px;
  background:rgba(255,255,255,.18); padding:3px 12px; border-radius:12px;
}

/* 筛选栏 */
.filter-bar {
  background:#fff; border-bottom:1px solid #eee; position:sticky; top:60px; z-index:90;
}
.filter-inner { max-width:1200px; margin:0 auto; padding:10px 16px; }
.filter-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14px; }
.filter-row .label { color:#999; margin-right:4px; }
.filter-row .item {
  padding:4px 14px; border-radius:16px; color:#555; cursor:pointer; user-select:none;
}
.filter-row .item:hover { color:#e02e24; }
.filter-row .item.active { background:#e02e24; color:#fff; }
.filter-row .split { width:1px; height:16px; background:#eee; margin:0 4px; }
.sort-row { margin-top:8px; display:flex; align-items:center; gap:4px; font-size:14px; }
.sort-row .item { color:#555; cursor:pointer; padding:3px 12px; border-radius:14px; }
.sort-row .item.active { color:#e02e24; font-weight:600; }
.sort-row .tips { margin-left:auto; color:#bbb; font-size:12px; }

/* 商品卡片 */
.goods-grid {
  max-width:1200px; margin:0 auto; padding:20px 16px 60px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
@media (max-width:1000px){ .goods-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .goods-grid{ grid-template-columns:repeat(2,1fr); gap:10px; } }
@media (max-width:420px){ .goods-grid{ grid-template-columns:repeat(2,1fr); } }

.goods-card {
  background:#fff; border-radius:12px; overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
  cursor:pointer; position:relative;
}
.goods-card:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.08); }
.goods-img { width:100%; aspect-ratio:1/1; position:relative; overflow:hidden; }
.goods-img img { width:100%; height:100%; object-fit:cover; }
.goods-img .ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:44px; font-weight:700; color:#fff; }
.goods-tag {
  position:absolute; top:8px; left:8px; background:#e02e24; color:#fff;
  font-size:11px; padding:2px 8px; border-radius:10px;
}
.goods-info { padding:10px 12px 12px; }
.goods-title {
  font-size:13px; line-height:1.45; height:2.9em; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  color:#333;
}
.goods-price-row { display:flex; align-items:baseline; gap:6px; margin-top:8px; }
.price-coupon { color:#e02e24; font-size:20px; font-weight:700; }
.price-coupon small { font-size:12px; font-weight:600; }
.price-origin { color:#bbb; font-size:12px; text-decoration:line-through; }
.goods-commission { margin-top:6px; display:flex; align-items:center; gap:8px; }
.comm-box {
  background:#fff4f2; border:1px solid #ffd8d2; color:#e02e24;
  font-size:12px; padding:2px 8px; border-radius:6px; font-weight:600;
}
.goods-sales { color:#999; font-size:12px; margin-left:auto; }
.goods-store { color:#bbb; font-size:12px; margin-top:4px; }
.goods-action { margin-top:10px; display:flex; gap:8px; }
.btn-promote {
  flex:1; background:#e02e24; color:#fff; border:none; border-radius:18px;
  padding:8px 0; font-size:14px; font-weight:600; cursor:pointer;
}
.btn-promote:hover { opacity:.9; }
.btn-detail {
  background:#fff; color:#e02e24; border:1px solid #e02e24; border-radius:18px;
  padding:8px 16px; font-size:13px; cursor:pointer;
}
.btn-buy {
  display:inline-block; background:#ff5f00; color:#fff; border:none; border-radius:18px;
  padding:8px 18px; font-size:13px; cursor:pointer; text-decoration:none;
}
.btn-buy:hover { opacity:.9; }

/* 空状态 */
.empty { text-align:center; color:#bbb; padding:80px 0; }
.empty .big { font-size:44px; margin-bottom:12px; }

/* 弹窗 */
.modal-mask {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.55);
  z-index:999; align-items:center; justify-content:center; padding:20px;
}
.modal-mask.show { display:flex; }
.modal {
  background:#fff; border-radius:14px; max-width:420px; width:100%;
  padding:28px 24px; text-align:center; position:relative;
}
.modal .close { position:absolute; top:10px; right:14px; font-size:22px; color:#bbb; cursor:pointer; }
.modal h3 { font-size:18px; margin-bottom:10px; color:#333; }
.modal p { color:#888; font-size:14px; line-height:1.7; }
.modal .link-box {
  background:#f6f6f6; border-radius:8px; padding:10px; margin:14px 0;
  word-break:break-all; font-size:13px; color:#333; text-align:left;
}
.modal .copy-btn {
  background:#e02e24; color:#fff; border:none; border-radius:18px;
  padding:9px 26px; font-size:14px; cursor:pointer; margin-top:4px;
}
.modal .qrcode-ph { width:150px; height:150px; margin:14px auto 0; border:2px dashed #d9d9d9; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#999; font-size:12px; line-height:1.8; background:#fafafa; }
.modal .wechat-num { color:#e02e24; font-weight:700; font-size:15px; }

/* 悬浮联系按钮 */
.float-contact {
  position:fixed; right:20px; bottom:60px; z-index:200;
  background:#e02e24; color:#fff; border-radius:50%;
  width:54px; height:54px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(224,46,36,.35); cursor:pointer;
  font-size:24px;
}

/* 页脚 */
.footer { background:#2b2b2b; color:#999; padding:26px 16px; text-align:center; font-size:13px; line-height:2; }
.footer b { color:#fff; }

/* 通用页（登录/中心/详情） */
.page-body { max-width:1200px; margin:0 auto; padding:24px 16px 60px; }
.card { background:#fff; border-radius:12px; padding:24px; }
.card h2 { font-size:20px; margin-bottom:18px; }
.form-item { margin-bottom:16px; }
.form-item label { display:block; font-size:14px; margin-bottom:6px; color:#555; }
.form-item input[type=text], .form-item input[type=password] {
  width:100%; border:1px solid #e0e0e0; border-radius:8px; padding:11px 14px; font-size:15px; outline:none;
}
.form-item input:focus { border-color:#e02e24; }
.btn-main {
  background:#e02e24; color:#fff; border:none; border-radius:8px;
  padding:12px 0; width:100%; font-size:16px; cursor:pointer;
}
.tip-info { background:#fff8e6; border:1px solid #ffe9b3; color:#8a6d1a; border-radius:8px; padding:12px 14px; font-size:13px; line-height:1.7; margin-bottom:18px; }
.text-muted { color:#999; font-size:13px; }

/* 栏目导航条 */
.main-nav { background:#fff; border-bottom:1px solid #f0f0f0; }
.main-nav-inner { max-width:1200px; margin:0 auto; padding:0 16px; display:flex; gap:28px; }
.main-nav a { display:inline-block; padding:12px 2px 10px; font-size:15px; font-weight:600; color:#666; text-decoration:none; border-bottom:2px solid transparent; }
.main-nav a:hover { color:#e02e24; }
.main-nav a.active { color:#e02e24; border-bottom-color:#e02e24; }

/* 商品卡优惠券角标 */
.goods-coupon-tag { position:absolute; right:8px; bottom:8px; background:#ff6a00; color:#fff; font-size:11px; font-weight:700; padding:2px 7px; border-radius:4px; }

/* 开号申请表单 */
.apply-input { width:100%; box-sizing:border-box; border:1px solid #e5e5e5; border-radius:8px; padding:11px 14px; font-size:14px; margin-bottom:10px; outline:none; font-family:inherit; }
.apply-input:focus { border-color:#e02e24; }
.apply-submit { width:100%; background:#e02e24; color:#fff; border:none; border-radius:8px; padding:12px 0; font-size:15px; font-weight:700; cursor:pointer; margin-top:2px; }
.apply-submit:hover { opacity:.92; }

/* ========== 新版红色多栏目导航 ========== */
.site-nav { position:relative; z-index:100; background:#fff; color:#333; box-shadow:0 2px 14px rgba(0,0,0,.08); }
.site-nav .nav-inner { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; height:64px; gap:26px; }
.site-nav .brand { display:flex; align-items:center; gap:10px; color:#1b1b1f; text-decoration:none; flex-shrink:0; }
.site-nav .brand-logo { width:38px; height:38px; border-radius:50%; background:linear-gradient(180deg,#fffdf5,#ffe9c4); color:#e02e24; font-weight:800; font-size:17px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(0,0,0,.22), inset 0 0 0 1.5px rgba(240,169,46,.5); flex-shrink:0; }
.site-nav .brand-name { font-size:18px; font-weight:800; color:#1b1b1f; letter-spacing:1px; line-height:1.2; }
.site-nav .brand-sub { font-size:11.5px; color:#9a9790; font-weight:400; letter-spacing:.5px; display:block; margin-top:1px; }
.nav-links { display:flex; align-items:center; gap:4px; flex:1; min-width:0; }
.nav-links a { color:#4a4a52; text-decoration:none; font-size:15px; font-weight:500; padding:8px 15px; border-radius:999px; transition:all .2s; white-space:nowrap; }
.nav-links a:hover { background:#fdece9; color:#e02e24; }
.nav-links a.active { background:linear-gradient(135deg,#e02e24,#ff5f3d); color:#fff; font-weight:700; box-shadow:0 3px 10px rgba(224,46,36,.28); }
.nav-new { display:inline-block; background:#ffd25a; color:#8a5a00; font-size:10px; font-weight:800; padding:1px 6px; border-radius:99px; margin-left:5px; vertical-align:2px; letter-spacing:0; }
.nav-right { display:flex; align-items:center; gap:14px; color:#555; font-size:14px; flex-shrink:0; }
.nav-right a { color:#555; text-decoration:none; transition:opacity .2s; white-space:nowrap; }
.nav-right a:hover { opacity:.85; }
.nav-right .btn { background:linear-gradient(135deg,#e02e24,#ff5f3d); color:#fff; font-weight:700; padding:9px 20px; border-radius:999px; box-shadow:0 3px 12px rgba(224,46,36,.28); }
.nav-right .btn:hover { opacity:1; transform:translateY(-1px); }
.nav-right .user-tip { font-size:13px; }
.nav-burger { display:none; background:none; border:none; color:#333; font-size:22px; cursor:pointer; padding:4px 8px; }
.nav-mobile { display:none; }
@media (max-width:960px){
  .nav-links, .nav-right > a:not(.btn) { display:none; }
  .nav-burger { display:block; }
  .site-nav .nav-inner { height:56px; gap:12px; }
  .nav-mobile.open { display:block; background:#fff; border-top:1px solid #f0eeea; }
  .nav-mobile a { display:block; color:#333; text-decoration:none; padding:13px 22px; font-size:15px; border-bottom:1px solid #f7f5f2; }
  .nav-mobile a:last-child { border-bottom:none; }
  .nav-mobile a.active { background:#fdece9; color:#e02e24; }
  .nav-mobile .nav-new { margin-left:5px; }
}

/* ========== 漂亮申请表单（左右分栏卡片） ========== */
.modal-lg { width:720px; max-width:94vw; padding:0 !important; overflow:hidden; border-radius:18px; }
.apply-card-inner { display:grid; grid-template-columns:300px 1fr; }
.apply-left { background:linear-gradient(160deg,#a81d18 0%,#e02e24 65%,#f04a2e 100%); color:#fff; padding:36px 28px; }
.apply-left h3 { font-size:21px; font-weight:800; margin:0 0 14px; line-height:1.4; }
.apply-left p { font-size:13px; color:rgba(255,255,255,.88); line-height:1.9; margin:0 0 30px; }
.al-info { display:flex; gap:10px; align-items:center; font-size:13px; margin-bottom:13px; color:rgba(255,255,255,.95); }
.al-info span { width:34px; height:34px; border-radius:10px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.apply-right { padding:34px 30px; }
.apply-right .apply-title { font-size:17px; font-weight:800; color:#1b1b1f; margin:0 0 4px; }
.apply-right .apply-sub { font-size:12px; color:#aaa; margin:0 0 20px; }
.apply-input { width:100%; box-sizing:border-box; background:#f6f5f2; border:1px solid transparent; border-radius:10px; padding:12px 15px; font-size:14px; margin-bottom:12px; outline:none; transition:all .2s; font-family:inherit; color:#333; }
.apply-input::placeholder { color:#b9b5ad; }
.apply-input:focus { background:#fff; border-color:#e02e24; box-shadow:0 0 0 3px rgba(224,46,36,.12); }
textarea.apply-input { resize:none; }
.apply-submit { width:100%; background:linear-gradient(135deg,#e02e24,#ff5f3d); color:#fff; border:none; border-radius:10px; padding:13px 0; font-size:15px; font-weight:700; cursor:pointer; margin-top:4px; box-shadow:0 6px 18px rgba(224,46,36,.3); transition:all .2s; }
.apply-submit:hover { opacity:.93; transform:translateY(-1px); }
@media (max-width:640px){
  .apply-card-inner { grid-template-columns:1fr; }
  .apply-left { padding:26px 22px; }
  .apply-left p { margin-bottom:16px; }
  .apply-left .al-info { margin-bottom:9px; }
}

/* ========== 简洁页脚 ========== */
.footer-simple { background:#17161f; color:#fff; text-align:center; padding:26px 16px; line-height:1.8; }
.fs-brand { font-size:15px; font-weight:700; letter-spacing:1px; }
.fs-copy { font-size:12px; color:#8f8c86; margin-top:4px; }

/* ========== 我们是谁（丰富版） ========== */
.about-card { background:#fff; border:1px solid #f0eeea; border-radius:18px; padding:44px 40px; display:flex; gap:46px; flex-wrap:wrap; align-items:flex-start; box-shadow:0 4px 20px rgba(0,0,0,.03); }
.about-card .a-left { flex:1 1 300px; }
.about-card .a-left .tag { color:#e02e24; font-weight:700; font-size:13px; letter-spacing:3px; margin-bottom:12px; }
.about-card .a-left h3 { font-size:24px; font-weight:800; margin:0 0 14px; color:#1b1b1f; }
.about-card .a-left > p { font-size:14px; color:#8f8c86; line-height:2; margin:0 0 22px; }
.a-points { display:flex; flex-direction:column; gap:12px; }
.a-point { display:flex; gap:12px; align-items:flex-start; padding:13px 16px; background:#faf9f7; border-radius:12px; border:1px solid #f3f1ec; }
.a-point .ap-ic { width:36px; height:36px; border-radius:10px; background:#fdece9; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.a-point b { font-size:14px; color:#333; display:block; margin-bottom:2px; }
.a-point span { font-size:12px; color:#9a9790; }
.about-card .a-right { flex:1 1 340px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.about-card .a-item { background:#faf9f7; border:1px solid #f3f1ec; border-radius:14px; padding:20px 16px; text-align:center; transition:transform .2s, box-shadow .2s; }
.about-card .a-item:hover { transform:translateY(-3px); box-shadow:0 10px 22px rgba(0,0,0,.06); }
.about-card .a-item .aic { width:46px; height:46px; border-radius:13px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; margin:0 auto 10px; box-shadow:0 3px 10px rgba(0,0,0,.06); }
.about-card .a-item b { font-size:14px; color:#333; display:block; margin-bottom:5px; }
.about-card .a-item span { font-size:12px; color:#9a9790; line-height:1.7; }
@media (max-width:720px){
  .about-card { padding:28px 22px; gap:28px; }
  .about-card .a-right { grid-template-columns:1fr 1fr; }
}
