/* ============================================================
   易出海导航 yicx.net — 黑白极简样式 v2
   无框架 · 纯CSS · 加载快 · 响应式
   间距优化版：卡片/区块/文章排版全面放宽
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bk: #111111;          /* 主黑 */
  --bk-soft: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --radius: 8px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--bk);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
/* ---------- 布局：左右结构 ---------- */
.yicx-layout { display: flex; min-height: 100vh; }
/* 左侧固定栏 */
.yicx-side {
  width: 288px;
  flex: 0 0 288px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.yicx-side-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
}
.yicx-side-inner::-webkit-scrollbar { width: 4px; }
.yicx-side-inner::-webkit-scrollbar-thumb { background: #ddd; }
/* Logo */
.yicx-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.yicx-logo-mark {
  width: 42px; height: 42px;
  background: var(--bk); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700;
  border-radius: var(--radius);
  flex: 0 0 42px;
}
.yicx-logo-text { font-size: 19px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.yicx-logo-text small { display: block; font-size: 10px; color: var(--gray-light); letter-spacing: 2px; font-weight: 400; }
/* 搜索 */
.yicx-search { position: relative; display: flex; margin-bottom: 12px; }
.yicx-search input {
  flex: 1; width: 100%;
  border: 1px solid var(--bk);
  border-right: none;
  padding: 10px 13px;
  font-size: 13.5px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--bk);
}
.yicx-search input::placeholder { color: var(--gray-light); }
.yicx-search button {
  border: 1px solid var(--bk);
  background: var(--bk); color: #fff;
  padding: 0 15px;
  font-size: 13px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}
.yicx-search button:hover { background: #000; }
.yicx-search-drop {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--bk);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  max-height: 380px; overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.yicx-search-drop a {
  display: block; padding: 10px 13px; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.yicx-search-drop a:hover { background: var(--bg-soft); }
.yicx-search-drop .yicx-drop-empty { padding: 13px; color: var(--gray); font-size: 13px; }
/* 侧边分类导航 */
.yicx-side-title {
  font-size: 12px; color: var(--gray-light);
  letter-spacing: 2px; margin: 26px 0 12px;
  font-weight: 600;
}
.yicx-side-nav ul { display: flex; flex-direction: column; gap: 3px; }
.yicx-side-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--bk-soft);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.yicx-side-link:hover { background: var(--bk); color: #fff; }
.yicx-side-link .yicx-side-cnt {
  font-size: 11px; color: var(--gray-light);
  background: var(--bg-soft);
  padding: 1px 8px; border-radius: 20px;
}
.yicx-side-link:hover .yicx-side-cnt { background: #333; color: #fff; }
/* 侧边标签 */
.yicx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.yicx-tag-pill {
  display: inline-block;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--gray);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all .15s;
}
.yicx-tag-pill:hover { border-color: var(--bk); color: var(--bk); background: var(--bg-soft); }
.yicx-side-foot { margin-top: auto; padding-top: 26px; font-size: 11.5px; color: var(--gray-light); }
.yicx-side-foot p { margin-bottom: 4px; }
.yicx-side-foot a:hover { color: var(--bk); text-decoration: underline; }
/* ---------- 右侧主区 ---------- */
.yicx-main { flex: 1; min-width: 0; }
.yicx-hero {
  padding: 60px 44px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.yicx-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; }
.yicx-hero-sub { font-size: 18px; font-weight: 400; color: var(--gray); }
.yicx-hero p { margin-top: 12px; color: var(--gray); font-size: 14.5px; max-width: 680px; }
.yicx-main-inner {
  padding: 36px 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
}
.yicx-main-content { min-width: 0; }
.yicx-main-inner.yicx-ad-hidden { grid-template-columns: minmax(0, 1fr); }
/* ---------- 广告位 ---------- */
.yicx-ad-side {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.yicx-ad { min-width: 0; }
.yicx-ad-banner { margin: 0 44px 4px; }
.yicx-ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  border: 1px dashed #c8c8c8;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color .15s, transform .15s;
}
.yicx-ad-card:hover { border-color: var(--bk); transform: translateY(-1px); }
.yicx-ad-tag {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 10px;
  color: var(--gray-light);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 6px;
  border-radius: 10px;
  line-height: 16px;
}
.yicx-ad-title {
  font-size: 14px; font-weight: 600; color: var(--bk);
  line-height: 1.45;
  padding-right: 34px;
}
.yicx-ad-desc { font-size: 12px; color: var(--gray); line-height: 1.6; }
.yicx-ad-img { width: 100%; height: auto; border-radius: 6px; }
/* 通栏广告（首页顶部） */
.yicx-ad-banner .yicx-ad-card {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  text-align: center;
}
.yicx-ad-banner .yicx-ad-title { padding-right: 0; font-size: 15px; }
.yicx-ad-banner .yicx-ad-img { width: auto; max-height: 60px; border-radius: 4px; }
/* ---------- 区块 ---------- */

.yicx-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.yicx-sec-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.yicx-bar { display: inline-block; width: 4px; height: 18px; background: var(--bk); }
.yicx-sec-more { font-size: 12.5px; color: var(--gray); white-space: nowrap; }
.yicx-sec-more:hover { color: var(--bk); text-decoration: underline; }
/* 站点卡片网格 */
.yicx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.yicx-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.yicx-card:hover {
  border-color: var(--bk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
}
.yicx-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.yicx-card-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 6px; }
.yicx-card-title {
  font-size: 14px; font-weight: 600; color: var(--bk);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yicx-card-desc {
  font-size: 12px; color: var(--gray); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 37px;
}
/* 卡片底部固定信息区：分类 + 标签，统一对齐 */
.yicx-card-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 7px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.yicx-card-cats {
  font-size: 11px; color: var(--gray-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yicx-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.yicx-card-tag {
  font-style: normal;
  font-size: 10.5px; color: var(--gray);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 8px; border-radius: 20px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 分类总览 */
.yicx-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
.yicx-cat-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all .15s;
}
.yicx-cat-card:hover { background: var(--bk); color: #fff; border-color: var(--bk); }
.yicx-cat-name { font-size: 15px; font-weight: 600; }
.yicx-cat-cnt { font-size: 12px; color: var(--gray-light); }
.yicx-cat-card:hover .yicx-cat-cnt { color: #aaa; }
/* 资讯 */
.yicx-news { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.yicx-news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: padding-left .15s;
}
.yicx-news-item:hover { padding-left: 12px; }
.yicx-news-date { color: var(--gray-light); font-size: 12px; flex: 0 0 88px; font-variant-numeric: tabular-nums; }
.yicx-news-title { color: var(--bk-soft); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yicx-news-item:hover .yicx-news-title { color: var(--bk); text-decoration: underline; }
.yicx-news-cat {
  flex: 0 0 auto; font-size: 11px; color: var(--gray);
  border: 1px solid var(--line); padding: 2px 9px; border-radius: 20px;
}
/* 资讯列表页大条目 */
.yicx-news-lg { flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 8px; }
.yicx-news-lg .yicx-news-top { display: flex; align-items: center; gap: 12px; }
.yicx-news-lg .yicx-news-date { flex: 0 0 auto; }
.yicx-news-lg .yicx-news-title {
  white-space: normal; font-size: 16px; font-weight: 600; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yicx-news-lg .yicx-news-excerpt {
  font-size: 12.5px; color: var(--gray); line-height: 1.65; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* FAQ */
.yicx-faq { border-top: 1px solid var(--line); }
.yicx-faq-item { padding: 17px 6px; border-bottom: 1px solid var(--line); }
.yicx-faq-item h3 { font-size: 15px; margin-bottom: 8px; }
.yicx-faq-item p { font-size: 13.5px; color: var(--gray); line-height: 1.75; }
/* 友链 */
.yicx-friend { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.yicx-friend a { font-size: 13px; color: var(--gray); }
.yicx-friend a:hover { color: var(--bk); text-decoration: underline; }
/* ---------- 内页 ---------- */
.yicx-cr { font-size: 12.5px; color: var(--gray-light); margin-bottom: 26px; display: flex; flex-wrap: wrap; }
.yicx-cr ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.yicx-cr li { display: flex; align-items: center; }
.yicx-cr li a:hover { color: var(--bk); text-decoration: underline; }
.yicx-cr-sep { margin: 0 9px; color: #ccc; }
.yicx-cr-cur { color: var(--gray); }
.yicx-page-head { margin-bottom: 30px; }
.yicx-page-head h1 { font-size: 27px; font-weight: 800; margin-bottom: 10px; }
.yicx-page-head p { color: var(--gray); font-size: 14px; line-height: 1.7; }
.yicx-page-head .yicx-btn { margin-top: 18px; }
/* 详情页 */
.yicx-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  margin-bottom: 42px;
}
.yicx-detail-head { display: flex; gap: 20px; align-items: flex-start; }
.yicx-detail-icon { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 12px; border: 1px solid var(--line); }
.yicx-detail-info h1 { font-size: 25px; font-weight: 800; line-height: 1.35; }
.yicx-detail-desc { margin-top: 10px; color: var(--gray); font-size: 14px; line-height: 1.8; }
.yicx-detail-actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.yicx-btn {
  display: inline-block;
  background: var(--bk); color: #fff;
  padding: 10px 24px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  transition: opacity .15s;
}
.yicx-btn:hover { opacity: .82; }
.yicx-detail-host { font-size: 12.5px; color: var(--gray-light); }
.yicx-detail-meta { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.yicx-meta-row { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.yicx-meta-label { color: var(--gray-light); flex: 0 0 68px; font-size: 12.5px; }
.yicx-url { color: var(--gray); word-break: break-all; }
.yicx-url:hover { color: var(--bk); text-decoration: underline; }
.yicx-muted { color: var(--gray-light); font-size: 13px; }
/* 文章页 */
.yicx-post { border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px; margin-bottom: 42px; }
.yicx-post-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.yicx-post-head h1 { font-size: 26px; font-weight: 800; line-height: 1.5; }
.yicx-post-meta { margin-top: 12px; color: var(--gray-light); font-size: 13px; }
.yicx-post-body { font-size: 15.5px; line-height: 1.95; color: #222; }
.yicx-post-body h2 { font-size: 20px; margin: 32px 0 14px; padding-left: 12px; border-left: 4px solid var(--bk); }
.yicx-post-body h3 { font-size: 17px; margin: 26px 0 12px; }
.yicx-post-body p { margin: 14px 0; }
.yicx-post-body img { margin: 20px auto; border-radius: var(--radius); }
.yicx-post-body a { color: var(--bk); text-decoration: underline; text-underline-offset: 3px; }
.yicx-post-body ul, .yicx-post-body ol { margin: 14px 0 14px 24px; }
.yicx-post-body li { margin: 8px 0; }
.yicx-post-body blockquote {
  margin: 20px 0; padding: 14px 20px;
  background: var(--bg-soft); border-left: 4px solid var(--bk);
  color: var(--gray);
}
.yicx-post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.yicx-post-body th, .yicx-post-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.yicx-post-body th { background: var(--bg-soft); font-weight: 600; }
.yicx-post-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
/* 页脚 */
.yicx-foot { border-top: 1px solid var(--line); padding: 30px 44px; }
.yicx-foot-inner { font-size: 12.5px; color: var(--gray-light); }
.yicx-foot-inner p { margin-bottom: 6px; }
.yicx-foot-links a { margin-right: 14px; }
.yicx-foot-links a:hover { color: var(--bk); text-decoration: underline; }
.yicx-foot-note { font-size: 11.5px; }
/* 返回顶部 */
.yicx-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 40px; height: 40px;
  background: var(--bk); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 15px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 90;
}
.yicx-top.show { opacity: .85; pointer-events: auto; }
.yicx-top:hover { opacity: 1; }
/* 移动端导航开关 */
.yicx-nav-toggle { display: none; }
/* ---------- 响应式 ---------- */
/* 广告栏在较窄桌面下隐藏，避免挤压内容 */
@media (max-width: 1366px) {
  .yicx-main-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .yicx-ad-side { display: none; }
}
@media (max-width: 1024px) {
  .yicx-layout { flex-direction: column; }
  .yicx-side {
    width: 100%; flex: none;
    border-right: none; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 80;
    background: rgba(255,255,255,.97);
  }
  .yicx-side-inner {
    position: static; height: auto; overflow: visible;
    padding: 14px 18px;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 10px;
  }
  .yicx-logo { margin-bottom: 0; }
  .yicx-logo-mark { width: 34px; height: 34px; font-size: 17px; flex-basis: 34px; }
  .yicx-search { flex: 1; min-width: 180px; margin-bottom: 0; order: 3; width: 100%; flex-basis: 100%; }
  .yicx-side-nav, .yicx-side-tags, .yicx-side-foot { display: none; width: 100%; order: 4; }
  .yicx-side-nav.open { display: block; }
  .yicx-side-tags.open { display: block; }
  .yicx-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--bk); background: #fff;
    border-radius: var(--radius); cursor: pointer;
    font-size: 16px; order: 1;
  }
  .yicx-hero { padding: 36px 20px 30px; }
  .yicx-hero h1 { font-size: 26px; }
  .yicx-main-inner { padding: 24px 18px 32px; grid-template-columns: minmax(0, 1fr); }
  .yicx-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
  .yicx-ad-banner { margin: 0 18px 4px; }
  .yicx-detail-actions { flex-wrap: wrap; }
  .yicx-meta-row { flex-wrap: wrap; row-gap: 6px; }
  .yicx-foot { padding: 22px 18px; }
  .yicx-detail-head { flex-direction: column; }
  .yicx-post { padding: 24px 18px; }
  .yicx-post-head h1 { font-size: 22px; }
  .yicx-card { padding: 13px 14px; }
}
@media (max-width: 480px) {
  .yicx-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .yicx-card { padding: 11px 12px; gap: 6px; }
  .yicx-card-top { gap: 8px; }
  .yicx-card-icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 5px; }
  .yicx-card-title { font-size: 13px; line-height: 1.4; }
  .yicx-card-desc { display: none; }
  .yicx-card-foot { padding-top: 7px; gap: 5px; }
  .yicx-card-tags { gap: 4px; }
  .yicx-card-tag { font-size: 10px; padding: 0 7px; }
  .yicx-card-tag:nth-child(n+2) { display: none; }
  .yicx-news-date { flex-basis: 76px; }
  .yicx-sec-title { font-size: 17px; }
  .yicx-hero { padding: 26px 16px 22px; }
  .yicx-hero h1 { font-size: 23px; line-height: 1.35; }
  .yicx-hero-sub { display: block; font-size: 15px; margin-top: 4px; }
  .yicx-cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .yicx-cat-card { padding: 13px 14px; }
  .yicx-post { padding: 20px 14px; }
  .yicx-post-head h1 { font-size: 20px; }
  .yicx-post-body { font-size: 15px; }
  .yicx-side-inner { padding: 12px 14px; gap: 8px; }
  .yicx-logo-text { font-size: 17px; }
  .yicx-logo-text small { display: none; }
  .yicx-nav-toggle { width: 36px; height: 36px; }
  .yicx-news-lg { padding: 15px 6px; }
  .yicx-news-lg .yicx-news-title { font-size: 14.5px; }
  .yicx-detail { padding: 22px 16px; }
  .yicx-detail-info h1 { font-size: 21px; }
  .yicx-btn { padding: 9px 18px; }
}
