/* ===== 首页专用（jx- 前缀，避免污染会员/心理师系统） ===== */

/* ===== 顶部 LOGO 蓝色区域 ===== */
.site-header{
  background:#1386d6;   /* 你想要的蓝底 */
  padding: 18px 0;
}
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display:flex;
  align-items:center;
  gap:16px;
}
.site-logo{
  height:88px;          /* 你可调 */
  display:block;        /* 防止图片底部白缝 */
}


.site-title .cn {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.site-title .en {
  font-size: 16px;
  color: #e6f1ff;
  margin-top: 6px;
  letter-spacing: 1px;
}



.jx-home { background:#fff; }

.jx-container{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

/* Banner */
.jx-banner img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
}

/* 两栏 */
.jx-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:36px;
}

.jx-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:10px;
  border-bottom:1px solid #eee;
}

.jx-panel-head h2{
  margin:0;
  font-size:26px;
  font-weight:900;
  position:relative;
}
.jx-panel-head h2::after{
  content:"";
  display:block;
  width:120px;
  height:4px;
  background:#b0124a;
  margin-top:10px;
}
.jx-more{ color:#999; text-decoration:none; font-size:13px; }

.jx-list{ list-style:none; padding:0; margin:18px 0 0; }
.jx-list li{
  display:flex;
  gap:18px;
  padding:18px 0;
  border-bottom:1px solid #f0f0f0;
}

.jx-date{ width:70px; text-align:center; }
.jx-day{ font-size:34px; font-weight:900; color:#e2a21d; line-height:1; }
.jx-ym{ margin-top:6px; color:#888; font-size:13px; }

.jx-txt a{ font-size:18px; font-weight:800; color:#222; text-decoration:none; }
.jx-txt a:hover{ color:#1f5a84; }
.jx-desc{ margin-top:8px; color:#666; font-size:14px; line-height:1.6; }

/* 下方 4 栏卡片区 */
.jx-grid4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
  padding-top:10px;
}

.jx-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:16px 16px 10px;
  box-shadow:0 6px 16px rgba(0,0,0,.04);
}
.jx-card-title{
  font-weight:900;
  font-size:18px;
  color:#1f4c7c;
  margin-bottom:10px;
}
.jx-card ul{ list-style:none; padding:0; margin:0; }
.jx-card li{ padding:8px 0; border-bottom:1px dashed #eee; color:#444; font-size:14px; }
.jx-card li:last-child{ border-bottom:none; }
.jx-card a{ color:#333; text-decoration:none; }
.jx-card a:hover{ color:#1f5a84; }

/* 响应式 */
@media (max-width: 980px){
  .jx-two{ grid-template-columns:1fr; }
  .jx-grid4{ grid-template-columns:1fr 1fr; }
  .jx-banner img{ height:260px; }
}
@media (max-width: 520px){
  .jx-grid4{ grid-template-columns:1fr; }
}

.home-news{
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 10px;
}

.home-news-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.home-news-head h2{
  font-size: 32px;
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}

.home-news-head h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-15px;
  width: 90px;
  height: 4px;
  background: #b0124c; /* 图2那种红 */
}

.home-news-head .more{
  color:#999;
  text-decoration:none;
  margin-top: 12px;
}

.home-news-list{ margin-top: 18px; }

.home-news-item{
  display:flex;
  gap: 22px;
  padding: 16px 0;
  text-decoration:none;
  color:#222;
}

.home-news-item + .home-news-item{
  border-top: 1px solid #f3f3f3;
}

.home-news-item .date{
  width: 90px;
  text-align:center;
}

.home-news-item .day{
  font-size: 46px;
  line-height: 1;
  color: #f3a11b; /* 橙黄数字 */
  font-weight: 700;
}

.home-news-item .ym{
  margin-top: 8px;
  font-size: 14px;
  color:#666;
}

.home-news-item .info{
  flex:1;
  border-left: 1px solid #eee;
  padding-left: 22px;
}

.home-news-item .title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 6px;
}

.home-news-item .summary{
  font-size: 14px;
  color:#666;
  line-height: 1.7;
  max-width: 520px;
}

.home-news-item:hover .title{
  color:#1f4e79;
}

.empty{
  padding: 18px 0;
  color:#888;
}


/* ====== 全局清边距：去掉四周白边 ====== */
html, body{
  margin: 0;
  padding: 0;
}

/* ====== 顶部 logo 区全宽贴边 ====== */
.site-header{
  width: 100%;
  margin: 0;
  padding: 18px 0;
  background: #1386d6; /* 你现在用的蓝底 */
}

/* ⚠️ 如果你 header-inner 有 max-width，会导致左右出现白边
   这里强制它全宽 + 去掉左右 padding */
.header-inner{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0;   /* 想更贴边就改成 0 */
  box-sizing: border-box;
}

/* ====== 导航栏也全宽贴边 ====== */
.main-nav{
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ul 默认有 padding-left，会造成左边“白边感” */
.menu{
  margin: 0;
  padding: 0;
}

/* ====== 宣传图全宽贴边 & 去掉图片底部细缝 ====== */
.jx-banner,
.banner img,
.hero img{
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ===== 首页四宫格（仿原站） ===== */
.home-panels {
  padding: 26px 0 10px;
  background: #f6f9ff; /* 你前面说的浅蓝背景思路 */
}

.panel-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.panel-card{
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 6px 18px rgba(17, 40, 80, 0.06);
}

.panel-hd{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 10px;
}

.panel-hd h3{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f4e79;
  letter-spacing: .5px;
}

.panel-hd .more{
  font-size: 12px;
  color:#999;
  text-decoration:none;
}
.panel-hd .more:hover{ color:#1f4e79; }

.panel-list{
  list-style:none;
  padding:0;
  margin:0;
}

.panel-list li{
  padding: 12px 0;
  border-top: 1px dashed #e9eef6;
}
.panel-list li:first-child{ border-top: none; }

.panel-list a{
  color:#333;
  text-decoration:none;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size: 14px;
}

.panel-list a:hover{
  color:#1f4e79;
  text-decoration: underline;
}

.panel-list.fade{ opacity: .35; transition: opacity .18s ease; }
.muted{ color:#aaa; }

/* 小屏适配 */
@media (max-width: 1100px){
  .panel-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .panel-grid{ grid-template-columns: 1fr; }
}

/* ===== 三栏页脚（更成熟） ===== */
.site-footer{
  background: #0f2f4a;   /* 深一点更“站点化” */
  color: rgba(255,255,255,.86);
  margin-top: 26px;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 12px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 22px;
  align-items: start;
}

.footer-brand .footer-logo{
  width: 210px;
  height: auto;
  display:block;
  margin-bottom: 8px;
}

.footer-name{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-en{
  font-size: 12px;
  opacity: .85;
}

.footer-title{
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.footer-item{
  font-size: 13px;
  line-height: 1.9;
  opacity: .92;
}

.footer-link{
  color: #bfe0ff;
  text-decoration: none;
}
.footer-link:hover{ text-decoration: underline; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 12px 10px;
  font-size: 12px;
  opacity: .85;
}
footer {
  margin-top: 0 !important;
  padding-top: 36px;
  background: linear-gradient(180deg, #0f2f4a, #133a5a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);


}

@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-brand .footer-logo{ width: 180px; }
}
/* ====== 1) 四卡片区：去掉多余白边 ====== */
.home-panels{
  margin: 0 !important;
  padding: 18px 0 12px !important; /* 上下留一点点就好 */
  background: transparent;
}


main{ margin-bottom:0 !important; padding-bottom:0 !important; }

/* ====== 2) 四卡片网格：固定列 + 固定高度 ====== */
.panel-grid{
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.panel-card{
  background: #fff;
  border: 1px solid #edf2f8;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 22px 22px 18px;

  height: 160px;                 /* ✅ 固定卡片高度（建议 140~170 之间调） */
  display: flex;
  flex-direction: column;
  overflow: hidden;              /* ✅ 防止内容溢出把卡片撑歪 */
}

/* ====== 3) 头部：标题 + 更多 ====== */
.panel-hd{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-hd h3{
  margin: 0;
  font-size: 28px;               /* ✅ 标题更大 */
  font-weight: 800;
  color: #1f4e79;
  letter-spacing: .5px;
}

.panel-hd .more{
  font-size: 14px;
  color: #8a8f99;
  text-decoration: none;
}
.panel-hd .more:hover{ text-decoration: underline; }

/* ====== 列表：字号 + 行高 + 省略号 ====== */
.panel-list{
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;                       /* ✅ 让列表吃满卡片剩余空间 */
  overflow: hidden;
}

.panel-list li{
  padding: 10px 0;
  border-top: 1px dashed #e6eaf0;
}

.panel-list li:first-child{
  border-top: 0;
  padding-top: 0;
}

.panel-list a{
  display: block;
  font-size: 18px;               /* ✅ 内容字体更大 */
  color: #2b2f36;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;       /* ✅ 超出省略 */
}
.panel-list a:hover{
  color: #1f4e79;
  text-decoration: underline;
}

.panel-list .muted{
  color: #a0a6b0;
  font-size: 16px;
  padding-top: 6px;
}

/* 轮播淡入淡出（ JS 用到 fade class） */
.rotate-list.fade{
  opacity: .25;
  transition: opacity .18s ease;
}
/* ===== 全站基础重置（必须） ===== */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #f6f9fe; /* 你现在用的浅蓝背景 */
}

/* ===== 首页：四栏目 Tab + 共用内容框 ===== */
.home-tabs{
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 10px;
}

.tabs-bar{
  display:grid;
  grid-template-columns: 1fr auto 1fr;  /* 左空 / 中间Tab / 右空 */
  align-items:end;
  padding: 6px 6px 12px;
}

.tabs-center{
  grid-column: 2;
  display:flex;
  gap: 46px;
  align-items:end;
  justify-content:center;
}

.tabs-bar .tab{
  border: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 800;
  color: #9aa3ad;
  cursor: pointer;
  padding: 6px 0;
  line-height: 1.1;
}

.tabs-bar .tab.active{
  color: #111;
  border-bottom: 4px solid #7a0f2a; /* 原站那条酒红线 */
  padding-bottom: 10px;
}

.tabs-more{
  grid-column: 3;
  justify-self:end;
  color:#9aa3ad;
  text-decoration:none;
  font-size:14px;
  padding-bottom: 10px;
}

.tabs-panel{
  background:#fff;
  border-radius: 12px;
  padding: 22px 6px 8px;
}

.tabs-list{
  display:none;
  list-style:none;
  margin:0;
  padding:0;
}

.tabs-list.active{
  display:block;
}

.tabs-list li{
  display:flex;
  align-items:flex-start;
  gap: 18px;
  padding: 20px 12px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
  line-height: 1.5;
}

.tabs-list li:last-child{
  border-bottom:none;
}

.tabs-list li a{
  color:#222;
  text-decoration:none;
}

.tabs-list li a:hover{
  text-decoration: underline;
}

.tabs-list li.muted{
  color:#999;
  font-size:18px;
}
.tabs-list li.row{
  display:flex;
  gap: 22px;
  padding: 22px 12px;
  border-bottom: 1px solid #eee;
  align-items:flex-start;
}

.datebox{
  width: 86px;
  min-width: 86px;
  background:#7a0f2a;
  color:#fff;
  text-align:center;
  padding: 12px 8px;
}

.datebox .day{
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.datebox .ym{
  margin-top: 8px;
  font-size: 14px;
  opacity: .95;
}

.tabs-list li .title{
  flex:1;
  font-size: 24px;   /* 这里就是你说的“字体需要调大” */
  line-height: 1.4;
}

.tabs-list li .title a{
  color:#222;
  text-decoration:none;
}

.tabs-list li .title a:hover{
  text-decoration:underline;
}
/* 隐藏 Django 自带的 clear checkbox 行 */
input[type="checkbox"][name$="-clear"]{
  display:none !important;
}
label[for$="-clear_id"]{
  display:none !important;
}

.query-form {
  max-width: 720px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  font-size: 15px;
}

.hint {
  margin-top: 6px;
  font-size: 13px;
  color: #7a869a;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions .btn {
  min-width: 120px;
  height: 44px;
  border-radius: 22px;
}
label.required::after {
  content: " *";
  color: #d92d20;
  font-weight: 600;
}

