/* 首页 */
body { background: #f8fafc; }
.content { padding: 0; }

/* ===== hero ===== */
.index-hero { padding: 15px 0 0; }
.hero-cats { float: left; width: 200px; background: #fff; margin-right: 12px; }
.hero-cats h3 { margin: 0; padding: 12px 16px; font-size: 14px; color: #fff; background: #409EFF; font-weight: normal; }
.hero-cats ul { margin: 0; padding: 0; list-style: none; }
.hero-cats li a { display: block; padding: 9px 16px; font-size: 13px; color: #555; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.hero-cats li a:hover { color: #409EFF; background: #ecf5ff; }
.hero-slider { float: left; width: calc(100% - 440px); margin-right: 12px; }
.hero-slider .carousel { margin: 0; }
.hero-slider .carousel-inner .item img { width: 100%; height: 320px; object-fit: cover; }
.hero-slider .carousel-indicators { bottom: 8px; }
.hero-slider .carousel-indicators li { width: 8px; height: 8px; background: #ccc; border: none; margin: 0 4px; border-radius: 50%; }
.hero-slider .carousel-indicators .active { background: #409EFF; }
.hero-side { float: right; width: 200px; }
.hero-news { background: #fff; border: 1px solid #eee; border-radius: 4px; margin-bottom: 10px; }
.hero-news-hd { padding: 10px 14px; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; font-weight: 500; }
.hero-news ul { margin: 0; padding: 8px 14px; list-style: none; }
.hero-news li { padding: 6px 0; border-bottom: 1px dashed #f5f5f5; }
.hero-news li:last-child { border-bottom: 0; }
.hero-news li a { font-size: 12px; color: #666; text-decoration: none; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-news li a:hover { color: #409EFF; }
.hero-right-ads { margin-top: 0; }
.hero-right-ad { margin-bottom: 8px; }
.hero-right-ad img { width: 100%; border-radius: 3px; display: block; }
.hero-quick { margin-bottom: 10px; }
.hero-quick-btn { display: block; padding: 10px 12px; font-size: 13px; color: #fff; border-radius: 4px; text-decoration: none; margin-bottom: 6px; transition: opacity .2s; }
.hero-quick-btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.hero-quick-btn .fa { margin-right: 4px; }
.hero-quick-goods { background: #409EFF; }
.hero-quick-task { background: #67C23A; }
.hero-quick-merchant { background: #E6A23C; }
.hero-quick-fav { background: #F56C6C; }

/* 中部横幅广告 */
.index-mid-ad { padding: 0 0 28px 0; text-align: center; }
.index-mid-ad img { max-width: 100%; border-radius: 4px; display: inline-block; }

/* ===== shared ===== */
.index-sec { padding: 28px 0; }
.clearfix:after { content: ''; display: table; clear: both; }
.empty-tip { text-align: center; padding: 50px 0; color: #bbb; font-size: 14px; }

.sec-head { margin-bottom: 18px; }
.sec-head:after { content: ''; display: table; clear: both; }
.sec-head h3 { float: left; margin: 0; font-size: 20px; font-weight: 600; color: #1e293b; line-height: 1; }
.sec-head h3:before { content: ''; display: inline-block; width: 3px; height: 16px; background: #409EFF; margin-right: 10px; vertical-align: -2px; border-radius: 2px; }
.sec-head a { float: right; font-size: 13px; color: #aaa; text-decoration: none; line-height: 20px; }
.sec-head a:hover { color: #409EFF; }

/* unified card hover */
.card-hover { box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: box-shadow .15s, transform .15s; }
.card-hover:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }
.card-img-zoom img { transition: transform .3s ease; }
.card-hover:hover .card-img-zoom img { transform: scale(1.05); }

/* ============================================================
   1. 源码推荐
   ============================================================ */
.src-list { margin: 0 -7px; }
.src-card { float: left; width: 16.666%; padding: 0 7px; box-sizing: border-box; margin-bottom: 14px; position: relative; }
.src-card a { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.src-card a:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }

.src-rank { position: absolute; top: 0; left: 12px; z-index: 2; width: 20px; height: 24px; line-height: 26px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; border-radius: 0 0 4px 4px; }
.src-rank.rk-1 { background: #337ecc; }
.src-rank.rk-2 { background: #E6A23C; }
.src-rank.rk-3 { background: #E6A23C; }
.src-rank.rk-4 { background: #aaa; }
.src-rank.rk-5 { background: #bbb; }
.src-rank.rk-6 { background: #bbb; }

.src-img { position: relative; overflow: hidden; padding-bottom: 62%; background: #fafafa; }
.src-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.src-card a:hover .src-img img { transform: scale(1.05); }
.src-badge { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 1px 5px; color: #fff; border-radius: 2px; line-height: 16px; }
.src-badge.r { background: #409EFF; }
.src-badge.g { background: #27ae60; }
.src-badge.b { background: #2980b9; }

.src-body { padding: 0 12px; }
.src-name { margin: 0; padding-top: 10px; font-size: 13px; color: #222; line-height: 1.5; height: 38px; overflow: hidden; font-weight: 500; }
.src-tag { margin: 0; padding-top: 3px; font-size: 12px; color: #bbb; }
.src-price { margin: 0; padding-top: 6px; font-size: 18px; font-weight: 700; color: #409EFF; line-height: 1; }
.src-price .src-old { font-size: 12px; font-weight: 400; color: #bbb; text-decoration: line-through; margin-left: 6px; }
.src-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 12px; }
.src-shop { font-size: 12px; color: #999; display: flex; align-items: center; gap: 4px; }
.src-shop img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.src-sale { font-size: 12px; color: #bbb; }

/* ============================================================
   2. 服务市场
   ============================================================ */
.svc-grid { margin: 0 -8px; }
.svc-cell { float: left; width: 25%; padding: 0 8px; box-sizing: border-box; margin-bottom: 16px; }
.svc-cell a { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 4px; padding: 18px 16px 16px; transition: box-shadow .15s, transform .15s; text-align: center; }
.svc-cell a:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }

.svc-avatar-row { position: relative; display: inline-block; margin-bottom: 10px; }
.svc-avatar-row .svc-avatar { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #eee; }
.svc-score { position: absolute; bottom: -4px; right: -6px; font-size: 11px; color: #e67e22; background: #fff; border: 1px solid #eee; padding: 0 5px; border-radius: 8px; line-height: 16px; }

.svc-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svc-desc { margin: 0 0 8px; font-size: 12px; color: #bbb; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.svc-price { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #409EFF; }
.svc-price em { font-size: 12px; font-weight: 400; color: #aaa; font-style: normal; }
.svc-price .svc-old { font-size: 12px; font-weight: 400; color: #ccc; text-decoration: line-through; margin-left: 6px; }

.svc-tags { margin-bottom: 10px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.svc-tags span { font-size: 11px; color: #888; background: #f5f5f5; padding: 2px 8px; border-radius: 3px; }

.svc-ft { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.svc-ft-shop { font-size: 12px; color: #999; display: flex; align-items: center; gap: 4px; }
.svc-ft-shop img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.svc-ft-sale { font-size: 12px; color: #bbb; }

/* ============================================================
   3. 精选网�?   ============================================================ */
.site-grid { margin: 0 -8px; }
.site-cell { float: left; width: 25%; padding: 0 8px; box-sizing: border-box; margin-bottom: 16px; }
.site-cell a { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.site-cell a:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }

.si-thumb { overflow: hidden; background: #fafafa; height: 140px; }
.si-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.site-cell a:hover .si-thumb img { transform: scale(1.05); }

.si-body { padding: 14px; }
.si-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.si-title { font-size: 14px; font-weight: 600; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.si-type { font-size: 11px; color: #666; background: #f5f5f5; padding: 1px 6px; border-radius: 3px; flex-shrink: 0; }
.si-domain { display: block; font-size: 12px; color: #aaa; margin-bottom: 6px; }

.si-stats { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.si-s { font-size: 11px; padding: 2px 6px; border-radius: 3px; line-height: 16px; background: #f5f5f5; color: #888; }

.si-bottom { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.si-price { font-size: 18px; font-weight: 700; color: #409EFF; }
.si-old { font-size: 12px; color: #ccc; text-decoration: line-through; }
.si-income { font-size: 12px; color: #999; margin-left: auto; }

/* ============================================================
   4. 域名交易
   ============================================================ */
.domain-grid { margin: 0 -8px; }
.domain-cell { float: left; width: 25%; padding: 0 8px; box-sizing: border-box; margin-bottom: 16px; }
.domain-cell a { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 4px; padding: 16px; transition: box-shadow .15s, transform .15s; }
.domain-cell a:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }

.dm-top { margin-bottom: 8px; }
.dm-name { font-size: 16px; font-weight: 700; color: #222; font-family: Consolas, Monaco, 'Courier New', monospace; }
.dm-len { font-size: 11px; color: #999; background: #f5f5f5; padding: 1px 6px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }

.dm-tags { display: flex; gap: 6px; margin-bottom: 12px; font-size: 12px; color: #aaa; flex-wrap: wrap; align-items: center; }
.dm-tg { font-size: 11px; padding: 1px 6px; border-radius: 3px; line-height: 16px; background: #f5f5f5; color: #888; }

.dm-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-price { font-size: 18px; font-weight: 700; color: #409EFF; }
.dm-old { font-size: 12px; color: #ccc; text-decoration: line-through; }
.dm-shop { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #999; margin-left: auto; }
.dm-shop img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.dm-sale { font-size: 12px; color: #bbb; }

/* ============================================================
   5. 任务大厅
   ============================================================ */
.task-grid { margin: 0 -8px; }
.task-cell { float: left; width: 25%; padding: 0 8px; box-sizing: border-box; margin-bottom: 16px; }
.task-cell a { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 4px; padding: 16px; transition: box-shadow .15s, transform .15s; }
.task-cell a:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }

.tk-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.tk-title { font-size: 14px; font-weight: 500; color: #222; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.4; }
.tk-type { font-size: 11px; padding: 1px 6px; border-radius: 3px; line-height: 16px; flex-shrink: 0; color: #666; background: #f5f5f5; }

.tk-meta { display: flex; gap: 6px; margin-bottom: 10px; }
.tk-lv { font-size: 11px; padding: 1px 7px; border-radius: 3px; line-height: 16px; color: #888; background: #f5f5f5; }
.tk-cycle { font-size: 11px; color: #888; background: #f5f5f5; padding: 1px 7px; border-radius: 3px; line-height: 16px; }

.tk-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.tk-budget { font-size: 17px; font-weight: 700; color: #409EFF; }
.tk-right { display: flex; align-items: center; gap: 6px; }
.tk-apply { font-size: 12px; color: #999; }
.tk-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.tk-publisher { font-size: 12px; color: #999; }

/* ============================================================
   6. 文章 + 帮助文档 + 友情链接
   ============================================================ */
.info-row { margin: 0 -10px; }
.info-col { float: left; width: 50%; padding: 0 10px; box-sizing: border-box; }
.info-block { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 16px 20px 12px; }
.info-block .sec-head { margin-bottom: 10px; }
.info-block .sec-head h3 { font-size: 16px; }

.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { border-bottom: 1px dashed #f0f0f0; }
.info-list li:last-child { border-bottom: 0; }
.info-list li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13px; color: #555; text-decoration: none; }
.info-list li a:hover { color: #409EFF; }

.il-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 8px; }
.il-top { display: inline-block; font-size: 11px; color: #409EFF; border: 1px solid #409EFF; padding: 0 4px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; line-height: 16px; }
.il-date { flex-shrink: 0; font-size: 12px; color: #bbb; font-family: Consolas, Monaco, monospace; }

.help-grid { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.help-item { display: flex; align-items: center; width: 50%; padding: 0 6px; box-sizing: border-box; margin-bottom: 10px; text-decoration: none; color: #555; font-size: 13px; }
.help-item:hover { color: #409EFF; }
.help-item:hover .help-num { background: #409EFF; color: #fff; }
.help-num { flex-shrink: 0; display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #f5f5f5; color: #999; border-radius: 3px; font-size: 12px; font-weight: 600; margin-right: 8px; font-family: Consolas, Monaco, monospace; transition: background .15s, color .15s; }
.help-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.link-bar { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 12px 20px; display: flex; align-items: center; }
.link-label { flex-shrink: 0; font-size: 13px; color: #888; margin-right: 12px; }
.link-divider { flex-shrink: 0; width: 1px; height: 14px; background: #ddd; margin-right: 12px; }
.link-items { flex: 1; }
.link-items a { display: inline-block; font-size: 12px; color: #666; text-decoration: none; margin-right: 16px; }
.link-items a:hover { color: #409EFF; }

/* ============================================================
   mobile
   ============================================================ */
@media (max-width: 768px) {
  .index-hero { padding: 12px 0 0; }
  .hero-cats { display: none; }
  .hero-slider { float: none; width: 100%; margin-right: 0; margin-bottom: 10px; }
  .hero-slider .carousel-inner .item img { height: 180px; }
  .hero-side { display: block; float: none; width: 100%; }
  .hero-news { margin-bottom: 8px; }
  .hero-quick { display: flex; gap: 6px; margin-bottom: 8px; }
  .hero-quick-btn { flex: 1; text-align: center; padding: 10px 6px; margin-bottom: 0; font-size: 12px; }
  .hero-quick-btn .fa { display: block; margin: 0 0 4px; font-size: 16px; }
  .hero-right-ads { display: none; }

  .index-sec { padding: 20px 0; }
  .sec-head { margin-bottom: 12px; }
  .sec-head h3 { font-size: 16px; }
  .sec-head h3:before { height: 14px; vertical-align: -1px; }

  /* 源码推荐 mobile: 2 columns */
  .src-list { margin: 0 -5px; }
  .src-card { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  .src-name { font-size: 12px; height: 34px; padding-top: 8px; }
  .src-price { font-size: 16px; padding-top: 4px; }
  .src-body { padding: 0 10px; }
  .src-foot { padding: 4px 0 10px; }
  .src-rank { width: 18px; height: 20px; line-height: 22px; font-size: 12px; left: 9px; }

  /* 服务 mobile: 2 columns */
  .svc-grid { margin: 0 -5px; }
  .svc-cell { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  .svc-cell a { padding: 14px 10px 12px; }
  .svc-avatar-row .svc-avatar { width: 44px; height: 44px; }
  .svc-name { font-size: 13px; }
  .svc-price { font-size: 16px; margin-bottom: 8px; }
  .svc-tags { gap: 4px; }
  .svc-ft { padding-top: 8px; }

  /* 网站 mobile: 2 columns */
  .site-grid { margin: 0 -5px; }
  .site-cell { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  .si-thumb { height: 100px; }
  .si-body { padding: 10px; }
  .si-title { font-size: 13px; }
  .si-price { font-size: 16px; }

  /* 域名 mobile: 2 columns */
  .domain-grid { margin: 0 -5px; }
  .domain-cell { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  .domain-cell a { padding: 12px; }
  .dm-name { font-size: 14px; }
  .dm-price { font-size: 16px; }

  /* 任务 mobile: 2 columns */
  .task-grid { margin: 0 -5px; }
  .task-cell { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  .task-cell a { padding: 12px; }
  .tk-title { font-size: 13px; }
  .tk-budget { font-size: 15px; }
  .tk-right { display: none; }

  /* 资讯+帮助 mobile: stack */
  .info-row { margin: 0; }
  .info-col { float: none; width: 100%; padding: 0; margin-bottom: 10px; }
  .info-block { padding: 14px 16px 10px; }
  .help-item { width: 100%; }

  /* 友情链接 */
  .link-bar { padding: 10px 14px; flex-wrap: wrap; }
  .link-divider { display: none; }
  .link-label { margin-right: 8px; margin-bottom: 4px; }
  .index-mid-ad { padding: 0 0 20px 0; }
}
