/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f7f8fa;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #7B61FF; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
em, i { font-style: normal; }

:root {
  --primary: #7B61FF;
  --primary-dark: #5B43D9;
  --primary-light: #F1EDFF;
  --orange: #FF7A45;
  --red: #FF4757;
  --green: #2ECC71;
  --gray-text: #666;
  --gray-light: #999;
  --border: #eee;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ========== 顶部 Banner ========== */
.top-banner {
  background: linear-gradient(90deg, #2c1e6e 0%, #5b3fb6 30%, #b94ce8 70%, #6f3fc0 100%);
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.top-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,200,100,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.banner-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.banner-icon {
  font-size: 18px;
  color: #ffd700;
}
.banner-title {
  font-weight: 600;
  font-size: 18px;
  background: linear-gradient(90deg, #ffd700 0%, #ffaa00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.banner-divider { opacity: 0.5; }
.banner-text em { color: #ffd700; font-weight: 600; }
.banner-btn {
  background: linear-gradient(90deg, #ff7a45 0%, #ff5722 100%);
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(255,122,69,0.4);
  transition: transform .2s, box-shadow .2s;
}
.banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,122,69,0.5);
  color: #fff !important;
}

/* ========== 主导航 ========== */
.site-header {
  background: #fff;
  height: 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.logo-text {
  color: #5B43D9;
  font-size: 22px;
  font-weight: 800;
}
.logo-sub {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-link {
  font-size: 15px;
  color: #333;
  position: relative;
  padding: 8px 0;
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.header-right {
  display: none;  /* 暂不展示登录/注册 */
}
/* 汉堡菜单按钮（默认隐藏，移动端显示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 4px 8px;
}
.text-link { color: #666; }
.text-link:hover { color: var(--primary); }
.divider { color: #ddd; }

/* ========== 主容器 ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ========== 区块标题 ========== */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

/* ========== 精选推荐 ========== */
.featured { margin-bottom: 40px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.theme-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.theme-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 16px;
}
.theme-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
}
.theme-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s;
}
.theme-card:hover .theme-cover-bg {
  transform: scale(1.05);
}
.theme-cover-content {
  position: relative;
  z-index: 1;
}
.theme-cover-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.theme-cover-subtitle {
  font-size: 13px;
  opacity: 0.95;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.theme-cover-mock {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 80px;
  height: 140px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 0;
  overflow: hidden;
}
.theme-cover-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
}
.theme-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  color: #fff;
  z-index: 2;
}
.theme-info {
  padding: 12px 14px;
}
.theme-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-tag-text {
  color: var(--red);
  font-size: 12px;
  font-weight: 500;
}
.theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-text);
}
.theme-author {
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-author-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.theme-stats {
  display: flex;
  gap: 8px;
  color: var(--gray-light);
}
.theme-stat {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ========== 全部主题 ========== */
.all-themes { margin-bottom: 40px; }
.filter-bar {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
}
.filter-row + .filter-row {
  border-top: 1px dashed var(--border);
}
.filter-label {
  width: 80px;
  color: var(--gray-text);
  font-size: 14px;
  flex-shrink: 0;
  padding-top: 6px;
}
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.filter-btn {
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--gray-text);
  background: transparent;
  border: 1px solid transparent;
  transition: all .2s;
}
.filter-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.filter-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.color-filter .filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
}
.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ========== 联系我们卡片 ========== */
.contact-section { margin: 40px 0; }
.contact-card {
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.contact-item:hover { transform: translateY(-2px); }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.contact-value small {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 400;
  margin-left: 4px;
}
.contact-extra {
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.contact-extra p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}
.contact-extra strong {
  color: var(--primary);
  margin-right: 4px;
}
.contact-cta {
  text-align: center;
  padding: 24px 0;
  background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
  border-radius: 8px;
  border: 1px dashed var(--primary);
  display: none;  /* 暂不展示「在线留言」卡片 */
}
.contact-cta h4 {
  font-size: 20px;
  color: #222;
  margin-bottom: 8px;
}
.contact-cta p {
  color: var(--gray-text);
  margin-bottom: 16px;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 10px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,97,255,0.4);
  color: #fff !important;
}

/* ========== 页脚 ========== */
.site-footer {
  background: #1a1a2e;
  color: #b0b0c0;
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: #8888a0;
  line-height: 2;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2a3e;
  padding: 20px 24px;
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #8888a0;
}

/* ========== 浮动咨询 ========== */
.float-chat {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
}
.chat-card {
  width: 120px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.chat-avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, #ffd1dc 0%, #ff9eb5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}
.chat-phone {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 4px;
  white-space: nowrap;
}
.chat-qq {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 12px;
  white-space: nowrap;
}
.chat-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 6px 0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}
.chat-btn-alt {
  background: #fff;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

/* ========== 详情页 ========== */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--primary); }
.bc-sep { margin: 0 8px; color: #ccc; }
.bc-current { color: #222; font-weight: 500; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.detail-main {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.detail-cover {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.cover-image {
  width: 280px;
  height: 200px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #3B5B7E;
  box-shadow: var(--shadow-md);
}
.cover-info { flex: 1; }
.cover-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-tag {
  display: inline-block;
  background: linear-gradient(90deg, #ffb800 0%, #ff8a00 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.cover-desc {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.cover-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-item b {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 400;
}
.meta-item i {
  font-size: 14px;
  color: #222;
  font-weight: 500;
}
.cover-actions {
  display: flex;
  gap: 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
  transition: all .2s;
}
.action-btn:hover {
  background: var(--primary);
  color: #fff;
}
.action-btn.action-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.action-btn.action-primary:hover {
  box-shadow: 0 4px 12px rgba(123,97,255,0.4);
  color: #fff;
}

.detail-section { margin-bottom: 32px; }
.section-h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.phone-screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.phone-mock {
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.phone-mock-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.phone-mock-header {
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  margin-bottom: 8px;
}
.phone-mock-banner {
  flex: 1;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.phone-mock-banner-text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.phone-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 80px;
}
.phone-mock-item {
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
}

.detail-banner {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c3e50 0%, #4a6378 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.detail-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.detail-banner-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.time {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.b-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-style: normal;       /* h1 默认 italic，去掉 */
}
.b-sub {
  font-size: 18px;
  opacity: 0.9;
}

.detail-text {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}
.detail-text p {
  margin-bottom: 16px;
}
.detail-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 20px 0 12px;
}
.detail-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.detail-text li {
  list-style: disc;
  margin-bottom: 6px;
}

.detail-contact {
  background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}
.dc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.dc-item-full { grid-column: 1 / -1; }
.dc-label {
  color: var(--gray-text);
  font-size: 13px;
  flex-shrink: 0;
}
.dc-value {
  color: #222;
  font-weight: 600;
  font-size: 14px;
}
.dc-value small {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 400;
  margin-left: 4px;
}
.dc-cta {
  text-align: center;
  padding: 16px;
  background: var(--primary-light);
  border-radius: 8px;
  display: none;  /* 暂不展示详情页底部「在线留言」 */
}
.dc-cta p {
  color: #555;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ========== 侧边栏 ========== */
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.creator-card, .related-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.creator-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.creator-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffd1dc 0%, #ff9eb5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.creator-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}
.creator-id {
  font-size: 12px;
  color: var(--gray-light);
}
.creator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 2px;
}
.creator-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.creator-btn {
  flex: 1;
  padding: 8px 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: inline-block;
}
.creator-btn-alt {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.creator-time {
  font-size: 12px;
  color: var(--gray-light);
  text-align: center;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.related-item:hover { background: var(--primary-light); }
.related-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.related-meta {
  flex: 1;
  min-width: 0;
}
.related-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-stats {
  font-size: 11px;
  color: var(--gray-text);
  display: flex;
  gap: 8px;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .featured-grid, .themes-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .featured-grid, .themes-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .featured-grid, .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 16px; }
  .detail-cover { grid-template-columns: 1fr; }
  .cover-image { width: 100%; }
  .phone-screens { grid-template-columns: repeat(2, 1fr); }
  .dc-grid { grid-template-columns: 1fr; }

  /* 顶部 Banner：去掉固定高度，让其自动换行；缩字号以适应窄屏 */
  .top-banner { height: auto; padding: 8px 0; }
  .banner-inner { padding: 0 16px; gap: 12px; }
  .banner-left { gap: 8px; font-size: 12px; flex: 1; min-width: 0; }
  .banner-title { font-size: 13px; }
  .banner-text { font-size: 12px; }
  .banner-btn { padding: 6px 12px; font-size: 13px; flex-shrink: 0; }

  /* 浮动咨询：H5 固定在视口 4/5 下面（约 80% 高度处），滚动时位置不变 */
  .float-chat {
    top: calc(80vh - 56px);  /* 80% 高度下，卡片自身再下移 56px，落在 80% 区域下方 */
    left: 12px;
    right: 12px;
    bottom: auto;
    transform: none;
    width: auto;
    overflow: visible;
  }
  .chat-card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;            /* 容器内水平居中，绝对不会溢出视口 */
    padding: 8px 10px;
    gap: 8px;
    text-align: left;
    cursor: pointer;
  }
  .chat-avatar { width: 32px; height: 32px; font-size: 20px; margin: 0; flex-shrink: 0; line-height: 32px; }
  .chat-info { flex: 1; min-width: 0; overflow: hidden; }
  .chat-name { margin-bottom: 2px; font-size: 13px; }
  .chat-phone, .chat-qq { font-size: 11px; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chat-actions { display: flex; flex-direction: row; gap: 4px; flex-shrink: 0; }
  .chat-actions .btn { padding: 4px 8px; font-size: 11px; white-space: nowrap; }

  /* 折叠按钮：右侧 ›/‹ */
  .chat-toggle {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin-left: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
  }

  /* 折叠态：整个卡片只显示头像+切换按钮，靠右显示 */
  .float-chat.collapsed {
    left: auto;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
  }
  .float-chat.collapsed .chat-card {
    padding: 6px;
    gap: 4px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
  }
  .float-chat.collapsed .chat-info,
  .float-chat.collapsed .chat-actions { display: none; }

  /* 汉堡菜单：700px 以下显示按钮，导航变成下拉面板 */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    flex-direction: column;
    gap: 0;
    padding: 6px 24px;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link.active::after { display: none; }
}
@media (max-width: 480px) {
  .featured-grid, .themes-grid { grid-template-columns: 1fr; }
  .container { padding: 20px 16px; }
}

/* ========================================
   SEO 描述区（详情页底部）
   ======================================== */
.seo-content, .seo-faq {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* 行业聚合区块（SEO 长尾） */
.industry-section { margin-top: 36px; }
.industry-section .section-sub {
  color: #888;
  font-size: 14px;
  margin: -10px 0 18px;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.industry-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 18px;
  color: #333;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.industry-card:hover {
  transform: translateY(-2px);
  border-color: #6b46c1;
  box-shadow: 0 6px 18px rgba(107,70,193,0.15);
}
.industry-card h3 {
  font-size: 16px;
  color: #6b46c1;
  margin-bottom: 4px;
}
.industry-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.industry-card small {
  font-size: 12px;
  color: #999;
}
.seo-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #6b46c1;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #6b46c1;
}
.seo-h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #333;
}
.seo-desc {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}
.seo-scenes, .seo-features {
  padding-left: 20px;
  line-height: 1.9;
  color: #555;
  font-size: 14px;
}
.seo-scenes li, .seo-features li { margin: 4px 0; }

/* FAQ 折叠 */
.seo-faq-item {
  border-top: 1px solid #eee;
  padding: 12px 0;
}
.seo-faq-item summary {
  cursor: pointer;
  font-size: 15px;
  padding: 8px 0;
  list-style: none;
  color: #222;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::before {
  content: 'Q ';
  color: #6b46c1;
  font-weight: 700;
  margin-right: 6px;
}
.seo-faq-item[open] summary::before { content: 'A '; }
.seo-faq-answer {
  padding: 8px 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  background: #f9f8fd;
  border-radius: 6px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .seo-content, .seo-faq { padding: 18px 14px; margin: 18px 16px 0; }
  .seo-h2 { font-size: 18px; }
  .seo-desc { font-size: 14px; }
}
