/* ============================================================
   SiteCMS 默认主题 — FoxCMS 企业门户风格
   ============================================================ */
:root {
  --primary: #1a56DB;
  --primary-dark: #1442a8;
  --primary-light: #eef2ff;
  --accent: #f97316;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
  --container: 1200px;
  --header-h: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.site-main { min-height: calc(100vh - 400px); }

/* ---------- 顶部联系条 ---------- */
.top-bar {
  background: var(--bg-dark);
  color: #94a3b8;
  font-size: 13px;
  line-height: 36px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .contact a { color: #94a3b8; margin-left: 16px; }
.top-bar .contact a:hover { color: #fff; }
.top-bar .social a { color: #64748b; margin-left: 12px; font-size: 15px; }
.top-bar .social a:hover { color: #fff; }

/* ---------- 头部导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--text); }
.logo img { max-height: 44px; width: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff; font-size: 22px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { letter-spacing: -.5px; }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  padding: 10px 18px; font-size: 15px; color: var(--text); font-weight: 500;
  position: relative; transition: all .2s;
}
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
  background: var(--primary); transition: all .25s; transform: translateX(-50%);
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: .2s; }

/* ---------- Hero 轮播 ---------- */
.banner { position: relative; background: var(--bg-dark); overflow: hidden; }
.banner-slider { position: relative; height: 520px; overflow: hidden; }
.banner-item {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
}
.banner-item.active { opacity: 1; }
.banner-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,.7) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
}
.banner-content {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; width: 100%; padding: 0 20px;
}
.banner-title {
  color: #fff; font-size: 42px; font-weight: 700; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.3); max-width: 600px;
}
.banner-desc { color: rgba(255,255,255,.85); font-size: 17px; margin-top: 16px; max-width: 540px; }
.banner-btn {
  display: inline-block; margin-top: 28px; padding: 12px 36px;
  background: var(--primary); color: #fff; border-radius: 4px;
  font-size: 15px; font-weight: 600; transition: all .25s;
}
.banner-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,.35); }
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.banner-dots span {
  width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3);
  cursor: pointer; transition: all .2s;
}
.banner-dots span.active { background: #fff; width: 40px; }
/* ===== CRITICAL-CSS SPLIT ===== */

/* ---------- 通用区块 ---------- */
.section { padding: 60px 0; }
.section-lg { padding: 80px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: var(--bg-dark); color: #cbd5e1; }
.section-head-center { text-align: center; margin-bottom: 40px; }
.section-head-center h2 { font-size: 30px; font-weight: 700; color: var(--text); }
.section-head-center .en {
  font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.section-head-center .desc { color: var(--text-light); font-size: 15px; max-width: 600px; margin: 12px auto 0; }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px;
}
.section-head-row .title-block h2 { font-size: 26px; font-weight: 700; }
.section-head-row .title-block .en {
  font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 4px; display: block;
}
.section-head-row .more-btn {
  color: var(--text-light); font-size: 14px; display: inline-flex; align-items: center; gap: 4px;
  transition: all .2s; padding: 6px 16px; border: 1px solid var(--border); border-radius: 4px;
}
.section-head-row .more-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 案例展示 ---------- */
.case-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap;
}
.case-tab {
  padding: 8px 28px; font-size: 15px; color: var(--text-light); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; transition: all .2s; background: #fff;
}
.case-tab.active, .case-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; display: block;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .cover { height: 220px; overflow: hidden; background: #e2e8f0; position: relative; }
.case-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .cover img { transform: scale(1.08); }
.case-card .body { padding: 16px 20px; }
.case-card .body h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.case-card:hover .body h3 { color: var(--primary); }
.case-card .body .cat { font-size: 13px; color: var(--primary); }
.case-card .body .tags { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- 公司简介 ---------- */
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: #e2e8f0; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.about-text .en-label { font-size: 14px; color: var(--primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.about-text p { color: var(--text-light); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.about-text .btn-detail {
  display: inline-block; margin-top: 12px; padding: 10px 32px;
  border: 2px solid var(--primary); color: var(--primary); border-radius: 4px;
  font-size: 14px; font-weight: 600; transition: all .25s;
}
.about-text .btn-detail:hover { background: var(--primary); color: #fff; }

/* ---------- 新闻资讯 ---------- */
.news-tabs {
  display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 2px solid var(--border);
}
.news-tab {
  padding: 10px 28px; font-size: 16px; color: var(--text-light); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.news-tab.active, .news-tab:hover { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .cover { height: 180px; overflow: hidden; background: #e2e8f0; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .cover img { transform: scale(1.06); }
.news-card .body { padding: 18px 20px; }
.news-card .body .cat-date { font-size: 13px; color: var(--primary); margin-bottom: 6px; display: flex; justify-content: space-between; }
.news-card .body .cat-date time { color: var(--text-muted); }
.news-card .body h3 { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.news-card:hover .body h3 { color: var(--primary); }
.news-card .body p { font-size: 13px; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .body .views { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; display: block; text-align: center;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .cover { height: 160px; background: #e2e8f0; overflow: hidden; }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .cover img { transform: scale(1.06); }
.product-card .title { display: block; padding: 12px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card:hover .title { color: var(--primary); }

/* ---------- 侧栏 ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.widget-title { font-size: 17px; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 14px; }
.hot-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.hot-list li + li { border-top: 1px dashed var(--border); }
.hot-list i {
  font-style: normal; flex: 0 0 22px; height: 22px; border-radius: 4px;
  background: #f1f5f9; color: var(--text-light); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.hot-list li:nth-child(-n+3) i { background: var(--primary); color: #fff; }
.hot-list a { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.hot-list a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .tag-link {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: #f1f5f9; color: var(--text-light); font-size: 13px; transition: all .2s;
}
.tag-cloud a:hover, .tag-link:hover { background: var(--primary); color: #fff; }

/* ---------- 面包屑 ---------- */
.page-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff; padding: 40px 0; text-align: center;
}
.page-banner h1 { font-size: 28px; font-weight: 700; }
.page-banner .breadcrumb { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 8px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: #fff; }
.page-layout { padding: 40px 20px 60px; }

/* ---------- 列表页 ---------- */
.list-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.list-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; display: flex; flex-direction: column;
}
.list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.list-card .cover { height: 200px; overflow: hidden; background: #e2e8f0; }
.list-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.list-card:hover .cover img { transform: scale(1.06); }
.list-card .body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.list-card .body .title { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.list-card:hover .body .title { color: var(--primary); }
.list-card .body .summary { font-size: 13px; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-card .body .meta { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; color: var(--text-muted); font-size: 12px; }
.list-card .badge-top { font-style: normal; display: inline-block; padding: 1px 8px; background: #fee2e2; color: #dc2626; font-size: 11px; border-radius: 3px; vertical-align: 2px; }

/* 旧版文章列表兼容 */
.article-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article-list li + li { border-top: 1px solid var(--border); }
.article-item { display: flex; gap: 16px; padding: 20px; }
.article-item .thumb { flex: 0 0 200px; height: 120px; border-radius: var(--radius); overflow: hidden; background: #e2e8f0; }
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-item:hover .thumb img { transform: scale(1.05); }
.article-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-item .title { font-size: 17px; line-height: 1.5; }
.article-item:hover .title { color: var(--primary); }
.article-item .summary { color: var(--text-light); font-size: 13px; margin-top: 8px; }
.article-item .meta { margin-top: auto; display: flex; gap: 14px; color: var(--text-muted); font-size: 12px; }
.article-item .meta em { font-style: normal; }

/* 分页 */
.pager { margin-top: 32px; }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-item a, .page-item span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; font-size: 14px; color: var(--text); transition: all .2s;
}
.page-item a:hover { border-color: var(--primary); color: var(--primary); }
.page-item.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled span { color: #cbd5e1; cursor: not-allowed; }

/* ---------- 文章详情 ---------- */
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; }
.article-title { font-size: 28px; line-height: 1.4; font-weight: 700; }
.article-subtitle { color: var(--text-light); margin-top: 8px; font-size: 15px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 13px;
  padding: 14px 0; margin-top: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article-meta em { font-style: normal; color: var(--primary); }
.article-cover { margin: 20px 0; border-radius: var(--radius-lg); overflow: hidden; }
.article-content { margin-top: 24px; font-size: 16px; word-break: break-word; line-height: 1.85; }
.article-content p { margin: 0 0 16px; }
.article-content img { border-radius: var(--radius); margin: 8px auto; }
.article-content h1, .article-content h2, .article-content h3 { margin: 24px 0 12px; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 0 0 14px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote { border-left: 3px solid var(--primary); background: var(--primary-light); padding: 12px 18px; margin: 0 0 14px; color: var(--text-light); border-radius: 0 var(--radius) var(--radius) 0; }
.article-content table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 12px; }
.article-content a { color: var(--primary); }
.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: 14px; }
.article-tags .label { color: var(--text-light); }
.related { margin-top: 30px; }
.box-title { font-size: 18px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); font-weight: 700; }
.related-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px 20px; }
.related-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.related-list li + li { border-top: 1px dashed var(--border); }
.related-list a { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-list a:hover { color: var(--primary); }
.related-list time { color: var(--text-muted); font-size: 13px; }

/* ---------- 搜索 ---------- */
.search-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.search-form { display: flex; gap: 10px; max-width: 580px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; transition: border-color .2s; }
.search-form input:focus { border-color: var(--primary); }
.search-form button { padding: 12px 30px; background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); font-size: 15px; cursor: pointer; font-weight: 600; transition: background .2s; }
.search-form button:hover { background: var(--primary-dark); }
.sort-desc { color: var(--text-light); font-size: 14px; margin-top: 6px; }
.list-head { margin-bottom: 20px; }
.list-head h1 { font-size: 24px; }

/* ---------- 在线留言 ---------- */
.message-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 36px; margin-top: 24px; }
.msg-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.msg-row { display: flex; gap: 12px; flex-wrap: wrap; }
.msg-row > input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; }
.msg-row > input:focus { border-color: var(--primary); }
.msg-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; outline: none; resize: vertical; }
.msg-form textarea:focus { border-color: var(--primary); }
.captcha-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.captcha-wrap input { flex: 1; min-width: 110px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; }
.captcha-wrap input:focus { border-color: var(--primary); }
.captcha-wrap svg { height: 40px; border-radius: var(--radius); cursor: pointer; }
.msg-tip { margin: 0; font-size: 14px; min-height: 20px; }
.msg-tip.ok { color: #16a34a; }
.msg-tip.err { color: #dc2626; }
.msg-form .btn-home, .cms-form .btn-submit { border: 0; cursor: pointer; font-size: 15px; }

/* ---------- 评论区 ---------- */
.comments { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 36px; margin-top: 24px; }
.comment-list:empty { display: none; }
.comment-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.comment-head time { color: var(--text-muted); font-size: 12px; }
.comment-body { margin-top: 6px; font-size: 15px; word-break: break-word; }
.comment-empty { color: var(--text-light); font-size: 14px; text-align: center; padding: 14px 0; }
.cmt-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cmt-guest { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmt-guest input { flex: 1; min-width: 160px; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; }
.cmt-guest input:focus { border-color: var(--primary); }
.cmt-user { color: var(--text-light); font-size: 14px; }
.cmt-user strong { color: var(--primary); }
.cmt-login-tip { color: var(--text-light); font-size: 14px; margin: 0; }
.cmt-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; outline: none; resize: vertical; }
.cmt-form textarea:focus { border-color: var(--primary); }
.cmt-foot { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.cmt-tip { font-size: 14px; }
.cmt-tip.ok { color: #16a34a; }
.cmt-tip.err { color: #dc2626; }
.cmt-btn { padding: 8px 24px; background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); font-size: 14px; cursor: pointer; font-weight: 600; }
.cmt-btn:hover { background: var(--primary-dark); }
.comment-item.comment-reply { margin-left: 48px; background: var(--bg); border-radius: 8px; padding: 12px 14px; border-bottom: 0; margin-bottom: 8px; }
.comment-reply-to { color: var(--primary); font-size: 13px; margin: 0 10px; }
.comment-actions { display: flex; gap: 14px; margin-top: 8px; }
.comment-actions button { background: none; border: 0; padding: 0; color: var(--text-muted); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.comment-actions button:hover { color: var(--primary); }
.cmt-like-btn[data-liked="1"] { color: var(--primary); font-weight: 600; }
.cmt-replying { background: var(--primary-light); color: #3730a3; border-radius: var(--radius); padding: 7px 12px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.cmt-reply-cancel { background: none; border: 0; color: #6366f1; font-size: 13px; cursor: pointer; text-decoration: underline; }
.level-badge { display: inline-block; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* ---------- 会员中心 ---------- */
.member-wrap { max-width: 860px; margin: 24px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; }
.member-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }
.member-head h2 { margin: 0; font-size: 20px; }
.member-stats { display: flex; gap: 28px; margin-left: auto; text-align: center; }
.member-stats .num { font-size: 22px; font-weight: 700; color: var(--primary); }
.member-stats .lab { font-size: 12px; color: var(--text-light); }
.member-tabs { display: flex; gap: 6px; margin: 18px 0; border-bottom: 1px solid var(--border); }
.member-tabs a { padding: 9px 18px; color: var(--text-light); font-size: 14px; border-bottom: 2px solid transparent; }
.member-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.member-form label { display: block; margin: 12px 0 4px; font-size: 14px; color: #374151; }
.member-form input, .member-form textarea, .member-form select { width: 100%; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; }
.member-form input:focus, .member-form textarea:focus, .member-form select:focus { border-color: var(--primary); }
.member-form .btn-submit { margin-top: 18px; padding: 10px 32px; background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }
.member-list-item { padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.member-list-item .meta { color: var(--text-light); font-size: 12px; margin-top: 4px; }
.status-pill { font-size: 12px; border-radius: 10px; padding: 1px 10px; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.points-log { font-size: 13px; color: var(--text-light); }
.points-log .plus { color: #16a34a; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 0 80px; }
.notfound .code { font-size: 100px; font-weight: 800; color: var(--primary); line-height: 1; }
.notfound .text { color: var(--text-light); margin: 18px 0 28px; font-size: 16px; }
.btn-home { display: inline-block; padding: 10px 36px; background: var(--primary); color: #fff; border-radius: 999px; transition: all .25s; font-weight: 600; }
.btn-home:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding: 50px 0 0; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #64748b; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #94a3b8; }
.footer-col ul a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; color: #94a3b8; }
.footer-contact .icon { color: var(--primary); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { text-align: center; padding: 20px 0; color: #64748b; font-size: 13px; }
.footer-bottom .icp a { color: #64748b; }
.footer-bottom .icp a:hover { color: #fff; }
.footer-bottom .icp { margin-bottom: 4px; }

/* ---------- 自定义表单 ---------- */
.cms-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.cms-form-row { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.cms-form-row label { width: 90px; flex-shrink: 0; line-height: 38px; font-size: 14px; color: #334155; text-align: right; }
.cms-form-row label .req, .cms-choice .req { color: #dc2626; margin-left: 2px; }
.cms-field { flex: 1; min-width: 200px; height: 38px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: var(--radius); font-size: 14px; background: #fff; }
textarea.cms-field { height: auto; padding: 8px 10px; }
select.cms-field { height: 38px; }
.cms-field:focus { border-color: var(--primary); outline: none; }
.cms-choice { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; line-height: 38px; font-size: 14px; }
.cms-choice input { width: auto; }
.cms-captcha-input { max-width: 140px; flex: 0 0 auto; }
.cms-captcha-img { height: 38px; cursor: pointer; border: 1px solid #cbd5e1; border-radius: var(--radius); }
.cms-form .btn-submit { margin-left: 100px; background: var(--primary); color: #fff; padding: 10px 32px; border-radius: var(--radius); }
.cms-form-msg { display: none; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; }
.cms-form-msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cms-form-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .layout-2col { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .news-grid, .list-layout { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .banner-slider { height: 360px; }
  .banner-title { font-size: 30px; }
  .banner-desc { font-size: 15px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 10px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-md); max-height: 70vh; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .main-nav a::after { display: none; }
  .article { padding: 24px 20px; }
  .article-title { font-size: 22px; }
  .section { padding: 40px 0; }
  .section-head-center h2 { font-size: 24px; }
  .top-bar { display: none; }
}
@media (max-width: 600px) {
  .banner-slider { height: 280px; }
  .banner-title { font-size: 22px; }
  .banner-desc { font-size: 13px; }
  .banner-btn { padding: 8px 24px; font-size: 13px; }
  .news-item .thumb, .article-item .thumb { flex-basis: 110px; height: 76px; }
  .news-item .summary, .article-item .summary { display: none; }
  .case-grid, .news-grid, .list-layout, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .comments, .message-box { padding: 20px 18px; }
}
