/* ============================================================
   Frontier Academic Press — 期刊官网样式
   结构：变量 → 基础 → 导航 → Hero → 通用 → 各组件 → 响应式
   配色：藏青 #1b2a4a / 金 #c8a95b / 米白 #ede9e0
   ============================================================ */

/* ---------- 1. 颜色变量 ---------- */
:root {
  --navy: #1b2a4a;
  --navy-2: #2a3f6a;
  --navy-3: #16233f;
  --gold: #c8a95b;
  --gold-2: #d4ba74;
  --gold-light: #b08f3e;
  --cream: #ede9e0;
  --paper: #f7f4ee;
  --text: #2d3748;
  --text-2: #4a5568;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
}

/* ---------- 2. 基础 reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans TC", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--paper);
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 3. 顶部导航 ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.brand .name { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.brand .name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.5px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; color: var(--text-2);
  transition: all .15s;
}
nav a:hover { color: var(--navy); background: #f3efe6; }
nav a.active { color: var(--navy); font-weight: 700; }
nav a.cta { background: var(--gold); color: var(--navy); font-weight: 700; margin-left: 8px; }
nav a.cta:hover { background: var(--gold-2); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- 4. Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--navy-3) 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: #fff; text-align: center; padding: 84px 0 72px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(200,169,91,0.25), transparent 60%);
  pointer-events: none;
}
.hero .inner { position: relative; z-index: 1; }
.hero .tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold-2);
  border: 1px solid rgba(200,169,91,0.5); padding: 5px 16px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.hero h1 .cn { display: block; font-size: 34px; font-weight: 700; color: var(--gold-2); margin-top: 8px; }
.hero p { font-size: 16px; opacity: 0.82; max-width: 620px; margin: 18px auto 0; }

/* ---------- 5. 通用 section ---------- */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--gold-light); text-transform: uppercase; margin-bottom: 8px; }
.sec-head h2 { font-size: 30px; color: var(--navy); font-weight: 800; }
.sec-head .sub { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-head .line { width: 46px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ---------- 6. 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.about-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.about-card h3 .en { font-size: 12px; color: var(--gold-light); letter-spacing: 1px; font-weight: 600; }
.about-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 7. 统计 ---------- */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--gold-2); line-height: 1; }
.stat .label { font-size: 13px; opacity: 0.75; margin-top: 8px; letter-spacing: 1px; }

/* ---------- 8. 期刊卡片（首页 + 期刊目录页） ---------- */
.journals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.journal-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.journal-card:hover { box-shadow: 0 10px 28px rgba(27,42,74,0.1); transform: translateY(-3px); }
.journal-card .jc-top { padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.journal-card .jc-cat { font-size: 12px; color: var(--gold-light); letter-spacing: 2px; margin-bottom: 8px; }
.journal-card h3 { font-size: 22px; color: var(--navy); }
.journal-card h3 a { color: inherit; text-decoration: none; transition: color .2s; }
.journal-card h3 a:hover { color: #b08f3e; }
.journal-card .jc-en { font-size: 13px; color: var(--muted); margin-top: 4px; }
.journal-card .jc-body { padding: 20px 28px; flex: 1; color: var(--text-2); font-size: 14px; }
.journal-card .jc-foot { padding: 16px 28px; }
.journal-card .jc-foot a { color: var(--navy); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* 带封面变体：封面在左，文字在右 */
.journal-card.cover { flex-direction: row; }
.journal-card.cover .cover-wrap {
  width: 200px; flex-shrink: 0; padding: 24px 20px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f4ee; border-right: 1px solid #e5e7eb;
}
.journal-card.cover .cover-wrap img { width: 155px; }
.journal-card.cover .cover-body { flex: 1; display: flex; flex-direction: column; }

/* 期刊目录页封面稍大 */
.journal-page .cover-wrap { width: 235px; }
.journal-page .cover-wrap img { width: 185px; }

/* ---------- 9. 文章列表 ---------- */
.article-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px;
  margin-bottom: 14px; transition: all .15s; display: flex; gap: 16px; align-items: flex-start;
}
.article-card:hover { box-shadow: 0 4px 14px rgba(27,42,74,0.08); border-color: #d8cfb8; }
.article-card .idx { font-size: 26px; font-weight: 800; color: #d4cfc2; min-width: 40px; line-height: 1.1; }
.article-card .info { flex: 1; }
.article-card .info h4 { font-size: 16px; color: var(--navy); line-height: 1.45; margin-bottom: 6px; }
.article-card .meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.article-card .meta .jtag { background: #f3efe6; color: var(--gold-light); padding: 1px 10px; border-radius: 10px; font-weight: 600; }
.article-card .acts { display: flex; gap: 8px; flex-shrink: 0; margin-top: 4px; }
.mini-btn { font-size: 12px; padding: 6px 14px; border-radius: 5px; font-weight: 600; transition: all .15s; }
.mini-btn.read { background: var(--navy); color: #fff; }
.mini-btn.read:hover { background: var(--navy-2); }

/* ---------- 10. 筛选器 ---------- */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-bar select, .filter-bar input {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  background: var(--white); color: var(--text); outline: none; font-family: inherit;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--gold); }

/* ---------- 11. 搜索框（首页 hero） ---------- */
.search-box { max-width: 860px; margin: 44px auto 0; display: flex; align-items: stretch; position: relative; z-index: 2; filter: drop-shadow(0 10px 32px rgba(0,0,0,0.34)); }
.search-box .search-input-wrap { flex: 1; position: relative; }
.search-box .search-icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-box input {
  width: 100%; height: 68px; padding: 0 26px 0 62px; border: 2px solid #fff; border-right: none;
  border-radius: 16px 0 0 16px; font-size: 19px; background: #fff; color: #1b2a4a;
  outline: none; font-family: inherit; box-sizing: border-box;
}
.search-box input::placeholder { color: #a6adba; }
.search-box input:focus { border-color: #d4ba74; }
.search-box button {
  height: 68px; padding: 0 52px; border: none; border-radius: 0 16px 16px 0;
  background: linear-gradient(180deg, #d9bf82 0%, #c8a95b 55%, #b8964a 100%);
  color: #16233f; font-size: 21px; font-weight: 700; cursor: pointer; font-family: inherit;
  letter-spacing: 6px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); transition: all .22s;
}
.search-box button:hover { background: linear-gradient(180deg, #e5cf96 0%, #d4ba74 55%, #c8a95b 100%); letter-spacing: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 14px rgba(200,169,91,0.5); }
.search-box button:active { transform: translateY(1px); }

/* ---------- 12. 期刊头（单刊页 / 全部文章页） ---------- */
.journal-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; margin: 40px 0 16px; padding: 24px 22px;
  background: #f7f4ee; border-radius: 12px; border: 1px solid #ece5d5;
}
.journal-head .cover-pair { width: 100%; display: flex; gap: 20px; justify-content: center; }
.journal-head .cover-pair img { width: calc(50% - 10px); max-width: 380px; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(27,42,74,0.22); }
.journal-head h2 { margin: 0 0 6px; font-size: 24px; color: #1b2a4a; }
.journal-head p { color: #6b7280; font-size: 13px; margin: 0; }

/* ---------- 13. 版权页文字 ---------- */
.copyright-text {
  width: calc(50% - 10px); max-width: 380px;
  background: #fff; border: 1px solid #e8e1d0; border-radius: 8px;
  padding: 20px 22px; text-align: left; font-size: 13px; color: #4a5568;
  box-shadow: 0 4px 12px rgba(27,42,74,0.10); align-self: center;
}
.copyright-text .ct-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #efeadc; }
.copyright-text .ct-row:last-child { border-bottom: none; }
.copyright-text .ct-row span:first-child { color: #7d8590; min-width: 78px; white-space: nowrap; flex-shrink: 0; }
.copyright-text .ct-row span:last-child { color: #2d3748; line-height: 1.7; }

/* ---------- 14. 版权页 block（版权信息页） ---------- */
.copyright-block { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 36px; margin-bottom: 28px; }
.copyright-block h2 { color: var(--navy); font-size: 22px; margin-bottom: 4px; }
.copyright-block .en { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.copyright-block table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.copyright-block td { padding: 8px 12px; border-bottom: 1px solid #f0ede5; vertical-align: top; }
.copyright-block td:first-child { width: 130px; color: var(--muted); white-space: nowrap; }
.copyright-block td:last-child { color: var(--text); }
.copyright-block h4 { color: var(--navy); margin: 18px 0 8px; font-size: 15px; }
.copyright-block .legal { font-size: 13px; color: var(--muted); }

/* ---------- 15. 通用内容 prose（投稿指南/关于/编委） ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h4 { color: var(--navy); font-size: 17px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 14.5px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose .email-box {
  background: #f7f2e4; border: 1px solid #e8dcc0; border-radius: 10px; padding: 20px 24px; margin-top: 20px;
}
.prose .email-box a { color: var(--navy); font-weight: 700; font-size: 17px; border-bottom: 2px solid var(--gold); }

/* ---------- 16. 编委会 ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.board-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; }
.board-card h4 { color: var(--navy); font-size: 16px; }
.board-card .role { font-size: 12px; color: var(--gold-light); letter-spacing: 1px; margin-top: 4px; }
.board-card .aff { font-size: 13px; color: var(--muted); margin-top: 8px; }
.board-chief { background: #f3efe6; border-color: #e0d5ba; }

/* ---------- 17. 页脚 ---------- */
footer { background: var(--navy-3); color: #a9b4c8; padding: 48px 0 32px; font-size: 13px; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
footer h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer a { color: #a9b4c8; display: block; margin-bottom: 6px; }
footer a:hover { color: var(--gold-2); }
footer .bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; color: #8a94a8; }

/* ---------- 18. 页面头（非首页） ---------- */
.page-head { background: linear-gradient(140deg, var(--navy-3), var(--navy)); color: #fff; padding: 54px 0 46px; text-align: center; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head .en { font-size: 14px; color: var(--gold-2); margin-top: 6px; letter-spacing: 1px; }
.page-head p { font-size: 14px; opacity: 0.8; margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================================
   响应式
   ============================================================ */

/* ---------- ≤860px（平板 / 小屏） ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px; }
  .about-grid, .journals { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .hero h1 .cn { font-size: 26px; }
  .article-card { flex-direction: column; }
  footer .grid { grid-template-columns: 1fr; }
}

/* ---------- ≤640px（手机） ---------- */
@media (max-width: 640px) {
  /* 搜索框 */
  .search-box button { padding: 0 30px; letter-spacing: 2px; font-size: 18px; }
  .search-box input { font-size: 16px; padding-left: 52px; }
  .search-box .search-icon { left: 16px; }

  /* 期刊卡片：封面在上，文字在下 */
  .journal-card.cover { flex-direction: column; }
  .journal-card.cover .cover-wrap { width: 100%; padding: 20px; border-right: none; border-bottom: 1px solid #e5e7eb; }
  .journal-card.cover .cover-wrap img { width: 140px; }
  .journal-card.cover .jc-top { padding: 18px 20px 14px; }
  .journal-card.cover .jc-body { padding: 14px 20px; }
  .journal-card.cover .jc-foot { padding: 14px 20px 20px; }

  /* 期刊头：封面图和版权页文字上下排列 */
  .journal-head .cover-pair { flex-direction: column; gap: 14px; align-items: center; }
  .journal-head .cover-pair img { width: 170px; max-width: 70%; margin: 0 auto; }
  .journal-head .copyright-text { width: 100%; max-width: 100%; }

  /* 版权页文字 */
  .copyright-text { padding: 14px 14px; }
  .copyright-text .ct-row { padding: 6px 0; gap: 8px; }
  .copyright-text .ct-row span:first-child { min-width: 62px; }
}
