/* ==========================================================================
   双十一企业数智化专区 · 专用样式
   ──────────────────────────────────────────────────────────────────────────
   仅服务 double11.html。设计令牌（--brand / --s-* / --r-* 等）沿用 style.css，
   本文件不重复定义，只新增专区自己的组件。

   配色原则（按评审意见重做）：
     全站只用「官网橙 --brand」一种强调色 + 中性灰阶，
     三个栏目靠 编号、细线、明暗底 区分，不再使用绿/蓝等产品色。
   ========================================================================== */

/* 高亮词：style.css 里 .hl 只在首页/内页横幅作用域内定义过颜色，
   本页面用自己的横幅结构，故在此补齐，否则高亮词不会变色 */
.d11-hero h1 .hl { color: var(--brand); }

/* ---------- 1. 活动主视觉（背景为视频 assets/img/s11-web.mp4） ---------- */
.d11-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 108px) clamp(48px, 7vw, 96px);
  /* 底色 + 封面帧兜底：视频未加载完、用户关闭动效、或浏览器不放自动播放时，
     首屏仍是完整画面，不会空成一块白 */
  background: #fff url("../img/s11-poster.jpg") center / cover no-repeat;
  overflow: hidden;
  min-height: clamp(320px, 26vw, 430px);
  display: flex;
  align-items: center;
}
.d11-hero .container { position: relative; z-index: 2; }

/* 背景视频本体 */
.d11-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* 视频内容偏右，居中裁切会把图标群切掉 */
  z-index: 0;
  pointer-events: none;
}
/* 左侧提亮遮罩：保证深色标题在任何一帧上都清晰可读 */
.d11-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 34%,
    rgba(255, 255, 255, 0.30) 58%,
    rgba(255, 255, 255, 0) 76%);
}

.d11-hero-grid { display: block; }
.d11-hero-copy { max-width: min(620px, 64%); }
.d11-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}
.d11-hero-copy .sec-desc { margin-top: var(--s-4); }

/* ---------- 2. 栏目锚点导航 ---------- */
.d11-anchor {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.d11-anchor ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0; padding: 10px 0;
  list-style: none;
}
.d11-anchor a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.d11-anchor a:hover { background: var(--brand-soft); color: var(--brand); }
.d11-anchor a i {
  font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--text-3);
  margin-left: auto; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.d11-anchor .no, .d11-tag .no {
  font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--brand);
}

/* ---------- 3. 栏目主体 ---------- */
.d11-sec { padding-block: clamp(52px, 6vw, 84px); background: #fff; }
.d11-sec--alt { background: var(--bg-soft); }
.d11-sec-head { max-width: 68ch; }

.d11-tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 var(--s-3);
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
}
.d11-sec .sec-title em { color: var(--brand); }

/* 价格卡：统一橙色强调，栏目之间不靠颜色区分 */
.d11-price {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-top: var(--s-5);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 28, 37, 0.06);
}
.d11-sec--alt .d11-price { background: #fff; }
.d11-price-main { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.d11-num {
  font-family: var(--ff-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--brand);
}
.d11-unit { font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; color: var(--text-2); }
.d11-price-name { margin: 0; font-size: clamp(15px, 1.7vw, 19px); font-weight: 800; color: var(--text); }
.d11-price-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.d11-price-note {
  grid-column: 1 / -1;
  margin: 0; padding-top: var(--s-3);
  border-top: 1px dashed var(--line-2);
  font-size: 13.5px; color: var(--text-2);
}
.d11-price-note b { color: var(--brand); }

/* 权益卡 */
.d11-card {
  display: flex; flex-direction: column;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.d11-sec--alt .d11-card { background: #fff; }
.d11-card:hover { box-shadow: 0 16px 40px rgba(23, 28, 37, 0.09); transform: translateY(-3px); border-color: var(--brand-100); }
.d11-card h3 {
  position: relative;
  margin: 0 0 var(--s-3);
  padding-bottom: 12px;
  font-size: 16.5px; font-weight: 800; color: var(--text); letter-spacing: -0.01em;
}
.d11-card h3::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px;
  background: var(--brand);
}
.d11-card .pain { margin: 0 0 4px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.d11-card .card-list { margin-top: var(--s-3); }
.d11-card .card-list li { font-size: 14px; color: var(--text); }
.d11-card .card-list b { color: var(--brand); }
.ssy a img{height: 50px;width: auto;}
/* 截止 + 免费提供 */
.d11-foot {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.d11-sec--alt .d11-foot { background: #fff; }
.d11-deadline {
  margin: 0; padding-left: 14px;
  border-left: 3px solid var(--brand);
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.d11-deadline b { color: var(--brand); font-size: 20px; margin-left: 6px; }
.d11-free-lead { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--text); }

/* ---------- 4. 统一咨询 ---------- */
.d11-cta { padding-block: clamp(48px, 6vw, 78px); background: var(--ink); color: var(--text-inv); }
.d11-cta-box {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}
.d11-cta-qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: #fff;
}
.d11-cta-qr img { display: block; width: 150px; height: 150px; }
.d11-cta-qr-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.d11-cta-text h2 { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.d11-cta-text p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--text-inv-2); max-width: 62ch; }
.d11-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.d11-cta .btn-line { border-color: rgba(255, 255, 255, 0.32); color: #fff; background: transparent; }
.d11-cta .btn-line:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- 5. 响应式 ---------- */
@media (max-width: 1000px) {
  .d11-hero-copy { max-width: 100%; }
  .d11-hero-copy .sec-desc { max-width: 62ch; }
  .d11-price { grid-template-columns: 1fr; }
  .d11-foot { grid-template-columns: 1fr; align-items: start; }
  .d11-deadline { white-space: normal; }
  .d11-cta-box { grid-template-columns: 1fr; justify-items: start; }
  /* 窄屏下视频被 cover 裁切，把取景位往图标群方向推，避免只剩一片白 */
  .d11-hero-bg { object-position: 70% 50%; }
  /* 遮罩改为上浅下深，窄屏文案压在视频中部也能读清 */
  .d11-hero::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.62) 52%,
      rgba(255, 255, 255, 0.28) 100%);
  }
}

@media (max-width: 720px) {
  .d11-anchor ol { grid-template-columns: 1fr; gap: 2px; }
  .d11-anchor a i { display: none; }
  .g-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .d11-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
  .d11-cta-qr { align-self: center; }
  .d11-hero { padding-block: clamp(44px, 14vw, 68px) clamp(40px, 12vw, 60px); }
}

/* 尊重系统的减少动效偏好：视频不播，首屏退回静态封面帧 */
@media (prefers-reduced-motion: reduce) {
  .d11-card, .d11-card:hover { transition: none; transform: none; }
  .d11-hero-bg { display: none; }
}

/* ---------- 6. 页脚浮层溢出修正（仅本页面内生效，不改 style.css） ----------
   style.css 第 1659 行已把窄屏的 .social-pop 改为左对齐，但最右侧一项
   （宽 216px）仍会顶出视口约 12px，导致整页出现横向滚动条。
   这里让最后一项改为右对齐展开。同样的修正建议在 style.css 统一处理，
   那样官网其余页面能一起受益。 */
@media (max-width: 720px) {
  .d11 .site-footer .social:last-child .social-pop {
    left: auto; right: 0;
    transform: translate(0, 8px);
  }
  .d11 .site-footer .social:last-child:hover .social-pop,
  .d11 .site-footer .social:last-child:focus-within .social-pop,
  .d11 .site-footer .social:last-child.is-open .social-pop {
    transform: translate(0, 0);
  }
  .d11 .site-footer .social:last-child .social-pop::after {
    left: auto; right: 22px;
    transform: translateX(50%) rotate(45deg);
  }
}
