/* SEO 站通用样式 - skin1
 * 关键首屏样式已 inline 到 <head>，本文件是次屏 / 列表 / 详情样式
 */

img { max-width: 100%; height: auto; display: block; }

h1.page-title { font-size: 26px; margin: 8px 0 16px; line-height: 1.3; }
h2.page-title { font-size: 22px; margin: 8px 0 16px; }
.meta { font-size: 13px; color: #888; margin-bottom: 16px; }
.meta span { margin-right: 12px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.card .cover { aspect-ratio: 16/9; background: #eee no-repeat center/cover; display:block; }
.card .body { padding: 12px; }
.card .body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.card .body h3 a { color: #222; }
.card .body p { margin: 0; font-size: 12px; color: #888; line-height: 1.5; max-height: 60px; overflow: hidden; }

/* 列表条目 */
.list-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.list-row .thumb { flex: 0 0 140px; aspect-ratio: 16/9; background: #eee no-repeat center/cover; border-radius: 4px; }
.list-row .info h3 { margin: 0 0 6px; font-size: 16px; }
.list-row .info p  { margin: 6px 0 0; font-size: 13px; color: #888; }

/* 文章正文 */
.article-body { font-size: 16px; line-height: 1.85; }
.article-body p { margin: 0 0 1em; }
.article-body h2 { font-size: 20px; margin: 1.5em 0 .6em; padding-left: 10px; border-left: 4px solid var(--brand); }
.article-body h3 { font-size: 17px; margin: 1.4em 0 .5em; }
.article-body img { margin: 12px auto; border-radius: 4px; }
.article-body blockquote { margin: 12px 0; padding: 8px 14px; background: #f6f9ff; border-left: 3px solid var(--brand); color: #555; }
.article-body code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 14px; }
.article-body pre { position: relative; background: #2b303b; color: #c0c5ce; padding: 12px 16px; border-radius: 4px; overflow-x: auto; }
.article-body pre code { background: transparent; padding: 0; color: inherit; }
.article-body pre .code-copy-btn { position: absolute; top: 8px; right: 8px; padding: 3px 10px; font-size: 12px; line-height: 1.4; color: #c0c5ce; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 3px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.article-body pre:hover .code-copy-btn { opacity: 1; }
.article-body pre .code-copy-btn:hover { background: rgba(255,255,255,.18); }
.article-body pre .code-copy-btn.copied { color: #6ad06a; opacity: 1; }
@media (hover: none) {
  .article-body pre .code-copy-btn { opacity: .8; }
}
.article-body table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 6px 10px; }

/* 章节导航 */
.chapter-nav { display: flex; justify-content: space-between; gap: 8px; margin: 24px 0 8px; }
.chapter-nav a, .chapter-nav span { flex: 1; padding: 10px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 4px; text-align: center; }
.chapter-nav span { color: #aaa; }

/* 章节列表 */
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 6px; }
.chapter-list a { padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: #444; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

/* 主播档案 */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 24px; }
.profile .avatar { width: 100%; aspect-ratio: 1/1; background: #eee no-repeat center/cover; border-radius: 8px; }
.profile dl { margin: 0; display: grid; grid-template-columns: 80px 1fr; gap: 8px 16px; }
.profile dt { color: #888; }
.profile dd { margin: 0; }

/* 图集 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 8px; }
.photo-grid .photo-item {
    display: block; overflow: hidden; border-radius: 4px;
    cursor: zoom-in; background: #f5f5f5; position: relative;
}
.photo-grid .photo-item::after {
    content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0);
    transition: background .15s ease;
}
.photo-grid .photo-item:hover::after { background: rgba(0,0,0,.08); }
.photo-grid img {
    aspect-ratio: 3/4; object-fit: cover; border-radius: 4px;
    width: 100%; height: 100%; transition: transform .25s ease;
}
.photo-grid .photo-item:hover img { transform: scale(1.04); }

/* Lightbox（点开看大图） */
.lb-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    user-select: none; -webkit-tap-highlight-color: transparent;
}
.lb-overlay.open { display: flex; }
.lb-stage {
    max-width: 96vw; max-height: 92vh;
    display: flex; align-items: center; justify-content: center;
}
.lb-img {
    max-width: 96vw; max-height: 92vh; object-fit: contain;
    box-shadow: 0 8px 30px rgba(0,0,0,.5); background: #222;
}
.lb-close, .lb-prev, .lb-next {
    position: absolute; border: none; background: rgba(255,255,255,.14);
    color: #fff; cursor: pointer; border-radius: 50%;
    transition: background .15s ease;
}
.lb-close { top: 12px; right: 14px; width: 38px; height: 38px; font-size: 22px; line-height: 38px; }
.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
    font-size: 24px; line-height: 46px; text-align: center;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-counter {
    position: absolute; top: 14px; left: 18px;
    color: #fff; font-size: 13px; opacity: .82;
    background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 12px;
}
.lb-caption {
    position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
    color: #fff; font-size: 13px; opacity: .85; padding: 0 60px;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* 分页 */
.pagination { text-align: center; margin: 24px 0 8px; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid var(--border); border-radius: 4px; color: #444; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 标签 / 分类徽章 */
.tag { display: inline-block; padding: 2px 8px; margin: 0 4px 4px 0; background: #eef3ff; color: var(--brand); border-radius: 12px; font-size: 12px; }

/* 移动端 */
@media (max-width: 720px) {
  .profile      { grid-template-columns: 1fr; }
  .list-row     { flex-direction: column; }
  .list-row .thumb { flex: none; width: 100%; }

  .photo-grid   { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 6px; }
}
@media (max-width: 480px) {
  .photo-grid   { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 20px; line-height: 38px; }
  .lb-prev      { left: 6px; }
  .lb-next      { right: 6px; }
  .lb-caption   { padding: 0 50px; font-size: 12px; }
}
