/* ============================================================
   牛河梁遗址 · 红山文化科普网  前台样式 v3（深色庄重版）
   主题：红山秘境 · 大地史诗
   风格：全站深色厚重 / 大地金点缀 / 衬线大标题 / 博物馆展陈质感
   参考：三星堆博物馆官网的庄重大气质感
   ============================================================ */
:root {
  --gold: #c9a45c;        /* 主金（出土玉/铜色泽） */
  --gold-bright: #e8c87f; /* 亮金 */
  --ink: #ece0c6;         /* 主文字米白 */
  --ink-soft: #c6b894;    /* 次级文字 */
  --paper: #19130c;       /* 页面深色底（暖棕墨色） */
  --card: #241b12;        /* 卡片深棕 */
  --card2: #2a2015;       /* 卡片浮起/内层 */
  --line: #3a2d1b;        /* 分隔线（深金棕） */
  --dark: #14100a;        /* 最深色（hero/顶栏/页脚） */
  --dark2: #1f1810;       /* 深色次级 */
  --terra: #d8a95f;       /* 强调金（深色底上的暖金） */
  --ember: #e0b060;       /* 高亮金 */
  --muted: #9b8a68;       /* 弱化文字 */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(201,164,92,.05), transparent 60%),
    linear-gradient(180deg, #241c14 0%, #282018 50%, #241c14 100%);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   顶部 · 深色顶栏 + 品牌区
   ============================================================ */
.topbar { background: var(--dark); color: #b8a37c; border-bottom: 1px solid rgba(201,164,92,.22); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 7px 24px; font-size: 12.5px; letter-spacing: 1px;
}
.topbar-slogan { opacity: .9; }
.topbar-slogan b { color: var(--gold-bright); font-weight: 600; }
.topbar .search-form { margin: 0; }
.topbar .search-form input {
  border: 1px solid rgba(201,164,92,.35); background: rgba(255,255,255,.06);
  color: #e8dcc0; border-radius: 3px 0 0 3px; padding: 5px 11px;
  width: 200px; font-size: 13px; outline: none; transition: border .2s;
}
.topbar .search-form input:focus { border-color: var(--gold); }
.topbar .search-form button {
  border: 0; background: var(--gold); color: var(--dark); border-radius: 0 3px 3px 0;
  padding: 0 14px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.search-form.big { margin-bottom: 26px; }
.search-form.big input { flex: 1; width: auto; }

.site-header {
  background: linear-gradient(180deg, var(--dark) 0%, #241c12 100%);
  color: #eee2c4; border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; gap: 34px; padding: 18px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  width: 84px; height: 84px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text strong {
  display: block; font-size: 23px; letter-spacing: 4px; color: #fff;
  font-family: var(--serif); font-weight: 700;
}
.brand-text em {
  font-style: normal; font-size: 11.5px; color: var(--gold-bright);
  letter-spacing: 2.5px; text-transform: uppercase;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; align-items: center; }
.main-nav a {
  position: relative; padding: 10px 16px; font-size: 15.5px; color: #e4d6b4;
  letter-spacing: 2px; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { transform: scaleX(1); background: var(--gold-bright); }

main.main {
  min-height: 56vh;
  padding: 0 0 60px;
  background: linear-gradient(180deg, #322a1e 0%, #2e261a 100%);
  border-top: 1px solid rgba(201,164,92,.15);
}

/* ============================================================
   首页 Hero · 深色大视觉（全宽）
   ============================================================ */
.hero {
  position: relative; margin: 0 0 6px;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.hero-slider { position: relative; height: 600px; overflow: hidden; background: var(--dark); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,10,5,.55) 0%, rgba(15,10,5,.30) 45%, rgba(15,10,5,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero-kicker {
  font-size: 13px; letter-spacing: 6px; color: var(--gold-bright); text-transform: uppercase;
  margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-title {
  margin: 0 auto 20px; font-size: 56px; line-height: 1.25; font-weight: 700;
  color: #fff; font-family: var(--serif); letter-spacing: 6px;
  text-shadow: 0 4px 26px rgba(0,0,0,.55); max-width: 900px;
}
.hero-sub {
  margin: 0 auto 30px; font-size: 17px; color: rgba(255,255,255,.9);
  letter-spacing: 2px; max-width: 620px; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-cta {
  display: inline-block; padding: 13px 42px; font-size: 15px; letter-spacing: 4px;
  color: var(--dark); background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 2px; font-weight: 600; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(201,164,92,.35);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,164,92,.5); }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 3; }
.hero-dot {
  display: inline-block; width: 34px; height: 3px; margin: 0 5px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .25s;
}
.hero-dot.on { background: var(--gold); }

/* ============================================================
   区块标题 · 居中 + 金线（深色版）
   ============================================================ */
.section { margin: 46px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .kicker {
  display: block; font-size: 12px; letter-spacing: 5px; color: var(--gold-bright);
  text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 {
  margin: 0; font-size: 30px; font-weight: 700; color: #f4ead0;
  font-family: var(--serif); letter-spacing: 3px;
}
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 3px; background: var(--gold);
  margin: 14px auto 0;
}
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; letter-spacing: 1px; }

/* ============================================================
   统计卡片（遗址速览）· 庄重金线深色卡
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #241b12 0%, #1c150d 100%);
  border: 1px solid rgba(201,164,92,.30);
  border-top: 2px solid rgba(201,164,92,.72);
  padding: 30px 16px 24px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* 底部渐变金线收口 */
.stat-card::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
  opacity: .5;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 38px rgba(0,0,0,.55), 0 0 26px rgba(201,164,92,.16);
}
.stat-card b {
  display: block; font-size: 34px; color: var(--gold-bright); font-family: var(--serif);
  font-weight: 700; letter-spacing: 1px; line-height: 1.15;
  text-shadow: 0 0 20px rgba(232,200,127,.28);
}
.stat-card span {
  display: block; font-size: 13px; color: #a8956f; letter-spacing: 2px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(201,164,92,.25);
}

/* ============================================================
   简介卡
   ============================================================ */
.intro-card {
  background: linear-gradient(135deg, #1f1810 0%, #2a2015 100%);
  color: #e6d9ba; border-left: 4px solid var(--gold); padding: 34px 40px;
  box-shadow: inset 0 1px 0 rgba(201,164,92,.14);
}
.intro-card .section-head { text-align: left; margin-bottom: 16px; }
.intro-card .section-head h2 { color: #fff; }
.intro-card .section-head h2::after { margin: 12px 0 0; }
.intro-text { margin: 0; font-size: 16px; text-indent: 2em; color: #d9c9a6; line-height: 2; }

/* ============================================================
   栏目卡片（探索栏目）· 庄重金线深色卡
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #241b12 0%, #1c150d 100%);
  border: 1px solid rgba(201,164,92,.24);
  padding: 32px 28px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* 顶部金色渐变线（hover 亮起） */
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  opacity: .45; transition: opacity .3s;
}
/* 左上金色小方点（装饰） */
.cat-card .cat-dot {
  position: absolute; top: 16px; left: 18px; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg); opacity: .85;
}
/* 右上旋转方框装饰 */
.cat-card .cat-corner {
  position: absolute; top: -26px; right: -26px; width: 54px; height: 54px;
  border: 1px solid rgba(201,164,92,.22); transform: rotate(45deg);
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,164,92,.62);
  box-shadow: 0 20px 44px rgba(0,0,0,.55), 0 0 30px rgba(201,164,92,.10);
}
.cat-card:hover::before { opacity: 1; }
.cat-card h3 { margin: 0 0 14px; font-size: 22px; color: #fff; font-family: var(--serif); letter-spacing: 3px; }
.cat-card h3::after {
  content: ""; display: block; width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); margin: 13px 0 0;
}
.cat-card p { margin: 0 0 18px; color: #a8956f; font-size: 13.5px; line-height: 1.9; }
.cat-more { color: var(--gold); font-size: 13px; letter-spacing: 2px; font-weight: 600; transition: letter-spacing .25s, color .25s; }
.cat-card:hover .cat-more { color: var(--gold-bright); letter-spacing: 3px; }

/* ============================================================
   文章卡片
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.article-card {
  background: linear-gradient(180deg, #241b12 0%, #1c150d 100%);
  border: 1px solid rgba(201,164,92,.24); overflow: hidden; display: block;
  border-bottom: 3px solid rgba(201,164,92,.35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover {
  transform: translateY(-5px); border-color: rgba(201,164,92,.55); border-bottom-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 26px rgba(201,164,92,.10);
}
.card-cover { height: 185px; overflow: hidden; position: relative; }
.card-cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,8,4,.6));
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .card-cover img { transform: scale(1.07); }
.card-body { padding: 18px 20px 20px; }
.card-body .tag {
  display: inline-block; background: rgba(201,164,92,.14); color: var(--gold-bright);
  border-left: 3px solid var(--gold); font-size: 12px; padding: 2px 9px;
  margin-bottom: 10px; letter-spacing: 1px;
}
.card-body h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-family: var(--serif); color: #f2e7cb; }
.card-body p { margin: 0 0 12px; color: #a8956f; font-size: 13.5px; }
.card-meta { font-size: 12px; color: #8f815f; letter-spacing: .5px; }
.card-meta b { color: var(--gold); }

/* ============================================================
   文章列表行
   ============================================================ */
.list-block { display: flex; flex-direction: column; gap: 16px; }
.list-row {
  display: flex; gap: 22px; background: linear-gradient(180deg, #241b12 0%, #1d150d 100%);
  border: 1px solid rgba(201,164,92,.24); border-left: 4px solid transparent;
  padding: 16px 18px; align-items: center;
  transition: box-shadow .25s, border-color .25s, transform .2s;
}
.list-row:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 20px rgba(201,164,92,.08);
  border-left-color: var(--gold); transform: translateX(3px);
}
.list-row img { width: 172px; height: 112px; object-fit: cover; flex-shrink: 0; }
.list-text h3 { margin: 0 0 6px; font-size: 18px; font-family: var(--serif); color: #f2e7cb; }
.list-text p { margin: 0 0 6px; color: #a8956f; font-size: 13.5px; }
.list-text .card-meta { color: var(--muted); }

/* ============================================================
   面包屑 / 详情
   ============================================================ */
.crumb {
  font-size: 13px; color: var(--muted); margin: 26px 0 20px;
  padding-left: 12px; border-left: 3px solid var(--gold); letter-spacing: 1px;
}
.crumb a { color: var(--gold); }
.article {
  background: linear-gradient(180deg, #241b12 0%, #1d150d 100%);
  border: 1px solid rgba(201,164,92,.26); border-top: 4px solid var(--gold);
  padding: 40px 48px; margin-bottom: 30px;
}
.article-head { border-bottom: 1px dashed var(--line); padding-bottom: 20px; margin-bottom: 24px; text-align: center; }
.article-head h1 {
  margin: 0 0 14px; font-size: 32px; line-height: 1.4; font-family: var(--serif);
  color: #f4ead0; letter-spacing: 2px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 13px; justify-content: center; }
.article-summary {
  background: #2a2015; border-left: 4px solid var(--gold); padding: 16px 20px;
  margin-bottom: 26px; color: #dcc9a0; font-size: 15px;
}
.article-content { font-size: 16.5px; color: #d9c9a6; }
.article-content p { margin: 0 0 20px; }
.article-content h2, .article-content h3, .article-content h4 {
  font-family: var(--serif); color: #f2e7cb; letter-spacing: 1px;
}
.article-content h2 { font-size: 24px; margin: 30px 0 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.article-content h3 { font-size: 20px; margin: 26px 0 12px; color: var(--gold-bright); }
.article-content ul { padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  margin: 20px 0; padding: 14px 20px; background: #2a2015; border-left: 4px solid var(--gold);
  color: #dcc9a0; font-style: normal;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 9px 12px; font-size: 14.5px; }
.article-content th { background: #2a2015; color: #ecd9a8; font-family: var(--serif); }
.article-content figure { margin: 24px auto; text-align: center; }
.article-content figure img { border-radius: 6px; box-shadow: 0 8px 26px rgba(0,0,0,.5); max-height: 480px; object-fit: contain; }
.article-content figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.article-content code, .article-content pre { background: #2a2015; color: #ecd9a8; border-radius: 4px; }
.article-content pre { padding: 14px; overflow-x: auto; }
.article-source {
  margin-top: 30px; padding: 14px 16px; background: #2a2015; border-left: 4px solid var(--gold);
  color: #b3a37e; font-size: 13px;
}
.article-nav { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); }
.article-nav div { margin-bottom: 8px; }
.article-nav a { color: var(--gold); }
.article-nav a:hover { color: var(--gold-bright); }

.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; padding: 0; }
.related-list li {
  list-style: none; background: #201810; border: 1px solid var(--line);
  border-left: 3px solid var(--line); transition: border-color .2s;
}
.related-list li:hover { border-left-color: var(--gold); }
.related-list a { display: block; padding: 13px 16px; font-size: 14.5px; }
.related-list a:hover { color: var(--gold-bright); }

/* ============================================================
   分页
   ============================================================ */
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.pagination a, .pagination .dots {
  display: inline-block; padding: 9px 15px; background: #201810; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft); transition: all .2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-bright); }
.pagination .active a { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ============================================================
   留言 / 表单 / 关于
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; }
.msg { padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.msg.ok { background: #1d2717; color: #a8d49a; border-left: 4px solid #5f9e52; }
.msg.error { background: #2a1d16; color: #e09a80; border-left: 4px solid #c0583a; }
.message-form .row { margin-bottom: 16px; }
.message-form label { display: block; font-size: 14px; margin-bottom: 7px; color: var(--ink-soft); letter-spacing: 1px; }
.message-form input, .message-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(201,164,92,.28);
  background: #1d150d; font-size: 14px; font-family: inherit; color: var(--ink); transition: border .2s;
}
.message-form input:focus, .message-form textarea:focus { outline: none; border-color: var(--gold); }
.btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--dark);
  border: 0; padding: 12px 34px; font-size: 15px; letter-spacing: 2px; cursor: pointer;
  font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,164,92,.35); }
.btn-gray { background: #3a2d1b; color: #c9b694; }
.btn-gray:hover { box-shadow: none; }
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-item {
  background: #201810; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 15px 18px;
}
.msg-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.msg-head span { color: var(--muted); font-size: 12px; }
.msg-item p { margin: 0; font-size: 14.5px; }

.empty { text-align: center; color: var(--muted); padding: 70px 0; }
.empty h2 { font-family: var(--serif); color: var(--ink-soft); }

/* ============================================================
   页脚 · 深色
   ============================================================ */
.site-footer { background: var(--dark); color: #cbbd9c; margin-top: 56px; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 2fr 1.2fr 1.6fr; gap: 40px; padding: 46px 24px 36px; }
.footer-col h4 { color: var(--gold-bright); margin: 0 0 16px; font-size: 16px; letter-spacing: 3px; font-family: var(--serif); }
.footer-col p, .footer-col li { font-size: 13.5px; color: #b3a37e; line-height: 2; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li a { position: relative; padding-left: 14px; }
.footer-col li a::before { content: "◆"; position: absolute; left: 0; top: 0; font-size: 8px; color: var(--gold); }
.footer-col a:hover { color: #fff; }
.footer-views { display: flex; align-items: center; gap: 8px; }
.footer-views::before {
  content: "◆"; font-size: 8px; color: var(--gold); line-height: 1;
}
.footer-views span { color: #b3a37e; }
.footer-views b {
  font-family: var(--serif); font-size: 17px; color: var(--gold-bright);
  letter-spacing: 1px; font-weight: 700;
}
.footer-brand { font-family: var(--serif); font-size: 19px; color: #fff; letter-spacing: 3px; margin-bottom: 8px; }
.footer-note { font-size: 12.5px; color: #8f815f; }
.footer-bar { border-top: 1px solid #3a2e1c; padding: 16px 0; font-size: 13px; color: #8f815f; }
.footer-bar a { margin-left: 10px; color: #b3a37e; }
.footer-bar a:hover { color: #fff; }
.gongan-beian { display: inline-flex; align-items: center; margin-left: 14px; }
.gongan-beian .beian-icon {
  width: 15px; height: 17px; margin-right: 5px; display: inline-block;
  vertical-align: -2px; flex-shrink: 0;
}

/* ============================================================
   作者系统（注册 / 登录 / 投稿 / 我的投稿）
   ============================================================ */
.msg-ok, .msg-err {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
  font-size: 14px; line-height: 1.7;
}
.msg-ok  { background: rgba(46,125,50,.12);  border: 1px solid rgba(46,125,50,.4);  color: #8ed197; }
.msg-err { background: rgba(168,60,44,.14);  border: 1px solid rgba(168,60,44,.45); color: #eba08d; }
.auth-panel {
  max-width: 520px; margin: 0 auto;
  background: linear-gradient(180deg, #262012 0%, #1d160d 100%);
  border: 1px solid rgba(201,164,92,.35);
  border-radius: 16px;
  padding: 40px 44px 46px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
}
.auth-panel::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-panel .section-head { text-align: center; margin-bottom: 6px; }
.auth-panel .section-head h2 { font-size: 26px; letter-spacing: 4px; }
.auth-panel .section-head h2::after { margin-top: 12px; }
.auth-panel .auth-tip { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.auth-panel .auth-form { margin: 24px auto 0; }
.auth-panel .auth-link { display: block; text-align: center; margin: 20px 0 0; }
.auth-tip { color: var(--ink-soft); margin: 0 0 16px; font-size: 13.5px; }
.auth-form { display: grid; gap: 16px; max-width: 680px; }
.auth-form .form-row { display: grid; gap: 7px; }
.auth-form label { font-size: 13px; color: var(--gold-bright); letter-spacing: 2px; }
.auth-form input[type=text], .auth-form input[type=password], .auth-form input[type=email],
.auth-form select, .auth-form textarea {
  background: rgba(20,16,10,.55); border: 1px solid var(--line); color: #f0e6cc;
  border-radius: 8px; padding: 12px 14px; font-size: 14.5px; outline: none; width: 100%;
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.15);
}
.auth-form ::placeholder { color: #8f815f; }
.auth-form .btn { padding: 13px 22px; font-size: 15px; letter-spacing: 3px; }
.auth-panel .btn { width: 100%; margin-top: 6px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: 46px; width: 132px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); flex: none; background: #201a10;
}
.author-badge {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  padding: 1px 8px; border-radius: 3px;
  background: rgba(201,164,92,.16); border: 1px solid rgba(201,164,92,.5);
  color: var(--gold-bright); font-size: 12px; letter-spacing: 1px;
}
.msg-author-tip { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.msg-author-tip b { color: var(--gold-bright); }
.auth-link { font-size: 13.5px; color: var(--muted); margin-left: 12px; }
.auth-link a { color: var(--gold-bright); }
.auth-link a:hover { color: #fff; }
.sub-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 16px 18px; border-radius: 8px;
}
.sub-item + .sub-item { margin-top: 12px; }
.sub-main h3 { margin: 0 0 8px; font-size: 17px; font-family: var(--serif); color: #f2e7cb; line-height: 1.5; }
.sub-meta { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 6px; line-height: 1.8; }
.sub-meta a { color: var(--gold-bright); }
.sub-reject { font-size: 13px; color: #eba08d; margin: 8px 0 0; line-height: 1.7; }
.sub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.sub-status { font-size: 13.5px; font-weight: 600; }
.section-head .btn { margin: 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .hero-slider { height: 480px; }
  .hero-title { font-size: 42px; }
  .article { padding: 30px 26px; }
}
@media (max-width: 760px) {
  .hero-slider { height: 420px; }
  .hero-title { font-size: 32px; letter-spacing: 3px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { padding: 11px 30px; font-size: 14px; }
  .header-inner { gap: 14px; padding: 14px 18px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .main-nav a { padding: 8px 12px; font-size: 14px; }
  .main-nav a::after { left: 12px; right: 12px; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar .search-form { order: 4; width: 100%; }
  .topbar .search-form input { flex: 1; width: auto; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .article { padding: 24px 18px; }
  .article-head h1 { font-size: 24px; }
  .list-row img { width: 120px; height: 88px; }
  .section-head h2 { font-size: 24px; }
  .intro-card { padding: 24px 20px; }
}

/* ============================================================
   顶部作者栏（登录状态 / 快捷入口）
   ============================================================ */
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-author {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: .5px;
}
.author-greet { color: #c9b694; }
.author-greet b { color: var(--gold-bright); font-weight: 600; }
.topbar-link {
  color: #b8a37c; transition: color .2s; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.topbar-link:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ============================================================
   投稿界面美化 · 富文本编辑器深色适配
   ============================================================ */
/* 编辑器外层包裹 */
.editor-wrap {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: rgba(20,16,10,.6); transition: border-color .2s, box-shadow .2s;
}
.editor-wrap:focus-within {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.15);
}

/* wangEditor 工具栏深色适配 */
.w-e-toolbar, .w-e-bar {
  background: linear-gradient(180deg, #2a2015 0%, #221a10 100%) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 6px 8px !important;
}
.w-e-toolbar .w-e-bar-item button,
.w-e-bar .w-e-bar-item button {
  color: #d4c4a0 !important; border-radius: 4px !important;
  transition: background .15s, color .15s !important;
}
.w-e-toolbar .w-e-bar-item button:hover,
.w-e-bar .w-e-bar-item button:hover {
  background: rgba(201,164,92,.18) !important; color: var(--gold-bright) !important;
}
.w-e-toolbar .w-e-bar-item button.active,
.w-e-bar .w-e-bar-item button.active {
  background: rgba(201,164,92,.25) !important; color: var(--gold-bright) !important;
}
.w-e-toolbar .w-e-bar-divider,
.w-e-bar .w-e-bar-divider {
  background: var(--line) !important;
}

/* wangEditor 编辑区域深色适配 */
.w-e-text-container {
  background: rgba(18,14,8,.85) !important;
  min-height: 320px !important;
}
.w-e-text-container [data-slate-editor] {
  color: #e8dcc0 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  padding: 16px 18px !important;
  min-height: 300px !important;
}
/* 空内容 placeholder 增强可见性 */
.w-e-text-placeholder {
  color: #a8956f !important;
  font-size: 14.5px !important;
  font-style: italic !important;
  top: 16px !important;
  left: 18px !important;
}
/* 编辑器内链接颜色 */
.w-e-text-container a { color: var(--gold-bright) !important; }
/* 编辑器内表格 */
.w-e-text-container table { border-color: var(--line) !important; }
.w-e-text-container th, .w-e-text-container td { border-color: var(--line) !important; }
/* 编辑器内引用块 */
.w-e-text-container blockquote {
  border-left-color: var(--gold) !important;
  background: rgba(201,164,92,.06) !important;
  color: #c9b694 !important;
}
/* 编辑器内代码 */
.w-e-text-container code, .w-e-text-container pre {
  background: #2a2015 !important; color: #ecd9a8 !important;
}

/* 投稿表单整体卡片化 */
.submit-card {
  background: linear-gradient(180deg, #262012 0%, #1d160d 100%);
  border: 1px solid rgba(201,164,92,.3);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.submit-card .auth-form { max-width: 100%; }

/* ============================================================
   作者中心页面
   ============================================================ */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 960px; margin: 0 auto;
}
.profile-card {
  background: linear-gradient(180deg, #262012 0%, #1d160d 100%);
  border: 1px solid rgba(201,164,92,.3);
  border-radius: 14px; padding: 28px 30px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.profile-card h3 {
  margin: 0 0 20px; font-size: 19px; font-family: var(--serif);
  color: #f2e7cb; letter-spacing: 2px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.profile-card h3::before {
  content: ""; display: inline-block; width: 4px; height: 16px;
  background: var(--gold); margin-right: 10px; vertical-align: -2px; border-radius: 2px;
}
/* 账户信息卡片横跨两列 */
.profile-card:first-child { grid-column: 1 / -1; }
.profile-avatar { text-align: center; margin-bottom: 20px; }
.avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--dark); font-size: 30px; font-weight: 700;
  font-family: var(--serif); box-shadow: 0 4px 18px rgba(201,164,92,.4);
}
.profile-info { display: grid; gap: 10px; max-width: 480px; margin: 0 auto; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; background: rgba(20,16,10,.5);
  border: 1px solid var(--line); border-radius: 8px;
}
.info-label { color: var(--muted); font-size: 13.5px; letter-spacing: 1px; }
.info-value { color: #e8dcc0; font-size: 14px; }
.profile-actions {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px;
}
.btn-sm { padding: 8px 20px; font-size: 13.5px; letter-spacing: 1.5px; }

/* 作者中心响应式 */
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 22px 20px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-author { gap: 8px; font-size: 12px; }
}

