/* 模板：星空 Star（默认深色） */
:root{
  --accent:#ff9f43; --accent2:#ff6b35;
  --bg-deep:#0a0e27; --bg-mid:#1a1a2e; --bg-end:#16213e;
}
body.tpl-star{
  background:
    radial-gradient(ellipse at 85% 90%, rgba(255,159,67,0.20) 0%, rgba(255,107,53,0.08) 25%, transparent 55%),
    radial-gradient(ellipse at 15% 10%, rgba(99,102,241,0.14) 0%, transparent 45%),
    linear-gradient(160deg, #0a0e27 0%, #1a1a2e 55%, #16213e 100%);
}
.glow-orb-1{background:radial-gradient(circle, rgba(255,159,67,0.42) 0%, transparent 70%)}
.glow-orb-2{background:radial-gradient(circle, rgba(99,102,241,0.32) 0%, transparent 70%)}

/* ===== 平台聚合后的下载区 ===== */
.star-stage{width:100%;display:flex;flex-direction:column;align-items:center;gap:26px}
.star-preview{width:100%;display:flex;flex-direction:column;align-items:center}
.star-preview-slide{display:none;flex-direction:column;align-items:center;width:100%}
.star-preview-slide.is-active{display:flex;animation:fadeIn .35s ease-out}
.star-preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;max-width:320px;padding:30px 20px;border:1px dashed rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.04)}
.star-preview-empty img{width:54px;height:54px;border-radius:14px;object-fit:cover}
.star-preview-empty span{font-size:13px;color:rgba(255,255,255,.5)}

.star-download{width:100%;max-width:640px;display:flex;flex-direction:column;align-items:center;gap:12px}
.star-dl-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;width:100%}
.star-dl-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.05);transition:border-color .2s,background .2s,transform .2s}
.star-dl-card:hover{border-color:rgba(255,159,67,.38);background:rgba(255,159,67,.08);transform:translateY(-1px)}
.star-dl-card.is-active{border-color:rgba(255,159,67,.55);background:rgba(255,159,67,.11)}
.star-dl-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.star-dl-info strong{color:#fff;font-size:14px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.star-dl-meta{color:rgba(255,255,255,.55);font-size:12px;line-height:1.4}
.star-dl-meta-line{margin:0;text-align:center}
.star-dl-btn{flex:none;min-width:0;padding:10px 18px;font-size:14px;white-space:nowrap}

/* ===== 应用标签（贴片/角标）— 2026-11 新增 =====
   只做一件事：给卡片补定位，让后台选择「卡片右上角」时角标能贴上去（默认是名称右侧，
   不需要定位）。贴片的尺寸、7 档渐变色、动效统一在 assets/css/theme-download.css，
   这里不要重复定义，避免五套模板各写一套导致不一致。 */
.star-dl-card{position:relative}
.star-dl-btn svg{width:18px;height:18px;flex:none}

.star-download .tp-dl-more{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:8px 16px;border:1px dashed rgba(255,159,67,.45);border-radius:999px;background:rgba(255,159,67,.10);color:var(--accent);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}
.star-download .tp-dl-more:hover{background:rgba(255,159,67,.18);border-color:rgba(255,159,67,.65)}

.star-mobile-tabs{flex-wrap:wrap;gap:6px!important}
.star-mobile-tabs .mobile-tab{padding:6px 14px;font-size:14px}

@media(max-width:640px){
.star-stage{gap:18px}
.star-dl-list{grid-template-columns:1fr;gap:10px}
.star-dl-card{flex-direction:column;align-items:stretch;gap:10px;padding:12px}
.star-dl-btn{width:100%;justify-content:center;padding:12px}
.star-dl-info strong{white-space:normal}
.star-mobile-tabs .mobile-tab{padding:5px 12px;font-size:13px}
}

/* 手机端紧凑设备框：不再用 200×416 的大框挤压下载区 */
.star-preview--compact .phone-mockup{width:150px;height:312px;border-radius:24px;padding:5px}
.star-preview--compact .phone-screen{border-radius:20px}
.star-preview--compact .phone-notch{width:46px;height:16px;border-radius:12px}
.star-preview--compact .shot-dots{margin-top:9px}
@media(max-width:380px){
.star-preview--compact .phone-mockup{width:134px;height:279px}
}

/* 浅色主题适配 */
html[data-theme="light"] .star-dl-card{background:rgba(15,23,42,.03);border-color:rgba(15,23,42,.12)}
html[data-theme="light"] .star-dl-card.is-active{background:rgba(249,115,22,.08);border-color:rgba(249,115,22,.45)}
html[data-theme="light"] .star-dl-info strong{color:#0f172a}
html[data-theme="light"] .star-dl-meta{color:#64748b}
html[data-theme="light"] .star-preview-empty{border-color:rgba(15,23,42,.14);background:rgba(15,23,42,.02)}
html[data-theme="light"] .star-preview-empty span{color:#64748b}

/* 浅色主题：保留星空氛围（浅蓝紫底 + 橙/靛光晕），不再沿用深色渐变 */
html[data-theme="light"] body.tpl-star{
  background:
    radial-gradient(ellipse at 85% 92%, rgba(255,159,67,.16) 0%, rgba(255,107,53,.07) 25%, transparent 55%),
    radial-gradient(ellipse at 14% 8%, rgba(99,102,241,.16) 0%, transparent 46%),
    linear-gradient(160deg,#f7f9ff 0%,#eef3fb 55%,#f5f7fd 100%);
}
html[data-theme="light"] body.tpl-star .glow-orb-1{background:radial-gradient(circle, rgba(255,159,67,.30) 0%, transparent 70%);opacity:.42}
html[data-theme="light"] body.tpl-star .glow-orb-2{background:radial-gradient(circle, rgba(99,102,241,.26) 0%, transparent 70%);opacity:.38}
html[data-theme="light"] body.tpl-star .grid-overlay{background-image:linear-gradient(rgba(15,23,42,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.04) 1px,transparent 1px)}
