@charset "utf-8";
/* ============================================================
   联盟啦 全站样式 v4 —— 全新设计系统
   设计原则：
   - 摆脱旧 gif 瓦片背景，全部纯 CSS（杜绝拼接错位）
   - 4px 标准圆角 / 极浅阴影（无大圆角大阴影）
   - 蓝色品牌主色 + 柔和中性色阶，桌面紧凑、移动优先适配
   - 手机版：广告图严格两列等宽；侧栏/主栏全宽堆叠
   ============================================================ */

:root {
    --primary:      #1B5791;   /* 原站经典蓝 */
    --primary-dark: #14508F;
    --accent:       #2F86F6;
    --accent-dark:  #1F6FD0;
    --bg:           #F3F7FB;
    --panel:        #FFFFFF;
    --border:       #D9E3ED;
    --border2:      #C3D2E0;
    --text:         #20303F;
    --text2:        #51637A;
    --text3:        #8798A9;
    --hover:        #F2F8FE;
    --danger:       #E02E2E;
    --sponsor:      #E02020;
    --radius:       4px;
    --shadow:       0 1px 3px rgba(16,42,80,.07);
    --ring:         0 0 0 2px rgba(47,134,246,.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #FFF; }

body {
    margin: 0;
    font: 13px/1.8 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", STHeiti, "WenQuanYi Micro Hei", sans-serif;
    color: var(--text);
    /* 整站背景：同原站 skin.gif 的浅蓝快速渐隐为纯白（157px 处到达白色，以下恒为白） */
    background: linear-gradient(to bottom, #B7DDF0 0, #DCEEF8 60px, #F2F9FC 100px, #FFFFFF 157px) no-repeat, #FFFFFF;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { border: 0; max-width: 100%; }

.twidth {
    width: 990px;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px;
}

/* ============================================================
   页头（白底横条：logo 左 / 文字导航右）
   ============================================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--panel);
    /* 无边框：与下方蓝条（无边框）左右边缘严格对齐，避免接缝处 1px 错位 */
    border: 0;
    /* 顶部两角大圆角；底角直角并与下方蓝条无缝相接 */
    border-radius: 10px 10px 0 0;
    box-shadow: var(--shadow);
    padding: 8px 14px;
    margin-bottom: 0;
}
.site-header { padding: 9px 16px; }
.site-header .logo { display: block; flex: 0 0 auto; margin-right: 26px; }
.site-header .logo img { height: 42px; width: auto; display: block; }

.main-nav {
    display: flex;
    align-items: center;
    margin: 0; padding: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 6px;
}
.main-nav a {
    display: block;
    padding: 7px 20px;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary);
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--hover); color: #E07612; text-decoration: none; }

/* 蓝色菜单条（纯 CSS 渐变） */
.menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 12px;
    color: #FFF;
    font-size: 13px;
    background: linear-gradient(to bottom, #2E80D1, #1F5FA6);
    border-radius: 0 0 4px 4px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.menu-bar .site-name { margin: 0; font-size: 14px; font-weight: bold; letter-spacing: .5px; order: 0; }
.menu-bar .site-name a { color: #FFF; }
.menu-bar .site-name a:hover { color: #DCEBFF; text-decoration: none; }
.menu-bar .tip { font-size: 12px; color: #E8F2FF; order: 1; text-align: right; }
.menu-bar .tip a { color: #FFE843; }
.menu-bar .tip a:hover { color: #FFF6B8; text-decoration: none; }

/* 推荐条 */
.ad-bar {
    margin-bottom: 8px;
    padding: 7px 12px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.ad-bar a { margin-right: 12px; }
.ad-bar a:hover { text-decoration: underline; }

/* 横幅广告容器（网格由 abc/images.js 输出：桌面3列/手机2列等宽） */
.banner-ads { margin-bottom: 8px; }

/* 通告条 */
.notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 2px;
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 6px;
}
.notice-bar .act { white-space: nowrap; }
.notice-bar .act a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
    color: var(--text2);
}
.notice-bar .act a:hover { color: var(--primary); }
.notice-bar .act svg {
    width: 13px; height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notice-bar .warn { color: var(--danger); }

/* ============================================================
   搜索条
   ============================================================ */
.search-bar {
    background: var(--border2);
    padding: 1px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.search-bar .inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 8px 16px;
    background: var(--panel);
    border-radius: calc(var(--radius) - 1px);
    flex-wrap: wrap;
}
.search-bar .label { font-size: 14px; font-weight: bold; color: #2C4A6B; white-space: nowrap; }
.search-bar form { display: flex; align-items: center; flex: 1 1 260px; min-width: 220px; }
.search-bar .kw {
    flex: 1 1 auto;
    width: 100%;
    max-width: 360px;
    height: 30px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text);
    border: 1px solid var(--border2);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    transition: box-shadow .15s, border-color .15s;
}
.search-bar .kw::placeholder { color: #AEBDCB; }
.search-bar .kw:focus { border-color: var(--accent); box-shadow: var(--ring); }
.search-bar .btn {
    flex: 0 0 96px;
    height: 30px;
    border: 1px solid var(--accent-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(to bottom, #47A0FF, var(--accent));
    color: #FFF;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s;
}
.search-bar .btn:hover { filter: brightness(1.07); }
.search-bar .btn:active { filter: brightness(.95); }
.search-bar .links { font-size: 14px; white-space: nowrap; }

/* ============================================================
   主体布局
   ============================================================ */
.pagebody {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.mainbody { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 240px; width: 240px; min-width: 0; }
.pagebody-narrow .sidebar { flex-basis: 212px; width: 212px; }

/* ============================================================
   面板
   ============================================================ */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; min-width: 0; }
.panel .panel-h {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    padding: 2px 12px;
    /* 更清透的蓝调渐变 + 左侧品牌蓝描边条 */
    background: linear-gradient(to bottom, #F7FBFE, #EBF3FA);
    border-bottom: 1px solid #D5E3F0;
}
.panel .panel-h::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2E80D1, #1B5791);
}
.panel .panel-h .tt { font-size: 13px; font-weight: bold; color: #2C4A6B; order: 0; }
.panel .panel-h .tt .red, .panel .panel-h .red { color: var(--danger); }
.panel .panel-h .more { font-size: 12px; font-weight: normal; white-space: nowrap; order: 1; margin-left: auto; }
.panel .panel-h > table { flex: 1 1 auto; width: 100%; }
.panel .panel-b {
    padding: 6px 10px;
    line-height: 19px;
    font-size: 13px;
    overflow: hidden;
}

/* ============================================================
   首页列表行（宽松呼吸感）
   ============================================================ */
.ilist { margin: 4px 2px; padding: 8px 8px; border-radius: var(--radius); }
.ilist .row { display: flex; align-items: flex-start; gap: 12px; }
.ilist .num {
    flex: 0 0 24px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    color: var(--text2);
    background: #EDF2F8;
    border: 0;
    border-radius: 3px;
}
.ilist .num img { vertical-align: -3px; }
/* 名称与评分同行（评分跟在名称右侧，窄屏自动换行到下方） */
.ilist .title-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 12px;
}
.ilist h2 { margin: 0; font-size: 15px; line-height: 21px; white-space: nowrap; }
.ilist h2 a { font-weight: bold; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ilist h2 .sponsor { color: var(--sponsor); }
.ilist .votes { font-size: 12px; line-height: 21px; color: var(--text2); white-space: nowrap; }
.ilist .pop { flex: 0 0 auto; text-align: right; color: var(--text); font-size: 13px; min-width: 28px; }
.ilist .sum {
    margin-top: 4px;
    padding: 5px 2px 9px 40px;
    font-size: 12px;
    line-height: 19px;
    color: var(--text3);
    border-bottom: 1px dashed var(--border);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ilist .sum a { color: var(--text3); }
.ilist .sum a:hover { color: var(--primary); }
.ilist:last-of-type .sum { border-bottom: 0; }

/* 分页（Flex 紧凑排列，数字多时也不散开） */
.listpages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 8px 2px;
    font-size: 12px;
    line-height: 22px;
}
.listpages a {
    display: inline-block;
    min-width: 20px;
    padding: 1px 4px;
    text-align: center;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.listpages a:hover { background: var(--accent); color: #FFF; text-decoration: none; }
.listpages b { color: var(--danger); }
.listpages .lp-label, .listpages .lp-info { white-space: nowrap; }
.listpages .lp-info b { margin: 0 1px; }

/* ============================================================
   侧栏榜单（名称在前、分数紧跟其后）
   ============================================================ */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
    display: flex;
    align-items: center;
    line-height: 23px;
    padding: 0 4px;
    border-radius: var(--radius);
}
.rank-list li .s1 {
    flex: 0 0 24px;
    height: 17px;
    line-height: 17px;
    margin-right: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--text2);
    background: #EDF2F8;
    border: 0;
    border-radius: 3px;
}
.rank-list li:nth-child(-n+3) .s1 {
    background: var(--primary);
    color: #FFF;
    font-weight: bold;
}
.rank-list li .s2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list li .s2 a { color: var(--text); }
.rank-list li .s2 a:hover { color: var(--primary); }
.rank-list li .s3 { flex: 0 0 auto; margin-left: 8px; text-align: right; color: var(--text2); white-space: nowrap; }
.rank-list li:nth-child(-n+3) .s3 { color: var(--accent-dark); font-weight: bold; }
.rank-list li .date { margin-left: auto; flex: 0 0 40px; text-align: right; color: var(--text3); }

/* 侧栏资讯 */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
    position: relative;
    padding: 0 2px 0 13px;
    line-height: 24px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--radius);
}
.news-list li::before {
    content: "";
    position: absolute;
    left: 3px; top: 11px;
    width: 4px; height: 4px;
    border-radius: 1px;
    background: #B9CBDD;
}
.news-list li a { color: var(--text); }
.news-list li a:hover { color: var(--primary); }

/* 侧栏滚动评论 */
.scrollbox { overflow: hidden; }
#scrollDiv { height: 482px; overflow: hidden; }
#scrollDiv ul { list-style: none; margin: 0; padding: 0; }
#scrollDiv li {
    position: relative;
    padding: 5px 2px 4px 14px;
    border-bottom: 1px dashed var(--border);
}
#scrollDiv li::before {
    content: "";
    position: absolute;
    left: 3px; top: 12px;
    width: 0; height: 0;
    border-left: 5px solid #B9CBDD;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
#scrollDiv li h3 {
    margin: 0; padding: 0;
    height: 22px; line-height: 22px;
    font-size: 12px; font-weight: normal;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#scrollDiv li h3 a { color: var(--text2); }
#scrollDiv li div {
    color: var(--text2);
    font-size: 12px; line-height: 18px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.scroltit { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 2px 2px; }
.scroltit .updown {
    padding: 2px 12px;
    font-size: 12px;
    line-height: 20px;
    color: var(--primary);
    background: var(--hover);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s;
}
.scroltit .updown:hover { background: #E3F0FF; }

/* ============================================================
   展示页
   ============================================================ */
.union-info { display: flex; align-items: center; gap: 20px; margin: 10px 8px; }
.union-info .fields { flex: 1 1 auto; min-width: 0; }
.union-info .fields .frow { display: flex; padding: 5px 0; font-size: 14px; align-items: baseline; }
/* 标签：重点处字号大；整体缩进与数值列对齐 */
.union-info .fields .flabel { flex: 0 0 104px; padding-left: 14px; font-size: 15px; font-weight: bold; color: var(--text); }
/* 次要内容（类型/金额/周期）字号小一档、颜色弱化；名称/网址等重要值保持大字 */
.union-info .fields .fvalue { flex: 1 1 auto; min-width: 0; word-break: break-all; font-size: 14px; color: var(--text); }
.union-info .fields .fvalue.minor { font-size: 13px; color: var(--text2); }
/* 联盟介绍：长文本，小一号弱化色 */
.union-info .fields .fvalue.intro { font-size: 13px; line-height: 20px; color: var(--text2); }

.vote-chart {
    flex: 0 0 auto;
    display: flex;
    align-items: center;          /* 图表整体在信息区垂直居中 */
    gap: 6px;
    padding: 4px 2px;
}
.vote-chart .bar-col {
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 196px;
    border-bottom: 2px solid var(--border2);
}
.vote-chart .bar-val { font-size: 12px; font-weight: bold; color: #3A5570; padding: 2px 0; }
.vote-chart .bar { width: 30px; border-radius: 3px 3px 0 0; }
.vote-chart .bar.b1 { background: linear-gradient(to bottom, #FF6B6B, #E01F1F); }
.vote-chart .bar.b2 { background: linear-gradient(to bottom, #B8C71F, #999900); }
.vote-chart .bar.b3 { background: linear-gradient(to bottom, #8A4CC8, #660099); }
.vote-chart .bar.b4 { background: linear-gradient(to bottom, #5A5A5A, #333); }
.vote-chart .bar.b0 { background: linear-gradient(to bottom, #909090, #666); }
.vote-chart .bar-name {
    width: 100%;
    height: 34px;
    line-height: 17px;
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--text2);
}

.malicious-tip {
    margin: 6px 2px;
    padding: 7px 10px;
    text-align: center;
    font-weight: bold;
    color: var(--danger);
    background: #FEF4F4;
    border: 1px dashed #F2C6C6;
    border-radius: var(--radius);
}

/* 评论区 */
.comment-item { margin: 4px 2px; padding: 7px 8px; border-bottom: 1px solid var(--border); border-radius: var(--radius); }
.comment-item .c-subject { font-size: 14px; font-weight: bold; color: var(--primary); word-break: break-all; }
.comment-item .c-votes { margin: 2px 0; font-size: 13px; font-weight: bold; color: #3D4F63; }
.comment-item .c-content { padding: 3px 0 5px 2px; font-size: 13px; color: var(--text); word-break: break-all; }
.comment-item .c-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text2); }
.comment-item .c-meta .reply-link { margin-left: auto; }

/* 评分表单 */
.comment-form { padding: 8px 6px 12px; }
.comment-form .form-row { display: flex; align-items: flex-start; gap: 6px; padding: 5px 0; }
.comment-form .form-row > strong { flex: 0 0 64px; line-height: 30px; }
.comment-form .star-grid { display: flex; flex-wrap: wrap; gap: 8px 34px; padding: 3px 0; }

.locked-tip { padding: 44px 10px; text-align: center; color: var(--danger); font-weight: bold; }

/* 星级评分（内联 SVG 星星按钮，无精灵图/无列表圆点） */
.star-grid { display: flex; flex-wrap: wrap; gap: 10px 44px; padding: 6px 0; }
.star-group { display: flex; align-items: center; white-space: nowrap; }
.star-group .sg-title { flex: 0 0 84px; margin-right: 4px; }   /* 标题定宽，星星纵向对齐 */
.star-group .sg-stars { display: inline-flex; gap: 2px; }
.star-group .sg-star {
    border: 0;
    background: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #D5DEE8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .12s, transform .12s;
}
.star-group .sg-star svg { width: 21px; height: 21px; display: block; fill: currentColor; }
.star-group .sg-star.hover { color: #FFC35C; transform: scale(1.12); }
.star-group .sg-star.on { color: #FFA400; }
.star-group .sg-tips {
    flex: 0 0 68px;              /* 固定占位：文字出现时不挤压后面的星组 */
    margin-left: 8px;
    font-size: 12px;
    color: #FF6D02;
    white-space: nowrap;
}

/* ============================================================
   表单
   ============================================================ */
input[type=text], input[type=password], input[type=url], input[type=number], textarea, select {
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 6px 9px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #FFF;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: var(--ring); }
textarea { width: 100%; max-width: 640px; min-height: 110px; resize: vertical; }
select { padding: 5px 6px; }

.btn-main {
    display: inline-block;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #3D8EE9, #2E7CD3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(20,60,110,.22);
    text-shadow: 0 1px 1px rgba(20,60,110,.25);
    color: #FFF;
    padding: 8px 26px;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s, box-shadow .15s;
}
.btn-main:hover { filter: brightness(1.07); text-decoration: none; }
.btn-main:active { filter: brightness(.96); box-shadow: inset 0 2px 3px rgba(16,42,80,.28); }

.form-tip { color: var(--danger); font-weight: bold; }
.form-note { color: var(--text3); font-size: 12px; }

label:has(> input[type="checkbox"]) {
    display: inline-block;
    margin: 0 16px 4px 0;
    white-space: nowrap;
    cursor: pointer;
}

.add-table { width: 100%; }
.add-table .frow { padding: 7px 2px; font-size: 14px; }
.add-table .frow label.flabel { display: inline-block; min-width: 92px; font-weight: bold; vertical-align: top; }
.add-table .frow > input[type=text], .add-table .frow > input[type=url] { min-width: 240px; }

/* 高级搜索表单（PC：左标签定宽 + 控件列对齐） */
.adv-form { padding: 6px 28px 4px; }
.adv-row { display: flex; align-items: flex-start; padding: 9px 2px; }
.adv-label { flex: 0 0 110px; font-size: 14px; font-weight: bold; line-height: 34px; color: var(--text); white-space: nowrap; }
.adv-ctrl { flex: 1; min-width: 0; }
.adv-ctrl input[type=text], .adv-ctrl input[type=url] { width: 320px; max-width: 100%; }
.adv-sel { width: 200px; max-width: 100%; }
.adv-checks { display: flex; flex-wrap: wrap; gap: 9px 26px; padding-top: 6px; }
.adv-checks label { margin: 0; white-space: nowrap; }
.adv-order { display: flex; gap: 10px; }
.adv-order select:first-child { width: 200px; }
.adv-order select:last-child { width: 110px; }
.adv-actions { text-align: center; padding: 18px 0 10px; }
.adv-form .adv-tip {
    background: #FFF9EC;
    border: 1px solid #F0E2BC;
    border-radius: var(--radius);
    padding: 9px 12px;
    line-height: 24px;
    font-size: 13px;
    margin: 6px 0 4px;
}
.adv-form .adv-tip a { text-decoration: none; }
.adv-form .adv-tip a:hover { text-decoration: underline; }
.adv-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.adv-inline input[type=text] { width: 240px; }
.adv-inline input.adv-code { width: 120px; }
.code-img { height: 34px; vertical-align: middle; border: 1px solid var(--border2); border-radius: var(--radius); cursor: pointer; }
.adv-row.tr-top .adv-label { line-height: 20px; padding-top: 8px; }
.adv-textarea { width: 100%; max-width: 640px; vertical-align: top; }
.adv-note-block { display: block; margin-top: 6px; line-height: 20px; }

.ok-msg { text-align: center; color: var(--danger); font-size: 16px; padding: 60px 0; }

/* ============================================================
   资讯
   ============================================================ */
.news-summary { padding: 2px 8px; border-radius: var(--radius); }
.news-summary .title a { font-size: 16px; font-weight: bold; color: var(--text); line-height: 22px; }
.news-summary .title a:hover { color: var(--primary); }
.news-summary .sum { padding-top: 4px; font-size: 12px; line-height: 22px; color: var(--text2); }
.news-summary .foot { padding-top: 8px; font-size: 12px; color: var(--text3); }
.news-summary + .hr, .hr { border-top: 1px solid var(--border); margin: 8px 0 16px; }

#newscontent { padding: 4px 12px 16px; }
#newscontent h1 { margin: 14px 0; font-size: 21px; line-height: 1.45; text-align: center; color: var(--text); }
#newscontent .author {
    padding: 6px 0;
    text-align: center;
    color: var(--text3);
    font-size: 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
#newscontent .content { padding: 10px 2px; font-size: 14px; line-height: 25px; color: var(--text); }
#newscontent .content img { max-width: 100%; height: auto; border-radius: var(--radius); }
/* 缺失图片占位 */
.img-missing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 80px;
    margin: 2px 0;
    padding: 0 14px;
    font-size: 12px;
    color: #98A5B3;
    background: repeating-linear-gradient(45deg, #F2F6FA, #F2F6FA 8px, #EDF2F7 8px, #EDF2F7 16px);
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    vertical-align: middle;
}
#newscontent .pagelist { padding: 10px 0; text-align: center; font-size: 14px; }
#newscontent .pagelist span { padding: 1px 5px; border-radius: var(--radius); }

/* ============================================================
   简介 / 友链
   ============================================================ */
.ijianjie {
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    font-size: 13px;
    line-height: 21px;
    color: var(--text2);
    background: var(--panel);
}
.ilink {
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 4px;
    background: var(--panel);
}
.ilink a { margin-right: 10px; white-space: nowrap; }

/* ============================================================
   页脚
   ============================================================ */
.footer-banner { margin-top: 8px; }
.footer-banner img { width: 100%; max-width: 978px; height: auto; display: block; margin: 0 auto; border-radius: var(--radius); }

.site-footer { margin: 8px 0 14px; }
.site-footer .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 0;
    padding: 6px 10px;
    background: linear-gradient(to bottom, #2268A8, #1B5791);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 12px;
    color: #D8E7F5;
}
.site-footer .links a { color: #E4F0FB; padding: 0 6px; }
.site-footer .links a:hover { color: #FFF; text-decoration: none; }
.site-footer .cont {
    padding: 12px 14px;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    color: var(--text2);
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
    .twidth { padding: 6px 10px; }
    .pagebody { flex-wrap: wrap; }
    /* 用高特异性选择器，杜绝旧规则覆盖 */
    .pagebody .mainbody,
    .pagebody .sidebar,
    .pagebody.pagebody-narrow .sidebar { flex: 1 1 100%; width: auto; max-width: none; min-width: 0; }
    .sidebar { display: flex; flex-wrap: wrap; gap: 10px; }
    .sidebar .panel { flex: 1 1 230px; min-width: 0; }
    .main-nav a { padding: 8px 14px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }

    /* 页头：logo 居中 + 4 列文字导航 */
    .site-header { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
    .site-header .logo { margin: 0 auto; }
    .site-header .logo img { height: 40px; width: auto; }
    .main-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .main-nav a {
        padding: 10px 0;
        font-size: 14px;
        text-align: center;
        background: var(--hover);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .main-nav a:hover { background: #E3F0FF; }

    .menu-bar { flex-direction: column; align-items: center; gap: 1px; padding: 4px 10px; }
    .menu-bar .site-name { display: none; }   /* 手机版隐藏站名（logo 已表达品牌） */
    .menu-bar .tip { line-height: 1.5; text-align: center; }

    .notice-bar { flex-direction: column-reverse; align-items: stretch; }
    .notice-bar .act { display: none; }   /* 手机版隐藏 RSS订阅/图标行 */
    .ijianjie { font-size: 12px; line-height: 19px; padding: 6px 10px; }

    .search-bar .inner { padding: 8px 10px; gap: 8px; }
    .search-bar form { flex: 1 1 100%; }
    .search-bar .kw { max-width: none; }
    .search-bar .btn { flex: 0 0 88px; }
    .search-bar .links { flex: 1 1 100%; }

    /* 信息/柱状图纵向堆叠，柱状图水平居中可滚动 */
    .union-info { flex-direction: column; gap: 4px; }
    .union-info .fields .frow { display: block; padding: 4px 0; }
    .union-info .fields .flabel { display: inline-block; min-width: 88px; }
    .union-info .vote-chart { flex: none; width: 100%; overflow-x: auto; justify-content: flex-start; padding: 8px 2px; }
    .vote-chart .bar-col { width: 64px; flex: 0 0 64px; }

    /* 列表：手机版标题/评分/摘要允许多行展开，文字撑满屏宽 */
    .ilist { padding: 8px 4px; }
    .ilist h2 { white-space: normal; word-break: break-all; }
    .ilist h2 a { max-width: none; overflow: visible; text-overflow: clip; }
    .ilist .votes { white-space: normal; word-break: break-all; }
    .ilist .sum {
        padding-left: 4px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 18px;
        height: auto;
        min-height: 36px;
    }

    /* 评论区与点评表单收紧 */
    .comment-form { padding: 4px 2px 8px; }
    .comment-form .form-row { flex-direction: column; gap: 1px; }
    .comment-form .form-row > strong { flex: none; line-height: 22px; }   /* 取消桌面 64px basis，消除标签下空洞 */
    .comment-form .star-grid { gap: 4px 20px; padding: 2px 0; }
    .comment-item { padding: 6px 4px; }

    /* 表单行：标签在上、控件全宽 */
    .add-table .frow label.flabel { display: block; min-width: 0; margin-bottom: 3px; }
    .add-table .frow > input[type=text],
    .add-table .frow > input[type=url],
    .add-table .frow > select,
    .add-table .frow > textarea { width: 100%; max-width: none; min-width: 0; }

    /* 高级搜索：标签在上、控件全宽、复选框两列整齐排布 */
    .adv-row { display: block; padding: 6px 2px; }
    .adv-label { display: block; flex: none; line-height: 24px; margin-bottom: 2px; }
    .adv-ctrl input[type=text],
    .adv-ctrl input[type=url],
    .adv-ctrl .adv-sel { width: 100%; }
    .adv-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; padding-top: 2px; }
    .adv-checks label { white-space: normal; line-height: 20px; }
    .adv-order { gap: 8px; }
    .adv-order select:first-child { flex: 1; width: auto; min-width: 0; }
    .adv-order select:last-child { flex: 0 0 96px; width: 96px; }
    .adv-form { padding: 6px 12px 4px; }
    .adv-actions { padding: 14px 0 6px; }
    .adv-actions .btn-main { width: 60%; }
    .adv-tip { line-height: 22px; word-break: break-all; }
    .adv-inline input[type=text],
    .adv-inline input.adv-code { flex: 1 1 120px; width: auto; min-width: 0; }
    .adv-textarea { max-width: none; }
    .tr-top .adv-label { padding-top: 0; }

    /* 滚动评论撑满 */
    #scrollDiv { height: 420px; }

    .site-footer .links { line-height: 22px; }

    /* 列表面板头表格不折行 */
    .panel .panel-h table { width: 100% !important; }
    .panel .panel-h table td { padding: 0 6px; white-space: nowrap; }
}

/* 一览表（/plus/listall.html）：多列紧凑排布 */
.alllist { columns: 4 220px; column-gap: 14px; list-style: none; margin: 0; padding: 6px 2px; }
.alllist li { padding: 3px 2px; border-bottom: 1px dashed #EEF2F6; font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alllist li .idx { display: inline-block; min-width: 26px; color: var(--text3); font-size: 12px; }
.alllist li a { color: var(--primary); }
.alllist li a:hover { color: var(--accent-dark); }
