/* ===== theme619 common.css —— E 骨架 杂志风双行 header + 内容区 ===== */
:root {
    --color-primary: #b45309;
    --color-primary-dark: #78350f;
    --color-primary-light: #fff7ed;
    --color-accent: #f59e0b;
    --color-text-dark: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #faf6f1;
    --color-bg-card: #ffffff;
    --color-border: #e7e5e4;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(180, 83, 9, 0.06);
    --shadow-md: 0 6px 20px rgba(180, 83, 9, 0.12);
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { height: 100%; }
body.theme619-page {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1280px; }

/* ===== SEO/A11y 必备 ===== */
.skip-link, .rv-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--color-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0; }
.skip-link:focus, .rv-skip:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.article-summary { margin: 18px 0; padding: 18px 20px; background: var(--color-primary-light); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); }
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.summary-deco { color: var(--color-primary); }
.article-summary-title { font-size: 16px; font-weight: 600; color: var(--color-primary-dark); }
.article-summary-text { margin: 0; color: var(--color-text-muted); }
.article-summary-cite { margin-top: 10px; font-size: 13px; color: var(--color-text-light); }
.article-summary-cite code { background: #f6ead9; padding: 2px 6px; border-radius: 3px; font-size: 12px; word-break: break-all; }

/* ===== 双行 Header ===== */
.rv-nav { background: #fff; border-bottom: 1px solid var(--color-border); }
.rv-top { background: var(--color-primary-dark); }
.rv-top-inner { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rv-logo { display: flex; align-items: center; min-width: 0; }
.rv-logo-text { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-top-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rv-top-links a { color: #fde8c9; font-size: 13px; }
.rv-top-links a:hover { color: #fff; }
.rv-tgl { display: none; width: 40px; height: 40px; border: none; border-radius: var(--radius-sm); background: var(--color-accent); color: #fff; font-size: 19px; line-height: 1; flex-shrink: 0; }
.rv-navbar { background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); }
.rv-navbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.rv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rv-nav > a { display: inline-block; padding: 14px 16px; color: var(--color-text-dark); font-size: 15px; font-weight: 500; }
.rv-nav > a:hover, .rv-nav > a.active { color: var(--color-primary); }
.rv-nav > a.active { border-bottom: 3px solid var(--color-primary); }
.rv-nav > span { position: relative; }
.rv-nav > span > a { display: inline-block; padding: 14px 16px; color: var(--color-text-dark); font-size: 15px; font-weight: 500; }
.rv-nav > span > a:hover, .rv-nav > span.active > a { color: var(--color-primary); }
.rv-nav > span.active > a { border-bottom: 3px solid var(--color-primary); }
.rv-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 900; padding: 6px 0; }
.rv-nav > span:hover .rv-drop { display: block; }
.rv-drop a { display: block; padding: 9px 16px; color: var(--color-text-muted); font-size: 14px; }
.rv-drop a:hover { color: var(--color-primary); background: var(--color-primary-light); }

/* ===== 主内容区（8-4）===== */
.rv-body { padding: 26px 0 40px; }
.rv-body .row { margin-left: 0; margin-right: 0; }
.rv-main { float: left; width: 66%; padding-right: 22px; }
.rv-aside { float: left; width: 34%; }
.rv-body .row::after { content: ""; display: table; clear: both; }
.rv-crumb { background: #fff; border-bottom: 1px solid var(--color-border); padding: 13px 20px; font-size: 13px; color: var(--color-text-muted); }
.rv-crumb a { color: var(--color-text-muted); }
.rv-crumb a:hover { color: var(--color-primary); }
.rv-crumb i { margin: 0 6px; color: #d6d3d1; }
.rv-crumb span { color: var(--color-primary); }

/* ===== 首页 拼贴精选 ===== */
.rv-mosaic { max-width: 1280px; margin: 0 auto; padding: 26px 20px 4px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.rv-mosaic-lead { display: block; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.rv-mosaic-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rv-mosaic-cover { display: block; position: relative; padding-top: 52%; background: var(--color-primary-light); overflow: hidden; }
.rv-mosaic-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-mosaic-cover span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.rv-mosaic-body { padding: 16px 20px; }
.rv-mosaic-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--color-primary); color: #fff; font-size: 12px; margin-bottom: 8px; }
.rv-mosaic-body h1 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.rv-mosaic-body p { margin: 0; color: var(--color-text-muted); font-size: 14px; }
.rv-mosaic-side { display: flex; flex-direction: column; gap: 10px; }
.rv-mosaic-item { display: flex; flex-direction: column; gap: 4px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color 0.2s; }
.rv-mosaic-item:hover { border-color: var(--color-primary); }
.rv-mosaic-item-title { color: var(--color-text-dark); font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-mosaic-item:hover .rv-mosaic-item-title { color: var(--color-primary); }
.rv-mosaic-item-meta { font-size: 12px; color: var(--color-text-light); }

/* ===== 区块模块 ===== */
.rv-block { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.rv-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary-light); }
.rv-block-head h2 { font-size: 18px; font-weight: 700; padding-left: 10px; border-left: 4px solid var(--color-primary); line-height: 1.2; }
.rv-more { font-size: 13px; color: var(--color-text-muted); }
.rv-more:hover { color: var(--color-primary); }

/* 竖卡网格 */
.rv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rv-card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rv-card-cover { display: block; position: relative; padding-top: 62%; background: var(--color-primary-light); overflow: hidden; }
.rv-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-card-cover span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.rv-card-body { padding: 12px 14px 14px; }
.rv-card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; min-height: 42px; word-break: break-word; }
.rv-card:hover h3 { color: var(--color-primary); }
.rv-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; color: var(--color-text-muted); font-size: 13px; }
.rv-card-meta { display: block; margin-top: 8px; font-size: 12px; color: var(--color-text-light); }

/* 文章流 */
.rv-feeds { display: flex; flex-direction: column; }
.rv-feed { border-bottom: 1px dashed var(--color-border); }
.rv-feed:last-child { border-bottom: none; }
.rv-feed a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; min-width: 0; }
.rv-feed-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-feed a:hover .rv-feed-title { color: var(--color-primary); }
.rv-feed-meta { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 纯文字列表（默认页）===== */
.rv-textlist { display: flex; flex-direction: column; }
.rv-text-item { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px dashed var(--color-border); }
.rv-text-item:last-child { border-bottom: none; }
.rv-text-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-text-item:hover .rv-text-title { color: var(--color-primary); }
.rv-text-meta { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 详情（居中）===== */
.rv-article { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.rv-article-head { text-align: center; margin-bottom: 20px; }
.rv-article-cat { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary); font-size: 13px; margin-bottom: 12px; }
.rv-article-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.rv-article-meta { margin-top: 10px; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--color-text-muted); }
.rv-article-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 auto 18px; }
.rv-article-content { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: #374151; word-break: break-word; }
.rv-article-content h2 { font-size: 21px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--color-primary); }
.rv-article-content h3 { font-size: 18px; margin: 20px 0 10px; }
.rv-article-content p { margin: 12px 0; }
.rv-article-content img { display: block; margin: 16px auto; border-radius: var(--radius-sm); }
.rv-article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.rv-nav-item { flex: 1; min-width: 0; display: block; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.rv-nav-item:hover { border-color: var(--color-primary); }
.rv-nav-next { text-align: right; }
.rv-nav-label { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.rv-nav-title { display: block; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-nav-spacer { flex: 1; min-width: 0; }
.rv-related { margin-top: 24px; }
.rv-newlist { display: flex; flex-direction: column; }
.rv-new-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--color-border); }
.rv-new-item:last-child { border-bottom: none; }
.rv-new-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-new-item:hover .rv-new-title { color: var(--color-primary); }
.rv-new-date { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 侧边栏 ===== */
.rv-widget { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.rv-widget-head { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.rv-widget-title { font-size: 15px; font-weight: 700; padding-left: 10px; border-left: 3px solid var(--color-primary); line-height: 1.2; }
.rv-widget-title .fa { margin-right: 6px; color: var(--color-primary); }
.rv-widget-body { padding: 10px 16px; }
.rv-navlist li a { display: block; padding: 8px 4px; color: var(--color-text-dark); font-size: 14px; border-bottom: 1px solid #f5f5f4; }
.rv-navlist li a:hover { color: var(--color-primary); }
.rv-navlist li.active a { color: var(--color-primary); font-weight: 600; }
.rv-nav-divider { height: 1px; background: var(--color-border); margin: 6px 0; }
.rv-nav-sub a { padding-left: 20px; font-size: 13px; color: var(--color-text-muted); }
.rv-rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rv-rank-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--radius-sm); background: #f5f5f4; color: var(--color-text-muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.rv-rank-num.top { background: var(--color-primary); color: #fff; }
.rv-rank-content { flex: 1; min-width: 0; }
.rv-rank-title { display: block; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-rank-item:hover .rv-rank-title { color: var(--color-primary); }

/* ===== 图片列表 ===== */
.rv-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rv-img-card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.rv-img-cover { display: block; position: relative; padding-top: 75%; background: #f5f5f4; overflow: hidden; }
.rv-img-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-img-body { padding: 8px 10px; }
.rv-img-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-img-view { font-size: 12px; color: var(--color-text-light); }

/* ===== 单页/留言 ===== */
.rv-single-content { font-size: 15px; line-height: 1.9; color: #374151; }
.rv-subnav { margin-bottom: 16px; }
.rv-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-subnav li a { display: inline-block; padding: 6px 14px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 13px; color: var(--color-text-muted); }
.rv-subnav li.active a { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.rv-contact-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.rv-contact-form h3 { font-size: 17px; margin-bottom: 14px; }
.rv-contact-form .form-row { display: flex; gap: 14px; }
.rv-contact-form label { display: flex; flex-direction: column; font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }
.rv-contact-form label span { margin-bottom: 4px; }
.rv-contact-form .inp { width: 100%; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; }
.rv-contact-form textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.rv-contact-form .msgbtn-box { display: flex; gap: 10px; }
.rv-contact-form .btn-contact { padding: 10px 30px; border: none; border-radius: 999px; background: var(--color-primary); color: #fff; cursor: pointer; }
.rv-contact-form .btn-contact-reset { padding: 10px 26px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-text-muted); cursor: pointer; }
.rv-price { color: var(--color-primary-dark); font-weight: 700; }

/* ===== 页脚 ===== */
.rv-foot { background: #1c0f04; color: #a8a29e; padding: 34px 0 0; margin-top: 20px; }
.rv-foot-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.rv-foot-cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 24px; }
.rv-brand { flex: 1 1 220px; min-width: 0; }
.rv-brand .rv-logo-text { color: #fff; }
.rv-brand p { margin: 10px 0 0; font-size: 13px; line-height: 1.8; }
.rv-tags { flex: 2 1 360px; min-width: 0; }
.rv-tags h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.rv-tag-list { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.rv-tag-list a { color: #a8a29e; font-size: 13px; }
.rv-tag-list a:hover { color: #fff; }
.rv-copy { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; text-align: center; font-size: 13px; }
.rv-copy a { color: #a8a29e; }
.rv-copy a:hover { color: #fff; }

/* ===== 分页 ===== */
.pagination-box { text-align: center; margin-top: 24px; }
.pagination { display: inline-flex; gap: 6px; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text-dark); border-radius: var(--radius-sm); font-size: 14px; }
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active a, .pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== 返回顶部 ===== */
#floatbtn { position: fixed; right: 22px; bottom: 30px; z-index: 900; }
#back-to-top { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; line-height: 1; padding: 0; border: none; border-radius: var(--radius-md); background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
#back-to-top i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
#back-to-top:hover { background: var(--color-primary-dark); }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .rv-main { width: 100%; padding-right: 0; float: none; }
    .rv-aside { width: 100%; float: none; }
    .rv-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-img-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-mosaic { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    body.theme619-page { font-size: 14px; }
    .rv-top-inner { padding: 10px 14px; }
    .rv-top-links { display: none; }
    .rv-tgl { display: inline-flex; align-items: center; justify-content: center; }
    .rv-navbar-inner { padding: 0; }
    .rv-nav { flex-direction: column; align-items: stretch; display: none; }
    body.rv-open .rv-nav { display: flex; }
    .rv-nav > a, .rv-nav > span > a { display: block; padding: 12px 16px; }
    .rv-drop { position: static; box-shadow: none; border: none; padding-left: 16px; }
    .rv-nav > span:hover .rv-drop { display: block; }
    .rv-body { padding: 18px 12px 30px; }
    .rv-crumb { padding: 12px 14px; }
    .rv-mosaic { padding: 18px 12px 4px; }
    .rv-mosaic-cover { padding-top: 60%; }
    .rv-block { padding: 16px 14px; }
    .rv-grid { grid-template-columns: 1fr; }
    .rv-img-grid { grid-template-columns: 1fr; }
    .rv-feed a { align-items: flex-start; flex-direction: column; gap: 2px; }
    .rv-article { padding: 18px 16px; }
    .rv-article-title { font-size: 21px; }
    .rv-article-meta { flex-wrap: wrap; gap: 10px; }
    .rv-text-item { align-items: flex-start; flex-direction: column; gap: 4px; }
    .rv-text-meta { align-self: flex-end; }
    .rv-contact-form .form-row { flex-direction: column; gap: 0; }
    .rv-foot-cols { flex-direction: column; }
}
