/* ============================================
   CoolCat® 同款复刻站 - 公共样式（浅色清爽主题）
   配色参考原站: 主色 #1e9fff / 背景 #f8f9fa / 文字 #333
   ============================================ */

:root {
  --bg: #f8f9fa;
  --bg-soft: #f1f6f9;
  --card: #ffffff;
  --border: #eaeef2;
  --border-soft: #f1f1f1;
  --text: #333333;
  --text-dim: #666666;
  --text-mute: #4d4d4d;
  --accent: #1e9fff;
  --accent-deep: #0081cc;
  --footer-bg: #2c3e55;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 159, 255, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand sup { font-size: 11px; color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-mute);
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}
.nav-toggle { display: none; }

/* ---------- 主内容 ---------- */
main { flex: 1; }
.section { height: auto; padding: 24px 0; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* 品牌展示区（原站蓝色渐变 banner） */
.hero {
  text-align: center;
  padding: 0;
  background: linear-gradient(135deg, #1e9fff 0%, #0081cc 100%);
  color: #fff;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.hero p {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}
.hero .social {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hero .social a {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
  transition: all 0.2s;
}
.hero .social a:hover {
  background: #fff;
  color: var(--accent);
  text-decoration: none;
}

/* 工具卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(30, 159, 255, 0.15);
}
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--text); }
.card h3 a { color: var(--text); text-decoration: none; transition: color .2s; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { color: var(--text-dim); font-size: 14px; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 6px;
}

/* 友情链接（原站同款：外框卡片 + 标题图标 + 分隔线 + favicon） */
/* .links-section 为 100% 宽度的外层容器（无背景色、无边框线条） */
.links-section { height: auto; padding: 10px 0; }
.links-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.links-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.links-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(30, 159, 255, 0.15);
}
.links-content { padding: 25px; }
.links-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.links-title .icon {
  width: 18px; height: 18px;
  color: var(--accent);
  flex: none;
}
/* 友情链接区标题居左（实用工具区 .links-title 仍居中） */
.links-section .links-title { justify-content: flex-start; text-align: left; }
.links-hr {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}
/* 实用工具标题下的短横线（1/3 宽、居中） */
.title-hr {
  width: 33.333%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 10px auto;
}
/* 描述文字下的通栏长横线 */
.sub-hr {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 18px 0;
}
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}
.links-grid p { margin: 0; }
.links-grid a {
  display: inline-flex;
  align-items: center;
  color: var(--text-mute);
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.links-grid a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}
.links-grid img {
  width: 18px; height: 18px;
  margin-right: 5px;
  border-radius: 3px;
  flex: none;
}

/* 通用内容大框（实用工具区同款外框，似友情链接 card） */
.block-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}
.block-content { padding: 25px; }
/* 上下两条横线（title-hr / sub-hr）之间：描述文字垂直居中 */
.block-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}
.block-mid .section-sub { margin-bottom: 0; text-align: center; }
/* 长横线之后的工具卡片区域 */
.block-body { margin-top: 4px; }

/* 通用文本块 */
.prose { color: var(--text-dim); max-width: 760px; }
.prose h2 { color: var(--text); margin: 28px 0 12px; font-size: 22px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }

/* 捐赠卡片 */
.donate-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}
.donate-box .qr {
  width: 180px; height: 180px;
  margin: 20px auto;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 13px;
}

/* ---------- 底部 ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 36px 0;
  margin-top: 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-grid .col h4 { font-size: 15px; margin-bottom: 12px; color: #fff; }
.footer-grid .col a, .footer-grid .col span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 6px;
}
.footer-grid .col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: center;
}
/* 后台可配置：底部居中开关 */
.footer-bottom.center { text-align: center; }
.footer-bottom:not(.center) { text-align: left; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 240px; }
  .nav-links li { padding: 0 20px; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle {
    display: block;
    background: none; border: none; cursor: pointer;
    color: var(--text); font-size: 22px;
  }
  .hero h1 { font-size: 34px; }
}
