/**
 * 拾光主题 · 软件样式
 */

/* ============================================================
   归档页
   ============================================================ */

.sg-software-page{
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

/* ---------- Hero ---------- */

.sg-software-hero{
  padding: 40px 0 0;
  position: relative;
  z-index: 1;
}

.sg-software-hero-card{
  position: relative;
  padding: 40px 48px 32px;
  border-radius: 32px;
  background: var(--sg-brand);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 91, 253, .26);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
}

.sg-software-hero-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.28), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}

.sg-software-hero-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  pointer-events: none;
}

.sg-software-hero-inner{
  display: contents;
}

.sg-software-hero-left{
  position: relative;
  z-index: 2;
  min-width: 0;
}

.sg-software-hero-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.sg-software-hero-left h1{
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.036em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 14px;
}

.sg-software-hero-left p{
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 520px;
}

/* 右侧装饰 */
.sg-software-hero-deco{
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-sw-deco-ring{
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.15),
    0 0 40px rgba(255,255,255,.1);
}

.sg-sw-deco-ring::before{
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}

.sg-sw-deco-ring::after{
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}

.sg-sw-deco-center{
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 32px rgba(0,0,0,.2);
}

.sg-sw-deco-dot{
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 12px rgba(255,255,255,.8);
}

.sg-sw-deco-dot.d1{ top: 10px; left: 50%; margin-left: -3.5px; animation: sg-sw-pulse 2s ease-in-out infinite; }
.sg-sw-deco-dot.d2{ bottom: 10px; left: 50%; margin-left: -3.5px; animation: sg-sw-pulse 2s ease-in-out infinite .5s; }
.sg-sw-deco-dot.d3{ left: 10px; top: 50%; margin-top: -3.5px; animation: sg-sw-pulse 2s ease-in-out infinite 1s; }
.sg-sw-deco-dot.d4{ right: 10px; top: 50%; margin-top: -3.5px; animation: sg-sw-pulse 2s ease-in-out infinite 1.5s; }

@keyframes sg-sw-pulse{
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* 统计条 */
.sg-software-hero-stats{
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.sg-sw-stat{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sg-sw-stat-num{
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
}

.sg-sw-stat-label{
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
}

/* ---------- 平台筛选 ---------- */

.sg-software-filter{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0 0;
  position: relative;
  z-index: 1;
}

.sg-sw-chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sg-text-2);
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--sg-dur-base) var(--sg-ease);
  box-shadow: var(--sg-shadow-sm);
  white-space: nowrap;
}

.sg-sw-chip:hover{
  color: var(--sg-text);
  box-shadow: var(--sg-shadow-md);
}

.sg-sw-chip.active{
  color: #fff;
  background: var(--sg-brand);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 91, 253, .3);
}

/* ---------- 工具栏 ---------- */

.sg-software-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 22px;
  gap: 16px;
  position: relative;
  z-index: 20;
}

.sg-sw-result-count{
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sg-text-3);
}

.sg-sw-toolbar-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.sg-sw-view-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sg-text);
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: var(--sg-shadow-sm);
  transition: all var(--sg-dur-base) var(--sg-ease);
  position: relative;
  overflow: hidden;
}

.sg-sw-view-btn::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sg-brand);
  opacity: 0;
  transition: opacity var(--sg-dur-base) var(--sg-ease);
  border-radius: inherit;
}

.sg-sw-view-btn:hover{
  box-shadow: var(--sg-shadow-md);
}

.sg-sw-view-btn:active{
  transform: scale(.97);
}

.sg-sw-view-btn.switching{
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(59, 91, 253, .32);
}

.sg-sw-view-btn.switching::before{
  opacity: 1;
}

.sg-sw-view-icon{
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
  transition: color var(--sg-dur-base) var(--sg-ease);
}

.sg-sw-view-label{
  position: relative;
  z-index: 1;
}

.sg-sw-view-btn.switching .sg-sw-view-icon{
  color: #fff;
}

/* ---------- 视图容器 ---------- */

.sg-sw-view{
  position: relative;
  z-index: 1;
}

.sg-software-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 20px;
}

.sg-software-list-view{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* ---------- 软件卡片 ---------- */

.sg-software-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  background: var(--sg-glass-bg);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  border: 1px solid var(--sg-glass-border);
  border-radius: var(--sg-r-lg);
  box-shadow: var(--sg-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--sg-dur-slow) var(--sg-ease),
              box-shadow var(--sg-dur-slow) var(--sg-ease),
              border-color var(--sg-dur-slow) var(--sg-ease);
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
}

.sg-software-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sg-glass-highlight);
}

.sg-software-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--sg-shadow-lg);
  border-color: rgba(10, 132, 255, .22);
}

.sg-software-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sg-software-icon{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, #eef1f7, #dde2ec);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 6px 16px rgba(0,0,0,.08);
  flex-shrink: 0;
  transition: transform var(--sg-dur-slow) var(--sg-ease);
}

.sg-software-card:hover .sg-software-icon{
  transform: scale(1.06) rotate(-3deg);
}

.sg-software-price{
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 100px;
  flex-shrink: 0;
}

.sg-software-price-free{
  color: #30d158;
  background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.2);
}

.sg-software-price-paid{
  color: #ff9f0a;
  background: rgba(255,159,10,.1);
  border: 1px solid rgba(255,159,10,.2);
}

.sg-software-price-trial{
  color: var(--sg-accent);
  background: var(--sg-accent-soft);
  border: 1px solid rgba(10,132,255,.2);
}

.sg-software-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.25;
  color: var(--sg-text);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-software-tagline{
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-accent);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.sg-software-platforms{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sg-software-platform{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-text-2);
}

.sg-software-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.05);
  gap: 12px;
  margin-top: auto;
}

.sg-software-version{
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sg-text-3);
  font-family: var(--sg-font-mono);
}

.sg-software-more{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sg-accent);
  transition: gap var(--sg-dur-fast) var(--sg-ease);
}

.sg-software-card:hover .sg-software-more{
  gap: 9px;
}

/* 列表视图下的卡片 */
.sg-software-list-view .sg-software-card{
  flex-direction: row;
  align-items: center;
  padding: 18px 22px;
  gap: 20px;
}

.sg-software-list-view .sg-software-card-head{
  margin-bottom: 0;
  flex-shrink: 0;
}

.sg-software-list-view .sg-software-icon{
  width: 56px;
  height: 56px;
  font-size: 26px;
}

.sg-software-list-view .sg-software-price{
  display: none;
}

.sg-software-list-view .sg-software-title{
  font-size: 16px;
  margin-bottom: 4px;
}

.sg-software-list-view .sg-software-tagline{
  margin-bottom: 0;
  min-height: 0;
  -webkit-line-clamp: 1;
}

.sg-software-list-view .sg-software-platforms,
.sg-software-list-view .sg-software-foot{
  display: none;
}

/* ============================================================
   详情页
   ============================================================ */

.sg-single-software{
  padding: 32px 0 60px;
}

/* ---------- Hero ---------- */

.sg-sw-hero{
  padding: 32px 0 0;
  position: relative;
  z-index: 1;
}

.sg-sw-hero-card{
  position: relative;
  padding: 40px 44px 34px;
  border-radius: 32px;
  background: var(--sg-brand);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 91, 253, .26);
}

.sg-sw-hero-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.28), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}

.sg-sw-hero-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  pointer-events: none;
}

.sg-sw-hero-inner{
  position: relative;
  z-index: 2;
}

/* Hero 顶部两栏 */
.sg-sw-hero-top{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 26px;
}

.sg-sw-hero-left{
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.sg-sw-hero-info{
  min-width: 0;
}

.sg-sw-hero-icon{
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 16px 40px rgba(0,0,0,.22);
  overflow: hidden;
}

.sg-sw-hero-info{ min-width: 0; }

.sg-sw-hero-type{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  margin-bottom: 12px;
}

.sg-sw-hero-tagline{
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-top: 10px;
  margin-bottom: 0;
}

.sg-sw-hero-tagline{
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 720px;
  margin-bottom: 24px;
}

.sg-sw-hero-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 220px;
  margin-bottom: 0;
}

.sg-sw-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--sg-dur-base) var(--sg-ease);
  white-space: nowrap;
}

.sg-sw-btn-primary{
  color: var(--sg-text);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.sg-sw-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.sg-sw-btn-primary:active{
  transform: translateY(0) scale(.98);
}

.sg-sw-btn-ghost{
  color: #fff;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
}

.sg-sw-btn-ghost:hover{
  background: rgba(255,255,255,.24);
  transform: translateY(-2px);
}

.sg-sw-hero-meta{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  flex-wrap: wrap;
}

.sg-sw-meta-item{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sg-sw-meta-label{
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sg-sw-meta-value{
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ---------- 详情页布局 ---------- */

.sg-sw-layout-pc{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 48px 0 40px;
  align-items: start;
}

.sg-sw-layout-mobile{
  display: none;
}

.sg-sw-main{
  min-width: 0;
}

.sg-sw-sidebar{
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Section 通用 ---------- */

.sg-sw-section{
  margin-bottom: 44px;
}

.sg-sw-section:last-child{
  margin-bottom: 0;
}

.sg-sw-section-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--sg-text);
  margin-bottom: 20px;
}

.sg-sw-section-icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sg-accent-soft);
  border: 1px solid rgba(10,132,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
  flex-shrink: 0;
}

/* 正文 */
.sg-single-software .sg-single-content{
  font-size: 16px;
  line-height: 1.75;
  color: var(--sg-text);
  letter-spacing: -.003em;
}

.sg-single-software .sg-single-content > * + *{
  margin-top: 18px;
}

.sg-single-software .sg-single-content h2{
  font-size: 20px;
  font-weight: 650;
  margin-top: 32px;
  margin-bottom: 14px;
}

.sg-single-software .sg-single-content strong{ font-weight: 650; }

.sg-single-software .sg-single-content ul{
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: revert;
}

.sg-single-software .sg-single-content li::marker{ color: var(--sg-accent); }

.sg-single-software .sg-single-content code{
  font-family: var(--sg-font-mono);
  font-size: .9em;
  background: rgba(0,0,0,.05);
  color: #5e5ce6;
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---------- 截图（PC） ---------- */

.sg-sw-screenshots{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #a8c0ff, #5e5ce6 60%, #3f2b96);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

.sg-sw-screenshots-viewer{
  position: absolute;
  inset: 0;
}

.sg-sw-screenshot{
  position: absolute;
  inset: 0;
  transition: opacity var(--sg-dur-slow) var(--sg-ease);
}

.sg-sw-screenshot:not(.active){
  opacity: 0;
  pointer-events: none;
}

.sg-sw-screenshot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-sw-ss-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--sg-dur-base) var(--sg-ease);
  z-index: 3;
  padding: 0;
}

.sg-sw-ss-nav:hover{
  background: rgba(0,0,0,.5);
  transform: translateY(-50%) scale(1.06);
}

.sg-sw-ss-nav.prev{ left: 16px; }
.sg-sw-ss-nav.next{ right: 16px; }

.sg-sw-ss-counter{
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  padding: 5px 12px;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* ---------- 功能介绍（PC：2 列网格） ---------- */

.sg-sw-features{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sg-sw-feature{
  padding: 18px 20px;
  background: var(--sg-glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 16px;
  box-shadow: var(--sg-shadow-sm);
  position: relative;
}

.sg-sw-feature::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sg-glass-highlight);
}

.sg-sw-feature-icon{
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--sg-accent-soft);
  border: 1px solid rgba(10,132,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.sg-sw-feature-title{
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--sg-text);
  margin-bottom: 5px;
}

.sg-sw-feature-desc{
  font-size: 13px;
  color: var(--sg-text-2);
  line-height: 1.55;
}

/* ---------- 更新日志 ---------- */

.sg-sw-changelog{
  display: flex;
  flex-direction: column;
}

.sg-sw-cl-item{
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,.055);
}

.sg-sw-cl-item:last-child{ border-bottom: none; }

.sg-sw-cl-version{
  flex-shrink: 0;
  width: 90px;
  font-family: var(--sg-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sg-accent);
  padding-top: 2px;
}

.sg-sw-cl-body{ flex: 1; min-width: 0; }

.sg-sw-cl-date{
  font-size: 12px;
  color: var(--sg-text-3);
  font-weight: 500;
  margin-bottom: 6px;
}

.sg-sw-cl-desc{
  font-size: 14px;
  color: var(--sg-text-2);
  line-height: 1.65;
}

/* ---------- 侧栏通用卡片 ---------- */

.sg-sw-card{
  position: relative;
  padding: 22px 24px;
  background: var(--sg-glass-bg);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 20px;
  box-shadow: var(--sg-shadow-sm);
}

.sg-sw-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sg-glass-highlight);
}

.sg-sw-card-title{
  font-size: 12px;
  font-weight: 700;
  color: var(--sg-text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- 下载卡 ---------- */

.sg-sw-download-card{
  padding: 24px;
  background: var(--sg-brand);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(59,91,253,.24);
  position: relative;
  overflow: hidden;
}

.sg-sw-download-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}

.sg-sw-download-title{
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sg-sw-download-list{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-sw-download-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--sg-dur-base) var(--sg-ease);
}

.sg-sw-download-item:hover{
  background: rgba(255,255,255,.24);
  transform: translateX(3px);
}

.sg-sw-download-item.is-current{
  background: rgba(48,209,88,.28);
  border-color: rgba(48,209,88,.5);
}

.sg-sw-dl-left{
  display: flex;
  align-items: center;
  gap: 9px;
}

.sg-sw-current-badge{
  display: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  color: rgba(255,255,255,.95);
  background: rgba(48,209,88,.35);
  border: 1px solid rgba(48,209,88,.5);
  letter-spacing: .02em;
  margin-left: 6px;
}

.sg-sw-download-item.is-current .sg-sw-current-badge{
  display: inline-block;
}

.sg-sw-dl-size{
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.62);
}

.sg-sw-download-item.is-current .sg-sw-dl-size{
  color: rgba(255,255,255,.85);
}

/* ---------- 系统要求 ---------- */

.sg-sw-req-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-sw-req-item{
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(0,0,0,.025);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--sg-text-2);
}

.sg-sw-req-icon{
  flex-shrink: 0;
  font-size: 14px;
}

/* ---------- 类似软件 ---------- */

.sg-sw-alt-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-sw-alt-item{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  transition: all var(--sg-dur-base) var(--sg-ease);
}

.sg-sw-alt-item:hover{
  background: #fff;
  border-color: rgba(10,132,255,.25);
  transform: translateX(3px);
}

.sg-sw-alt-icon{
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, #eef1f7, #dde2ec);
  border: 1px solid rgba(255,255,255,.9);
  flex-shrink: 0;
}

.sg-sw-alt-info{
  flex: 1;
  min-width: 0;
}

.sg-sw-alt-name{
  font-size: 13px;
  font-weight: 650;
  color: var(--sg-text);
  margin-bottom: 1px;
}

.sg-sw-alt-desc{
  font-size: 11.5px;
  color: var(--sg-text-3);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1100px){
  .sg-software-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-sw-layout-pc{ grid-template-columns: 1fr 300px; gap: 32px; }
  .sg-software-hero-card{ padding: 32px 36px 28px; grid-template-columns: 1fr 180px; gap: 32px; }
  .sg-software-hero-left h1{ font-size: 38px; }
  .sg-sw-hero-card{ padding: 32px 36px 28px; }
  .sg-sw-hero-icon{ width: 76px; height: 76px; font-size: 34px; border-radius: 22px; }
  .sg-sw-hero-title{ font-size: 36px; }
}

@media (max-width: 900px){
  .sg-sw-layout-pc{
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }
  .sg-sw-sidebar{ position: relative; top: 0; }
  .sg-software-hero-card{
    grid-template-columns: 1fr;
    padding: 28px 28px 24px;
    gap: 20px;
  }
  .sg-software-hero-deco{ display: none; }
  .sg-software-hero-left h1{ font-size: 32px; }
  .sg-software-hero-stats{ gap: 14px; }
  .sg-sw-stat-num{ font-size: 24px; }
}

@media (max-width: 768px){

  /* 归档页 */
  .sg-software-page{
    padding-bottom: calc(64px + 40px + env(safe-area-inset-bottom, 0px));
  }

  .sg-software-hero{ padding: 20px 0 0; }

  .sg-software-hero-card{
    padding: 22px 22px 20px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(59,91,253,.24);
  }

  .sg-software-hero-label{
    padding: 4px 10px;
    font-size: 10px;
    margin-bottom: 14px;
  }

  .sg-software-hero-left h1{
    font-size: 26px;
    margin-bottom: 8px;
  }

  .sg-software-hero-left p{
    font-size: 12.5px;
  }

  .sg-software-hero-stats{
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    margin-top: 16px;
  }

  .sg-sw-stat{
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .sg-sw-stat-num{ font-size: 20px; }
  .sg-sw-stat-label{ font-size: 10px; }

  /* 平台筛选 */
  .sg-software-filter{
    padding: 18px 0 0;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sg-software-filter::-webkit-scrollbar{ display: none; }

  .sg-sw-chip{
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .sg-sw-chip svg{ display: none; }

  /* 工具栏 */
  .sg-software-toolbar{ padding: 14px 0 14px; }
  .sg-sw-result-count{ font-size: 12px; }

  .sg-sw-view-btn{
    padding: 7px 10px;
  }

  .sg-sw-view-label{ display: none; }

  /* 网格 */
  .sg-software-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sg-software-card{
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .sg-software-card-head{ margin-bottom: 10px; }

  .sg-software-icon{
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 13px;
  }

  .sg-software-price{
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .sg-software-title{
    font-size: 14px;
    margin-bottom: 4px;
  }

  .sg-software-tagline{
    font-size: 11.5px;
    min-height: 32px;
    margin-bottom: 0;
    -webkit-line-clamp: 2;
  }

  .sg-software-platforms,
  .sg-software-foot{
    display: none;
  }

  /* 列表 */
  .sg-software-list-view{
    gap: 10px;
  }

  .sg-software-list-view .sg-software-card{
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .sg-software-list-view .sg-software-icon{
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 12px;
  }

  .sg-software-list-view .sg-software-title{ font-size: 14px; }

  /* 详情页 */
  .sg-single-software{
    padding: 16px 0 calc(64px + 40px + env(safe-area-inset-bottom, 0px));
  }

  .sg-sw-layout-pc{ display: none; }
  .sg-sw-layout-mobile{ display: block; padding: 20px 0 32px; }

  .sg-sw-hero{ padding: 16px 0 0; }

  .sg-sw-hero-card{
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(59,91,253,.24);
  }

    /* Hero 顶部改为单列 */
  .sg-sw-hero-top{
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 16px;
  }

  .sg-sw-hero-left{
    gap: 12px;
  }

  .sg-sw-hero-info{
    flex: 1;
    min-width: 0;
  }

  .sg-sw-hero-icon{
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 16px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.5),
      0 8px 20px rgba(0,0,0,.18);
  }

  .sg-sw-hero-title{
    font-size: 24px;
    letter-spacing: -.028em;
  }

  .sg-sw-hero-tagline{
    font-size: 13px;
    margin-top: 6px;
  }

  .sg-sw-hero-actions{
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .sg-sw-btn{
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .sg-sw-btn-primary{ height: 46px; }
  .sg-sw-btn-ghost{ height: 40px; font-size: 12.5px; }

  .sg-sw-hero-meta{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 14px;
  }

  .sg-sw-hero-icon{
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 16px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.5),
      0 8px 20px rgba(0,0,0,.18);
  }

  .sg-sw-hero-type{
    padding: 3px 9px;
    font-size: 9.5px;
    margin-bottom: 6px;
  }

  .sg-sw-hero-title{
    font-size: 24px;
    letter-spacing: -.028em;
  }

  .sg-sw-hero-tagline{
    font-size: 13px;
    margin-bottom: 16px;
  }

  .sg-sw-hero-actions{
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .sg-sw-btn{
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .sg-sw-btn-primary{ height: 46px; }
  .sg-sw-btn-ghost{ height: 40px; font-size: 12.5px; }

  .sg-sw-hero-meta{
    gap: 16px;
    padding-top: 14px;
    flex-wrap: wrap;
  }

  .sg-sw-meta-label{ font-size: 9.5px; }
  .sg-sw-meta-value{ font-size: 12.5px; }

  /* Section */
  .sg-sw-section{ margin-bottom: 24px; }
  .sg-sw-section-title{ font-size: 15px; margin-bottom: 12px; gap: 8px; }
  .sg-sw-section-icon{ width: 22px; height: 22px; border-radius: 7px; }

  .sg-single-software .sg-single-content{
    font-size: 14px;
    line-height: 1.75;
  }

  /* 截图横滑 */
  .sg-sw-screenshots-scroll{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sg-sw-screenshots-scroll::-webkit-scrollbar{ display: none; }

  .sg-sw-screenshot-slide{
    flex-shrink: 0;
    width: calc(100% - 40px);
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #a8c0ff, #5e5ce6 60%, #3f2b96);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
  }

  .sg-sw-screenshot-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sg-sw-slide-num{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 9px;
    background: rgba(0,0,0,.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
  }

  /* 功能横滑 */
  .sg-sw-features-scroll{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sg-sw-features-scroll::-webkit-scrollbar{ display: none; }

  .sg-sw-feature-card{
    flex-shrink: 0;
    width: 200px;
    padding: 14px;
    background: var(--sg-glass-bg);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--sg-glass-border);
    border-radius: 14px;
    box-shadow: var(--sg-shadow-sm);
    position: relative;
  }

  .sg-sw-feature-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--sg-glass-highlight);
  }

  .sg-sw-feature-card .sg-sw-feature-icon{
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .sg-sw-feature-card .sg-sw-feature-title{ font-size: 13px; margin-bottom: 4px; }
  .sg-sw-feature-card .sg-sw-feature-desc{ font-size: 11.5px; }

  /* 下载横滑 */
  .sg-sw-downloads-scroll{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sg-sw-downloads-scroll::-webkit-scrollbar{ display: none; }

  .sg-sw-dl-card{
    flex-shrink: 0;
    width: 150px;
    padding: 14px;
    background: var(--sg-brand);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(59,91,253,.2);
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sg-sw-dl-card::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 55%);
    pointer-events: none;
  }

  .sg-sw-dl-card.is-current{
    box-shadow: 0 6px 18px rgba(59,91,253,.2), 0 0 0 2px rgba(48,209,88,.6);
  }

  .sg-sw-dl-card-icon{
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sg-sw-dl-card-platform{
    position: relative;
    z-index: 2;
    font-size: 13.5px;
    font-weight: 700;
  }

  .sg-sw-dl-card-size{
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
  }

  /* 更新日志 */
  .sg-sw-cl-item{ padding: 14px 0; gap: 12px; }
  .sg-sw-cl-version{ width: 70px; font-size: 11.5px; }
  .sg-sw-cl-date{ font-size: 11px; }
  .sg-sw-cl-desc{ font-size: 13px; }

  /* 系统要求标签 */
  .sg-sw-req-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sg-sw-req-tag{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    background: var(--sg-glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sg-glass-border);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sg-text-2);
    box-shadow: var(--sg-shadow-sm);
  }

  .sg-sw-req-tag .sg-sw-req-icon{ font-size: 12px; }

  /* 类似软件横滑 */
  .sg-sw-alt-scroll{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sg-sw-alt-scroll::-webkit-scrollbar{ display: none; }

  .sg-sw-alt-card{
    flex-shrink: 0;
    width: 150px;
    padding: 13px;
    background: var(--sg-glass-bg);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--sg-glass-border);
    border-radius: 14px;
    box-shadow: var(--sg-shadow-sm);
    text-decoration: none;
    color: inherit;
    position: relative;
  }

  .sg-sw-alt-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--sg-glass-highlight);
  }

  .sg-sw-alt-card .sg-sw-alt-icon{
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
    margin-bottom: 10px;
  }

  .sg-sw-alt-card .sg-sw-alt-name{ font-size: 13px; }
  .sg-sw-alt-card .sg-sw-alt-desc{ font-size: 11px; }
}

@media (max-width: 480px){
  .sg-software-hero-left h1{ font-size: 22px; }
  .sg-sw-stat-num{ font-size: 18px; }
  .sg-sw-hero-title{ font-size: 22px; }
  .sg-sw-hero-icon{ width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
}

/* ============================================================
   特色图片渲染（emoji 回退时不影响）
   ============================================================ */
.sg-software-icon img,
.sg-sw-hero-icon img,
.sg-sw-alt-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}