* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #222; background: #f6f7fb; }
:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --border:#d9f4f2;
  --text:#0f172a;
  --muted:#6b7280;
  --accent:#6ee7e0;
  --accent2:#34d5cb;
  --success:#22c55e;
}
.app-header { padding: 16px 20px; background: #111; color: #fff; }
.app-header .brand { font-size: 20px; font-weight: 700; }
.app-header .subtitle { opacity: 0.75; font-size: 12px; margin-top: 4px; }
.app-header{ position:sticky; top:0; z-index:10; padding:16px 20px; background: linear-gradient(135deg, #0f172a, #111827); color:#fff; border-bottom:1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 24px rgba(17,24,39,0.12); }
.app-header .brand{ font-size:22px; font-weight:800; letter-spacing:.3px; }
.app-header .subtitle{ opacity:.85; font-size:12px; margin-top:4px; }

.container { max-width: 1080px; margin: 20px auto; padding: 0 16px; }
.panel { position: relative; overflow: hidden; background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 12px 28px rgba(17,24,39,0.08); }
.panel::before { content:""; position:absolute; top:-1px; left:-15%; width: 130%; height: 2px; background: linear-gradient(90deg, rgba(0,0,0,0.06), var(--accent), rgba(0,0,0,0.06)); animation: ribbonMove 6s ease-in-out infinite alternate; }
@keyframes ribbonMove { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
.panel h2 { margin: 0 0 12px 0; font-size: 18px; color: #0f172a; }

.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; }
input, select { width: 100%; border: 1px solid #d6dae3; border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fafbff; outline:none; transition: border-color .12s ease, box-shadow .12s ease; }
input:focus, select:focus{ border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.brand-select { position: relative; }
.brand-select-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid #d6dae3; border-radius: 8px; padding: 10px; font-size: 14px; background: #fafbff; cursor: pointer; }
.brand-select .chevron { margin-left: auto; color: #666; }
.brand-logo { width: 18px; height: 18px; display: inline-block; }
.brand-options { position: absolute; z-index: 10; left: 0; right: 0; margin-top: 6px; background: #fff; border: 1px solid #e6e8ee; border-radius: 8px; box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08); padding: 6px; list-style: none; display: none; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.brand-options li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; cursor: pointer; }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; position: relative; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

/* 预览水印覆盖层 */
.preview-watermark { position: absolute; inset: 0; pointer-events: none; z-index: 5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='180' viewBox='0 0 240 180'><text x='30' y='90' font-size='28' font-family='Segoe UI, Roboto, sans-serif' fill='%23888888' fill-opacity='0.10' transform='rotate(-20 120 90)'>梦梦DIY</text></svg>"); background-repeat: repeat; background-size: 240px 180px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
.brand-options li.search{ position: sticky; top: 0; background: #fff; z-index: 1; padding: 6px; }
.dropdown-search{ width: 100%; padding: 8px 10px; border: 1px solid #d6dae3; border-radius: 8px; font-size: 13px; outline: none; }
.dropdown-search:focus{ border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(52,213,203,0.20); }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }
.dropdown-search:focus{ border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(52,213,203,0.20); }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* 自适应优化 */
@media (max-width: 640px){
  .actions{ flex-wrap: wrap; }
  .btn{ width: 100%; text-align:center; }
}

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(52,213,203,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: var(--accent2); text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: var(--accent); }
.btn.secondary { background: linear-gradient(180deg, rgba(110,231,224,0.10), rgba(255,255,255,0.88)); border: 1px solid var(--border); color: var(--text); }
.cta{ padding:8px 14px; border-radius:999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; border:none; font-weight:700; cursor:pointer; white-space: nowrap; word-break: keep-all; display:inline-flex; align-items:center; justify-content:center; }
.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* 自适应优化 */
@media (max-width: 640px){
  .actions{ flex-wrap: wrap; }
  .btn{ width: 100%; text-align:center; }
}

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(52,213,203,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: var(--accent2); text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: var(--accent); }
.btn.secondary { background: linear-gradient(180deg, rgba(110,231,224,0.10), rgba(255,255,255,0.88)); border: 1px solid var(--border); color: var(--text); }
.cta{ padding:8px 14px; border-radius:999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; border:none; font-weight:700; cursor:pointer; white-space: nowrap; word-break: keep-all; display:inline-flex; align-items:center; justify-content:center; }
.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Home cyan theme tweaks */
.home .hero-title{ background: linear-gradient(90deg, #67e8f9, #ecfeff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.home .feature h3{ color:#0891b2; }
.home .feature-grid{ --shadow: rgba(103,232,249,0.18); }
.home .hero-card{ box-shadow: 0 16px 40px rgba(103,232,249,0.15); }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 导出区行：两列布局并底部对齐 */
.export-row{ grid-template-columns: 1fr auto; align-items: end; }
.app-header .brand,
.app-header .subtitle{
  background: linear-gradient(90deg, #67e8f9, #ecfeff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 青白按钮与链接样式 */
.pill{ display:inline-block; padding:6px 12px; border-radius:9999px; font-size:13px; font-weight:600; line-height:1; border:1px solid rgba(255,255,255,0.28); text-decoration:none; transition: transform .12s ease, box-shadow .12s ease; }
.pill.cyan{ background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 100%); color:#0f172a; box-shadow: 0 6px 14px rgba(103,232,249,0.22); }
.pill.cyan:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(103,232,249,0.30); }
/* 头部副标题中的胶囊与文字间距 */
.app-header .subtitle .pill{ margin-left:12px; -webkit-text-fill-color:#0f172a; color:#0f172a; padding:4px 10px !important; font-size:12px !important; }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 调整胶囊大小与文字可见性（覆盖） */
.pill{ padding:4px 10px; font-size:12px; }
.app-header .subtitle .pill{ -webkit-text-fill-color:#0f172a; color:#0f172a; }

/* 青白按钮与链接样式 */
.pill{ display:inline-block; padding:6px 12px; border-radius:9999px; font-size:13px; font-weight:600; line-height:1; border:1px solid rgba(255,255,255,0.28); text-decoration:none; transition: transform .12s ease, box-shadow .12s ease; }
.pill.cyan{ background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 100%); color:#0f172a; box-shadow: 0 6px 14px rgba(103,232,249,0.22); }
.pill.cyan:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(103,232,249,0.30); }
/* 头部副标题中的胶囊与文字间距 */
.app-header .subtitle .pill{ margin-left:12px; }
.brand-options li:hover { background: #f3f4f9; }
.brand-select.open .brand-options { display: block; }
input[type="range"] { padding: 0; background: transparent; }

.dropzone { position: relative; border: 2px dashed #cfd5e3; border-radius: 12px; padding: 20px; text-align: center; background: #fafcff; }
.dropzone p { margin: 8px 0 0; color: #666; font-size: 13px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* 新增：上传后缩略图与文件信息 */
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.preview-row img { max-height: 80px; border-radius: 8px; border: 1px solid #e6e8ee; background: #f7f7fa; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 13px; color: #333; font-weight: 600; }
.file-info { font-size: 12px; color: #666; }

.canvas-wrap { width: 100%; overflow: auto; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 8px; background: #fcfdff; }
#canvas { max-width: 100%; display: block; margin: 0 auto; background: #f3f4f9; border-radius: 8px; }

.btn { display: inline-block; border: 1px solid transparent; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(34,197,94,0.25); }
.link { display: inline-block; margin-left: 12px; font-size: 13px; color: #16a34a; text-decoration: none; transition: color .12s ease; }
.link:hover { text-decoration: underline; color: #22c55e; }

.actions { display: flex; align-items: center; gap: 12px; }

.msg { margin-top: 8px; font-size: 13px; color: #888; }
.msg.tiny { margin-top: 6px; font-size: 12px; color: #9aa0aa; }

.app-footer { text-align: center; padding: 14px; color: #666; font-size: 12px; }
.inline-control{display:inline-flex;align-items:center;gap:6px;margin-left:10px}
.inline-control input[type=range]{width:140px}
.inline-control span{font-size:12px;color:#666}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VivoType';
  src: url('./fonts/vivo.woff2') format('woff2'),
       url('./fonts/vivo.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Xiaomi MiSans Latin Demibold */
@font-face {
  font-family: 'MiSansLatin-Demibold';
  src: url('./fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Cyan variants for buttons and links (override) */
.btn.cyan{ background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 100%); color:#0f172a; box-shadow: 0 6px 14px rgba(103,232,249,0.22); border: 1px solid rgba(103,232,249,0.25); }
.btn.cyan:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(103,232,249,0.30); }
.link.cyan{ color:#0891b2; }
.link.cyan:hover{ color:#0ea5b7; text-decoration: underline; }

/* Hero carousel */
.hero-art { position: relative; }
.carousel { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 12px 28px rgba(17,24,39,0.06); background: #0b1220; }
.carousel { width: 100%; max-width: 520px; margin: 0 auto; }
.carousel .slides { display: flex; height: 100%; width: 100%; transform: translateX(0%); transition: transform 400ms ease; align-items: center; }
.carousel img { width: 100%; height: 100%; object-fit: contain; display: block; background:#0b1220; flex: 0 0 100%; }
.carousel .dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel .dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.carousel .dots button.active { background: #67e8f9; box-shadow: 0 0 0 2px rgba(103,232,249,0.3); }
@media (min-width: 768px) { .carousel { } }

/* Hero card dynamic background */
.home .hero-card{ position: relative; overflow: hidden; }
.home .hero-card::before{ content:""; position:absolute; inset:-4%; z-index:0; pointer-events:none;
  background:
    radial-gradient(600px 260px at 20% 30%, rgba(103,232,249,0.18), transparent 60%),
    radial-gradient(480px 220px at 80% 70%, rgba(255,255,255,0.12), transparent 70%);
  animation: heroGlow 16s ease-in-out infinite;
}
.home .hero-card::after{ content:""; position:absolute; left:0; right:0; top:0; height:3px; z-index:1;
  background: linear-gradient(90deg, #67e8f9, #ecfeff, #67e8f9);
  background-size: 200% 100%; opacity:0.85; animation: borderFlow 8s linear infinite;
}
.home .hero-card > *{ position: relative; z-index: 2; }
@keyframes heroGlow{
  0%{ transform: translate3d(0,0,0); opacity:0.9; }
  50%{ transform: translate3d(6px,-4px,0); opacity:1; }
  100%{ transform: translate3d(0,0,0); opacity:0.9; }
}
@keyframes borderFlow{
  0%{ background-position:0% 0; }
  100%{ background-position:200% 0; }
}
