/* =========================================================================
   Qingdao University Online - Alumni Archive: nostalgic paper theme overlay
   Loaded AFTER style.css / core.css, so equal-specificity rules win.
   Palette (same as the H5 archive):
     paper      #f4eee1   ink        #3b3226   ink-2      #6b5c47
     card       #fbf7ec   line       #ddd2ba   brass      #a4611f
     brass-lt   #c07a35   deep-paper #efe4cc
   NOTE: keep this file pure ASCII to avoid GBK/UTF-8 mismatch issues.
   ========================================================================= */

/* ---------- base / page background ---------- */
body {
  color: #3b3226;
  background-color: #f4eee1;
  background-image: radial-gradient(rgba(120, 95, 60, .055) 1px, transparent 1px);
  background-size: 4px 4px;
  background-repeat: repeat;
  font-family: Tahoma, "Microsoft YaHei", Arial, sans-serif;
}

/* ---------- links ---------- */
a { color: #a4611f; }
a:hover { color: #c07a35; }

/* ---------- top fixed navigation bar (originally blue #488fce) ---------- */
.header_wrap {
  background: linear-gradient(to bottom, #fbf6ea, #efe4cc);
  border-bottom: 1px solid #d8c9a6;
  box-shadow: 0 1px 4px rgba(90, 70, 40, .18);
}
.header_wrap .nav li a { color: #5b4a33; }
.header_wrap .nav li a:hover { color: #a4611f; background: rgba(164, 97, 31, .08); }
.header_wrap .nav li.current a,
.header_wrap .nav li.current a:hover {
  background: #a4611f; color: #fff8ea; text-decoration: none;
}

/* search box inside header */
.header_search {
  background: #fbf7ec;
  border: 1px solid #ddd2ba;
  box-shadow: none;
}
.header_search input { background: transparent; color: #3b3226; }

/* login / register buttons were blue sprite images -> flat brass capsules */
.header_login_btn,
.header_login_btn:hover,
.header_login {
  background: transparent !important;
  background-image: none !important;
  border-radius: 999px;
  border: 1px solid #c8a06a;
  color: #a4611f !important;
  box-shadow: none;
}
.header_login_btn:hover { background: rgba(164, 97, 31, .1) !important; }
.header_login_btn .inside { background-image: none !important; }
.header_login a { color: #a4611f; }

/* secondary / weak nav strip */
.nav_weak {
  background: #fbf7ec;
  border: 1px solid #ddd2ba;
  border-color: #fbf7ec #ddd2ba #ddd2ba #ddd2ba;
}
.nav_weak li a { color: #6b5c47; }
.nav_weak li a:hover, .nav_weak li.current a { background: #a4611f; color: #fff8ea; }

/* ---------- content cards (originally white boxes) ---------- */
.box_wrap,
.forum_group,
.bbs_info_box,
.content_wrapper,
.sidebar .box {
  background: #fbf7ec;
  border: 1px solid #ddd2ba;
  box-shadow: 0 1px 2px rgba(90, 70, 40, .06);
}
.box_wrap, .forum_group { border-radius: 4px; }
.box_wrap .box_title {
  background: linear-gradient(to bottom, #f7f0e0, #f1e8d4);
  border-bottom: 1px solid #e2d6bd;
  color: #6b5c47;
}
.box_wrap .box_title .num { background: #efe4cc; color: #6b5c47; }

/* ---------- main content panel / post area ---------- */
.content_article,
.post_from,
.read_tit,
.floor .content {
  background: #fbf7ec;
  border-color: #e4d9c2;
}

/* ---------- tabs, filters, tags, buttons ---------- */
.content_type a.current,
.content_type a:hover,
.tab a.current,
.forum_tab a.current,
.tabC a.current {
  background: #a4611f;
  color: #fff8ea;
  border-color: #a4611f;
}
.btn,
.btn_submit,
input[type="submit"],
input[type="button"],
button {
  background: linear-gradient(to bottom, #fdf9f0, #f2e8d5);
  border: 1px solid #d2c1a1;
  color: #5b4a33;
  border-radius: 3px;
}
.btn:hover, .btn_submit:hover, input[type="submit"]:hover, input[type="button"]:hover, button:hover {
  background: linear-gradient(to bottom, #fffdf7, #f7eeda);
  color: #a4611f;
  border-color: #c8a06a;
}
.btn_submit, .btn_primary {
  background: linear-gradient(to bottom, #b06d24, #a4611f);
  border-color: #8f5318;
  color: #fff8ea;
}
.btn_submit:hover, .btn_primary:hover { background: #c07a35; color: #fff; }

/* pagination pages already using a highlight colour -> brass */
.pages .current, .pages a:hover { background: #a4611f; color: #fff8ea; border-color: #a4611f; }
.pages a { border-color: #ddd2ba; background: #fbf7ec; color: #6b5c47; }

/* ---------- footer / breadcrumb ---------- */
.footer_wrap { border-top: 1px solid #ddd2ba; background: transparent; }
.footer { border-top: 1px solid #fbf7ec; color: #6b5c47; }
.footer a { color: #a4611f; }
.bread_crumb { color: #6b5c47; }
.bread_crumb a { color: #a4611f; }

/* ---------- misc text helpers ---------- */
.fr .num, .muted, .descrip, .time, .last, .old { color: #6b5c47; }
.s4, .cname, .ct .cname a { color: #3b3226; }
.org { color: #a4611f !important; }

/* notice / tip bars (often a pale-blue info background) */
.notice,
.tips,
.hint,
.not_found {
  background: #fbf7ec;
  border: 1px solid #ddd2ba;
  color: #6b5c47;
}

/* ==================== 注册入口全站隐藏 / 顶部登录按钮美化 ==================== */
/* 全站隐藏所有“注册”入口（链接与按钮），仅保留登录 */
a[href*="register"] { display: none !important; }

/* 顶部“登录”按钮：铜金胶囊，与拾光档案馆风格统一 */
.header_login {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.header_login a[href*="login"] {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid #a4611f;
  border-radius: 999px;
  background: linear-gradient(to bottom, #c07a35, #a4611f);
  color: #fff8ea !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(90, 70, 40, .25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.header_login a[href*="login"]:hover {
  background: linear-gradient(to bottom, #b86f2c, #94561a);
  color: #fffdf7 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(120, 90, 50, .35);
}
.header_login a[href*="login"]:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(90, 70, 40, .3);
}

/* =========================================================================
   Contrast + colour polish pass (2026-10-31)
   Problem: several phpwind defaults assume a dark-blue chrome, but the
   archive overlay repainted those bars to pale paper, so their white /
   near-white text lost its background and became unreadable. This section
   repairs those spots and unifies the remaining blue accents to brass.
   Layout (margins/padding/widths) is untouched.
   ========================================================================= */

/* --- 1. text that stayed white after its dark background was repainted --- */
.header_login_later,
.header_login_later a,
.header_login_btn .inside,
.header_login_btn .inside a,
.header_login_btn .inside a:hover,
.header_post,
.header .s3,
.header .s3 a {
  color: #5b4a33;
  text-shadow: none;
}
.header_post:hover { color: #a4611f; }

/* --- 2. low-contrast greys on pale paper -> warm ink --- */
.info,
.thread_posts_list .info,
.thread_posts_list .info a,
.thread_posts_list .num,
.num li,
.floor_top_tips,
.floor_bottom_tips,
.floor_bottom_tips a,
.floor_top_tips .fr a,
.bread_crumb,
.bread_crumb em,
.bread_crumb a {
  color: #6b5c47;
}
/* floor number was #bbb (almost invisible on paper) */
.lou,
.floor_top_tips .lou { color: #7a6a4f; }
/* action links in each floor */
.operate a { color: #7a6a4f; }
.operate a:hover { color: #a4611f; }

/* --- 3. leftover blue accents -> brass (needs !important where core uses it) --- */
.content_nav li.current a,
.content_nav li.current a:hover {
  background: #a4611f !important;
  border-color: #8f5318 !important;
  color: #fff8ea !important;
}
.post_tags_hot li a {
  background: #a4611f;
  border-color: #8f5318;
  color: #fff8ea;
}
.post_tags_hot li a:hover { background: #c07a35; color: #fffdf7; }
.pages strong,
.pages a.current {
  background: #a4611f !important;
  border-color: #8f5318 !important;
  color: #fff8ea !important;
}
.pages a:hover {
  background: #c07a35 !important;
  border-color: #a4611f !important;
  color: #fff8ea !important;
}

/* --- 4. readability: thread titles in lists read better as ink than brass --- */
.thread_posts_list .subject a,
.forum_group .title a,
.subject a {
  color: #3b3226;
  transition: color .12s ease;
}
.thread_posts_list .subject a:hover,
.forum_group .title a:hover,
.subject a:hover { color: #a4611f; }

/* thread row stripes stay distinguishable but warm instead of blue-grey */
.thread_posts_list .ordinary { background: #f6efdd; color: #6b5c47; }
.thread_posts_list .ordinary:hover { background: #f2e8d2; }

/* --- 5. soft transitions everywhere colour changes on hover --- */
a, .btn, .btn_submit, input[type="submit"], input[type="button"], button {
  transition: color .12s ease, background-color .12s ease, border-color .12s ease;
}

/* --- 6. body links: darken brass slightly so small body text clears WCAG AA
   on the pale paper (#a4611f is only 4.22:1 on #f4eee1, #94561a reaches 5.0+) --- */
a { color: #94561a; }
a:hover { color: #6f420f; }
