/* skin/css/common.css */
:root {
    --ink-red: #c0392b;
    --ink-black: #2c3e50;
    --ink-gold: #d4ac0d;
    --paper-bg: #f9f7f2;
    --card-bg: #ffffff;
    --border-color: #e0dacc;
    
    --font-serif: "Songti SC", "SimSun", "STSong", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, h1, h2, h3, p, ul, li, input, button { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

body {
    font-family: var(--font-sans);
    background-color: var(--paper-bg);
    /* 纸张纹理叠加 */
    background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--ink-black);
    padding-bottom: 90px;
}

.oriental-shell {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border-left: 1px solid #e8e0d5;
    border-right: 1px solid #e8e0d5;
    min-height: 100vh;
    background: #fff;
}

/* --- 1. 顶部栏 (直接搜索) --- */
.ink-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(255,255,255,0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--ink-red); /* 红线装饰 */
}
.logo-stamp {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 900;
    color: var(--ink-red);
    margin-right: 15px;
    padding: 2px 6px;
    border-radius: 4px;
}
.logo-stamp img {
    width: auto; height: 40px;
}
.ink-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f2f2f2;
    height: 36px;
    border-radius: 4px;
    padding: 0 10px;
}
.ink-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: var(--font-serif);
}
.search-btn-icon {
    border: none; background: transparent; padding: 0;
    color: var(--ink-black); display: flex;
}

/* --- 2. 底部导航 (卷轴风) --- */
.scroll-nav-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.nav-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #999;
    height: 100%;
}
.nav-btn.active {
    color: var(--ink-red);
}
.nav-btn.active .nav-icon {
    transform: scale(1.1);
}
.nav-icon {
    width: 22px; height: 22px;
    background-color: currentColor;
    mask-size: contain; -webkit-mask-size: contain;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
    mask-position: center; -webkit-mask-position: center;
    margin-bottom: 2px;
    transition: transform 0.2s;
}
.nav-txt { font-size: 11px; font-family: var(--font-serif); font-weight: bold; }

/* SVG Icons */
.ic-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ic-game { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 12h4m-2-2v4m10-1h2m-5-2h2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 12h4m-2-2v4m10-1h2m-5-2h2'/%3E%3C/svg%3E"); }
.ic-soft { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); }
.ic-rank { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 9v12m6-18v18m6-9v9'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 9v12m6-18v18m6-9v9'/%3E%3C/svg%3E"); }
.ic-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); }
.ic-back { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); }

/* --- 通用组件 --- */
/* 板块标题 */
.chapter-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 900;
    margin: 25px 15px 15px;
    padding-left: 10px;
    border-left: 3px solid var(--ink-red);
    display: flex; justify-content: space-between; align-items: flex-end;
}
.chapter-more { font-family: var(--font-sans); font-size: 12px; color: #999; font-weight: normal; }

/* 横向滚动容器 (首页/详情页通用) */
.ink-scroll-row {
    display: flex; gap: 15px; overflow-x: auto;
    padding: 5px 15px 15px;
}
.ink-scroll-row::-webkit-scrollbar { display: none; }

.ink-icon-item {
    flex: 0 0 60px; text-align: center;
}
.ink-icon-item a { display: block; }
.ink-icon-item img {
    width: 56px; height: 56px; border-radius: 10px;
    margin: 0 auto 6px; border: 1px solid #eee;
    padding: 2px; background: #fff;
}
.ink-icon-item span { font-size: 12px; color: #333; }

/* 按钮 */
.btn-red {
    background: var(--ink-red);
    color: #fff;
    border: none;
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 2px;
    font-family: var(--font-serif);
    cursor: pointer;
}