/* ============================================
   企叮咚 SaaS 品牌设计系统 · qd-system.css
   全场景响应式 · 玻璃拟态 + 3D 科技风
   版本：2.0.0
   ============================================ */

/* ============================================
   设计令牌 · CSS 自定义属性
   ============================================ */
:root {
  --qd-primary: #5B6EF5;
  --qd-primary-light: #7B8DF7;
  --qd-accent: #A551E3;
  --qd-accent-deep: #7C3AED;
  --qd-surface: rgba(255,255,255,0.65);
  --qd-surface-hover: rgba(255,255,255,0.85);
  --qd-bg-start: #E8F0FE;
  --qd-bg-end: #F0F4FF;
  --qd-text-main: #162447;
  --qd-text-secondary: #4A5B7A;
  --qd-border: rgba(255,255,255,0.4);
  --qd-bg-noise: rgba(255,255,255,0.35);

  --qd-space-xs: 0.25rem;
  --qd-space-sm: 0.5rem;
  --qd-space-md: 1rem;
  --qd-space-lg: 1.5rem;
  --qd-space-xl: 2rem;
  --qd-space-2xl: 3rem;
  --qd-space-3xl: 4rem;
  --qd-space-4xl: 6rem;

  --qd-font: 'Inter', system-ui, -apple-system, sans-serif;
  --qd-font-size-body: 1.1rem;
  --qd-font-size-h1: clamp(2.5rem, 6vw, 4.5rem);
  --qd-font-size-h2: clamp(2rem, 4vw, 3rem);
  --qd-font-size-h3: 1.6rem;
  --qd-font-size-small: 0.95rem;

  --qd-radius-sm: 10px;
  --qd-radius-md: 18px;
  --qd-radius-lg: 24px;
  --qd-radius-full: 999px;

  --qd-shadow-glass: 0 20px 40px -12px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0,0,0,0.03);
  --qd-shadow-card: 0 25px 45px -15px rgba(91,110,245,0.15);
  --qd-shadow-nav: 0 8px 32px rgba(0,0,0,0.05);
  --qd-shadow-hover: 0 30px 55px -18px rgba(124,58,237,0.22);
  --qd-shadow-drop: 0 15px 30px rgba(0,0,0,0.08);

  --qd-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --qd-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --qd-duration-normal: 0.4s;
  --qd-duration-slow: 0.8s;
}

/* ============================================
   全局重置与基础排版
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--qd-font);
  background: linear-gradient(135deg, var(--qd-bg-start) 0%, var(--qd-bg-end) 100%);
  color: var(--qd-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 呼吸流光背景效果 */
@keyframes breatheFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }
  50% {
    background-position: 40% 30%, 60% 20%, 20% 70%, 80% 80%;
    background-size: 140% 140%, 150% 150%, 130% 130%, 145% 145%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(91,110,245,0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(165,81,227,0.30) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,102,0,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(91,110,245,0.30) 0%, transparent 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: breatheFlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* 全局链接 */
a {
  text-decoration: none;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--qd-space-xl);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--qd-space-4xl) 0;
  position: relative;
}

/* 玻璃面板 */
.glass-panel {
  background: var(--qd-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-lg);
  box-shadow: var(--qd-shadow-glass);
}

/* ----- 导航系统（简化修复版）----- */
.qd-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 100;
  transition: all var(--qd-duration-normal) var(--qd-ease-out-expo);
}

.qd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: var(--qd-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--qd-radius-full);
  border: 1px solid var(--qd-border);
  box-shadow: var(--qd-shadow-nav);
  gap: 1.5rem;
  /* 关键：必须 visible，否则下拉被裁剪 */
  overflow: visible !important;
}

.qd-logo {
  margin-right: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--qd-primary), var(--qd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qd-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
}

.qd-nav-list {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  flex-wrap: nowrap;
  white-space: nowrap;
  /* 绝对不要写 overflow: hidden */
}

/* 移除之前的 padding-bottom / margin-bottom，让 li 自然撑开 */
.qd-nav-list > li {
  position: relative;
}

.qd-nav-list a,
.qd-nav-list .nav-item-label {
  text-decoration: none;
  color: var(--qd-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.qd-nav-list a:hover,
.qd-nav-list .nav-item-label:hover {
  color: var(--qd-primary);
}

.qd-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--qd-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-drop);
  padding: 0.6rem;
  min-width: 150px;
  flex-direction: column;
  z-index: 110;
}

.qd-dropdown a {
  padding: 0.5rem 1rem;
  border-radius: var(--qd-radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}

.qd-dropdown a:hover {
  background: rgba(91,110,245,0.1);
}

/* 桌面端：悬停显示（仅当设备支持 hover） */
@media (hover: hover) and (pointer: fine) {
  .qd-nav-list li:hover > .qd-dropdown {
    display: flex;
  }
}

/* 移动端：通过 JS 添加 active-drop 类后显示 */
.qd-nav-list li.active-drop > .qd-dropdown {
  display: flex;
}

/* 宽屏/二维码下拉 */
.qd-dropdown-wide {
  min-width: 200px;
  padding: 1rem;
  text-align: center;
}

.qd-dropdown-wide img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.3rem;
}

.qd-dropdown-wide p {
  font-size: 0.8rem;
  color: var(--qd-text-secondary);
}

.qd-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--qd-primary);
  cursor: pointer;
}

/* 移动端菜单按钮显示 */
@media (max-width: 768px) {
  .qd-nav {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .qd-nav-inner {
    border-radius: 0 !important;
    padding: 0.6rem 1.2rem !important;
  }
  .qd-menu-toggle {
    display: block;
  }
  /* 移动端导航列表默认隐藏，由 JS 切换 active 类显示 */
  .qd-nav-list {
    display: none;
    position: absolute;
    top: 3.8rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--qd-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--qd-radius-md);
    padding: 1.5rem;
    box-shadow: var(--qd-shadow-nav);
  }
  .qd-nav-list.active {
    display: flex;
  }
}
/* ============================================
   通用排版与按钮
   ============================================ */
.section-title {
  text-align: center;
  font-size: var(--qd-font-size-h2);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  text-align: center;
  color: var(--qd-text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--qd-primary), var(--qd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--qd-primary) 0%, var(--qd-accent) 100%);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--qd-radius-full);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px -8px var(--qd-primary);
  transition: transform 0.3s var(--qd-ease-spring), box-shadow 0.3s;
  font-size: 1rem;
}

.qd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px -10px var(--qd-accent);
}

.qd-btn-outline {
  background: transparent;
  color: var(--qd-primary);
  border: 2px solid var(--qd-primary);
  box-shadow: none;
}

.qd-btn-outline:hover {
  background: var(--qd-primary);
  color: white;
}
.qd-nav-list {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  flex-wrap: nowrap;        /* 新增：强制不换行 */
  white-space: nowrap;      /* 新增：防止文字中途折行 */
/*   overflow: hidden;          *//* 隐藏溢出，避免横向滚动条 */
}
/* ============================================
   首屏布局
   ============================================ */
.hero-split {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-split .hero-content {
  flex: 1;
}

.hero-split .hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img,
.hero-visual video {
  max-width: 100%;
  height: auto;
  border-radius: var(--qd-radius-lg);
  box-shadow: var(--qd-shadow-card);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(91,110,245,0.12);
  color: var(--qd-primary);
  border-radius: var(--qd-radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: var(--qd-font-size-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--qd-text-secondary);
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 1rem;
  color: var(--qd-text-secondary);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ============================================
   卡片系统
   ============================================ */
.cards-row {
  display: flex;
  flex-wrap: nowrap;        /* 强制不换行 */
  gap: var(--qd-space-xl);
  margin-top: var(--qd-space-2xl);
  overflow-x: auto;         /* 万一屏幕过窄，出现横向滚动条作为后备 */
  -webkit-overflow-scrolling: touch;
}

/* 让每个卡片等宽且不收缩 */
.cards-row > .card-basic {
  flex: 1 0 0%;
  min-width: 0;
}

.card-basic {
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.4s var(--qd-ease-out-expo), box-shadow 0.4s;
  box-shadow: var(--qd-shadow-card);
}

.card-basic:hover {
  transform: translateY(-8px);
  box-shadow: var(--qd-shadow-hover);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* 左右分栏卡片 */
.split-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--qd-shadow-card);
  transition: all 0.4s;
}

.split-card.reverse {
  flex-direction: row-reverse;
}

.split-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--qd-shadow-hover);
}

.split-card .split-img {
  flex: 1;
  background: var(--qd-bg-noise);
  border-radius: var(--qd-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-card .split-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-card .split-content {
  flex: 1;
}

/* 三卡片营销赋能 */
.three-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--qd-space-xl);
  margin-top: var(--qd-space-2xl);
}

/* ============================================
   轮播组件
   ============================================ */
.qd-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--qd-radius-lg);
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  box-shadow: var(--qd-shadow-card);
}

.qd-carousel-track {
  display: flex;
  transition: transform 0.5s var(--qd-ease-out-expo);
}

.qd-carousel-slide {
  flex: 0 0 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.qd-carousel-slide img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--qd-radius-md);
}

.qd-carousel-caption {
  flex: 1;
  text-align: center;
}

.qd-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--qd-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--qd-primary);
  z-index: 2;
  transition: background 0.2s;
}

.qd-carousel-btn:hover {
  background: white;
}

.qd-carousel-prev {
  left: 1rem;
}

.qd-carousel-next {
  right: 1rem;
}

.qd-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.qd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(91,110,245,0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.qd-dot.active {
  background: var(--qd-primary);
}

/* 品牌双列轮播 */
.brand-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.brand-item {
  flex: 1 1 280px;
  max-width: 45%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.brand-item img {
  width: 220px;
  height: auto;
  border-radius: var(--qd-radius-md);
  object-fit: cover;
}

.brand-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.brand-item p {
  color: var(--qd-text-secondary);
  font-size: 0.95rem;
}

/* 案例滑动卡片 */
.case-scroll {
  display: flex;
  gap: var(--qd-space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.case-scroll::-webkit-scrollbar {
  display: none;
}

.case-scroll .case-card-mini {
  flex: 0 0 calc(25% - 1.5rem);
  min-width: 250px;
  scroll-snap-align: start;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  padding: 1.8rem;
  box-shadow: var(--qd-shadow-card);
}

/* ============================================
   时间轴
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--qd-primary), var(--qd-accent));
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  flex: 0 0 80px;
  text-align: center;
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--qd-primary), var(--qd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-content {
  flex: 1;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  padding: 1.5rem;
  box-shadow: var(--qd-shadow-card);
  margin: 0 2rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--qd-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91,110,245,0.2);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -6px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -6px;
}

.timeline-content p {
  font-size: 1rem;
  color: var(--qd-text-secondary);
  margin: 0;
}

/* ============================================
   页脚
   ============================================ */
.qd-footer {
  padding: 3rem 0 1.5rem;
  background: #000;
  color: #fff;
  margin-top: 3rem;
}

.qd-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.qd-footer a:hover {
  color: #fff;
}

.qd-footer .footer-grid {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.qd-footer .bottom-info {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   全宽展示区块
   ============================================ */
.section-full {
  position: relative;
  padding: var(--qd-space-4xl) var(--qd-space-xl);
  background: transparent;
}

.section-full .content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.section-full .content-wrap.reverse {
  flex-direction: row-reverse;
}

.section-full .text-col {
  flex: 1;
  min-width: 280px;
}

.section-full .text-col h3 {
  margin-bottom: 0.5rem;
}

.section-full .img-col {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.section-full .img-col img {
  width: 100%;
  max-width: 650px;
  min-width: 280px;
  height: auto;
  border-radius: var(--qd-radius-lg);
  box-shadow: var(--qd-shadow-card);
}

/* ============================================
   滚动动画
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--qd-ease-out-expo), transform 0.7s var(--qd-ease-out-expo);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   扩展页面样式 · 新闻中心 & 案例列表 & Tag & 文章详情
   ============================================ */

/* 新闻中心 & Tag Banner */
.news-hero,
.tag-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: center;
}

.news-hero h1,
.tag-hero h1 {
  font-size: var(--qd-font-size-h2);
  font-weight: 800;
  background: linear-gradient(135deg, var(--qd-primary), var(--qd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.news-hero .subtitle,
.tag-hero .subtitle {
  font-size: 1.15rem;
  color: var(--qd-text-secondary);
}

.tag-hero .hero-badge {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  background: rgba(255,102,0,0.12);
  color: #ff6600;
  border-radius: var(--qd-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 筛选标签 */
.news-tabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.news-tab,
.filter-tag {
  padding: 0.55rem 1.4rem;
  border-radius: var(--qd-radius-full);
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  color: var(--qd-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--qd-ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.news-tab:hover,
.filter-tag:hover {
  color: var(--qd-primary);
  border-color: var(--qd-primary);
  background: rgba(91,110,245,0.06);
}

.news-tab.active,
.filter-tag.active {
  background: var(--qd-primary);
  color: #fff;
  border-color: var(--qd-primary);
  font-weight: 600;
}

/* 新闻 & 案例列表布局 */
.news-layout,
.tag-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.news-main,
.tag-main {
  flex: 1;
  min-width: 0;
}

.news-sidebar,
.tag-sidebar {
  flex: 0 0 300px;
}

/* 通用卡片列表 */
.news-list,
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* 新闻卡片 & 文章卡片 */
.news-card,
.article-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  transition: all 0.35s var(--qd-ease-out-expo);
  text-decoration: none;
  color: inherit;
}

.news-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--qd-shadow-hover);
}

.news-card-img,
.article-card-img {
  flex: 0 0 200px;
  height: 130px;
  border-radius: var(--qd-radius-sm);
  overflow: hidden;
  background: var(--qd-bg-noise);
}

.news-card-img img,
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img,
.article-card:hover .article-card-img img {
  transform: scale(1.04);
}

.news-card-body,
.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-category,
.article-card-category {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(91,110,245,0.1);
  color: var(--qd-primary);
  border-radius: var(--qd-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.news-card h3,
.article-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.news-card p,
.article-card .excerpt {
  font-size: 0.9rem;
  color: var(--qd-text-secondary);
  line-height: 1.5;
}

.news-card-meta,
.article-card .meta {
  font-size: 0.8rem;
  color: var(--qd-text-secondary);
  opacity: 0.7;
}

/* 营销案例列表专属 */
.case-hero {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.case-hero .hero-badge {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  background: rgba(255,102,0,0.12);
  color: #ff6600;
  border-radius: var(--qd-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-hero h1 {
  font-size: var(--qd-font-size-h2);
  font-weight: 800;
  background: linear-gradient(135deg, var(--qd-primary), var(--qd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.case-hero .subtitle {
  font-size: 1.1rem;
  color: var(--qd-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  transition: all 0.35s var(--qd-ease-out-expo);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--qd-shadow-hover);
}

.case-card.hidden {
  display: none;
}

.case-card.filtering-out {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-card-img {
  width: 100%;
  height: 180px;
  border-radius: var(--qd-radius-sm);
  overflow: hidden;
  background: var(--qd-bg-noise);
  margin-bottom: 1rem;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-img img {
  transform: scale(1.04);
}

.case-card-category {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(91,110,245,0.1);
  color: var(--qd-primary);
  border-radius: var(--qd-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 0.6rem;
}

.case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.case-card .excerpt {
  font-size: 0.88rem;
  color: var(--qd-text-secondary);
  line-height: 1.55;
  flex: 1;
}

.case-card .meta {
  font-size: 0.78rem;
  color: var(--qd-text-secondary);
  opacity: 0.7;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Tag 统计条 */
.tag-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tag-stat-item {
  text-align: center;
  padding: 0.8rem 1.5rem;
  background: var(--qd-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  min-width: 120px;
}

.tag-stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--qd-primary);
}

.tag-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--qd-text-secondary);
  margin-top: 0.2rem;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--qd-radius-full);
  background: var(--qd-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--qd-border);
  color: var(--qd-text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-cloud a:hover {
  border-color: var(--qd-primary);
  color: var(--qd-primary);
  background: rgba(91,110,245,0.06);
}

.tag-cloud a.current-tag {
  background: var(--qd-primary);
  color: #fff;
  border-color: var(--qd-primary);
  font-weight: 600;
}

/* ============================================
   文章详情页
   ============================================ */
.breadcrumb {
  padding-top: 7rem;
  padding-bottom: 1rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--qd-text-secondary);
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--qd-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--qd-primary);
}

.breadcrumb-nav .separator {
  color: rgba(0,0,0,0.2);
}

.breadcrumb-nav .current {
  color: var(--qd-primary);
  font-weight: 500;
}

.article-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding-bottom: 3rem;
}

.article-main {
  flex: 1;
  min-width: 0;
}

.article-sidebar {
  flex: 0 0 310px;
  position: sticky;
  top: 120px;
}

.article-content {
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-lg);
  box-shadow: var(--qd-shadow-card);
  padding: 2.5rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.article-category {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(91,110,245,0.1);
  color: var(--qd-primary);
  border-radius: var(--qd-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.article-category:hover {
  background: rgba(91,110,245,0.2);
}

.article-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--qd-text-main);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--qd-text-secondary);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 正文内容区域 */
.article-body {
  font-size: 1.05rem;
  color: var(--qd-text-main);
  line-height: 1.6;
}

.article-body p {
  margin-bottom: 0.8rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin: 2rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--qd-primary);
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 0.5rem;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.article-body img[style*="width"],
.article-body img[style*="height"] {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(91,110,245,0.06) 0%, rgba(165,81,227,0.06) 100%);
  border: 1px solid rgba(91,110,245,0.15);
  border-radius: var(--qd-radius-md);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}

.highlight-box strong {
  color: var(--qd-primary);
}

.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tag {
  padding: 0.35rem 0.9rem;
  border-radius: var(--qd-radius-full);
  background: rgba(91,110,245,0.08);
  color: var(--qd-primary);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.2s;
}

.article-tag:hover {
  background: rgba(91,110,245,0.18);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--qd-text-secondary);
}

.share-btn:hover {
  border-color: var(--qd-primary);
  color: var(--qd-primary);
  background: rgba(91,110,245,0.06);
}

.article-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.article-nav a {
  flex: 1;
  min-width: 200px;
  padding: 1.2rem 1.5rem;
  background: var(--qd-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  text-decoration: none;
  color: var(--qd-text-main);
  transition: all 0.3s;
}

.article-nav a:hover {
  transform: translateY(-3px);
  box-shadow: var(--qd-shadow-hover);
}

.article-nav .nav-label {
  font-size: 0.78rem;
  color: var(--qd-text-secondary);
  margin-bottom: 0.3rem;
}

.article-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.related-section {
  margin-top: 2.5rem;
}

.related-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 1.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1.2rem;
  background: var(--qd-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--qd-shadow-hover);
}

.related-card .related-img {
  width: 100%;
  height: 120px;
  border-radius: var(--qd-radius-sm);
  overflow: hidden;
  background: var(--qd-bg-noise);
  margin-bottom: 0.8rem;
}

.related-card .related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--qd-text-main);
  line-height: 1.4;
}

/* 侧边栏通用卡片 */
.sidebar-card {
  padding: 1.5rem;
  background: var(--qd-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  box-shadow: var(--qd-shadow-card);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card ul li {
  margin-bottom: 0.7rem;
}

.sidebar-card ul li a {
  color: var(--qd-text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-card ul li a:hover {
  color: var(--qd-primary);
}

.sidebar-cta {
  text-align: center;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(91,110,245,0.08) 0%, rgba(165,81,227,0.08) 100%);
}

.sidebar-cta p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--qd-text-main);
  margin-bottom: 1rem;
}

/* 点赞收藏条 */
.like-collect-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0;
}

.like-btn,
.collect-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--qd-radius-full);
  border: 1px solid var(--qd-border);
  background: var(--qd-surface);
  color: var(--qd-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.like-btn:hover,
.collect-btn:hover {
  border-color: var(--qd-primary);
  color: var(--qd-primary);
}

.like-btn.liked {
  background: #ff6b81;
  color: #fff;
  border-color: #ff6b81;
}

.collect-btn.collected {
  background: #ffb347;
  color: #fff;
  border-color: #ffb347;
}

.like-count,
.collect-count {
  font-weight: 600;
}

/* 留言板块 */
.comment-section {
  margin-top: 3rem;
}

.comment-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.comment-form input,
.comment-form textarea {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  background: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-item {
  background: var(--qd-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--qd-shadow-card);
}

.comment-item .comment-author {
  font-weight: 600;
  color: var(--qd-primary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.comment-item .comment-time {
  font-size: 0.75rem;
  color: var(--qd-text-secondary);
  opacity: 0.7;
}

.comment-item .comment-body {
  font-size: 0.95rem;
  color: var(--qd-text-main);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: var(--qd-radius-sm);
  background: var(--qd-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--qd-border);
  color: var(--qd-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0 0.3rem;
}

.pagination a:hover {
  border-color: var(--qd-primary);
  color: var(--qd-primary);
  background: rgba(91,110,245,0.06);
}

.pagination .current {
  background: var(--qd-primary);
  color: #fff;
  border-color: var(--qd-primary);
  font-weight: 700;
}

/* ============================================
   弹窗样式
   ============================================ */
.popup-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup-card {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: var(--qd-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-lg);
  box-shadow: var(--qd-shadow-card);
  padding: 1.8rem;
  text-align: center;
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  color: var(--qd-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.popup-close:hover {
  background: var(--qd-primary);
  color: #fff;
  border-color: var(--qd-primary);
}

.popup-timer {
  font-size: 0.8rem;
  color: var(--qd-text-secondary);
  margin-bottom: 0.8rem;
}

.popup-image {
  margin-bottom: 1rem;
  border-radius: var(--qd-radius-md);
  overflow: hidden;
}

.popup-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.popup-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--qd-text-main);
  margin-bottom: 0.8rem;
}

.popup-meta {
  text-align: left;
  font-size: 0.95rem;
  color: var(--qd-text-secondary);
  margin-bottom: 1.2rem;
}

.popup-meta p {
  margin-bottom: 0.3rem;
}

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 1024px) {
  .cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .three-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-card {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .cards-row {
    flex-wrap: wrap;
    overflow-x: hidden;
  }
  .cards-row > .card-basic {
    flex: 1 1 auto;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--qd-space-lg);
  }
  .hero-split {
    flex-direction: column;
    padding-top: 6rem;
    text-align: center;
  }
  /* 移动端导航：非固定，仅汉堡 */
  .qd-nav {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .qd-nav-inner {
    border-radius: 0 !important;
    padding: 0.6rem 1.2rem !important;
  }
  .qd-nav-list {
    display: none;
    position: absolute;
    top: 3.8rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--qd-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--qd-radius-md);
    padding: 1.5rem;
    box-shadow: var(--qd-shadow-nav);
  }
  .qd-nav-list.active {
    display: flex;
  }
  .qd-menu-toggle {
    display: block;
  }
  .cards-row {
    grid-template-columns: 1fr 1fr;
  }
  .three-cards {
    grid-template-columns: 1fr;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-scroll .case-card-mini {
    flex: 0 0 80%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .news-layout,
  .tag-layout,
  .article-layout {
    flex-direction: column;
  }
  .news-sidebar,
  .tag-sidebar,
  .article-sidebar {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }
  .news-card,
  .article-card {
    flex-direction: column;
  }
  .news-card-img,
  .article-card-img {
    flex: 0 0 auto;
    height: 180px;
  }
  .article-content {
    padding: 1.5rem;
  }
  .section-full .content-wrap,
  .section-full .content-wrap.reverse {
    flex-direction: column;
  }
  .breadcrumb {
    padding-top: 1rem;
  }
  .like-collect-bar {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .brand-pair {
    flex-direction: column;
  }
  .brand-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cards-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   动效降级
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================
   案例部分移动端适配
   ============================================ */
@media (max-width: 768px) {
  /* 轮播内左右布局变为上下堆叠 */
  .qd-carousel-slide > div {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center;
  }

  /* 图片容器取消固定宽度，限制高度 */
  .qd-carousel-slide > div > div:first-child {
    flex: 1 1 auto !important;
    width: 100%;
    max-height: 220px;
    overflow: hidden;
  }

  .qd-carousel-slide > div > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 文字内容全宽 */
  .qd-carousel-slide > div > div:last-child {
    flex: 1 1 auto !important;
    width: 100%;
    text-align: center;
  }

  /* 案例滑动卡片宽度自适应 */
  .case-scroll .case-card-mini {
    flex: 0 0 80%;
    min-width: 250px;
  }
}
@media (max-width: 768px) {
  /* 痛点板块：移动端允许卡片换行 */
  .cards-row {
    flex-wrap: wrap !important;
    overflow-x: hidden !important;
  }
  .cards-row > .card-basic {
    flex: 1 1 auto !important;
    min-width: 220px !important;
  }
}
@media (max-width: 768px) {
  /* 首屏左右布局 → 上下堆叠 */
  .hero-split .container {
    flex-direction: column !important;
    gap: 2rem !important;
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-split .hero-content,
  .hero-split .hero-visual {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
  }

  /* 隐藏绝对定位的背景光效（可选，防止遮挡） */
  .hero-split > div[style*="position:absolute"] {
    display: none;
  }

  /* 按钮组间距微调 */
  .hero-split .hero-content > div[style*="display:flex"] {
    justify-content: center !important;
    gap: 1rem !important;
  }
}
@media (max-width: 768px) {
  /* 供应链实力板块：移动端改为自适应列数 */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    max-width: 100% !important;
    margin: 1.5rem auto 0 !important;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  
  .footer-grid > div {
    align-items: center;
  }

  .footer-grid img {
    margin: 0 auto;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
  }

  .footer-links li {
    width: auto;
  }
}
/* ============================================
   图片移动端自适应（修复长图溢出）
   ============================================ */
@media (max-width: 768px) {
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 如果长图在 hero 或特定容器中，可进一步限制 */
  .hero-split img,
  .case-hero img,
  .course-banner img {
    width: 100% !important;
    height: auto !important;
  }
}