/* ============================================================
   9314.cn 站点定制样式
   由插件 y9314_custom 注入（/zb_users/plugin/y9314_custom/include.php）
   不修改主题任何文件，主题升级不受影响。
   改这里 → 刷新页面即生效（记得同步 ?v= 版本号，见插件 include.php）
   ============================================================ */

/* ---------- 1. 首页分类区：16:9 封面图卡片 ---------- */

/* 卡片外壳：白底、圆角、轻边框，hover 上浮 */
.part .items .item {
  position: relative;
  background: #fff;
  border: 1px solid #EDE7DB;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  margin-bottom: 6px;
}
.part .items .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(58, 46, 32, .13);
  border-color: #DED5C5;
}

/* 整块可点区域：去掉主题的内边距 */
.part .items .item .a {
  display: block;
  width: 100%;
  padding: 0 !important;
  box-sizing: border-box;
  text-decoration: none;
}
.part .items .item .a:hover {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

/* 封面图：16:9 满宽，去掉圆形小图标样式 */
.part .items .item .a img {
  float: none !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #F4EFE6;
}

/* 标题：图下方两行截断 */
.part .items .item .a h3 {
  max-width: none !important;
  margin: 10px 13px 0 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  height: auto !important;
  font-weight: 700 !important;
  color: #2A2622 !important;
  white-space: normal !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}

/* 摘要：两行淡灰小字 */
.part .items .item .a p {
  margin: 6px 13px 13px !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  height: auto !important;
  color: #8C847A !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}

/* 左上角「精选」角标 */
.part .items .item::before {
  content: "精选";
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .5px;
  color: #8A5A1E;
  background: rgba(255, 246, 224, .95);
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(58, 46, 32, .12);
  pointer-events: none;
}

/* 右上角「直达」箭头：落到图区内，做成圆形按钮 */
.part .items .item .link .fa {
  right: 10px !important;
  top: 10px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 24px !important;
  padding-left: 1px !important;
  font-size: 14px !important;
  color: #2A2622 !important;
  background: rgba(255, 255, 255, .92);
  border: none !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  box-shadow: 0 1px 6px rgba(58, 46, 32, .18);
  z-index: 4;
}
.part .items .item .link:hover .fa {
  background: #37896A !important;
  color: #fff !important;
}

/* 分类标题：左侧色条（border 方案，不与文字重叠）+ 更沉稳的字重
   注意：.tt 在主题里是 position:sticky 吸顶元素，这里绝不能覆盖它的 position，
   否则主题的 top:55px 会变成 relative 位移，标题会压到卡片上。 */
.part .tt {
  z-index: 5 !important;              /* 吸顶时盖住卡片角标 */
  border-left: 4px solid #37896A;
  padding-left: 12px !important;
  border-radius: 2px 0 0 2px;
}
.part .tt strong {
  font-weight: 800;
  font-size: 19px;
  color: #2A2622;
}
.part .tt a {
  color: #8C847A !important;
  font-size: 12.5px !important;
}

/* 分类之间的间距，让卡片流更透气 */
.part {
  border-radius: 0;
}
.part .items {
  padding: 18px 16px 14px !important;
}
.part .items .row {
  margin-left: -8px;
  margin-right: -8px;
}
.part .items .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

/* 每个分类给角标一点色彩区分（保持同一暖色系，不抢眼） */
.part#cate2 .items .item::before { color: #6A4C93; background: rgba(244, 238, 252, .96); }
.part#cate3 .items .item::before { color: #1F6E5B; background: rgba(232, 246, 240, .96); }
.part#cate4 .items .item::before { color: #8A5A1E; background: rgba(255, 246, 224, .96); }
.part#cate5 .items .item::before { color: #1D5A8A; background: rgba(232, 242, 252, .96); }
.part#cate6 .items .item::before { color: #8A3B3B; background: rgba(252, 238, 236, .96); }

/* 移动端：两列，图更小，字号收紧 */
@media (max-width: 767px) {
  .part .items { padding: 14px 10px 8px !important; }
  .part .items .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
  }
  .part .items .item .a h3 {
    font-size: 13.5px !important;
    margin: 8px 10px 0 !important;
  }
  .part .items .item .a p {
    font-size: 11.5px !important;
    margin: 4px 10px 10px !important;
    -webkit-line-clamp: 2;
  }
  .part .items .item::before {
    left: 7px;
    top: 7px;
    font-size: 10px;
    padding: 1px 6px;
  }
  .part .items .item .link .fa {
    right: 7px !important;
    top: 7px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 20px !important;
    font-size: 12px !important;
  }
  .part .tt {
    padding-left: 10px !important;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }
  .part .tt strong { font-size: 17px; }
}

/* ---------- 2. 文章页：正文首图（封面）通栏圆角 ---------- */
.art-main img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---------- 3. 作者署名（插件把拼音别名换成中文笔名并加链接） ---------- */
.data .info a.y9314-author {
  color: #5C5650 !important;
  text-decoration: none;
  border-bottom: 1px dashed #D6CFC6;
  transition: color .15s, border-color .15s;
}
.data .info a.y9314-author:hover {
  color: #37896A !important;
  border-bottom-color: #37896A;
}

/* ---------- 4. 作者页资料头区（仿创作者主页，插件注入） ---------- */
.y9314-profile {
  background:
    radial-gradient(circle at 12% 20%, rgba(55, 137, 106, .14), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(217, 130, 43, .12), transparent 40%),
    radial-gradient(circle at 70% 90%, rgba(59, 123, 212, .10), transparent 45%),
    linear-gradient(135deg, #EFF7F1 0%, #F7F4EA 100%);
  border-bottom: 1px solid #E7E1D6;
  padding: 34px 0 0;
}
.y9314-pcard {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.y9314-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  flex: none;
}
.y9314-pmain { flex: 1 1 320px; min-width: 0; }
.y9314-pname {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 22px;
  font-weight: 800;
  color: #2A2622;
}
.y9314-lv {
  font-size: 12px;
  font-weight: 600;
  color: #8A6D2F;
  background: #FFF3D6;
  border-radius: 10px;
  padding: 2px 10px;
}
.y9314-field {
  font-size: 12px;
  font-weight: 600;
  color: #37896A;
  background: #E5F2EB;
  border-radius: 10px;
  padding: 2px 10px;
}
.y9314-pstats { display: flex; gap: 28px; margin-top: 10px; }
.y9314-pstats span { font-size: 12px; color: #8C847A; }
.y9314-pstats b { font-size: 18px; font-weight: 800; color: #2A2622; margin-right: 6px; }
.y9314-pintro { margin-top: 8px; font-size: 13px; color: #8C847A; max-width: 640px; line-height: 1.7; }
.y9314-ptabs { flex: 1 1 100%; margin-top: 18px; display: flex; gap: 26px; }
.y9314-ptabs span { padding: 10px 2px 12px; font-size: 14px; color: #8C847A; border-bottom: 2px solid transparent; }
.y9314-ptabs .on { color: #37896A; font-weight: 700; border-bottom-color: #37896A; }

@media (max-width: 768px) {
  .y9314-profile { padding: 24px 0 0; }
  .y9314-avatar { width: 64px; height: 64px; border-width: 3px; }
  .y9314-pname { font-size: 18px; }
  .y9314-pstats { gap: 18px; }
  .y9314-pstats b { font-size: 15px; }
  .y9314-pintro { font-size: 12.5px; }
}
