/* citizen-game · 古典主题 v1(M6 视觉补丁,纯 CSS 无图片)
 *
 * 设计:
 * - 羊皮纸底色 + 朱砂红强调色
 * - 衬线字体(古朴感)
 * - emoji 化身(职业 / 资源 / polis / 战阶)
 * - 表格用细线 + 间距,感觉更"纸卷"
 *
 * 美术(MVP-81)就位前的过渡方案。
 */

/* ===== 全局 ===== */

html, body {
  background: #f4ebd0;  /* 羊皮纸 / parchment */
  color: #2c1810;        /* 深褐 */
  font-family: "Songti SC", "STSong", "PingFang SC", "Hiragino Sans GB",
               Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
}

body {
  /* 真羊皮纸纹理(/static/img/bg_parchment.jpg)叠加柔光 */
  background:
    radial-gradient(ellipse at top, rgba(140, 100, 60, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(140, 100, 60, 0.10), transparent 60%),
    url("/static/img/bg_parchment.jpg") repeat,
    #f4ebd0;
  background-size: auto, auto, 1024px 1024px, auto;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  min-height: 100vh;
}

/* ===== Header ===== */

header {
  border-bottom: 3px double #8c3e22;  /* 朱砂双线 */
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

header h1 {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #6b1d0f;          /* 朱砂深红 */
  letter-spacing: 0.05em;
}

header .meta {
  color: #6b5440;          /* 茶色 */
  font-size: 0.9rem;
  font-style: italic;
}

nav {
  margin-top: 0.6rem;
  border-top: 1px dotted #8c6c40;
  padding-top: 0.4rem;
  font-size: 0.95rem;
}

nav a {
  margin-right: 1.4rem;
  color: #6b1d0f;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  padding-bottom: 1px;
}

nav a:hover {
  border-bottom-color: #6b1d0f;
}

/* ===== 标题 ===== */

h2 {
  font-size: 1.35rem;
  color: #6b1d0f;
  border-left: 4px solid #8c3e22;
  padding-left: 0.6em;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.12rem;
  color: #4a2818;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

/* ===== 链接 ===== */

a {
  color: #1c5e8a;          /* 古典蓝(青花)*/
  text-decoration: none;
  border-bottom: 1px dotted #1c5e8a;
}
a:hover {
  background: rgba(28, 94, 138, 0.08);
}

/* ===== 表格(纸卷感)===== */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.6rem 0 1rem;
  background: rgba(255, 250, 230, 0.5);
}

th, td {
  border: 1px solid rgba(140, 100, 60, 0.3);
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(140, 100, 60, 0.12);
  color: #4a2818;
  font-weight: 600;
  white-space: nowrap;
}

tr:nth-child(even) td {
  background: rgba(255, 250, 230, 0.3);
}

/* ===== 引用 / 提示 ===== */

blockquote {
  border-left: 4px solid #8c3e22;
  padding: 0.4rem 1rem;
  margin: 0.8rem 0;
  background: rgba(140, 100, 60, 0.07);
  font-style: italic;
}

code {
  background: rgba(140, 100, 60, 0.15);
  color: #4a2818;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ===== Placeholder / 弱提示 ===== */

.placeholder {
  color: #8c6c40;
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== 战阶进度条 ===== */

.war-phase-bar {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: rgba(255, 230, 200, 0.5);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(140, 60, 40, 0.3);
  border-radius: 3px;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", serif;
}

/* ===== 卡片 / 段落 ===== */

.card, .placeholder-box {
  background: rgba(255, 250, 230, 0.5);
  border: 1px solid rgba(140, 100, 60, 0.3);
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
  border-radius: 2px;
}

/* 战争 / 政治 / 经济侧栏色 */
.tag-war { color: #8c1908; font-weight: 600; }
.tag-politics { color: #1c5e8a; font-weight: 600; }
.tag-economy { color: #8c6308; font-weight: 600; }
.tag-social { color: #1c5e3a; font-weight: 600; }

/* ===== Footer ===== */

footer {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 3px double #8c3e22;
  color: #6b5440;
  font-size: 0.85rem;
  text-align: center;
  font-style: italic;
}

/* ===== 表单 ===== */

input[type="text"], input[type="number"], select, textarea {
  background: rgba(255, 250, 230, 0.7);
  border: 1px solid rgba(140, 100, 60, 0.5);
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  font-size: inherit;
  color: #2c1810;
}

button, input[type="submit"] {
  background: #6b1d0f;
  color: #f4ebd0;
  border: 1px solid #4a1409;
  padding: 0.4rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
button:hover, input[type="submit"]:hover {
  background: #8c2718;
}
button:disabled {
  background: #8c6c40;
  cursor: not-allowed;
}

/* emoji 大一号(职业 / polis 等头部展示)*/
.emoji-lg {
  font-size: 1.4em;
  vertical-align: -0.05em;
}

/* 化身块(dashboard 头部)— 圆框 + 真图或 emoji */
.avatar {
  display: inline-block;
  width: 2.4em;
  height: 2.4em;
  line-height: 2.4em;
  text-align: center;
  font-size: 1.6em;
  background: rgba(255, 230, 200, 0.6);
  border: 1px solid rgba(140, 60, 40, 0.3);
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 表格里的小化身(列表行内,30px)*/
.avatar-sm {
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
  background: rgba(255, 230, 200, 0.6);
  border: 1px solid rgba(140, 60, 40, 0.3);
}

/* 城邦徽章 */
.polis-emblem {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.2em;
  margin-right: 0.2em;
}
.polis-emblem-lg {
  display: inline-block;
  width: 4em;
  height: 4em;
  vertical-align: middle;
  margin-right: 0.4em;
}

/* 城邦风光横幅 */
.polis-landscape {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid rgba(140, 60, 40, 0.3);
  border-radius: 3px;
  margin: 0.6em 0;
  display: block;
}

/* 战争 / 灾害 banner */
.war-banner, .disaster-banner {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 3px;
  margin: 0.4em 0;
  display: block;
  border: 1px solid rgba(140, 60, 40, 0.3);
}

/* 资源小图标(替代 emoji 在 <th> 里)*/
.icon-sm {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  margin-right: 0.2em;
}

/* 章节装饰分隔线(divider_olive.png)*/
hr.olive, .olive-divider {
  border: none;
  height: 32px;
  background: url("/static/img/divider_olive.png") center / contain no-repeat;
  margin: 1.5rem 0;
}

/* M6++++++ 希腊回纹分隔线(divider_meander.png)— 用于经济 / 战争段重要分隔 */
hr.meander, .meander-divider {
  border: none;
  height: 24px;
  background: url("/static/img/divider_meander.png") center / contain repeat-x;
  margin: 1.2rem 0;
  opacity: 0.8;
}

/* 印章 — 议决通过 / 选举胜出(seal_archon.png)*/
.seal-xs { width: 1.4em; height: 1.4em; vertical-align: -0.3em; }
.seal-sm { width: 2em;   height: 2em;   margin-right: 0.3em; }
.seal-md { width: 3em;   height: 3em;   margin-right: 0.5em; }

/* 边角装饰(border_corner.png)— 用于"仪式感"页面顶角 */
.corner-decor {
  position: relative;
}
.corner-decor::before,
.corner-decor::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  background: url("/static/img/border_corner.png") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.7;
}
.corner-decor::before {
  top: -8px; left: -8px;
}
.corner-decor::after {
  top: -8px; right: -8px;
  transform: scaleX(-1);
}
.corner-decor.dual-bottom::before {
  bottom: -8px; left: -8px; top: auto;
  transform: scaleY(-1);
}
