/* ============================================================
   public.css — 公共样式（所有页面通用）
   包含：变量、重置、排版、容器、顶部导航、底部、标签、栏目标题
   ============================================================ */

/* ========== 色彩变量（更鲜活） ========== */
:root {
  --blue: #2563EB;
  --orange: #FF5722;
  --green: #10B981;
  --sky: #0EA5E9;
  --purple: #8B5CF6;
  --warm: #F97316;
  --red: #EF4444;
  --gold: #F59E0B;
  --bg: #F7F8FC;
  --bg-alt: #EFF1F8;
  --white: #FFFFFF;
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
  --shadow-hover: 0 8px 30px rgba(17, 24, 39, 0.13);
  --radius: 6px;
  --radius-sm: 4px;
}

/* ========== 重置 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", 
  "PingFang SC", "苹方", "Hiragino Sans GB", sans-serif;
  font-weight: normal;  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}
h1, h2, h3, h4, h5, h6 {
font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", 
  "PingFang SC", "苹方", "Hiragino Sans GB", sans-serif;
  font-weight: normal;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部导航（Logo + 菜单同一行） ========== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.1);
  border-bottom-color: transparent;
}

.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.logo { flex-shrink: 0; }
.logo-link { display: block; }
.logo-img { width: auto; height: 44px; object-fit: contain; }

/* 导航菜单 */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 0;
}
.main-nav ul { display: flex; gap: 0; }
.main-nav li a {
  display: block; padding: 10px 15px; font-size: 16px; font-weight: 500;
  color: var(--text-secondary); position: relative; transition: color 0.2s; white-space: nowrap;
}
.main-nav li a::after {
  content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px;
  height: 3px; background: var(--blue); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transition: transform 0.25s;
}
.main-nav li a:hover, .main-nav li.active a { color: var(--blue); }
.main-nav li a:hover::after, .main-nav li.active a::after { transform: scaleX(1); } 
/* 签到弹窗 */
.sign-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.sign-modal-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 700px;
    padding: 5px;
    border-radius: 12px;
    text-align: center;
}
#signFrame {
    width: 100%;
    height: 560px;
    margin: 5px 0;
}
.sign-close {
    padding: 8px 22px;
    background: #00a8ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* 手机菜单按钮 */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block; width: 26px; height: 3px;
  background: var(--text); border-radius: 3px; transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ========== 标签 ========== */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 3px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px;
}
.tag-red { background: var(--red); color: #fff; }
.tag-blue { background: var(--blue); color: #fff; }
.tag-green { background: var(--green); color: #fff; }
.tag-sky { background: var(--sky); color: #fff; }
.tag-warm { background: var(--warm); color: #fff; }
.tag-gold { background: var(--gold); color: #fff; }

.meta { font-size: 14px; color: var(--text-muted); }

/* ========== 栏目区块通用 ========== */
.section-block { padding: 24px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.section-title { display: flex; align-items: center; gap: 12px; }
.title-bar {
  width: 5px; height: 28px; border-radius: 3px;
  background: var(--accent, var(--blue));
}
.section-title h2 { font-size: 24px; font-weight: 800; color: var(--accent, var(--text)); }
.more-link { font-size: 15px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.more-link:hover { color: var(--blue); }

/* ========== 底部 ========== */
.site-footer {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: rgba(255,255,255,0.75); padding: 56px 0 0; margin-top: 48px;display：block;
}
.footer-main {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); gap: 60px;
}
.footer-intro { max-width: 440px; }
.footer-intro .logo-link { display: inline-block; }
.footer-intro .logo-img { height: 40px; width: auto; }
.footer-desc {
  margin-top: 16px; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.5);
}
.footer-qrcodes { display: flex; gap: 44px; flex-shrink: 0; }
.qrcode-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qrcode-placeholder {
  width: 100px; height: 100px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.qrcode-item span { font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 500; }
.footer-bottom {
  padding: 20px 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--orange); }
.m-footer {
  display: none;
  background: #f5f5f5;
  width: 100%;
  padding: 15px 0;
  text-align: center;
  position: relative;
}
.m-footer .container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}
.m-footer .footer-copyright {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #777;
}
/* 悬浮回到顶部 只在手机显示 */
.back-top-fixed {
  /* 默认隐藏 */
  display: none;
  position: fixed;
  right: 15px;
  bottom: 80px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #fff;
  color: #666;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999;
}


}
/* ========== 公共响应式 ========== */
@media (max-width: 1100px) {
  .main-nav li a { padding: 8px 10px; font-size: 15px; }
  .nav-search input { width: 120px; }
}

@media (max-width: 900px) {
  .footer-main { flex-direction: column; gap: 32px; align-items: center; text-align: center; }
  .footer-intro { max-width: 100%; }
  .footer-intro .logo { justify-content: center; }
  .footer-qrcodes { justify-content: center; }
   .site-footer {display: none;}
   .m-footer { display: block; }
}

@media (max-width: 768px) {
    .header-inner { height: 56px; gap: 12px; }
  .logo-img { height: 36px; }
  .mobile-menu-btn { display: flex; margin-left: auto; }

  .main-nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 12px 16px 16px; border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 0; }
  .main-nav li { width: 33.333%; }
  .main-nav li a {
    display: block; padding: 12px 8px; font-size: 15px; text-align: center;
    border-bottom: 1px solid var(--bg-alt);
  }
  .main-nav li a::after { display: none; }
  .nav-search { margin: 12px 0 0; width: 100%; }
  .nav-search input { width: 100%; flex: 1; }

  .section-block { padding: 14px 5px;  }
  .section-title h2 { font-size: 20px; }
  .title-bar { height: 22px; width: 4px; }
  .section-header { margin-bottom: 20px; }

  .footer-main { gap: 24px; padding-bottom: 28px; }
  .footer-qrcodes { gap: 24px; }
  .qrcode-placeholder { width: 84px; height: 84px; }
.breadcrumb { display: none !important; }
 .site-footer {display: none;}
.m-footer { display: block; }
.back-top-fixed { display: block; }
  .container { padding: 0 1px; }

}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 0px; }
  .header-inner { padding: 0 16px; }
  .section-block { padding: 14px 5px; }
  .footer-qrcodes { gap: 18px; }
  .qrcode-placeholder { width: 72px; height: 72px; padding: 6px; }
  .breadcrumb { display: none !important; }
 .site-footer {display: none;}
   .m-footer { display: block; }
}
