/* 期刊详情页 */

/* ---------- 顶部大标题 ---------- */
.journal-hero { background: linear-gradient(180deg, #a8d4f0 0%, #d9ecf8 60%, #f4fafd 100%); padding: 36px 0 0; }
.journal-hero-inner { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 20px; }
.journal-hero-title {
  margin: 0 0 6px; font-size: 66px; font-weight: 700; letter-spacing: 4px;
  color: #fff; text-shadow: 0 2px 6px rgba(120,170,210,.45);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
.journal-hero-meta { margin: 0 0 26px; color: #4a7fa8; font-size: 14px; }
.journal-hero-meta span { margin-right: 22px; }

.journal-nav { display: flex; background: #fff; border-bottom: 3px solid #5bb3e0; }
.journal-nav-item {
  display: inline-flex; align-items: center; padding: 14px 34px; font-size: 17px; font-weight: 600;
  color: #333; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .15s;
}
.journal-nav-item:hover { color: #1a8fc4; }
.journal-nav-item.active { color: #1a8fc4; border-bottom-color: #1a8fc4; }
.journal-nav-item.disabled { color: #b0b0b0; cursor: not-allowed; }

/* ---------- 三栏布局 ---------- */
.journal-layout { display: grid; grid-template-columns: 250px 1fr 330px; gap: 24px; padding: 26px 0 50px; align-items: start; }
.journal-side { display: flex; flex-direction: column; gap: 18px; }
.journal-center { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- 侧栏面板 ---------- */
.side-panel { border: 1px solid #dfe9f0; background: #fff; }
.side-panel-title {
  margin: 0; padding: 10px 16px; font-size: 18px; font-weight: 700; color: #1a8fc4;
  border-bottom: 2px solid #a8d4f0;
}
.side-panel-body { padding: 14px 16px; }

.side-btn {
  display: block; padding: 13px 0 13px 56px; margin-bottom: 8px; position: relative;
  background: linear-gradient(90deg, #eaf4fb, #f7fbfe); border: 1px solid #d8e8f3;
  font-size: 18px; font-weight: 600; color: #3d7fa8; text-align: center;
  transition: all .15s;
}
.side-btn:hover { background: linear-gradient(90deg, #d8ecf9, #eef7fd); color: #1a8fc4; }
.side-btn:last-child { margin-bottom: 0; }
.side-btn::before {
  content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: #a8d4f0; opacity: .7;
}

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin-bottom: 9px; }
.side-links a { font-size: 14px; color: #555; transition: color .15s; }
.side-links a:hover { color: #1a8fc4; }

.side-text p { margin: 0 0 10px; font-size: 14px; color: #555; line-height: 1.7; }
.side-text p:last-child { margin-bottom: 0; }
.side-text p span { color: #888; }
.muted { color: #aaa !important; }

/* ---------- 中间面板 ---------- */
.panel { border: 1px solid #dfe9f0; background: #fff; }
.panel-title {
  margin: 0; padding: 10px 16px; font-size: 18px; font-weight: 700; color: #1a8fc4;
  border-bottom: 2px solid #a8d4f0;
}
.panel-body { padding: 18px 16px 20px; }
.section-text { margin: 0; font-size: 14px; line-height: 1.9; color: #444; }

.intro-flex { display: flex; gap: 22px; }
.intro-cover { flex: 0 0 150px; }
.intro-cover img { width: 150px; height: 206px; object-fit: cover; border: 1px solid #e5e5e5; display: block; }
.intro-cover .cover-placeholder { width: 150px; height: 206px; }
.intro-text { flex: 1; min-width: 0; }
.intro-subtitle { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #333; }
.intro-text p { margin: 0; font-size: 14px; line-height: 1.95; color: #444; text-align: justify; }
.intro-more { text-align: right; margin-top: 10px; }
.intro-more a { color: #f26d21; font-size: 14px; }

/* ---------- 页脚 ---------- */
.journal-page .site-footer { border-top: none; background: #fff; margin-top: 10px; }
.site-footer-bar { background: #5bb3e0; }
.footer-nav { display: flex; justify-content: center; gap: 40px; padding: 14px 0; }
.footer-nav a { color: #fff; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; }
.journal-page .site-footer > .wrap { padding-top: 18px; padding-bottom: 18px; text-align: center; }

@media (max-width: 1100px) {
  .journal-layout { grid-template-columns: 1fr; }
  .journal-hero-title { font-size: 40px; }
  .journal-nav { overflow-x: auto; }
  .journal-nav-item { padding: 12px 18px; font-size: 15px; white-space: nowrap; }
}

/* ---------- 通用页面头部条 ---------- */
.page-band { background: linear-gradient(180deg, #a8d4f0 0%, #d9ecf8 100%); padding: 30px 0 0; }
.page-band-title { margin: 0 0 6px; font-size: 42px; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(120,170,210,.4); }
.page-band-sub { margin: 0 0 22px; color: #4a7fa8; font-size: 14px; }
.page-band-nav { display: flex; background: #fff; border-bottom: 3px solid #5bb3e0; }
.page-band-nav a { padding: 13px 26px; font-size: 16px; color: #333; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.page-band-nav a:hover { color: #1a8fc4; }
.page-band-nav a.active { color: #1a8fc4; border-bottom-color: #1a8fc4; font-weight: 600; }

.page-main { padding: 26px 0 50px; }

/* ---------- 文章 ---------- */
.article-box { border: 1px solid #dfe9f0; background: #fff; padding: 28px 30px 36px; }
.article-title { margin: 0 0 10px; font-size: 24px; color: #222; }
.article-meta { color: #999; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #eef2f6; margin-bottom: 20px; }
.article-body { font-size: 15px; line-height: 1.95; color: #333; }

.rich-text p { margin: 0 0 14px; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin: 0 0 14px; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 18px 0 12px; }

.article-list { list-style: none; margin: 0; padding: 0; border: 1px solid #dfe9f0; background: #fff; }
.article-list li { padding: 16px 24px; border-bottom: 1px solid #eef2f6; }
.article-list li:last-child { border-bottom: none; }
.article-list-title { font-size: 16px; font-weight: 600; color: #222; }
.article-list-title:hover { color: #1a8fc4; }
.article-list-date { margin-left: 14px; color: #999; font-size: 13px; }
.article-list-summary { margin: 6px 0 0; font-size: 13px; color: #777; line-height: 1.7; }


/* 频道栏目（投稿指南/投稿须知）：隐藏右侧栏，中间占满 */
.journal-layout.is-full { grid-template-columns: 250px 1fr; }
.journal-side-view[hidden] { display: none !important; }


/* ---------- 杂志订阅 ---------- */
.mg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.mg-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 24px 18px; }

.mg-card { display: block; }
.mg-card-cover {
  background: #f7f8f9; padding: 16px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 4; overflow: hidden;
}
.mg-card-cover img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s; }
.mg-card:hover .mg-card-cover img { transform: scale(1.03); }
.mg-card-name { margin-top: 10px; font-size: 15px; font-weight: 600; color: #333; text-align: center; }
.mg-card:hover .mg-card-name { color: #c4161c; }

.mg-nopic {
  width: 76%; aspect-ratio: 3 / 4; border: 1px dashed #cfd8d0; background: #f3f7f3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #b9c4b9; font-size: 15px; line-height: 1.7; text-align: center;
}
.mg-nopic strong { font-size: 17px; font-weight: 500; color: #a9b6a9; }
.mg-nopic-lg { width: 100%; }

/* 顶部信息条 */
.mg-band { padding: 0; background: #fff; border-bottom: 1px solid #eee; }
.mg-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.mg-breadcrumb { font-size: 14px; color: #666; display: flex; align-items: center; gap: 8px; }
.mg-breadcrumb a { color: #666; }
.mg-breadcrumb a:hover { color: #c4161c; }
.mg-breadcrumb span { color: #bbb; }
.mg-contact { display: flex; gap: 28px; font-size: 14px; color: #c4161c; }
.mg-contact a { color: #c4161c; }

/* 详情主体 */
.mg-main { padding: 34px 0 60px; }
.mg-detail { display: flex; gap: 54px; align-items: flex-start; padding-bottom: 46px; }
.mg-detail-cover { flex: 0 0 340px; max-width: 34%; }
.mg-detail-cover img { width: 100%; display: block; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.mg-detail-info { flex: 1; min-width: 0; padding-top: 6px; }
.mg-detail-title { margin: 0 0 26px; font-size: 34px; font-weight: 700; letter-spacing: 1px; color: #222; }
.mg-fields { display: flex; gap: 40px; margin-bottom: 8px; }
.mg-field-col { flex: 1; min-width: 0; }
.mg-detail-info p { margin: 0 0 15px; font-size: 15px; color: #333; line-height: 1.65; }
.mg-detail-info p span { color: #888; }
.mg-columns { margin-top: 10px !important; }

/* 相关杂志 */
.mg-related { border-top: 1px solid #eee; padding-top: 36px; }
.mg-related-title { margin: 0 0 26px; font-size: 26px; font-weight: 700; color: #222; }

@media (max-width: 1100px) {
  .mg-grid { grid-template-columns: repeat(3, 1fr); }
  .mg-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .mg-detail { flex-direction: column; gap: 26px; }
  .mg-detail-cover { flex: none; max-width: 100%; width: 300px; }
  .mg-detail-title { font-size: 28px; }
  .mg-fields { flex-direction: column; gap: 0; }
}


/* ---------- 范文示例 ---------- */
.fw-list { list-style: none; margin: 0; padding: 0; }
.fw-item { padding: 20px 0; border-bottom: 1px solid #eee; }
.fw-item:first-child { padding-top: 0; }
.fw-title { font-size: 17px; font-weight: 600; color: #222; display: block; margin-bottom: 8px; }
.fw-title:hover { color: #c4161c; }
.fw-summary { margin: 0 0 10px; font-size: 14px; color: #777; line-height: 1.7; }
.fw-kws { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fw-kw { display: inline-block; padding: 2px 10px; background: #f5f7fa; border: 1px solid #e8edf2; border-radius: 3px; font-size: 12px; color: #666; }
.fw-meta { display: flex; gap: 20px; font-size: 13px; color: #999; }
.fw-summary-box { padding: 14px 18px; background: #f8fafc; border-left: 3px solid #c4161c; font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 24px; }


/* ---------- 投稿表单 ---------- */
.sub-box { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #e8edf2; border-radius: 6px; }
.sub-head { padding: 26px 40px 20px; border-bottom: 1px solid #eef2f6; }
.sub-head h2 { margin: 0 0 6px; font-size: 22px; color: #222; }
.sub-head-sub { margin: 0; font-size: 14px; color: #888; }
.sub-form { padding: 12px 40px 34px; }
.sub-row { display: flex; align-items: flex-start; padding: 14px 0; }
.sub-label { flex: 0 0 110px; padding-top: 10px; font-size: 15px; color: #444; }
.sub-label i { color: #c4161c; font-style: normal; margin-right: 2px; }
.sub-field { flex: 1; min-width: 0; }
.sub-input {
  width: 100%; height: 42px; padding: 0 14px; font-size: 14px; font-family: inherit; color: #333;
  border: 1px solid #dcdfe6; border-radius: 4px; outline: none; box-sizing: border-box; transition: border-color .15s;
}
.sub-input:focus { border-color: #c4161c; }
.sub-input[readonly] { background: #f7f8fa; color: #666; }
.sub-textarea { height: auto; padding: 10px 14px; line-height: 1.7; resize: vertical; }
.sub-hint { margin-top: 6px; font-size: 12px; color: #999; }

.sub-upload { display: flex; gap: 10px; }
.sub-btn-upload {
  flex: 0 0 auto; height: 42px; padding: 0 20px; border: 1px solid #dcdfe6; border-radius: 4px;
  background: #f7f8fa; color: #444; font-size: 14px; font-family: inherit; cursor: pointer; transition: all .15s;
}
.sub-btn-upload:hover { background: #eef1f5; border-color: #c8cdd4; }
.sub-btn-upload:disabled { opacity: .6; cursor: not-allowed; }
.sub-input-file { flex: 1; }

.sub-captcha-field { display: flex; align-items: center; gap: 14px; }
.sub-input-captcha { flex: 0 0 160px; }
.sub-captcha { height: 44px; width: 120px; cursor: pointer; border: 1px solid #dcdfe6; border-radius: 4px; display: block; }
.sub-captcha-refresh { font-size: 13px; color: #c4161c; white-space: nowrap; }
.sub-captcha-refresh:hover { text-decoration: underline; }

.sub-row-submit { padding-top: 22px; }
.sub-btn-submit {
  height: 44px; padding: 0 54px; border: none; border-radius: 4px; cursor: pointer;
  background: #c4161c; color: #fff; font-size: 16px; letter-spacing: 4px; font-family: inherit; transition: background .15s;
}
.sub-btn-submit:hover { background: #a3121a; }
.sub-btn-submit:disabled { opacity: .7; cursor: not-allowed; }

@media (max-width: 760px) {
  .sub-form, .sub-head { padding-left: 20px; padding-right: 20px; }
  .sub-row { flex-direction: column; }
  .sub-label { flex: none; padding-top: 0; margin-bottom: 8px; }
  .sub-field { width: 100%; }
}


/* ---------- 自助查询 ---------- */
.query-box { background: #fff; border: 1px solid #e8edf2; border-radius: 4px; padding: 34px 46px 46px; }
.query-title { margin: 0 0 30px; font-size: 22px; font-weight: 600; color: #444; text-align: center; }

.query-form { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.query-label { font-size: 18px; color: #c4161c; font-weight: 600; white-space: nowrap; }
.query-input {
  width: 300px; height: 40px; padding: 0 12px; font-size: 14px; font-family: inherit; color: #333;
  border: 1px solid #ccd0d6; border-radius: 3px; outline: none; box-sizing: border-box; background: #fff;
}
.query-input:focus { border-color: #2ea3dc; }
.query-input::placeholder { color: #aaa; }
.query-btn {
  height: 40px; padding: 0 24px; border: none; border-radius: 3px; cursor: pointer;
  font-size: 15px; font-family: inherit; transition: all .15s;
}
.query-btn-primary { background: #2ea3dc; color: #fff; }
.query-btn-primary:hover { background: #2390c5; }
.query-btn-primary:disabled { opacity: .7; cursor: not-allowed; }
.query-btn-plain { background: #666; color: #fff; }
.query-btn-plain:hover { background: #555; }

.query-captcha-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.query-captcha-row[hidden] { display: none; }
.query-input-captcha { width: 140px; }
.query-captcha-img { height: 40px; width: 110px; cursor: pointer; border: 1px solid #ccd0d6; border-radius: 3px; display: block; }
.query-refresh { font-size: 13px; color: #2ea3dc; }
.query-refresh:hover { text-decoration: underline; }
.query-hint { font-size: 13px; color: #c4161c; }

.query-table-wrap { margin-top: 34px; }
.query-table { width: 100%; border-collapse: collapse; }
.query-table thead th {
  background: #2ea3dc; color: #fff; font-size: 15px; font-weight: 600;
  padding: 13px 12px; text-align: center; border: 1px solid #2ea3dc;
}
.query-table tbody td {
  height: 44px; padding: 10px 12px; font-size: 14px; color: #333;
  border: 1px solid #8ecbe8; text-align: center;
}
.query-table tbody td.query-cell-title { text-align: left; }
.query-status { color: #333; }

@media (max-width: 760px) {
  .query-box { padding: 24px 18px 30px; }
  .query-label { font-size: 16px; }
  .query-input { width: 100%; }
  .query-form { flex-direction: column; align-items: stretch; }
  .query-btn { width: 100%; }
}


/* 范文搜索 */
.fw-search { display: flex; max-width: 560px; margin: 0 0 22px; }
.fw-search input { flex: 1; height: 42px; padding: 0 16px; font-size: 14px; font-family: inherit; border: 1px solid #dcdfe6; border-right: none; border-radius: 4px 0 0 4px; outline: none; box-sizing: border-box; }
.fw-search input:focus { border-color: #c4161c; }
.fw-search button { width: 96px; border: none; background: #c4161c; color: #fff; font-size: 14px; font-family: inherit; border-radius: 0 4px 4px 0; cursor: pointer; }
.fw-search button:hover { background: #a3121a; }
.fw-search-tip { margin: 0 0 18px; font-size: 14px; color: #888; }
.fw-search-tip em { color: #c4161c; font-style: normal; font-weight: 600; }
.fw-search-tip a { margin-left: 10px; color: #c4161c; font-size: 13px; }



/* ---------- 范文详情：两栏 + 相关范文排行 ---------- */
.fw-detail-layout { display: flex; gap: 26px; align-items: flex-start; }
.fw-detail-layout .article-box { flex: 1; min-width: 0; }
.fw-detail-side { flex: 0 0 300px; }

.fw-rank-panel { border: 1px solid #dfe9f0; background: #fff; padding: 20px 20px 8px; }
.fw-rank-title { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #eef2f6; font-size: 17px; font-weight: 600; color: #222; }
.fw-rank-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.fw-rank-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed #eef2f6; }
.fw-rank-item:last-child { border-bottom: none; padding-bottom: 6px; }

/* 排名数字：1 最深，往下逐级减淡 */
.fw-rank-no {
  flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center;
  font-size: 13px; font-weight: 700; font-style: italic; font-family: Georgia, 'Times New Roman', serif;
  color: #fff; background: #c4161c; border-radius: 3px;
}
.fw-rank-no[data-rank="1"] { background: #8c0f14; }
.fw-rank-no[data-rank="2"] { background: #a8141a; }
.fw-rank-no[data-rank="3"] { background: #c4161c; }
.fw-rank-no[data-rank="4"] { background: #d63a40; }
.fw-rank-no[data-rank="5"] { background: #e05c61; }
.fw-rank-no[data-rank="6"] { background: #e87f83; }
.fw-rank-no[data-rank="7"] { background: #efa2a5; }
.fw-rank-no[data-rank="8"] { background: #f5c3c5; }
.fw-rank-no[data-rank="9"] { background: #f9dcdd; color: #a8141a; }
.fw-rank-no[data-rank="10"] { background: #fcedee; color: #a8141a; }

.fw-rank-main { flex: 1; min-width: 0; }
.fw-rank-link {
  display: block; font-size: 14px; line-height: 1.6; color: #333;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.fw-rank-link:hover { color: #c4161c; }

@media (max-width: 960px) {
  .fw-detail-layout { display: block; }
  .fw-detail-side { margin-top: 22px; }
}
