/* 基础设定：全变量与排版 */
:root {
  --bg-light: #e6f3ff;           /* 浅蓝底色（外层） */
  --text: #030117;
  --text-muted: #F4546a;         /* 淡红色，用于标题 */
  --link: #0a66c2;
  --card-bg: rgba(255,255,255,0.75);
  --border: rgba(15,27,45,0.08);
  --overlay: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.35));
  --maxw: 1100px;
}

/* 让页面占满视窗并启用更顺滑的字体渲染 */
html, body {
  height: 100%;
  background: var(--bg-light);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 文字整体放大一些（相较默认更易读） */
html {
  font-size: 18px;
}
@media (min-width: 1200px) {
  html { font-size: 19px; }
}
@media (max-width: 480px) {
  html { font-size: 17px; }
}

body {
  line-height: 1.7;
  margin: 0;
  position: relative;
  background-image:
      var(--overlay),
      url("../css/wolfquestbg.jpg");
  background-size: auto, auto;
  background-position: center center, center center;
  background-attachment: fixed, fixed;
  background-repeat: repeat, repeat;
}

/* 内容容器（让内容不会太宽） */
#dokuwiki__content, .wrapper, .site, #content, .page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  background: #fdf6e3;   /* 淡羊皮纸色背景 */
}

/* 标题：统一淡红色、加大美化 */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-muted);
  line-height: 1.3;
  margin: 1.2em 0 0.6em;
}
h1 { font-size: 2.0rem; letter-spacing: 0.2px; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* 段落与列表：间距更舒适 */
p, ul, ol {
  margin: 0.9em 0;
}
ul, ol { padding-left: 1.4em; }

/* 链接：可读、可点 */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(10,102,194,0.35);
  transition: border-color .2s ease, color .2s ease;
}
a:hover, a:focus {
  color: #084c94;
  border-bottom-color: rgba(10,102,194,0.7);
}

/* 卡片式区块 */
.infobox, .notewarn, .notetip, .panel, .card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 24px rgba(15,27,45,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 1rem 0;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(15,27,45,0.06);
}
th {
  text-align: left;
  background: rgba(230,243,255,0.6);
  font-weight: 600;
}

/* 代码块 */
pre, code, .code, .dokuwiki .code {
  background: rgba(17, 24, 39, 0.8);
  color: #e6f3ff;
}
pre {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* 按钮 */
.btn, .button, button, input[type="submit"] {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(10,102,194,0.5);
  background: linear-gradient(180deg, #EAFFE6, #cfe8ff);
  color: var(--text);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .button:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10,102,194,0.18);
  background: linear-gradient(180deg, #f2f8ff, #dcedff);
}

/* 页眉/页脚 */
#dokuwiki__header, #dokuwiki__footer {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}
#dokuwiki__content .page {
  background: #fdf6e3 !important;   /* 淡羊皮纸色 */
  padding: 2rem;
  border-radius: 12px;              /* 可选，边角圆滑 */
}

/* 小屏优化 */
@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .infobox, .card { padding: .85rem 1rem; }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  :root { --text: #e6f3ff; --text-muted: #f88a9a; --border: rgba(230,243,255,0.12); }
  body {
    background-color: #0f172a;
    background-image:
      linear-gradient(180deg, rgba(15,23,42,0.45), rgba(15,23,42,0.35)),
      url("../css/wolfquestbg.jpg");
  }
  table { background: rgba(15,23,42,0.7); }
  th { background: rgba(30,41,59,0.6); }
  .infobox, .card { background: rgba(17,24,39,0.6); }
  a { border-bottom-color: rgba(164, 208, 255, 0.45); color: #a4d0ff; }
  a:hover { color: #c7e2ff; }
}

