:root {
  --bg: #f6f9ff;
  --card: #ffffff;
  --text: #18243a;
  --muted: #7a89a3;
  --line: #e4ebf7;
  --blue: #2f74ff;
  --green: #45c476;
  --orange: #ffab3d;
  --red: #ff4b6b;
  --shadow: 0 18px 42px rgba(31, 84, 160, 0.11);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1120px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 72% 6%, rgba(84,160,255,.14), transparent 26%), linear-gradient(180deg, #fbfdff, var(--bg));
}
button, input, textarea, select { font: inherit; }
button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #2f4363;
  background: #f3f7ff;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: .65; cursor: wait; }
.primary { color: white; background: linear-gradient(135deg, #2f74ff, #1f63ec); box-shadow: 0 12px 26px rgba(47,116,255,.25); }
.ghost { background: transparent; color: #52627a; }
.topbar {
  height: 92px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-wide { gap: 16px; min-width: 420px; }
.brand-logo {
  width: 246px;
  height: 54px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(12, 24, 40, .18);
}
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  color: white; font-size: 24px; font-weight: 900;
  background: linear-gradient(135deg, #43c2ff, #2f74ff 62%, #174ed4);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.55), 0 12px 24px rgba(47,116,255,.26);
}
.brand h1 { margin: 0; font-size: 26px; line-height: 1; letter-spacing: 0; }
.brand h1 span { color: var(--blue); }
.brand p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 46px; padding: 0; background: white; border: 1px solid var(--line); }
.small { height: 42px; }
.app-shell { display: grid; grid-template-columns: 208px minmax(620px, 1fr) 300px; gap: 24px; padding: 24px; }
.sidebar, .rightbar, .workspace { display: flex; flex-direction: column; gap: 18px; }
.view { display: none; flex-direction: column; gap: 18px; }
.view.active-view { display: flex; }
.sidebar {
  min-height: calc(100vh - 140px);
  padding: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; background: transparent; color: #64728a; }
.nav-item span { width: 24px; text-align: center; color: #71819d; }
.nav-item.active { color: var(--blue); background: #eaf2ff; }
.upgrade-card { margin-top: auto; padding: 18px 14px; border-radius: 8px; background: linear-gradient(180deg, #edf5ff, #fff); border: 1px solid #dbe8ff; }
.upgrade-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero-card, .card, .side-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.hero-card { min-height: 252px; display: flex; justify-content: space-between; padding: 42px 34px 30px; overflow: hidden; }
.hero-copy h2 { margin: 0; font-size: 42px; letter-spacing: 0; }
.hero-copy h2::first-letter { color: var(--blue); }
.hero-copy p { margin: 14px 0 28px; color: #52647e; font-size: 17px; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.platforms span { width: 76px; height: 54px; display: grid; place-items: center; border-radius: 8px; color: #41516b; background: #f8fbff; border: 1px solid #e6eefb; font-size: 13px; font-weight: 700; }
.hero-art { position: relative; width: 250px; min-width: 250px; display: grid; place-items: center; }
.cloud { font-size: 122px; color: #8ac5ff; filter: drop-shadow(0 18px 26px rgba(47,116,255,.2)); }
.arrow { position: absolute; top: 98px; color: white; font-size: 60px; font-weight: 900; text-shadow: 0 8px 18px rgba(40,95,180,.35); }
.hero-art i { position: absolute; width: 12px; height: 12px; border-radius: 4px; background: #6fb9ff; }
.hero-art i:nth-of-type(1) { left: 20px; top: 52px; }
.hero-art i:nth-of-type(2) { right: 18px; top: 22px; }
.hero-art i:nth-of-type(3) { right: 42px; bottom: 36px; }
.card, .side-card { padding: 24px; }
.card-head, .side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h3 { margin: 0; font-size: 17px; letter-spacing: 0; }
.card-head p, .muted { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.switch { display: flex; align-items: center; gap: 10px; color: #64728a; font-size: 13px; white-space: nowrap; }
.switch input { width: 38px; height: 20px; accent-color: var(--blue); }
textarea {
  width: 100%; min-height: 138px; resize: vertical; padding: 17px 18px;
  color: #223550; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; line-height: 1.6; outline: none;
}
.input-actions { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; }
#charCount { justify-self: end; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 18px; }
.settings-grid label { display: flex; flex-direction: column; gap: 9px; color: #63738c; font-size: 13px; font-weight: 700; }
input, select { width: 100%; height: 46px; padding: 0 14px; color: #20324c; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; outline: none; }
.target-folder-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 10px; }
.target-folder-row label { display: flex; flex-direction: column; gap: 9px; color: #63738c; font-size: 13px; font-weight: 700; }
.folder-actions { display: flex; gap: 10px; margin: 10px 0 12px; }
.folder-hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.check-row { display: flex; gap: 28px; margin-top: 18px; color: #596982; font-size: 13px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--blue); vertical-align: -3px; }
.badge { padding: 8px 12px; border-radius: 8px; color: #51627b; background: #f0f5ff; font-size: 13px; font-weight: 800; }
.ok-badge { color: #138049; background: #eafbf2; }
.warn-badge { color: #a86a00; background: #fff6e6; }
.start-download { width: 100%; height: 60px; color: white; font-size: 18px; background: linear-gradient(135deg, #2f79ff, #1e63ee); box-shadow: 0 16px 34px rgba(47,116,255,.28); }
.table-wrap { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #f8fbff; color: #52647e; z-index: 1; }
td:nth-child(1) { width: 52px; }
td:nth-child(2) { width: 82px; font-weight: 800; }
td:nth-child(3) { width: 155px; }
td:nth-child(4) { width: 132px; }
td:nth-child(5) { word-break: break-all; color: #50607a; }
tr.ok td { background: #f0fff6; }
tr.bad td { background: #fff3f5; }
tr.run td { background: #eef6ff; }
.action-stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.download-link { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 94px; padding: 0 12px; border-radius: 8px; color: white; background: var(--blue); text-decoration: none; font-weight: 800; }
.folder-save-btn { height: 32px; min-width: 94px; padding: 0 12px; color: #1f63ec; background: #eaf2ff; }
.summary-panel {
  min-height: 180px;
  padding: 16px;
  color: #50607a;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  line-height: 1.6;
}
.summary-panel p { margin: 0 0 10px; word-break: break-all; }
.folder-dashboard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.folder-dashboard strong { display: block; font-size: 20px; margin-bottom: 6px; }
.folder-dashboard p { margin: 0; color: var(--muted); }
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.status-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.status-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.status-grid strong { font-size: 22px; color: #223550; }
.guide-list { display: grid; gap: 12px; }
.guide-list p {
  margin: 0;
  padding: 16px;
  color: #50607a;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
#logBox { height: 132px; margin: 0; overflow: auto; padding: 14px; color: #344861; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; font: 13px/1.5 Consolas, "Microsoft YaHei UI", monospace; }
.ring { width: 116px; height: 116px; margin: 22px auto; display: grid; place-items: center; align-content: center; border-radius: 50%; background: conic-gradient(var(--blue) 0deg, #e7eef8 0deg); position: relative; }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: white; }
.ring strong, .ring span { position: relative; z-index: 1; }
.ring strong { font-size: 30px; }
.ring span { color: var(--muted); font-size: 12px; }
.stat-list p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0; color: #5c6b84; border-top: 1px solid var(--line); }
.stat-list span { margin-left: auto; color: #32445f; font-weight: 800; }
.stat-list i { width: 10px; height: 10px; border-radius: 50%; }
.green { background: var(--green); }
.blue { background: var(--blue); }
.orange { background: var(--orange); }
.red { background: var(--red); }
.speed strong { font-size: 32px; color: var(--blue); }
.sparkline { height: 54px; margin-top: 16px; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, rgba(47,116,255,.12), rgba(47,116,255,.02)); position: relative; }
.sparkline span { position: absolute; left: 10px; right: 10px; bottom: 18px; height: 10px; border-radius: 10px; background: linear-gradient(90deg, #9bd0ff, #2f74ff, #9bd0ff); }
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; }
.recent-icon { width: 30px; height: 30px; display: grid; place-items: center; color: white; border-radius: 8px; background: #101827; }
.recent-item strong { display: block; max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.recent-item small { color: var(--muted); }
.recent-item em { font-style: normal; font-weight: 800; font-size: 12px; }
.recent-item.ok em { color: var(--green); }
.recent-item.bad em { color: var(--red); }
.recent-item.run em { color: var(--blue); }
footer { padding: 4px 0 24px; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 1180px) {
  body { min-width: 0; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .upgrade-card { display: none; }
  .rightbar { display: grid; grid-template-columns: repeat(3, 1fr); }
}
