/* RimWorld Tools 明亮像素风（RimWorld 主题：暖橙/草地绿/大地棕） */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
html {
  background: #f2ecdd url('/img/site-bg.png') no-repeat center center fixed;
  background-size: cover;
}
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
  color: #3d3427;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 布局 */
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 90px; background: rgba(250, 246, 236, 0.82); border-radius: 0 0 14px 14px; }
.page { max-width: 820px; margin: 0 auto; }
h1 { font-size: 1.8rem; margin-bottom: 0.4em; color: #55341c; }
h2 { font-size: 1.3rem; margin: 1.2em 0 0.5em; color: #c0651f; }
h3 { color: #a35a1e; }
p { margin-bottom: 0.9em; }
a { color: #b4562a; text-decoration: none; }
a:hover { text-decoration: underline; color: #8a3e16; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.92rem; }
th, td { border: 1px solid #e0d4bb; padding: 6px 10px; text-align: left; }
th { background: #f0e5cf; color: #6b4a22; }

/* 头部 */
.site-header { background: rgba(255, 251, 242, 0.94); border-bottom: 3px solid #c98d4b; }
.header-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 8px; color: #55341c; font-weight: 700; font-size: 1.05rem; }
.logo-icon { width: 22px; height: 22px; image-rendering: pixelated; }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: #5a4a34; font-weight: 600; }
.main-nav a:hover { color: #c0651f; text-decoration: none; }

/* 语言下拉菜单 */
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn { background: #c0651f; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.lang-btn:hover { background: #a9531a; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fffdf6; border: 2px solid #d8c9a8; border-radius: 8px; box-shadow: 0 8px 20px rgba(80,60,30,.18); min-width: 150px; padding: 6px; display: none; z-index: 90; }
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: #4a3b28; font-size: 0.92rem; }
.lang-menu a:hover { background: #f3e8d2; text-decoration: none; color: #c0651f; }
.lang-menu a.active { background: #f3e8d2; font-weight: 700; color: #a9531a; }

/* 首页 hero */
.hero { text-align: center; padding: 24px 0 20px; }
.hero-img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto 18px; border-radius: 12px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(90,60,25,.25); image-rendering: pixelated; }
.hero h1 { font-size: 2.4rem; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.hero p { max-width: 680px; margin: 0 auto; color: #5f5238; }

/* 工具卡片 */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.tool-card { background: rgba(255, 253, 246, 0.94); border: 2px solid #e5d9c2; border-radius: 10px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; transition: border-color .2s, transform .15s, box-shadow .2s; }
.tool-card:hover { border-color: #c0651f; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(90,60,25,.14); text-decoration: none; }
.tool-icon { width: 40px; height: 40px; flex-shrink: 0; image-rendering: pixelated; }
.tool-card h3 { margin: 0 0 6px; color: #b4562a; font-size: 1.02rem; }
.tool-card p { margin: 0; color: #6a5c40; font-size: 0.88rem; }

/* 列表页 */
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255, 253, 246, 0.94); border: 2px solid #e5d9c2; border-radius: 8px; margin-bottom: 8px; }
.list-icon { width: 32px; height: 32px; image-rendering: pixelated; }

/* 广告位 */
.ad-slot { margin: 24px 0; padding: 8px; background: rgba(253, 249, 238, 0.9); border: 2px dashed #d8c9a8; border-radius: 8px; text-align: center; }

/* FAQ */
.faq-item { margin-bottom: 1em; }
.faq-item h3 { cursor: pointer; }
.faq-item p { margin-top: 0.3em; }

/* 页脚 */
.site-footer { background: rgba(238, 228, 208, 0.96); border-top: 3px solid #c98d4b; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 22px 16px; text-align: center; color: #6a5c40; font-size: 0.85rem; }
.fan-notice { color: #7a6a4c; }
.footer-nav { margin-top: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Cookie 隐私横幅（底部浮动） */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(43, 36, 24, 0.97); color: #e9e0cd; font-size: 0.86rem; padding: 12px 16px; display: none; box-shadow: 0 -4px 14px rgba(0,0,0,.25); }
.cookie-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-inner a { color: #f0b35a; text-decoration: underline; }
.cookie-accept { background: #c0651f; color: #fff; border: none; border-radius: 6px; padding: 8px 22px; font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cookie-accept:hover { background: #a9531a; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .cookie-inner { justify-content: center; text-align: center; }
}
