@charset "UTF-8";
/*
 * 天涯社区 (tianya.net) 配色方案
 * 经典中文论坛配色：主蓝色 #2965b1 / 侧边栏蓝 #6699cc
 * 只改配色，不改布局
 * 基于 Xiuno BBS 4.0 标准
 */

:root {
  --primary: #2965b1;
  --primary-light: #6699cc;
  --primary-dark: #0b59b2;
  --primary-hover: #0b59b2;
  --secondary: #64748b;
  --secondary-light: #94a3b8;
  --secondary-dark: #475569;
  --success: #22c55e;
  --success-light: #4ade80;
  --success-dark: #16a34a;
  --info: #0ea5e9;
  --info-light: #38bdf8;
  --info-dark: #0284c7;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-dark: #d97706;
  --danger: #e4393c;
  --danger-light: #f87171;
  --danger-dark: #dc2626;
  --black: #333333;
  --white: #ffffff;
  --gray-50: #f5f9fd;
  --gray-100: #f5f7fa;
  --gray-200: #eef2f5;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #666666;
  --gray-600: #555555;
  --gray-700: #454545;
  --gray-800: #262626;
  --gray-900: #333333;
  --main-bg-color: var(--gray-50);
  --nav-bg-color: var(--primary);
  --light: var(--gray-100);
  --gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --gradient-danger: linear-gradient(135deg, var(--danger-light) 0%, var(--danger) 100%);
  --tianya-border: #b4cbee;
  --tianya-blue: #6699cc;
  --border-radius: 0.75rem;
}

/* ========== 全局背景 ========== */
html {
  background-color: var(--gray-50);
}
body {
  background-color: var(--gray-50);
  color: var(--gray-900);
}

/* ========== 导航栏配色 ========== */
#new-nav {
  background: var(--white);
  box-shadow: 0 2px 3px rgba(3, 3, 3, 0.25);
}
#new-nav .navbar-nav.mr-auto .nav-link {
  color: var(--gray-800);
}
#new-nav .navbar-nav.mr-auto .nav-link:before {
  background: var(--primary);
}
#new-nav .navbar-nav:last-child .nav-link {
  color: var(--gray-500);
}
#new-nav .navbar-nav:last-child .nav-link:hover {
  color: var(--gray-900);
}
#header-toolbar {
  background: var(--white);
}
#header-toolbar .van-header-action {
  color: var(--gray-800);
}
#header-toolbar .van-header-action:hover {
  color: var(--primary);
}

/* ========== 卡片 ========== */
.card {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.card > .card-header {
  color: var(--gray-700);
  border-left: 4px solid var(--primary);
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
}

.card-header-tabs > .nav-item > .nav-link.active {
  color: var(--gray-900);
}

.card-header-dropdown .dropdown .dropdown-toggle {
  color: var(--gray-600);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  background-color: var(--white) !important;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border-radius: var(--border-radius);
}
.breadcrumb:hover {
  background-color: var(--white) !important;
}

/* ========== 帖子列表 ========== */
.thread, .post {
  border-bottom: 1px solid var(--gray-200);
}

.thread:hover {
  background: var(--gray-100);
}

.thread:hover a {
  color: var(--primary-hover);
}

.thread .media-body > .d-flex.justify-content-between.small {
  color: var(--gray-500);
}

/* 列表标题链接 - 天涯风格：蓝色，hover变橙色 */
.subject a {
  color: var(--primary);
}
.subject a:hover {
  color: #f60;
}

.subject {
  color: var(--gray-800);
}

/* 标签 */
.tag_option:active, .tag_option.active {
  border: 1px solid var(--primary) !important;
  background: var(--primary) !important;
  color: var(--white) !important;
}

.thread .subject .badge-primary.van-thread-tag {
  background: var(--primary);
}

.nav_tag_list .active {
  font-weight: 500 !important;
}

/* ========== 帖子正文 ========== */
/* 天涯风格：帖子内容深色文字，引用块灰底 */
.message p {
  color: var(--gray-800);
}

.message img {
  border: 1px solid var(--gray-200);
}

/* ========== 引用块 ========== */
li.quote {
  background-color: #e2e2e2;
  border: 1px dashed #b5b5b5;
}
.blockquote {
  background-color: #e2e2e2;
  border: 1px dashed #b5b5b5;
}

@keyframes quote_animation {
  from {
    background-color: var(--success);
  }
  to {
    background-color: #e2e2e2;
  }
}

/* ========== 按钮 ========== */
.btn {
  border-radius: 0.375rem !important;
}

/* ========== 表单 ========== */
.form-group {
  background: none;
}

/* ========== 轮播 ========== */
.carousel-item img {
  border-radius: var(--border-radius);
}

/* ========== 图文列表 (blog.css) ========== */
.context {
  color: var(--gray-500);
}

.spic {
  background: var(--gray-100);
  border-radius: var(--border-radius);
}

/* ========== 图片列表 (img.css) ========== */
.threadlist .thread {
  background: transparent;
}
.threadlist .thread > input[name="modtid"] {
  accent-color: var(--primary);
}

.thread > input[name="modtid"] {
  accent-color: var(--primary);
}

.thread img {
  opacity: 0.95;
}

.thread:hover img {
  opacity: 1;
}

/* ========== 版块导航 ========== */
.area-nav {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--white);
}
.area-nav .title {
  color: var(--gray-600);
}
.area-nav .city-list a {
  border: 1px solid var(--gray-300);
  background-color: var(--gray-100);
  color: var(--gray-700);
  border-radius: 0.375rem;
}
.area-nav .city-list a:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.more-btn {
  color: var(--primary);
}

/* ========== 版块汇聚页 (boards) ========== */
.board-entry {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--gray-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.board-entry:hover {
  color: #f60;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.board-entry-name {
  color: var(--gray-800);
}
.board-entry-count {
  color: var(--gray-500);
}
.board-entry-brief {
  color: var(--gray-500);
}
.board-entry-brief-empty {
  color: var(--gray-400);
}

/* ========== 图片画廊 ========== */
.van-attach-gallery__item {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: 14px;
}

/* ========== 移动端导航配色 ========== */
@media (max-width: 991.98px) {
  #header {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
  }
  #header .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.25);
  }
  #header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  #new-nav #nav.show .navbar-nav + .navbar-nav,
  #new-nav #nav.collapsing .navbar-nav + .navbar-nav {
    border-top: 1px solid var(--gray-100);
  }
  .change {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--gray-200);
  }
  .minsc {
    color: var(--gray-500);
  }
  .minsc.active {
    color: var(--primary);
  }
  .minsc.publish i {
    background: var(--gradient-primary);
  }
  .minsc .unread-badge {
    background: var(--danger);
  }
}

/* ========== 侧边栏样式切换 ========== */
.changestyle a {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.changestyle a:hover {
  opacity: 1;
}

/* ========== 右侧浮动导航 ========== */
.fnli {
  background: var(--white);
  border: 1px solid var(--gray-300);
}
.fnnav span {
  color: var(--gray-400);
}
.fnlia:hover {
  color: #f60;
}

/* ========== 图片占位符水印 ========== */
.spic::before {
  color: rgba(0, 0, 0, 0.06);
}
.spic::after {
  color: rgba(0, 0, 0, 0.04);
}

/* ========== 链接颜色统一 ========== */
a {
  color: var(--primary);
}
a:hover {
  color: #f60;
}

/* ========== 样式切换按钮 ========== */
.changeview a {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* ========== 图片hover遮罩层 ========== */
.it-img span {
  background: rgba(0, 0, 0, 0.7);
}
.it-img:hover span {
  color: var(--white);
}

/* ========== 首页图文卡片 ========== */
.itit .iolu {
  background-color: var(--white);
}

/* ========== 徽章/标签 ========== */
.badge-primary {
  background: var(--primary);
}
.badge-secondary {
  background: var(--secondary);
}
.badge-success {
  background: var(--success);
}
.badge-danger {
  background: var(--danger);
}
.badge-warning {
  background: var(--warning);
}
.badge-info {
  background: var(--info);
}

/* ========== 分页 ========== */
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}
.pagination .page-link {
  color: var(--primary);
}
.pagination .page-link:hover {
  color: var(--primary-hover);
  background-color: var(--gray-100);
}

/* ========== 表格 ========== */
.table th {
  background-color: #e8e8e8;
  color: #777;
}
.table td {
  color: var(--gray-600);
}

/* ========== 文本颜色工具类 ========== */
.text-muted {
  color: var(--gray-500) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.text-danger {
  color: var(--danger) !important;
}
.text-success {
  color: var(--success) !important;
}
.text-warning {
  color: var(--warning) !important;
}
.text-info {
  color: var(--info) !important;
}

/* ========== 下拉菜单 ========== */
.dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dropdown-item {
  color: var(--gray-700);
}
.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ========== 模态框 ========== */
.modal-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.modal-header {
  border-bottom: 1px solid var(--gray-200);
}
.modal-footer {
  border-top: 1px solid var(--gray-200);
}

/* ========== 输入框 ========== */
.form-control {
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
  background: var(--white);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(41, 101, 177, 0.15);
}

/* ========== 分享按钮 ========== */
.van-share-btn {
  background: var(--gray-100);
  color: var(--gray-500);
}
.van-share-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* =================================================================
 * 个人中心页面样式
 * ================================================================= */

/* ========== 个人中心布局 ========== */
#header,
#new-nav {
  position: relative;
  z-index: 1030;
  background: var(--white) !important;
}

@media (min-width: 992px) {
  #body > .container {
    position: relative;
  }
  #my_aside {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-right: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }
  #my_main {
    flex: 0 0 75%;
    max-width: 75%;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }
  #my_main .card-header .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
    margin-bottom: 0;
  }
  #my_main .card-header {
    padding: 0.75rem 1rem 0 !important;
    background: var(--white);
    position: relative;
    z-index: 2;
  }
  #my_main .card-header .nav-tabs .nav-link {
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
  }
  #my_main .card-header .nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
    background: transparent;
  }
  #my_aside .list-group-flush .list-group-item {
    border: none;
  }
  #my_aside > .card {
    box-shadow: none !important;
  }
}

@media (max-width: 991.98px) {
  #body.route-my {
    padding-top: 0;
  }
  #my_mobile_nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #my_mobile_nav::-webkit-scrollbar {
    display: none;
  }
  #my_mobile_nav .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .userCenterInfo .card {
    border-radius: 5px !important;
  }
}

/* ========== 个人中心：去掉卡片标题左侧蓝条 ========== */
#my_main > .card > .card-header {
  border-left: none;
}

/* 侧栏已有 my-user-profile 时隐藏旧模板遗留的重复头像/用户名 */
#my_aside .card-body .my-user-profile ~ img.avatar-4,
#my_aside .card-body .my-user-profile ~ br,
#my_aside .card-body > *:not(.my-user-profile) {
  display: none !important;
}

/* ========== 移动端用户中心头部 ========== */
.my_userCenterInfo_header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* ========== 用户资料卡片 ========== */
.my-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  gap: 12px;
  margin-top: 0;
}

.my-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.my-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* ========== 渐变色徽章 ========== */
.jb-blue {
  color: var(--white);
  background: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
  border: none;
}

.jb-cyan {
  color: var(--white);
  background: linear-gradient(140deg, #039ab3 10%, #58dbcf 90%);
  border: none;
}

/* ========== 个人中心侧边栏 ========== */
.my-info-header {
  border: none !important;
  box-shadow: none !important;
}

#my_aside .van-my-aside-menu,
#my_aside .van-my-aside-menu .list-group-item {
  text-align: left !important;
}

#my_aside .van-my-aside-menu .list-group-item {
  border: none;
  color: var(--gray-600);
  padding: 0.65rem 1rem !important;
  transition: background 0.2s ease, color 0.2s ease;
}

#my_aside .van-my-aside-menu .list-group-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}

#my_aside .van-my-aside-menu .list-group-item.active {
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  margin: 0 0.35rem;
  width: auto;
}

.my-info-header .list-group-item {
  border: none;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.my-info-header .list-group-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.my-info-header .list-group-item.active {
  background: var(--primary);
  color: var(--white);
  border-radius: 5px;
}

/* ========== 头像尺寸 ========== */
.avatar-6 {
  width: 130px;
  height: 130px;
}

/* =================================================================
 * 页脚样式
 * ================================================================= */

#footer {
  border-top: 1px solid var(--gray-200);
}

#footer .h5 {
  color: var(--gray-900);
}

#footer .h6 {
  color: var(--gray-500);
}

#footer hr {
  border-color: var(--gray-200);
}

.footer-site-icon {
  height: 40px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  #footer .footer-site-icon {
    height: 32px;
  }
}

/* ========== 底部导航毛玻璃效果 ========== */
@media (max-width: 991.98px) {
  .change {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  #footer {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 60px;
    padding-bottom: 1.5rem;
  }
}

/* 确保页脚在所有设备上可见 */
#footer {
  display: block !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
  background: var(--white) !important;
  color: var(--gray-600);
  padding-bottom: 1rem;
}

/* ========== van_theme_dt 定制间距 ========== */
.thread .plugin.d-flex.justify-content-center {
  margin-bottom: 2em !important;
}
.thread .plugin ~ fieldset {
  margin-top: 0 !important;
}
.card-threadlist > .card-header > .nav.card-header-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  border-bottom: 0 !important;
}
.card-header-tabs .van-nav-sign-item {
  margin-left: auto !important;
}
.van-nav-sign-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #059669 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
.van-nav-sign-link.van-nav-sign-btn:not(.van-nav-sign-btn--done) {
  text-decoration: underline !important;
}
ul.threadlist > li.thread .media-body > .d-flex.justify-content-between.small {
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}
ul.threadlist > li.thread .media-body > .d-flex > .text-muted.small {
  margin-left: 0.5em !important;
  flex: 0 0 auto !important;
}
ul.threadlist > li.thread .media-body > .d-flex .van-thread-tag {
  margin-left: 0 !important;
}