/* ============================================
   漫城CMS 墨韵 PC 模板 - 水墨风格
   配色：宣纸底 × 墨色 × 朱砂点缀
   字体：衬线宋体为主，无衬线为辅
   ============================================ */

/* ========== CSS 变量 ============ */
:root {
    --ink-black: #2c2c2c;
    --ink-dark: #1a1a1a;
    --ink-gray: #6b6b6b;
    --ink-light: #999;
    --ink-pale: #e8e4db;
    --ink-bg: #f5f0e8;
    --ink-card: #faf7f0;
    --ink-border: #d4cfc4;
    --ink-border-light: #e3ded3;
    --ink-accent: #5b7a5b;
    --ink-red: #b85450;
    --ink-seal: #c43a31;
    --ink-shadow: rgba(44,44,44,0.06);
    --ink-shadow-hover: rgba(44,44,44,0.12);
    --font-song: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "Songti SC", serif;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== Reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-black);
    background-color: var(--ink-bg);
}

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

a {
    color: var(--ink-black);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--ink-seal); }

ul, ol { list-style: none; }

input, button, textarea, select {
    font-family: var(--font-sans);
    font-size: inherit;
    outline: none;
    border: 1px solid var(--ink-border);
    transition: all 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--ink-black);
}
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--ink-pale); color: var(--ink-dark); }

/* ========== 字体辅助 ============ */
.song { font-family: var(--font-song); }

/* ========== 布局容器 ============ */
.wrapper {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 墨笔分割线 ============ */
.ink-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ink-border), transparent);
    margin: 24px 0;
    position: relative;
}
.ink-divider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    background: var(--ink-bg);
    padding: 0 12px;
    font-size: 10px;
    color: var(--ink-light);
}

/* ========== 墨点装饰 ============ */
.ink-dot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ink-dot-list .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ink-border-light);
}
.ink-dot-list .item:last-child { border-bottom: none; }
.ink-dot-list .dot {
    width: 4px; height: 4px;
    background: var(--ink-gray);
    border-radius: 0;
    flex-shrink: 0;
}
.ink-dot-list .item:hover .dot { background: var(--ink-seal); }

/* ========== HEADER ============ */
.header {
    background: var(--ink-card);
    border-bottom: 1px solid var(--ink-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.header-left { display: flex; align-items: center; gap: 32px; }
.header-logo {
    font-family: var(--font-song);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-dark);
    letter-spacing: 4px;
    position: relative;
}
.header-logo::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--ink-dark);
    border-radius: 1px;
}
.header-nav { display: flex; gap: 2px; }
.header-nav a {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ink-dark);
    transition: width 0.25s ease;
}
.header-nav a:hover { color: var(--ink-dark); }
.header-nav a:hover::after,
.header-nav a.on::after { width: 60%; }
.header-nav a.on { color: var(--ink-dark); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 16px; }

/* 搜索 */
.header-search {
    display: flex;
    border: 1px solid var(--ink-border);
    background: var(--ink-bg);
    transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--ink-black); }
.header-search input {
    width: 180px;
    height: 34px;
    padding: 0 10px;
    border: none;
    background: transparent;
    font-size: 13px;
}
.header-search button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-gray);
    font-size: 14px;
    transition: color 0.2s;
}
.header-search button:hover { color: var(--ink-dark); }

/* 用户 */
.header-user { display: flex; align-items: center; gap: 2px; font-size: 13px; }
.header-user a { padding: 4px 10px; color: var(--ink-gray); }
.header-user a:hover { color: var(--ink-seal); }
.header-user .sep { color: var(--ink-border); font-size: 12px; }
.header-user .avatar {
    width: 30px; height: 30px;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid var(--ink-border);
}

/* ========== 印章按钮 ============ */
.seal-btn {
    display: inline-block;
    padding: 8px 28px;
    border: 2px solid var(--ink-dark);
    font-family: var(--font-song);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--ink-dark);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.seal-btn:hover {
    background: var(--ink-dark);
    color: var(--ink-card);
}
.seal-btn-sm { padding: 5px 16px; font-size: 12px; letter-spacing: 1px; border-width: 1px; }
.seal-btn-red {
    border-color: var(--ink-seal);
    color: var(--ink-seal);
}
.seal-btn-red:hover {
    background: var(--ink-seal);
    color: #fff;
}

/* ========== 墨韵横幅 Banner ============ */
.ink-banner {
    position: relative;
    margin: 20px 0;
    background: var(--ink-card);
    border: 1px solid var(--ink-border);
    overflow: hidden;
}
.ink-banner-slide { display: none; }
.ink-banner-slide.active { display: block; }
.ink-banner-slide .inner {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.ink-banner-slide .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.3) contrast(1.1);
}
.ink-banner-slide .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 50%, rgba(26,26,26,0.6) 100%);
}
.ink-banner-slide .info {
    position: absolute;
    bottom: 40px;
    left: 50px;
    right: 50px;
    z-index: 2;
}
.ink-banner-slide .info .tag {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 12px;
    font-family: var(--font-song);
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.ink-banner-slide .info .title {
    font-family: var(--font-song);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ink-banner-slide .info .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ink-banner-slide .info .btn {
    display: inline-block;
    padding: 8px 30px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-family: var(--font-song);
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.25s ease;
}
.ink-banner-slide .info .btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* 横幅导航 */
.ink-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 3;
    font-size: 20px;
    transition: all 0.2s;
    font-family: var(--font-song);
}
.ink-banner-nav:hover { color: #fff; background: rgba(0,0,0,0.3); }
.ink-banner-nav.prev { left: 10px; }
.ink-banner-nav.next { right: 10px; }

.ink-banner-dots {
    position: absolute;
    bottom: 14px;
    right: 50px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.ink-banner-dots span {
    width: 24px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.ink-banner-dots span.active { background: #fff; width: 36px; }

/* ========== 墨韵板块 ============ */
.ink-section {
    margin-bottom: 24px;
}
.ink-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink-dark);
    margin-bottom: 20px;
}
.ink-section-title {
    font-family: var(--font-song);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-dark);
    letter-spacing: 3px;
    position: relative;
    padding-left: 20px;
}
.ink-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--ink-dark);
}
.ink-section-more {
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-section-more:hover { color: var(--ink-seal); }

/* ========== 水墨漫画网格 (4列, 偏横版) ============ */
.ink-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .ink-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .ink-grid { grid-template-columns: repeat(2, 1fr); } }

.ink-card {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    transition: all 0.3s ease;
    position: relative;
}
.ink-card:hover {
    border-color: var(--ink-dark);
    box-shadow: 4px 4px 0 var(--ink-border);
}
.ink-card .cover {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    background: var(--ink-pale);
}
.ink-card .cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ink-card:hover .cover img { transform: scale(1.05); }
.ink-card .status {
    position: absolute;
    top: 8px; left: 8px;
    padding: 2px 12px;
    background: var(--ink-dark);
    color: var(--ink-card);
    font-size: 11px;
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-card .content {
    padding: 14px 12px 12px;
}
.ink-card .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-song);
}
.ink-card .meta {
    font-size: 12px;
    color: var(--ink-light);
    display: flex;
    justify-content: space-between;
}
.ink-card .meta .author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.ink-card-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 5;
    transition: background 0.2s;
    font-family: var(--font-song);
}
.ink-card:hover .ink-card-del { display: flex; }
.ink-card-del:hover { background: var(--ink-seal); }

/* ========== 分类标签 - 墨块风格 ============ */
.ink-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 18px;
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 24px;
}
.ink-tags .tag {
    padding: 4px 14px;
    border: 1px solid var(--ink-border);
    font-size: 12px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.ink-tags .tag:hover {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
    background: var(--ink-pale);
}

/* ========== 面包屑 ============ */
.ink-bread {
    padding: 12px 0;
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-bread a { color: var(--ink-light); padding: 2px 6px; }
.ink-bread a:hover { color: var(--ink-seal); }
.ink-bread .sep { margin: 0 4px; color: var(--ink-border); }
.ink-bread .current { color: var(--ink-dark); font-weight: 600; }

/* ========== 分页 ============ */
.ink-page {
    text-align: center;
    padding: 30px 0;
    margin-top: 10px;
}
.ink-page .info {
    font-size: 12px;
    color: var(--ink-light);
    margin-bottom: 12px;
    font-family: var(--font-song);
}
.ink-page .list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.ink-page .list a,
.ink-page .list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--ink-border);
    color: var(--ink-gray);
    font-size: 13px;
    font-family: var(--font-song);
    transition: all 0.2s;
}
.ink-page .list a:hover {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
    background: var(--ink-pale);
}
.ink-page .list .on {
    background: var(--ink-dark);
    border-color: var(--ink-dark);
    color: var(--ink-card);
}
.ink-page .list .disabled {
    color: var(--ink-border);
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== FOOTER ============ */
.footer {
    border-top: 1px solid var(--ink-border);
    padding: 36px 0;
    margin-top: 40px;
    background: var(--ink-card);
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; }
.footer-nav a {
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.footer-nav a:hover { color: var(--ink-seal); }
.footer-copy {
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
    line-height: 2;
}
.footer-copy a { color: var(--ink-gray); }
.footer-copy a:hover { color: var(--ink-seal); }

/* ========== 详情页 - 水墨画卷布局 ============ */
/* 不同于粉色模版的左封右信，用顶部横卷+底部内容的方式 */

.ink-detail {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.ink-detail-bg {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}
.ink-detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.3) brightness(0.7);
}
.ink-detail-bg .shade {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.8) 100%);
}
.ink-detail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 36px;
    z-index: 2;
}
.ink-detail-info .title {
    font-family: var(--font-song);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.ink-detail-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-detail-info .meta span { }
.ink-detail-info .meta .sep { color: rgba(255,255,255,0.25); }

.ink-detail-body {
    padding: 24px 36px 30px;
}
.ink-detail-body .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ink-detail-body .tags a {
    padding: 3px 12px;
    border: 1px solid var(--ink-border);
    font-size: 12px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.ink-detail-body .tags a:hover {
    border-color: var(--ink-seal);
    color: var(--ink-seal);
    background: #fdf0ee;
}
.ink-detail-body .desc {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 2;
    margin-bottom: 18px;
    font-family: var(--font-sans);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ink-detail-body .desc.open { display: block; }
.ink-detail-body .expander {
    font-size: 12px;
    color: var(--ink-light);
    cursor: pointer;
    font-family: var(--font-song);
    margin-bottom: 16px;
    display: inline-block;
}
.ink-detail-body .expander:hover { color: var(--ink-seal); }
.ink-detail-body .actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.ink-detail-body .actions .seal-btn { padding: 7px 24px; }

/* ===== 头像上传弹窗 ===== */
.ink-avatar-upload { padding: 8px 16px 20px; }
.ink-avatar-header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-border-light); margin-bottom: 18px; }
.ink-avatar-header label { cursor: pointer; }
.ink-avatar-header .hide { display: none; }
.ink-avatar-tips { font-size: 12px; color: var(--ink-light); }
.ink-avatar-body { display: flex; gap: 20px; }
.ink-avatar-crop { flex: 1; min-height: 340px; background: var(--ink-bg); border: 1px solid var(--ink-border); border-radius: 2px; overflow: hidden; position: relative; }
.ink-avatar-crop img { max-width: 100%; }
.ink-avatar-preview { width: 160px; flex-shrink: 0; }
.ink-avatar-label { font-size: 13px; color: var(--ink-gray); margin-bottom: 10px; }
.ink-preview-100 { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink-border); margin-bottom: 12px; background: var(--ink-bg); }
.ink-preview-45 { width: 45px; height: 45px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink-border); background: var(--ink-bg); }
.ink-avatar-footer { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-border-light); }

/* 收藏按钮状态 */
.j-user-collect.active .txt1 { display: none; }
.j-user-collect.active .txt2 { display: inline; }
.j-user-collect .txt2 { display: none; }

/* ========== 章节列表 - 竹简风格 ============ */
.ink-chapters {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 24px;
    padding: 24px 36px 30px;
}
.ink-chapters .ch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink-dark);
    margin-bottom: 18px;
}
.ink-chapters .ch-title {
    font-family: var(--font-song);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-dark);
    letter-spacing: 3px;
    padding-left: 20px;
    position: relative;
}
.ink-chapters .ch-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--ink-dark);
}
.ink-chapters .ch-sort {
    font-size: 12px;
    color: var(--ink-light);
    cursor: pointer;
    font-family: var(--font-song);
    letter-spacing: 1px;
    padding: 4px 12px;
    border: 1px solid var(--ink-border);
    transition: all 0.2s;
}
.ink-chapters .ch-sort:hover {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
}

.ink-chapter-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
@media (max-width: 1100px) { .ink-chapter-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .ink-chapter-list { grid-template-columns: repeat(3, 1fr); } }

.ink-chapter-list .item {
    padding: 9px 10px;
    background: var(--ink-bg);
    font-size: 13px;
    color: var(--ink-gray);
    text-align: center;
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.ink-chapter-list .item:hover {
    background: var(--ink-card);
    border-color: var(--ink-border);
    color: var(--ink-dark);
}
.ink-chapter-list .item .vip-tag,
.ink-chapter-list .item .pay-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    margin-left: 3px;
    font-family: var(--font-sans);
    letter-spacing: 0;
}
.ink-chapter-list .item .vip-tag { border: 1px solid var(--ink-seal); color: var(--ink-seal); }
.ink-chapter-list .item .pay-tag { border: 1px solid var(--ink-accent); color: var(--ink-accent); }

.ink-chapters .ch-more {
    text-align: center;
    margin-top: 16px;
}
.ink-chapters .ch-more a {
    display: inline-block;
    padding: 6px 24px;
    border: 1px solid var(--ink-border);
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-chapters .ch-more a:hover {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
}

/* ========== 相关推荐 ============ */
.ink-related {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 24px;
    padding: 24px 36px;
}
.ink-related .rl-title {
    font-family: var(--font-song);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-dark);
    letter-spacing: 2px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink-dark);
}
.ink-related .rl-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--ink-dark);
}
.ink-related .rl-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) { .ink-related .rl-list { grid-template-columns: repeat(4, 1fr); } }
.ink-related .rl-item { text-align: center; }
.ink-related .rl-item .pic {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
    border: 1px solid var(--ink-border-light);
    background: var(--ink-pale);
    margin-bottom: 6px;
    transition: border-color 0.2s;
}
.ink-related .rl-item .pic img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ink-related .rl-item:hover .pic { border-color: var(--ink-dark); }
.ink-related .rl-item .rl-name {
    font-size: 12px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 阅读器 ============ */
.ink-reader {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}
.ink-reader-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ink-border-light);
}
.ink-reader-top .left { display: flex; gap: 8px; }
.ink-reader-top .center {
    font-family: var(--font-song);
    font-size: 15px;
    color: var(--ink-dark);
    font-weight: 600;
    letter-spacing: 1px;
}
.ink-reader-top .right { display: flex; gap: 8px; }

.ink-reader-progress {
    height: 2px;
    background: var(--ink-border-light);
    margin-bottom: 20px;
    position: relative;
}
.ink-reader-progress .bar {
    height: 100%;
    background: var(--ink-dark);
    width: 0%;
    transition: width 0.2s;
}

.ink-reader-content {
    background: #faf7f0;
    min-height: 400px;
    padding: 10px 0;
}
.ink-reader-content .pic-item {
    margin-bottom: 4px;
    cursor: pointer;
}
.ink-reader-content .pic-item img {
    width: 100%;
}

.ink-reader-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid var(--ink-border-light);
}

.ink-reader-btn {
    padding: 7px 22px;
    border: 1px solid var(--ink-border);
    font-size: 13px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background: var(--ink-card);
}
.ink-reader-btn:hover {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
    background: var(--ink-pale);
}

/* ========== 分类筛选 ============ */
.ink-filter {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ink-filter .row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink-border-light);
}
.ink-filter .row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.ink-filter .label {
    width: 50px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    padding-top: 4px;
}
.ink-filter .options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ink-filter .options a {
    padding: 4px 14px;
    border: 1px solid var(--ink-border);
    font-size: 12px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.ink-filter .options a:hover,
.ink-filter .options a.active {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
    background: var(--ink-pale);
}

/* ========== 搜索页 ============ */
.ink-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.ink-search-box input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    background: var(--ink-card);
    border: 1px solid var(--ink-border);
    font-size: 14px;
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-search-box input:focus {
    border-color: var(--ink-dark);
    background: var(--ink-card);
}

/* ========== 错误页 ============ */
.ink-error {
    text-align: center;
    padding: 80px 20px;
}
.ink-error .code {
    font-family: var(--font-song);
    font-size: 80px;
    color: var(--ink-border);
    letter-spacing: 10px;
    line-height: 1;
    margin-bottom: 16px;
}
.ink-error .msg {
    font-size: 14px;
    color: var(--ink-gray);
    margin-bottom: 28px;
    font-family: var(--font-song);
    letter-spacing: 2px;
}

/* ========== Modal 弹窗 ============ */
/* ===== 阅读器付费/VIP弹窗 ===== */
.ink-reader-modal {
    text-align: center;
    font-family: var(--font-song);
    padding: 10px 0;
}
.ink-reader-modal-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    background: var(--ink-seal);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ink-reader-modal h3 {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--ink-dark);
    margin: 0 0 10px;
}
.ink-reader-modal p {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.8;
    margin: 0 0 16px;
}
.c-price {
    font-size: 20px;
    color: var(--ink-seal);
    font-weight: 700;
}
.c-balance {
    color: var(--ink-seal);
    font-weight: 600;
}
.ink-reader-modal-balance {
    font-size: 13px;
    color: var(--ink-gray);
    padding-top: 12px;
    border-top: 1px dashed var(--ink-border-light);
    margin: 12px 0 10px;
}
.ink-reader-modal-auto {
    font-size: 12px;
    color: var(--ink-light);
    margin-bottom: 16px;
}
.ink-reader-modal-auto input[type=checkbox] {
    width: 13px;
    height: 13px;
    accent-color: var(--ink-seal);
    vertical-align: middle;
    margin-right: 4px;
}
.ink-reader-modal-auto label {
    cursor: pointer;
}
.ink-reader-modal-actions {
    text-align: center;
}
.ink-reader-modal-actions .seal-btn {
    min-width: 140px;
    padding: 10px 30px;
    font-size: 14px;
    letter-spacing: 3px;
}

/* ========== 用户中心 ============ */
.ink-user-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) { .ink-user-layout { grid-template-columns: 1fr; } }

.ink-user-sidebar {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    padding: 20px;
}
.ink-user-sidebar .profile {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-border-light);
    margin-bottom: 16px;
}
.ink-user-sidebar .profile .avatar {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 1px solid var(--ink-border);
}
.ink-user-sidebar .profile .name {
    font-family: var(--font-song);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}
.ink-user-sidebar .profile .balance {
    font-size: 12px;
    color: var(--ink-gray);
    margin-top: 6px;
    font-family: var(--font-song);
}
.ink-user-sidebar .profile .balance strong { color: var(--ink-seal); }

.ink-user-menu { display: flex; flex-direction: column; gap: 2px; }
.ink-user-menu a {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.ink-user-menu a:hover { color: var(--ink-dark); }
.ink-user-menu a.on {
    color: var(--ink-dark);
    font-weight: 600;
    border-left-color: var(--ink-dark);
    background: var(--ink-pale);
}

.ink-user-main {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    padding: 28px;
    min-height: 400px;
}
.ink-user-main .page-title {
    font-family: var(--font-song);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ink-dark);
}

/* 用户表格 */
.ink-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ink-table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--ink-dark);
    font-family: var(--font-song);
    font-weight: 600;
    text-align: left;
    font-size: 12px;
    letter-spacing: 1px;
}
.ink-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ink-border-light);
    color: var(--ink-gray);
}
.ink-table tr:hover td { background: var(--ink-pale); }

/* ========== 表单 ============ */
.ink-form .field {
    margin-bottom: 16px;
}
.ink-form label {
    display: block;
    font-size: 13px;
    color: var(--ink-gray);
    margin-bottom: 6px;
    font-family: var(--font-song);
    letter-spacing: 1px;
}
.ink-form input[type="text"],
.ink-form input[type="password"],
.ink-form input[type="email"],
.ink-form textarea,
.ink-form select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: var(--ink-bg);
    border: 1px solid var(--ink-border);
    font-size: 14px;
    font-family: var(--font-sans);
}
.ink-form textarea { height: auto; padding: 10px 12px; }
.ink-form input:focus,
.ink-form textarea:focus {
    border-color: var(--ink-dark);
    background: var(--ink-card);
}

/* ========== 排行榜列表 ============ */
.ink-rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-border-light);
}
.ink-rank-item:last-child { border-bottom: none; }
.ink-rank-item .num {
    width: 24px;
    text-align: center;
    font-family: var(--font-song);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.ink-rank-item .num.top1 { color: var(--ink-seal); font-size: 20px; }
.ink-rank-item .num.top2 { color: var(--ink-accent); font-size: 18px; }
.ink-rank-item .num.top3 { color: var(--ink-gray); font-size: 17px; }
.ink-rank-item .thumb {
    width: 40px; height: 54px;
    object-fit: cover;
    border: 1px solid var(--ink-border-light);
}
.ink-rank-item .info { flex: 1; min-width: 0; }
.ink-rank-item .info .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-dark);
    font-family: var(--font-song);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ink-rank-item .info .sub {
    font-size: 12px;
    color: var(--ink-light);
    margin-top: 2px;
}
.ink-rank-item .hits {
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
}

/* ========== 排行榜导航 ============ */
.ink-rank-nav {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 20px;
}
.ink-rank-nav a {
    padding: 6px 18px;
    border: 1px solid var(--ink-border);
    font-size: 13px;
    color: var(--ink-gray);
    font-family: var(--font-song);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.ink-rank-nav a:hover,
.ink-rank-nav a.active {
    border-color: var(--ink-dark);
    color: var(--ink-dark);
    background: var(--ink-pale);
}

/* ========== 首页每日推荐横向 ============ */
.ink-featured-h {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ink-featured-h .item {
    display: flex;
    gap: 16px;
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    padding: 14px;
    transition: all 0.2s;
}
.ink-featured-h .item:hover { border-color: var(--ink-dark); }
.ink-featured-h .item .pic {
    width: 80px;
    flex-shrink: 0;
}
.ink-featured-h .item .pic img {
    width: 80px;
    height: 106px;
    object-fit: cover;
    border: 1px solid var(--ink-border-light);
}
.ink-featured-h .item .desc { flex: 1; min-width: 0; }
.ink-featured-h .item .desc .name {
    font-family: var(--font-song);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ink-featured-h .item .desc .author {
    font-size: 12px;
    color: var(--ink-light);
    margin-bottom: 6px;
}
.ink-featured-h .item .desc .summary {
    font-size: 12px;
    color: var(--ink-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/* ========== 首页区域布局（纵向瀑布流，不用左右分栏） ============ */
.ink-home-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 横幅排名侧边小部件 ============ */
.ink-banner-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.ink-mini-panel {
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    padding: 18px;
}
.ink-mini-panel .panel-title {
    font-family: var(--font-song);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ink-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ink-mini-panel .panel-title a {
    font-size: 11px;
    color: var(--ink-light);
    font-weight: 400;
}
.ink-mini-panel .panel-title a:hover { color: var(--ink-seal); }
.ink-mini-panel .mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--ink-border-light);
}
.ink-mini-panel .mini-item:last-child { border-bottom: none; }
.ink-mini-panel .mini-item .r {
    width: 16px;
    text-align: center;
    font-family: var(--font-song);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink-light);
}
.ink-mini-panel .mini-item .r.t { color: var(--ink-seal); font-size: 15px; }
.ink-mini-panel .mini-item .n {
    flex: 1;
    font-size: 13px;
    color: var(--ink-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ink-mini-panel .mini-item:hover .n { color: var(--ink-dark); }

/* ========== 更新列表 ============ */
.ink-update-list {}
.ink-update-list .update-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: var(--ink-card);
    border: 1px solid var(--ink-border-light);
    margin-bottom: 8px;
    transition: all 0.2s;
}
.ink-update-list .update-item:hover { border-color: var(--ink-dark); }
.ink-update-list .update-item .thumb {
    width: 44px; height: 58px;
    object-fit: cover;
    border: 1px solid var(--ink-border-light);
    flex-shrink: 0;
}
.ink-update-list .update-item .info { flex: 1; min-width: 0; }
.ink-update-list .update-item .info .name {
    font-family: var(--font-song);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.ink-update-list .update-item .info .chap {
    font-size: 12px;
    color: var(--ink-light);
    font-family: var(--font-song);
}
.ink-update-list .update-item .time {
    font-size: 11px;
    color: var(--ink-light);
    font-family: var(--font-song);
    white-space: nowrap;
}

/* ========== 滚动条 ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink-bg); }
::-webkit-scrollbar-thumb { background: var(--ink-border); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }

/* ========== 工具类 ============ */
.ta-c { text-align: center; }
.ta-l { text-align: left; }
.ta-r { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-sb { display: flex; align-items: center; justify-content: space-between; }
.hide { display: none !important; }
.clearfix::after { content: ''; display: table; clear: both; }
