/* ============================================
   ThinkCraft 前台站点设计系统
   ============================================ */
:root {
  color-scheme: light; /* 防浏览器强制夜间模式反色 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-soft: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   顶部导航
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo img { height: 34px; width: auto; }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-caret { font-size: 10px; opacity: 0.7; }

/* 下拉菜单（多级） */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 300;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
/* 防右侧溢出：靠右的顶层菜单项下拉右对齐（nav 内混有 a 与 div，用 :of-type 精确匹配 div.nav-item） */
.nav-item:last-of-type > .dropdown,
.nav-item:nth-last-of-type(2) > .dropdown {
  left: auto;
  right: 0;
  transform: translateY(6px);
}
.nav-item:last-of-type:hover > .dropdown,
.nav-item:nth-last-of-type(2):hover > .dropdown {
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-link:hover { background: var(--primary-soft); color: var(--primary); }

/* 二级及以上：右侧展开 */
.dropdown-item { position: relative; }
.dropdown-caret { float: right; margin-left: 16px; opacity: 0.6; }
.dropdown-sub {
  position: absolute;
  top: -8px;
  left: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 310;
}
.dropdown-item:hover > .dropdown-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* 防右侧溢出：右对齐的顶层下拉，其二级从左侧展开 */
.nav-item:last-of-type .dropdown-sub,
.nav-item:nth-last-of-type(2) .dropdown-sub {
  left: auto;
  right: calc(100% + 4px);
  transform: translateX(-6px);
}
.nav-item:last-of-type .dropdown-item:hover > .dropdown-sub,
.nav-item:nth-last-of-type(2) .dropdown-item:hover > .dropdown-sub {
  transform: translateX(0);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.header-phone:hover { border-color: var(--primary); color: var(--primary); }
.header-phone svg { color: var(--primary); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  width: 100%; /* 显式宽度：不依赖 flex 拉伸，360 等内核 stretch 异常时三道杠仍可见 */
  flex: none;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  /* 固定悬挂在吸顶头部下方：页面下滑后打开菜单仍完整可见
     （文档流实现会随页面滚出视口，手机上表现为"点了菜单没反应/看不清"） */
  position: fixed;
  left: 0;
  right: 0;
  top: 69px; /* JS 打开时按头部实际高度校准 */
  max-height: calc(100vh - 69px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 210;
}
.mobile-menu.is-open { display: flex; }
/* 菜单展开时的内容遮罩 + body 滚动锁定（遮罩低于吸顶头部，保证汉堡按钮可再点击） */
.mobile-menu-mask {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0; /* 不用 inset 简写，兼容 Chromium<87 老内核 */
  z-index: 195;
  background: rgba(15, 23, 42, 0.45);
}
.mobile-menu-mask.is-open { display: block; }
body.menu-locked { overflow: hidden; }
.mobile-link {
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--bg-soft);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link.active { color: var(--primary); }
.mobile-link-sub { padding-left: 32px; font-size: 14px; color: var(--muted); font-weight: 400; }
.mobile-link-sub-2 { padding-left: 48px; font-size: 13px; }
.mobile-link-sub-3 { padding-left: 64px; font-size: 13px; }

/* ============================================
   Hero
   ============================================ */
.site-hero {
  position: relative;
  background: #0b1220;
  color: #fff;
  overflow: hidden;
}

/* 静态渐变 Hero */
.hero-static {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(124, 58, 237, 0.3), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #101c33 55%, #16284d 100%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: heroFloat 12s ease-in-out infinite;
}
.hero-glow-1 { width: 420px; height: 420px; top: -120px; right: 10%; background: rgba(37, 99, 235, 0.5); }
.hero-glow-2 { width: 380px; height: 380px; bottom: -140px; left: 5%; background: rgba(124, 58, 237, 0.4); animation-delay: -6s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-caption {
  max-width: 720px;
  padding: 90px 0;
  animation: heroIn .8s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 40px rgba(37, 99, 235, 0.3);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 轮播模式 */
.hero-slider { position: relative; min-height: 560px; transition: min-height .3s ease; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 24, 0.88) 0%, rgba(6, 11, 24, 0.62) 42%, rgba(6, 11, 24, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 11, 24, 0.55) 0%, transparent 45%);
}
.hero-slide .hero-caption { padding: 100px 0; animation: none; }
.hero-slide.is-active .hero-caption { animation: heroIn .8s cubic-bezier(.22, .8, .3, 1) both; }
.hero-slide .hero-title {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 6px 32px rgba(2, 6, 23, 0.5);
}
.hero-slide .hero-desc { color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 14px rgba(2, 6, 23, 0.5); }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 14, 30, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-dots span {
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background .25s, width .25s;
}
.hero-dots span.is-active { background: #fff; width: 32px; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(9, 14, 30, 0.3);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .25s, background .2s, border-color .2s;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(37, 99, 235, 0.8); border-color: transparent; }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: 0;
}
.btn-hero {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.btn-hero:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5); }
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; opacity: 0.8; }

/* 滚动指示 */
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.7;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}
.scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: wheelDown 1.6s ease-in-out infinite;
}
@keyframes wheelDown {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ============================================
   内容区块
   ============================================ */
.site-content { background: var(--bg); }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.home-empty-section { min-height: 420px; display: flex; align-items: center; }
.home-empty { text-align: center; max-width: 460px; margin: 0 auto; }
.home-empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-empty h2 { font-size: 28px; color: var(--ink); margin-bottom: 12px; }
.home-empty p { color: var(--muted); margin-bottom: 24px; }

/* ============================================
   组件通用
   ============================================ */
.component { padding: 80px 0; }

/* ===== 后台页面搭建器「排版」设置 ===== */
.site-layout-block { width: 100%; }
.site-layout-block.has-custom-padding-top > .component { padding-top: 0 !important; }
.site-layout-block.has-custom-padding-bottom > .component { padding-bottom: 0 !important; }
.site-layout-block.has-custom-bg > .component { background-color: transparent !important; }
.site-layout-block.is-wide > .component .container { max-width: 100%; }
.site-layout-block.is-narrow > .component .container { max-width: 800px; }
/* 区块内边距工具类：模板以 class 引用（替代内联 style，避免压死媒体查询） */
.pad-none { padding: 0; }
.pad-small { padding: 40px 0; }
.pad-medium { padding: 60px 0; }
.pad-large { padding: 100px 0; }
.component-alt { background: var(--bg-soft); }
.component-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-align: center; margin-bottom: 12px; }
.component-subtitle { text-align: center; color: var(--muted); font-size: 16px; max-width: 600px; margin: 0 auto 44px; }
.component-empty { text-align: center; color: #999; }

/* ============================================
   Banner
   ============================================ */
.banner { position: relative; min-height: 480px; display: flex; align-items: center; }
.banner-slide { position: relative; width: 100%; min-height: 480px; display: flex; align-items: center; }
.banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,14,30,.72), rgba(9,14,30,.25)); }
.banner-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; color: #fff; }
.banner-content h2 { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.banner-content p { font-size: 18px; opacity: 0.92; margin-bottom: 22px; max-width: 560px; }
.banner-btn { display: inline-block; padding: 12px 28px; background: var(--primary); border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.banner-btn:hover { background: var(--primary-light); color: #fff; }

/* ============================================
   图文
   ============================================ */
.text-image-grid { display: flex; gap: 56px; align-items: center; }
.layout-left .text-image-grid { flex-direction: row; }
.layout-right .text-image-grid { flex-direction: row-reverse; }
.layout-top .text-image-grid { flex-direction: column; }
.layout-bottom .text-image-grid { flex-direction: column-reverse; }
.text-image-text { flex: 1; }
.text-image-text h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.text-image-text p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.text-image-img { flex: 1; }
.text-image-img img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-lg); }

/* ============================================
   卡片
   ============================================ */
.cards-grid { display: grid; gap: 24px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.card-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.3); }
.card-shadow { box-shadow: var(--shadow-sm); }
.card-border { border: 1px solid var(--line); }
.card-flat { border-radius: 0; border: 0; }
.card-image img { width: 100%; border-radius: 10px; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.card-link { font-size: 14px; font-weight: 600; }

/* ============================================
   富文本
   ============================================ */
.rich-content { font-size: 16px; color: var(--text); line-height: 1.9; }
.rich-content p { margin-bottom: 16px; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin: 28px 0 12px; color: var(--ink); }
.rich-content img { border-radius: 10px; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin-bottom: 16px; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; transition: border-color .2s; }
.faq-item.open { border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-sm); }
.faq-question { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-toggle { font-size: 20px; color: var(--primary); transition: transform .3s; }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; color: var(--muted); }
.faq-item.open .faq-answer { padding: 0 22px 20px; max-height: 600px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ============================================
   CTA
   ============================================ */
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-inner p { font-size: 17px; opacity: 0.92; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   评价
   ============================================ */
.testimonials-grid, .testimonials-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials-list .testimonial-item { margin-bottom: 20px; }
.testimonial-item { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; border: 3px solid var(--primary-soft); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-rating .star { color: #f59e0b; }
.testimonial-text { font-style: italic; margin: 12px 0; color: var(--text); }
.testimonial-author strong { display: block; color: var(--ink); }
.testimonial-author span { color: var(--muted); font-size: 14px; }

/* ============================================
   计数
   ============================================ */
.counter-grid { display: grid; gap: 24px; text-align: center; }
.counter-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.counter-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.counter-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.counter-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.counter-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 16px; }
.counter-number { font-size: 42px; font-weight: 800; margin: 8px 0; color: var(--primary); }
.counter-label { color: var(--muted); }

/* ============================================
   团队
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-list .team-member { margin-bottom: 24px; }
.team-member { text-align: center; background: #fff; border-radius: var(--radius); padding: 32px 20px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-placeholder { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; }
.team-name { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-position { color: var(--primary); font-size: 14px; margin-bottom: 8px; }
.team-bio { color: var(--muted); font-size: 14px; }
.team-social { display: flex; gap: 12px; justify-content: center; margin-top: 8px; font-size: 13px; }

/* ============================================
   合作伙伴
   ============================================ */
.partners-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partner-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 28px; display: flex; align-items: center; transition: border-color .2s, transform .2s; }
.partner-item:hover { border-color: rgba(37, 99, 235, 0.4); transform: translateY(-2px); }
.partner-item img { max-height: 44px; opacity: 0.75; filter: grayscale(40%); transition: all .3s; }
.partner-item:hover img { opacity: 1; filter: grayscale(0); }
.partner-item span { color: var(--muted); font-weight: 600; }

/* ============================================
   画廊
   ============================================ */
.gallery-grid { display: grid; gap: 16px; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(9,14,30,0.75)); color: #fff; padding: 40px 16px 14px; }
.gallery-caption h3 { font-size: 15px; }
.gallery-caption p { font-size: 13px; opacity: 0.9; }
.gallery-placeholder { background: var(--bg-soft); color: var(--muted); display: flex; align-items: center; justify-content: center; height: 200px; border-radius: var(--radius); }

/* ============================================
   视频 / 地图
   ============================================ */
.video-wrapper { max-width: 900px; margin: 0 auto; }
.video-wrapper iframe, .video-wrapper video {
  width: 100%; height: 300px; border: 0; /* 老内核兜底（无 aspect-ratio 时保底高度） */
  border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow-lg);
}
@supports (aspect-ratio: 16 / 9) {
  .video-wrapper iframe, .video-wrapper video { height: auto; aspect-ratio: 16 / 9; }
}
.map-embed { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.map-address { color: var(--muted); margin-bottom: 12px; }

/* ============================================
   组件内导航
   ============================================ */
.component-nav-list { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.component-nav-item { position: relative; }
.component-nav-children { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: 10px; list-style: none; min-width: 170px; padding: 8px; display: none; }
.component-nav-item:hover .component-nav-children { display: block; }
/* 触屏设备：JS 点按父项切换 is-open 展开子菜单（桌面 hover 行为不变） */
.component-nav-item.is-open .component-nav-children { display: block; }
.component-nav-children li { padding: 6px 14px; }

/* ============================================
   组件轮播
   ============================================ */
.component-slider-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.component-slide { position: relative; }
.component-slide img { width: 100%; }
.component-slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(9,14,30,0.75)); color: #fff; padding: 40px 24px 18px; }
.component-slide-caption h3 { font-size: 18px; }
.component-slide-placeholder { background: var(--bg-soft); color: var(--muted); display: flex; align-items: center; justify-content: center; height: 300px; }
/* 组件轮播圆点指示器 */
.component-slider-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 2;
}
.component-slider-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background .2s;
}
.component-slider-dots span.is-active { background: #fff; }

/* ============================================
   页面（子页）
   ============================================ */
.site-page .page-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.page-subtitle { color: var(--muted); max-width: 640px; }

/* ============================================
   页脚
   ============================================ */
.site-footer { background: #0b1220; color: #94a3b8; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 16px; }
.footer-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 14px; line-height: 1.8; color: #7c8ba1; margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.social-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  transition: all .2s;
}
a.social-badge:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.footer-col-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: #94a3b8; font-size: 14px; transition: color .2s, transform .2s; }
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact { color: #94a3b8; font-size: 14px; line-height: 1.6; }
a.footer-contact:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-right { display: flex; gap: 16px; align-items: center; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   滚动显现动画
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid, .testimonials-carousel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-phone { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-static, .hero-slider { min-height: 480px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .hero-caption { padding: 64px 0; }
  .hero-slide .hero-caption { padding: 44px 0 58px; }
  .hero-badge { margin-bottom: 14px; padding: 6px 13px; font-size: 11px; }
  .hero-dots { bottom: 14px; padding: 6px 10px; }
  .hero-arrow { display: none; }
  .component, .section { padding: 56px 0; }
  /* 区块内边距工具类在移动端整体收紧（模板不再写内联 padding） */
  .pad-small { padding: 32px 0; }
  .pad-medium { padding: 44px 0; }
  .pad-large { padding: 56px 0; }
  .component-title { font-size: 26px; }
  .banner { min-height: 360px; }
  .banner-slide { min-height: 360px; }
  .banner-content h2 { font-size: 30px; }
  .cards-grid.cols-3, .cards-grid.cols-4, .cards-grid.cols-6,
  .counter-grid.cols-3, .counter-grid.cols-4, .counter-grid.cols-6,
  .gallery-grid.cols-3, .gallery-grid.cols-4,
  .team-grid, .testimonials-grid, .testimonials-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .text-image-grid { flex-direction: column !important; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner h2 { font-size: 28px; }
  .cta-inner p { font-size: 16px; }
  .page-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .cards-grid.cols-2, .cards-grid.cols-3, .cards-grid.cols-4, .cards-grid.cols-6,
  .counter-grid.cols-2, .counter-grid.cols-3, .counter-grid.cols-4, .counter-grid.cols-6,
  .gallery-grid.cols-2, .gallery-grid.cols-3, .gallery-grid.cols-4,
  .team-grid, .testimonials-grid, .testimonials-carousel {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 30px; }
  .hero-actions .btn { width: 100%; }
  .cta-buttons .btn { width: 100%; }
}

/* ============================================
   文章列表页（CMS 数据）
   ============================================ */
.news-categories { border-bottom: 1px solid var(--line); background: #fff; padding: 18px 0; }
.news-categories .container { display: flex; flex-wrap: wrap; gap: 10px; }
.news-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: all .2s;
}
.news-cat-link:hover { border-color: var(--primary); color: var(--primary); }
.news-cat-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 分类筛选栏（新版） */
.news-page .page-head { border-bottom: 0; }
.news-filter { position: relative; z-index: 6; margin-top: -26px; }
.news-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.news-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.news-filter-label svg { color: var(--primary); flex-shrink: 0; }
.news-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  margin: -2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.news-filter-scroll::-webkit-scrollbar { display: none; }
.news-filter .news-cat-link {
  padding: 8px 16px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.news-filter .news-cat-link:hover {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-dark);
}
.news-filter .news-cat-link.active {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.news-filter .news-cat-link:active { transform: scale(.97); }
.news-filter .news-cat-link:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.news-filter-count {
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.news-filter-count strong { color: var(--primary); font-size: 15px; font-weight: 700; }

.news-page { padding: 0 0 80px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.news-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .35); }
.news-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.news-card-cat {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.news-cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: none; }
.news-card-cat.tone-1 .news-cat-dot { background: #2563eb; }
.news-card-cat.tone-2 .news-cat-dot { background: #7c3aed; }
.news-card-cat.tone-3 .news-cat-dot { background: #059669; }
.news-card-cat.tone-4 .news-cat-dot { background: #d97706; }
.news-card-cat.tone-5 .news-cat-dot { background: #db2777; }
.news-card-new {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.news-card-date, .news-card-author { display: inline-flex; align-items: center; gap: 4px; }
.news-card-meta svg { color: #94a3b8; flex: none; }
.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-card-summary {
  font-size: 13px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  transition: background .2s, color .2s;
}
.news-card:hover .news-card-more { background: var(--primary); color: #fff; }
.news-card-more svg { transition: transform .2s; }
.news-card:hover .news-card-more svg { transform: translateX(4px); }

.news-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px 0; text-align: center; color: var(--muted); }
.news-empty-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: var(--bg-soft);
  color: #cbd5e1;
}
.news-empty p { font-size: 15px; }
.news-empty-btn { padding: 10px 22px; border-radius: 10px; font-size: 14px; }

/* 分页 */
.news-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager-link {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); font-size: 14px;
  transition: all .2s;
}
.pager-link:hover { border-color: var(--primary); color: var(--primary); }
.pager-link.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-link.is-disabled { opacity: .45; pointer-events: none; background: var(--bg-soft); }
.pager-ellipsis { color: var(--muted); padding: 0 4px; }

/* ============================================
   文章详情页（CMS 数据）
   ============================================ */
.article-detail { padding: 0 0 80px; }
.article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 260px at 10% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(520px 240px at 90% 100%, rgba(124, 58, 237, 0.06), transparent 70%),
    var(--bg-soft);
  padding: 34px 0 48px;
  margin-bottom: 40px;
}
.article-hero-inner,
.article-main { max-width: 860px; margin: 0 auto; }
.article-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--primary); }
.crumb-sep { color: #cbd5e1; }
.article-head { margin-bottom: 0; }
.article-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: color .2s, border-color .2s;
}
.article-cat-pill:hover { color: var(--primary); border-color: var(--primary); }
.article-title { font-size: 40px; font-weight: 800; line-height: 1.3; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 16px; }
.article-lead { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-item svg { color: #94a3b8; flex: none; }
a.article-meta-item:hover { color: var(--primary); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; background: var(--bg-soft); box-shadow: var(--shadow-md); }
.article-cover img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.article-body { font-size: 16.5px; line-height: 1.95; color: var(--text); }
.article-body > * { max-width: 100%; }
.article-body p { margin-bottom: 22px; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-body figure { margin: 28px 0; }
.article-body figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.article-body h2, .article-body h3 { color: var(--ink); line-height: 1.4; }
.article-body h2 { position: relative; font-size: 24px; margin: 40px 0 16px; padding-left: 14px; }
.article-body h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), #7c3aed); }
.article-body h3 { font-size: 19px; margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 1.4em; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, var(--primary-soft), rgba(239, 246, 255, 0.35));
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  margin: 24px 0;
}
.article-body code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 0.9em; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 24px 0; line-height: 1.6; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 40px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-tags-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; color: var(--muted); }
.article-tags-label svg { color: #94a3b8; }
.article-tag {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--text);
  transition: color .2s, border-color .2s, background .2s;
}
.article-tag::before { content: '#'; color: var(--primary); margin-right: 2px; }
.article-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: none; padding: 0; margin-bottom: 28px; }
.article-nav-item {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.article-nav-item { color: inherit; }
a.article-nav-item:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .45); box-shadow: var(--shadow-md); }
.article-nav-item:first-child .article-nav-label::before { content: '← '; }
.article-nav-item.is-next .article-nav-label::after { content: ' →'; }
.article-nav-item.is-next { text-align: right; align-items: flex-end; }
.article-nav-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.article-nav-link { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.article-nav-link:hover { color: var(--primary); }
.article-nav-link.is-empty { color: #cbd5e1; font-weight: 400; }
.article-back { text-align: center; }
.article-back-btn { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
.article-back-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); }

/* ============================================
   文章列表组件（搭建器）
   ============================================ */
.article-list {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(520px 260px at 6% 0%, rgba(37, 99, 235, 0.055), transparent 70%),
    radial-gradient(460px 240px at 94% 100%, rgba(124, 58, 237, 0.05), transparent 70%);
}
.article-list .component-title { font-size: 36px; margin-bottom: 0; }
.article-list .component-title::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
}
.article-list .component-subtitle { margin-top: 14px; margin-bottom: 40px; }
.article-list .component-title + .article-list-grid { margin-top: 40px; }
.article-list-grid { display: grid; gap: 24px; }
.article-list-grid.cols-1 { grid-template-columns: 1fr; }
.article-list-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.article-list-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-list-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.al-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.al-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .35); }
.al-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.al-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.al-card:hover .al-card-cover img { transform: scale(1.05); }
.al-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.al-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.al-card-date { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.al-card-date svg { color: #94a3b8; flex: none; }
.al-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.al-card:hover .al-card-title { color: var(--primary); }
.al-card-summary {
  font-size: 13px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.al-card-more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  transition: background .2s, color .2s;
}
.al-card:hover .al-card-more { background: var(--primary); color: #fff; }
.al-card-more svg { transition: transform .2s; }
.al-card:hover .al-card-more svg { transform: translateX(3px); }
.article-list-more { text-align: center; margin-top: 36px; }
.article-list-empty { text-align: center; color: var(--muted); padding: 56px 0; font-size: 15px; }

/* ============================================
   文章响应式
   ============================================ */
@media (max-width: 992px) {
  .news-grid, .article-list-grid.cols-3, .article-list-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .news-grid, .article-list-grid.cols-2, .article-list-grid.cols-3, .article-list-grid.cols-4 { grid-template-columns: 1fr; }
  .news-page { padding: 0 0 56px; }
  .article-list .component-title { font-size: 28px; }
  .article-list .component-title::after { margin-top: 12px; }
  .article-list .component-subtitle { margin-top: 10px; margin-bottom: 32px; }
  .article-list .component-title + .article-list-grid { margin-top: 32px; }
  .news-filter { margin-top: -16px; }
  .news-filter-bar { gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .news-filter-label { display: none; }
  .news-filter-scroll { gap: 6px; flex-wrap: nowrap; }
  .news-filter .news-cat-link { padding: 7px 14px; font-size: 13px; }
  .news-filter-count { padding-left: 10px; font-size: 12px; }
  .news-filter-count strong { font-size: 14px; }
  .article-detail { padding: 0 0 56px; }
  .article-hero { padding: 26px 0 32px; margin-bottom: 28px; }
  .article-breadcrumb { font-size: 12px; margin-bottom: 20px; }
  .article-cat-pill { margin-bottom: 12px; }
  .article-title { font-size: 28px; }
  .article-lead { font-size: 15px; }
  .article-meta { gap: 12px; font-size: 12px; }
  .article-cover { margin-bottom: 26px; border-radius: 16px; }
  .article-body { font-size: 16px; line-height: 1.85; }
  .article-body h2 { font-size: 21px; margin-top: 32px; }
  .article-body h3 { font-size: 18px; }
  .article-tags { margin: 30px 0 24px; padding-top: 22px; }
  .article-nav { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .article-nav-item { padding: 14px 16px; border-radius: 14px; }
  .article-nav-item.is-next { text-align: left; align-items: flex-start; }
  .article-nav-label { font-size: 11px; font-weight: 600; color: var(--primary); }
  .article-nav-link {
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .news-filter-count { display: none; }
  .article-hero { padding: 22px 0 28px; }
  .article-title { font-size: 25px; }
  .article-meta { gap: 10px 14px; }
  .article-back-btn { width: 100%; }
  .market-detail-title { font-size: 25px; }
  .market-detail-actions .btn, .market-download-disabled { width: 100%; }
}

/* ============================================
   插件展示组件 market_plugins（数据=插件中心发布/管理表）
   ============================================ */
.market-plugins-empty { text-align: center; color: var(--muted); padding: 48px 0; }
.market-plugins-more { text-align: center; margin-top: 36px; }

.mp-type-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(37, 99, 235, .1);
  color: var(--primary, #2563eb);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mp-price { font-weight: 700; color: var(--ink); }
.mp-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--primary, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.mp-btn:hover { opacity: .85; color: #fff; }

/* 卡片网格 / 横向滚动 */
.mp-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.mp-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mp-grid.mp-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.mp-grid.mp-scroll .mp-card { flex: 0 0 300px; scroll-snap-align: start; }

.mp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border, #eef0f3);
}
.mp-card-shadow { box-shadow: 0 8px 24px rgba(0, 0, 0, .06); border-color: transparent; }
.mp-card-border { border: 1px solid #dde1e6; }
.mp-card-head { display: flex; align-items: center; gap: 10px; }
.mp-card-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-weight: 700; font-size: 17px;
}
.mp-card-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mp-card-ver { font-size: 11px; color: var(--muted); }
.mp-card-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mp-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 10px; border-top: 1px dashed var(--border, #eef0f3);
  font-size: 12px; color: var(--muted);
}

/* 列表行 / 简洁列表 */
.mp-list { display: flex; flex-direction: column; gap: 14px; }
.mp-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #eef0f3);
  border-radius: 12px;
  padding: 16px 20px;
}
.mp-list-main { flex: 1; min-width: 0; }
.mp-list-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.mp-list-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-list-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.mp-list-action { flex: none; }

/* 简洁列表：去掉行内详情与按钮，仅标题+价格 */
.mp-layout-simple .mp-list-row { padding: 12px 16px; }
.mp-layout-simple .mp-list-desc,
.mp-layout-simple .mp-list-action { display: none; }

@media (max-width: 992px) {
  .mp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mp-grid.cols-2, .mp-grid.cols-3, .mp-grid.cols-4 { grid-template-columns: 1fr; }
  .mp-list-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mp-list-action { width: 100%; }
  .mp-list-action .mp-btn { width: 100%; text-align: center; }
}

/* ============================================
   插件市场前台页（/site/market）
   ============================================ */
.market-page { padding: 0 0 80px; }
.market-head,
.news-head {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(720px 260px at 88% 10%, rgba(37, 99, 235, 0.09), transparent 70%),
    var(--bg-soft);
}
.market-head-inner,
.news-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.market-head-text,
.news-head-text { min-width: 0; }
.market-eyebrow,
.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.market-head-tags, .news-head-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 4px; }
.market-head-tags span, .news-head-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.market-head-tags svg, .news-head-tags svg { color: var(--primary); flex: none; }

.market-toolbar {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -26px 0 32px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.market-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.market-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.market-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.market-input::placeholder { color: #94a3b8; }
.market-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.market-selects { display: flex; gap: 10px; flex: 0 0 auto; }
.market-select-wrap { position: relative; }
.market-select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.market-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.market-select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.market-submit { height: 44px; padding: 0 24px; border-radius: 10px; white-space: nowrap; flex: 0 0 auto; }
.market-toolbar-meta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.market-reset { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.market-reset:hover { color: var(--primary); }
.market-toolbar-count {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.market-toolbar-count strong { color: var(--primary); font-size: 15px; font-weight: 700; }

.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .35);
}
.market-card-head { display: flex; align-items: center; gap: 12px; }
.market-card-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.18);
  transition: transform .25s;
}
.market-card:hover .market-card-icon { transform: scale(1.06) rotate(-2deg); }
.market-card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-card-icon.is-system { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 14px rgba(99, 102, 241, 0.22); }
.market-card-icon.is-module { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22); }
.market-card-icon.is-tool { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 6px 14px rgba(16, 185, 129, 0.22); }
.market-card-icon.is-theme { background: linear-gradient(135deg, #db2777, #f472b6); box-shadow: 0 6px 14px rgba(219, 39, 119, 0.2); }
.market-card-icon.is-hook { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 6px 14px rgba(217, 119, 6, 0.2); }
.market-card-icon.is-widget { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 6px 14px rgba(124, 58, 237, 0.22); }
.market-card-icon.is-storage { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 6px 14px rgba(8, 145, 178, 0.2); }
.market-card-heading { min-width: 0; }
.market-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-card-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.market-card-version { color: var(--muted); }
.market-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.market-type-tag.is-system { background: #eef2ff; color: #4f46e5; }
.market-type-tag.is-module { background: #eff6ff; color: #2563eb; }
.market-type-tag.is-tool { background: #ecfdf5; color: #059669; }
.market-type-tag.is-theme { background: #fdf2f8; color: #db2777; }
.market-type-tag.is-hook { background: #fffbeb; color: #d97706; }
.market-type-tag.is-widget { background: #f5f3ff; color: #7c3aed; }
.market-type-tag.is-storage { background: #ecfeff; color: #0891b2; }
.market-card-desc {
  min-height: 4.5em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.market-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; font-size: 12px; color: var(--muted); }
.market-meta-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.market-meta-item svg { color: #94a3b8; flex: none; }
.market-meta-item.is-rating svg { color: #f59e0b; }
.market-meta-author { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.market-card:hover .market-card-more { background: var(--primary); color: #fff; }
.market-card-more svg { transition: transform .2s; }
.market-card:hover .market-card-more svg { transform: translateX(3px); }

.market-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px 0; text-align: center; color: var(--muted); }
.market-empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--bg-soft);
  color: #cbd5e1;
}
.market-empty p { font-size: 15px; }
.market-empty-btn { padding: 10px 22px; border-radius: 10px; font-size: 14px; }
.market-pagination { margin-top: 48px; }

.market-detail-page { padding: 0 0 80px; }
.market-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 260px at 10% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(520px 240px at 90% 100%, rgba(124, 58, 237, 0.06), transparent 70%),
    var(--bg-soft);
  padding: 34px 0 56px;
}
.market-detail-hero-inner,
.market-detail-main { max-width: 960px; margin: 0 auto; }
.market-detail-head { display: flex; align-items: center; gap: 28px; }
.market-detail-icon {
  position: relative;
  width: 96px; height: 96px; flex: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-size: 40px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
}
.market-detail-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-detail-icon.is-system { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.market-detail-icon.is-module { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.market-detail-icon.is-tool { background: linear-gradient(135deg, #059669, #10b981); }
.market-detail-icon.is-theme { background: linear-gradient(135deg, #db2777, #f472b6); }
.market-detail-icon.is-hook { background: linear-gradient(135deg, #d97706, #f59e0b); }
.market-detail-icon.is-widget { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.market-detail-icon.is-storage { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.market-detail-info { min-width: 0; }
.market-detail-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.market-detail-version {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line); font-weight: 600; color: var(--text);
}
.market-detail-author { color: var(--muted); }
.market-detail-title { font-size: 36px; font-weight: 800; line-height: 1.3; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 20px; }
.market-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.market-detail-actions .btn { padding: 11px 22px; border-radius: 10px; font-size: 14px; }
.market-download-disabled {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.market-btn-secondary { border: 1px solid var(--line); background: #fff; color: var(--text); }
.market-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.market-detail-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.market-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-left: 1px solid var(--line); }
.market-stat:first-child { border-left: 0; }
.market-stat-label { font-size: 12px; color: var(--muted); }
.market-stat-value { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.3; }

.market-detail-body { margin-top: 32px; }
.market-detail-section {
  margin-bottom: 20px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.market-detail-section h2 { position: relative; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 18px; padding-left: 14px; }
.market-detail-section h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), #7c3aed); }
.market-detail-description { font-size: 15px; line-height: 1.9; color: var(--text); }
.market-version-list { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 26px; }
.market-version-list::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.market-version-item { position: relative; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.market-version-item::before { content: ''; position: absolute; left: -26px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.market-version-item.is-latest { background: #fff; border-color: rgba(37, 99, 235, .28); box-shadow: 0 4px 14px rgba(37, 99, 235, .08); }
.market-version-item.is-latest::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.market-version-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink); }
.market-version-head strong { font-size: 15px; }
.market-version-latest { padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; }
.market-version-date { font-size: 12px; color: var(--muted); }
.market-version-log { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.market-detail-back { margin-top: 8px; text-align: center; }
.market-detail-back .btn { padding: 11px 24px; border-radius: 10px; font-size: 14px; }

@media (max-width: 992px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .market-page { padding: 0 0 56px; }
  .market-head, .news-head { padding: 40px 0; }
  .market-head-inner, .news-head-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .market-head-tags, .news-head-tags { padding-bottom: 0; gap: 8px; }
  .market-head-tags span, .news-head-tags span { padding: 7px 12px; font-size: 12px; }
  .market-toolbar { flex-direction: column; align-items: stretch; gap: 10px; margin: -16px 0 24px; padding: 12px; }
  .market-search { flex: 1 1 auto; width: 100%; min-width: 0; }
  .market-selects { width: 100%; gap: 8px; }
  .market-select-wrap { flex: 1 1 0; }
  .market-select { width: 100%; }
  .market-submit { width: 100%; }
  .market-toolbar-meta { margin-left: 0; width: 100%; justify-content: flex-end; padding: 2px 2px 0; }
  .market-toolbar-count { padding-left: 0; border-left: 0; }
  .market-grid { grid-template-columns: 1fr; gap: 18px; }
  .market-card { padding: 20px; }
  .market-detail-page { padding: 0 0 56px; }
  .market-detail-hero { padding: 26px 0 38px; }
  .market-detail-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .market-detail-icon { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; }
  .market-detail-title { font-size: 28px; margin-bottom: 16px; }
  .market-detail-stats { grid-template-columns: repeat(2, 1fr); margin-top: -18px; border-radius: 16px; }
  .market-stat { padding: 14px 16px; border-top: 1px solid var(--line); }
  .market-stat:nth-child(-n+2) { border-top: 0; }
  .market-stat:nth-child(odd) { border-left: 0; }
  .market-detail-body { margin-top: 24px; }
  .market-detail-section { padding: 22px; }
}
