/* ==========================================================================
   360 软件管家「软件宝库」界面还原（纯 HTML/CSS，无图片）
   --------------------------------------------------------------------------
   设计基准：1080 × 680 px
   缩放原理：容器宽度 / 67.5 = 1em（因为 1080/16 = 67.5）
             所以内部所有尺寸都用 em 写，= 设计 px / 16，
             容器一变宽，整个界面等比缩放，永不溢出。
   ========================================================================== */

.hero .hero-visual.sm-shot {
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1080 / 680;
  padding: 0;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 35, 60, .10), 0 28px 60px rgba(15, 26, 43, .16);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: auto;
  color: #1f2329;
  line-height: 1.4;
}
/* 缩放层：容器宽度的 1/67.5 —— cqw 只认祖先容器，所以必须单独一层 */
.sm-scaler {
  width: 100%;
  height: 100%;
  font-size: calc(100cqw * 16 / 1080);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: auto;
  color: #1f2329;
  line-height: 1.4;
}
/* 不支持 cqw 的浏览器：退回固定字号，靠 overflow 裁切，不破版 */
@supports not (font-size: calc(100cqw * 1)) {
  .sm-scaler { font-size: 7.5px; }
}

.sm-stage {
  width: 67.5em;
  height: 42.5em;
  display: flex;
  background: #fff;
}
/* 自带盒模型，不依赖页面全局重置（保证与首页渲染一致） */
.sm-stage, .sm-stage * { box-sizing: border-box; }

/* ======================= 左侧栏 ======================= */
.sm-side {
  width: 8.5em;
  flex: none;
  background: #fff;
  border-right: 1px solid #f0f2f5;
  padding: .6em 0 0;
  display: flex;
  flex-direction: column;
}
.sm-brand {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: 0 .7em .9em 1em;
  white-space: nowrap;
}
.sm-brand-logo {
  width: 1.15em; height: 1.15em; flex: none;
  border-radius: .3em;
  background: linear-gradient(150deg, #35d16b, #0faa45);
  display: flex; align-items: center; justify-content: center;
}
.sm-brand-logo svg { width: .8em; height: .8em; color: #fff; }
.sm-brand-name { font-size: .8125em; font-weight: 700; color: #2b3038; letter-spacing: .2px; }

.sm-group { font-size: .6875em; color: #a2a9b3; padding: .25em .8em .5em 2.1em; }

.sm-nav { display: flex; flex-direction: column; gap: .1em; padding: 0 .55em 0 1.45em; }
.sm-nav-item {
  display: flex; align-items: center; gap: .7em;
  height: 2.25em; padding: 0 .7em;
  border-radius: .4em;
  font-size: .8125em; color: #3c424c;
  white-space: nowrap;
}
.sm-nav-item svg { width: 1em; height: 1em; flex: none; color: #6b7280; }
.sm-nav-item.on { background: #1aad4b; color: #fff; font-weight: 700; }
.sm-nav-item.on svg { color: #fff; }
.sm-badge {
  margin-left: auto; flex: none;
  background: #ff5b34; color: #fff;
  font-size: .7em; font-weight: 700; font-style: normal; line-height: 1;
  padding: .18em .38em; border-radius: .55em;
}
.sm-nav-gap { height: .8em; }

/* ======================= 右侧主区 ======================= */
.sm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }

/* 顶栏 */
.sm-topbar {
  height: 3.75em; flex: none;
  display: flex; align-items: center;
  padding: 0 .9em 0 3.45em;
  gap: .75em;
}
.sm-back {
  width: 1.55em; height: 1.55em; flex: none;
  border-radius: 50%; background: #f2f4f7;
  display: flex; align-items: center; justify-content: center;
}
.sm-back svg { width: .75em; height: .75em; color: #6b7280; }
.sm-search {
  width: 13.55em; height: 1.65em; flex: none;
  margin-left: 2.6em;
  border-radius: 1em; background: #f2f4f7;
  display: flex; align-items: center;
  padding: 0 .75em;
  color: #9aa1ab;
  white-space: nowrap; overflow: hidden;
}
.sm-search-txt { font-style: normal; font-size: .6875em; }
.sm-search svg { width: .95em; height: .95em; margin-left: auto; flex: none; color: #9aa1ab; }
.sm-user { margin-left: auto; display: flex; align-items: center; gap: .4em; font-size: .75em; color: #5d646f; }
.sm-avatar {
  width: 1.5em; height: 1.5em; flex: none; border-radius: 50%;
  background: #eceff3; display: flex; align-items: center; justify-content: center;
}
.sm-avatar svg { width: .9em; height: .9em; color: #9aa1ab; }
.sm-winicons { display: flex; align-items: center; gap: 1.1em; margin-left: .6em; }
.sm-winicons svg { width: .9em; height: .9em; color: #6b7280; }

/* 内容滚动区 */
.sm-content {
  flex: 1; min-height: 0;
  overflow: hidden;
  padding: 1.12em 2.1em 0 4.6em;
}
.sm-h2 { font-size: 1.0625em; font-weight: 700; color: #1f2329; margin: 0 0 .45em; }
.sm-h2.gap { margin-top: 1.75em; }
.sm-h2.tail { margin-top: 1.35em; }

/* ---------- 三张大促卡片 ---------- */
.sm-cards { display: flex; gap: 1.05em; }
.sm-card {
  width: 16.0625em; flex: none;
  border-radius: .5em; overflow: hidden;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 8px rgba(20, 35, 60, .07);
  background: #fff;
  height: 15.5625em;
  display: flex; flex-direction: column;
}
.sm-art { height: 11em; flex: none; position: relative; overflow: hidden; }

/* 卡 1：360录屏 */
.sm-art--rec { background: linear-gradient(135deg, #23c9a8 0%, #12b3c6 55%, #2bc7e8 100%); }
.sm-art--rec .t1 { position: absolute; z-index: 2; left: 6.3%; top: 6.4%; font-size: 1.0625em; font-weight: 700; color: #fff; letter-spacing: .3px; }
.sm-art--rec .t2 { position: absolute; z-index: 2; left: 6.3%; top: 20.9%; font-size: .9375em; color: rgba(255,255,255,.94); }
.sm-win {
  position: absolute; left: 1.1em; top: 3.7em; width: 9.4em; height: 6.2em;
  border-radius: .45em; background: linear-gradient(160deg,#eafaf7,#d6f2f6);
  border: .07em solid rgba(255,255,255,.85);
  box-shadow: 0 .4em 1.2em rgba(6,80,90,.22);
  overflow: hidden;
}
.sm-win-bar { height: .85em; background: rgba(255,255,255,.75); display: flex; align-items: center; gap: .22em; padding: 0 .35em; }
.sm-win-bar i { width: .22em; height: .22em; border-radius: 50%; background: #b9d7d9; display: block; }
.sm-ring {
  position: absolute; left: 50%; top: 58%; width: 3.1em; height: 3.1em;
  margin: -1.55em 0 0 -1.55em; border-radius: 50%;
  border: .28em solid #1fb9d8;
}
.sm-ring::after { content: ""; position: absolute; inset: .55em; border-radius: 50%; background: rgba(31,185,216,.16); }
.sm-hd {
  position: absolute; right: .55em; top: .8em;
  background: #fff; color: #12a3c4; font-size: .875em; font-weight: 800;
  padding: .1em .4em; border-radius: .2em; letter-spacing: .5px;
}

/* 卡 2：金舟格式工厂 */
.sm-art--conv { background: linear-gradient(150deg, #fff6e8 0%, #ffe9d2 60%, #ffe2c6 100%); }
.sm-art--conv .pill {
  position: absolute; z-index: 2; left: 6.3%; top: 6.4%;
  background: #fff; color: #f08a2e; font-size: .6875em; font-weight: 700;
  padding: .25em .5em; border-radius: .8em;
}
.sm-art--conv .t1 { position: absolute; z-index: 2; left: 6.3%; top: 22.7%; font-size: .9375em; font-weight: 700; color: #e2700c; }
.sm-art--conv .t2 { position: absolute; z-index: 2; left: 6.3%; top: 37.3%; font-size: .75em; color: #6b5330; }
.sm-monitor {
  position: absolute; right: -.9em; top: 1.2em; width: 7em; height: 6.2em;
  border-radius: .5em; background: linear-gradient(160deg,#fff,#f3f6fa);
  border: .09em solid #e2e8f0;
  box-shadow: 0 .35em 1em rgba(150,110,70,.16);
  overflow: hidden;
}
.sm-monitor-bar { height: .7em; background: #f0f3f7; display: flex; align-items: center; gap: .2em; padding: 0 .3em; }
.sm-monitor-bar i { width: .2em; height: .2em; border-radius: 50%; background: #cfd6e0; display: block; }
.sm-file {
  position: absolute; left: .7em; top: 1.5em; width: 2.6em; height: 3.2em;
  border-radius: .25em; background: #fff; border: .08em solid #e5cfae;
  box-shadow: 0 .2em .5em rgba(150,110,70,.14);
}
.sm-file::before { content: ""; position: absolute; right: 0; top: 0; border-width: 0 0 .75em .75em; border-style: solid; border-color: transparent transparent #f6e3c8 transparent; }
.sm-file::after { content: ""; position: absolute; left: .35em; top: 1.15em; width: 1.9em; height: .13em; background: #eedcc0; box-shadow: 0 .42em 0 #eedcc0, 0 .84em 0 #eedcc0; }
.sm-file2 {
  position: absolute; left: 2.6em; top: 2.4em; width: 2.6em; height: 3.2em;
  border-radius: .25em; background: #ffd9a8; border: .08em solid #f3c489;
}

/* 卡 3：爱设计 AIPPT */
.sm-art--ppt { background: radial-gradient(10em 6.5em at 52% 116%, rgba(122,92,255,.36), transparent 66%), linear-gradient(150deg, #2a2350 0%, #1b1642 55%, #100d30 100%); }
.sm-art--ppt .t1 { position: absolute; z-index: 2; left: 0; right: 0; top: 8.6%; text-align: center; font-size: 1.0625em; font-weight: 800; color: #fff; letter-spacing: 1px; }
.sm-art--ppt .t2 { position: absolute; z-index: 2; left: 0; right: 0; top: 24.1%; text-align: center; font-size: .9375em; font-weight: 700; color: #fff; }
.sm-art--ppt .t3 { position: absolute; z-index: 2; left: 0; right: 0; top: 38.4%; text-align: center; font-size: .6875em; color: rgba(190,180,255,.9); }
.sm-circuit {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 5.6em;
  background:
    repeating-linear-gradient(90deg, rgba(140,120,255,.20) 0 1px, transparent 1px 1.5em),
    repeating-linear-gradient(0deg, rgba(140,120,255,.12) 0 1px, transparent 1px 1.5em);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}

/* 卡片底部文字 */
.sm-card-body { flex: 1; min-height: 0; overflow: hidden; padding: .7em 1em .8em; }
.sm-card-tag { font-size: .625em; color: #a6adb7; }
.sm-card-title { font-size: .9375em; font-weight: 700; color: #1f2329; margin-top: .3em; }
.sm-card-desc { font-size: .6875em; color: #9aa1ab; margin-top: .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- AI 工具九宫格 ---------- */
.sm-ai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15em 1.2em; }
.sm-ai-item { display: flex; align-items: center; gap: .75em; height: 3.875em; }
.sm-ai-ico {
  width: 2.94em; height: 2.94em; flex: none; border-radius: .62em;
  display: flex; align-items: center; justify-content: center; gap: .14em;
  overflow: hidden;
}
.sm-ai-ico svg { width: 1.5em; height: 1.5em; }
.sm-glyph { font-size: .62em; font-weight: 800; letter-spacing: -.2px; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.22); }
.sm-glyph.lg { font-size: .78em; }

/* 九个 AI 工具图标（示意图标，非官方素材） */
.sm-ai-1 { background: radial-gradient(circle at 32% 26%, #ddd0ff, #a78bfa 62%, #8b5cf6 100%); color: #fff; }
.sm-ai-2 { background: #eef2f7; }
.sm-ai-3 { background: conic-gradient(from 210deg, #f59e0b, #fbbf24 22%, #38bdf8 58%, #f59e0b 100%); color: #fff; }
.sm-ai-4 { background: #fff; border: .09em solid #dde5ee; color: #2f6bff; }
.sm-ai-5 { background: #fff; border: .09em solid #dde5ee; color: #16a34a; }
.sm-ai-6 { background: radial-gradient(circle at 32% 28%, #7cb6ff, #2563eb 72%); color: #fff; }
.sm-ai-7 { background: linear-gradient(150deg, #6aa9fb, #3b82f6); color: #fff; }
.sm-ai-8 { background: #fff; border: .09em solid #e5e9ef; }
.sm-ai-8 i { display: block; width: .3em; height: 1.05em; border-radius: .08em; background: #fbbf24; }
.sm-ai-8 i:nth-child(2) { background: #34d399; height: .78em; }
.sm-ai-8 i:nth-child(3) { background: #3b82f6; height: 1.24em; }
.sm-ai-9 { background: #12141a; }
.sm-ai-9 b { display: block; width: .52em; height: .52em; border-radius: 50%; background: #f43f5e; }
.sm-ai-9 b:nth-child(2) { background: #22d3ee; }
.sm-ai-9 b:nth-child(3) { background: #a3e635; }
.sm-ai-txt { min-width: 0; }
.sm-ai-name { display: block; font-size: .8125em; font-weight: 700; color: #1f2329; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-ai-desc { display: block; font-size: .6875em; color: #9aa1ab; margin-top: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
