/* ============================================================
   old-web.css — 2000 年代中国学校网站风格
   无相校规 · 槐川市第七中学档案调查系统
   阶段:PHASE 00(工程骨架)
   职责:960px 框架、HTML table 站框、1px 边框、深蓝链接、
        旧式按钮、终端输出行、访客计数器
   ============================================================ */

/* ---- 960px 框架 ---- */
.frame {
    width: 960px;
    margin: 14px auto 24px auto;
}

/* ---- 外壳站框(旧式 table 布局) ---- */
table.shell {
    width: 960px;
    border: 1px solid #999999;
    background-color: #fdfdfb;
}

table.shell td {
    border: 0;   /* 壳内单元默认无边框,由组件自行添加 */
    padding: 0;
}

/* ---- 顶栏(校名条) ---- */
.site-topbar {
    background-color: #2b4a7a;   /* 深蓝,无渐变 */
    color: #ffffff;
    text-align: center;
    padding: 14px 10px 10px 10px;
    border-bottom: 2px solid #1c3457;
}

.site-title {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #ffffff;
}

.site-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #c9daf5;
    letter-spacing: 2px;
}

/* ---- 内容区 ---- */
.site-content {
    padding: 22px 26px 26px 26px;
    font-size: 14px;
}

.site-content p {
    margin: 4px 0;
}

/* ---- 页脚 ---- */
.site-footer {
    background-color: #f0eee9;
    border-top: 1px solid #cccccc;
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    color: #666666;
}

/* ---- 通用表格(1px 边框,旧式) ---- */
table.web {
    width: 100%;
    border-collapse: collapse;
}

table.web th,
table.web td {
    border: 1px solid #999999;
    padding: 5px 9px;
    font-size: 13px;
}

table.web th {
    background-color: #e8e5df;
    font-weight: bold;
}

/* ---- 链接:深蓝,下划线 ---- */
a {
    color: #0033cc;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #cc0000;
}

a:active {
    color: #cc0000;
}

/* ---- 旧式按钮 ---- */
.btn-old {
    display: inline-block;
    padding: 4px 16px;
    background-color: #f2f0ec;
    border: 1px solid #555555;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
}

.btn-old:hover {
    background-color: #d8d4cc;
    color: #000000;
}

.btn-old:active {
    position: relative;
    top: 1px;
    left: 1px;
}

/* ---- 终端输出行 ---- */
.console-line {
    font-family: "Courier New", Consolas, monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: #111111;
    background-color: #f7f6f3;
    border: 1px solid #bbbbbb;
    padding: 8px 12px;
    margin: 6px 0 14px 0;
}

/* ---- 访客计数 ---- */
.counter {
    font-family: "Courier New", Consolas, monospace;
    font-size: 12px;
    color: #333333;
}

/* ---- 自检状态字 ---- */
.st {
    font-family: "Courier New", Consolas, monospace;
}

.st.ok {
    color: #006600;
}

.st.fail {
    color: #cc0000;
    font-weight: bold;
}

/* ---- 间距工具 ---- */
.btn-wrap {
    margin-top: 18px;
}

/* ============================================================
   PHASE 01 — 槐川市第七中学官网母版
   无相校规 · 2000 年代中国学校官网
   后续许多页面必须继承此视觉(母版)。
   规格:980px 居中 / 顶部 88px / 导航 30px / 左栏 160px
   配色:背景 #e8e5dc | 正文 #222222 | 链接 #174a78 | 边框 #999999
   阶段约束:本阶段禁止暗红。
   ============================================================ */

/* ---- 页面级 ---- */
body.page-school {
    background-color: #e8e5dc;
}

/* 母版内链接悬停保持深蓝系(禁止暗红) */
body.page-school a:hover,
body.page-school a:active {
    color: #0a3a66;
}

/* ---- 外壳:980px 居中 ---- */
table.school {
    width: 980px;
    margin: 12px auto 20px auto;
    border: 1px solid #999999;
    background-color: #fdfdfb;
}

table.school td {
    border: 0;
    padding: 0;
}

/* ---- 顶部:88px,Logo + 校名 ---- */
.school-header {
    height: 88px;
    background-color: #f6f4ee;
    border-bottom: 1px solid #999999;
}

.school-header .logo-cell {
    width: 110px;
    text-align: center;
    vertical-align: middle;
}

.school-header .name-cell {
    vertical-align: middle;
    padding-left: 8px;
}

.school-name {
    font-size: 20px;
    font-weight: bold;
    color: #222222;
    letter-spacing: 4px;
}

.school-name-en {
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #666666;
}

/* ---- 导航:30px ---- */
.school-nav {
    height: 30px;
    background-color: #e2e9f2;
    border-bottom: 1px solid #999999;
    padding: 0 6px;
}

.nav-item {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    font-size: 13px;
    color: #174a78;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #d3ddec;
}

.nav-active,
.nav-active:hover {
    background-color: #174a78;
    color: #ffffff;
}

/* ---- 主体:左栏 160px + 内容区 ---- */
.school-left {
    width: 160px;
    background-color: #f3f0e8;
    border-right: 1px solid #999999;
    vertical-align: top;
    padding: 12px 10px;
}

.side-title {
    font-size: 14px;
    font-weight: bold;
    color: #222222;
    border-bottom: 1px solid #999999;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.side-list {
    list-style: none;
}

.side-list li {
    padding: 4px 0;
    font-size: 13px;
}

.side-list a {
    color: #174a78;
}

.school-main {
    vertical-align: top;
    padding: 14px 18px 18px 18px;
}

/* ---- 内容组件 ---- */
.sec-title {
    font-size: 16px;
    font-weight: bold;
    color: #222222;
    border-left: 4px solid #174a78;
    padding-left: 8px;
    margin: 4px 0 10px 0;
}

.photo {
    border: 1px solid #999999;
    padding: 3px;
    background-color: #ffffff;
}

.photo-cap {
    margin-top: 4px;
    font-size: 12px;
    color: #555555;
    text-align: center;
}

.news-list {
    list-style: none;
}

.news-list li {
    border-bottom: 1px dashed #cccccc;
    padding: 6px 2px;
    font-size: 13px;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-date {
    float: right;
    font-size: 12px;
    color: #666666;
}

/* 无边框布局表 */
table.layout {
    width: 100%;
    border: 0;
}

table.layout td {
    border: 0;
    padding: 0;
    vertical-align: top;
}

/* ---- 页脚 ---- */
.school-footer {
    background-color: #ece9e0;
    border-top: 1px solid #999999;
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #555555;
}

/* ---- 内容发布信息 / 落款 ---- */
.pub-line {
    font-size: 12px;
    color: #666666;
    margin: -4px 0 12px 0;
}

.msg-sign {
    text-align: right;
    margin-top: 16px;
    font-size: 13px;
    color: #555555;
}

/* ============================================================
   PHASE 03 — 2009 版旧学校网站(互联网遗迹)
   无相校规 · 比 PHASE 01 官网更旧
   规格:900px 居中 / 导航 26px / 正文字号 12px / 1px 实线边框
   配色:深蓝 #003c8f | 灰白底 | 旧式计数器与版权
   动画:旧式链接 opacity 1→0.96→1,周期 6s,非常轻微(唯一)
   ============================================================ */

body.old-site {
    background-color: #e6e4de;
    font-size: 12px;
}

table.oldsite {
    width: 900px;
    margin: 10px auto 16px auto;
    border: 1px solid #999999;
    background-color: #fdfdfb;
}

table.oldsite td {
    border: 0;
    padding: 0;
}

/* ---- 顶部:校徽 LOGO + 旧横幅 ---- */
.old-logo-cell {
    width: 80px;
    text-align: center;
    vertical-align: middle;
    padding: 6px 0;
}

.old-banner-cell {
    vertical-align: middle;
    padding: 6px 8px 6px 0;
}

/* ---- 导航:26px 深蓝 ---- */
.old-nav {
    height: 26px;
    background-color: #003c8f;
    border-top: 1px solid #00265c;
    border-bottom: 1px solid #00265c;
    padding: 0 4px;
}

.old-nav-item {
    display: inline-block;
    height: 26px;
    line-height: 26px;
    padding: 0 12px;
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
}

.old-nav-item:hover {
    background-color: #0055b8;
    text-decoration: underline;
}

.old-nav-active,
.old-nav-active:hover {
    background-color: #00265c;
    color: #ffffff;
    text-decoration: none;
}

/* ---- 主体:左栏 + 内容 ---- */
.old-left {
    width: 150px;
    background-color: #f2f0ea;
    border-right: 1px solid #999999;
    vertical-align: top;
    padding: 10px 8px;
}

.old-side-title {
    font-size: 13px;
    font-weight: bold;
    color: #003c8f;
    border-bottom: 1px solid #999999;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.old-side-list {
    list-style: none;
}

.old-side-list li {
    padding: 3px 0;
    font-size: 12px;
}

.old-side-list a {
    color: #003c8f;
}

.old-main {
    vertical-align: top;
    padding: 10px 14px 14px 14px;
}

.old-title {
    font-size: 15px;
    font-weight: bold;
    color: #003c8f;
    border-bottom: 1px solid #999999;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

/* ---- 旧式盒子 ---- */
.old-box {
    border: 1px solid #999999;
    padding: 8px 10px;
    background-color: #f7f6f2;
}

.old-cap {
    margin-top: 4px;
    font-size: 11px;
    color: #666666;
    text-align: center;
}

/* ---- 旧式表格 ---- */
table.old {
    width: 100%;
    border-collapse: collapse;
}

table.old th,
table.old td {
    border: 1px solid #999999;
    padding: 4px 8px;
    font-size: 12px;
}

table.old th {
    background-color: #d9e2ef;
}

/* ---- 旧式链接呼吸(唯一动画:opacity 1→0.96→1,周期 6s) ---- */
@keyframes oldlink-breathe {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.96; }
}

.old-site a {
    animation: oldlink-breathe 6s ease-in-out infinite;
}

/* ---- 旧式页脚 ---- */
.old-footer {
    background-color: #efece4;
    border-top: 1px solid #999999;
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.9;
    color: #555555;
}

.old-footer a {
    color: #003c8f;
}

/* ============================================================
   PHASE 08 — 林知遥个人博客(2010 年前后)
   无相校规 · 850px 三栏个人博客(顶部标题/左栏资料/中间文章/右侧统计留言)
   ============================================================ */

body.blog-site {
    background-color: #e9e7e3;
    font-size: 13px;
}

table.blog-wrap {
    width: 850px;
    margin: 12px auto 20px auto;
    border: 1px solid #b5b0a6;
    background-color: #fdfdfb;
}

table.blog-wrap td {
    border: 0;
    padding: 0;
}

/* 顶部:博客标题 */
.b-header {
    background-color: #f4f1ea;
    border-bottom: 1px solid #b5b0a6;
    padding: 14px 18px;
}

.b-blog-title {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    letter-spacing: 2px;
}

.b-blog-sub {
    font-size: 12px;
    color: #777777;
    margin-top: 3px;
}

/* 三栏 */
.b-left {
    width: 150px;
    background-color: #f6f3ec;
    border-right: 1px solid #d8d3c8;
    vertical-align: top;
    padding: 12px 10px;
}

.b-right {
    width: 180px;
    background-color: #f6f3ec;
    border-left: 1px solid #d8d3c8;
    vertical-align: top;
    padding: 12px 10px;
}

.b-main {
    vertical-align: top;
    padding: 14px 16px;
}

.b-box-title {
    font-size: 13px;
    font-weight: bold;
    color: #555555;
    border-bottom: 1px solid #c8c2b6;
    padding-bottom: 3px;
    margin-bottom: 6px;
}

.b-avatar {
    border: 1px solid #999999;
    background: #ffffff;
    padding: 2px;
}

.b-left p,
.b-right p {
    margin: 4px 0;
    font-size: 12px;
    color: #444444;
}

.b-left a,
.b-right a,
.b-main a {
    color: #174a78;
    text-decoration: none;
}

.b-left a:hover,
.b-right a:hover,
.b-main a:hover {
    text-decoration: underline;
}

/* 博文列表 */
.b-post {
    padding: 7px 2px;
    border-bottom: 1px dotted #cccccc;
    font-size: 13px;
}

.b-post-date {
    float: right;
    font-size: 11px;
    color: #888888;
}

/* 文章页 */
.b-art-title {
    font-size: 16px;
    font-weight: bold;
    color: #222222;
    margin-bottom: 6px;
}

.b-art-meta {
    font-size: 11px;
    color: #888888;
    margin-bottom: 12px;
}

.b-poem {
    line-height: 2;
    color: #333333;
    margin: 10px 0;
}

/* 打字机核心句(45ms/字,仅一次) */
.b-type {
    font-size: 15px;
    font-weight: bold;
    color: #222222;
    border: 1px solid #d8d3c8;
    background-color: #f8f6f0;
    padding: 10px 12px;
    margin: 12px 0;
    min-height: 26px;
}

/* 留言 */
.b-msg {
    font-size: 12px;
    color: #555555;
    margin: 6px 0;
}

.b-cap {
    margin-top: 4px;
    font-size: 11px;
    color: #777777;
    text-align: center;
}

.b-img {
    border: 1px solid #999999;
    padding: 3px;
    background: #ffffff;
}
