/* ========== 深色主题 (CompactBucks-inspired dark workspace) ========== */
:root {
  --void: #050813;
  --midnight: #090f22;
  --panel: rgba(17, 27, 53, 0.78);
  --panel-strong: rgba(24, 37, 72, 0.96);
  --ink: #f8fbff;
  --muted: #9aa8c8;
  --line: rgba(95, 130, 216, 0.26);
  --cyan: #36d5ff;
  --green: #44f0c2;
  --purple: #c02cff;
  --red: #ff4b87;
  --amber: #ffd36b;
  --blue: #2558ff;
  --profit-bg: rgba(17, 27, 53, 0.5);
  --profit-bg-2: rgba(24, 37, 72, 0.96);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48), 0 0 34px rgba(37, 88, 255, 0.12);

   --table-row-height: 64px;
  --table-head-height: 50px;

}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 88, 255, 0.15), transparent 28%),
    linear-gradient(225deg, rgba(192, 44, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #05070d 0%, #071126 48%, #080b1d 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 104px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(37, 88, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 88, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform-origin: center;
  animation: gridDrift 22s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
  opacity: 0.72;
}

body::after {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(37, 88, 255, 0.13) 45%, transparent 47%) 0 0 / 260px 180px,
    linear-gradient(245deg, transparent 0 46%, rgba(54, 213, 255, 0.08) 47%, transparent 49%) 0 0 / 320px 220px;
  opacity: 0.5;
  animation: particleFlow 30s linear infinite;
}

@keyframes gridDrift {
  from { transform: perspective(800px) rotateX(58deg) translateY(-80px); }
  to { transform: perspective(800px) rotateX(58deg) translateY(80px); }
}

@keyframes particleFlow {
  from { background-position: 0 0, 60px 30px; }
  to { background-position: 0 240px, 180px 390px; }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(5, 8, 19, 0.72);
  border-bottom: 1px solid rgba(37, 88, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
}

.wrap {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #091126;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(37, 88, 255, 0.55);
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  color: #fff;
  text-shadow: none;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #c2ccdf;
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(54, 213, 255, 0.55);
  text-decoration: none;
}

.sign-in {
  min-width: 86px;
  color: #fff;
  background: rgba(37, 88, 255, 0.08);
  border: 1px solid #2558ff;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 12px;
  box-shadow: 0 0 18px rgba(37, 88, 255, 0.18);
  cursor: pointer;
}

/* Hero 区块（第一版） */
.hero {
  position: relative;
  min-height: 560px;
  margin-top: 58px;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 19, 0.96) 0%, rgba(5, 8, 19, 0.86) 46%, rgba(5, 8, 19, 0.42) 100%),
    url("https://test-1434981983.cos.ap-beijing.myqcloud.com/c967fe493a7e97aa01206259ebc175b479efe629.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 0;
  animation: heroPan 32s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 45%, rgba(54, 213, 255, 0.12) 48%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: scan 5s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 28px;
  padding: 74px 0 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(37, 88, 255, 0.58);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(37, 88, 255, 0.16);
  box-shadow: 0 0 30px rgba(37, 88, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 18px 0 14px;
  color: #fff;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-shadow: 0 0 34px rgba(37, 88, 255, 0.34);
}

.hero p {
  color: #c3cce3;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 26px;
}

.hero-stats strong {
  display: block;
  font-size: 26px;
  color: #fff;
}

.hero-stats span {
  color: #93a3c9;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-collage {
  position: relative;
  min-height: 430px;
}

.media-orb {
  position: absolute;
  overflow: hidden;
  background-image: url("https://test-1434981983.cos.ap-beijing.myqcloud.com/c967fe493a7e97aa01206259ebc175b479efe629.jpg");
  background-size: 820px auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 32px rgba(37, 88, 255, 0.28);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-collage:hover .media-orb {
  box-shadow: 0 38px 86px rgba(0, 0, 0, 0.62), 0 0 42px rgba(54, 213, 255, 0.28);
}

.orb-main {
  left: 40px;
  top: 112px;
  width: 148px;
  height: 232px;
  border-radius: 999px;
  background-position: 28% 46%;
}

.orb-top {
  right: 136px;
  top: 54px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background-position: 55% 24%;
}

.orb-tall {
  right: 8px;
  top: 28px;
  width: 126px;
  height: 255px;
  border-radius: 999px;
  background-position: 86% 35%;
}

.orb-bottom {
  right: 96px;
  bottom: 34px;
  width: 172px;
  height: 205px;
  border-radius: 110px;
  background-position: 64% 78%;
}

.orb-cut {
  right: 8px;
  bottom: 12px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background-position: 92% 82%;
}

.collect-stamp {
  position: absolute;
  left: 212px;
  bottom: 82px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2558ff;
  box-shadow: 0 0 28px rgba(37, 88, 255, 0.78);
  font-size: 28px;
  font-weight: 900;
}

/* Hero 第二版（新增） */
.hero2 {
  position: relative;
  min-height: 560px;
  margin-top: 58px;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 19, 0.96) 0%, rgba(5, 8, 19, 0.86) 46%, rgba(5, 8, 19, 0.42) 100%),
    url("https://test-1434981983.cos.ap-beijing.myqcloud.com/u=3273885996,677565664&fm=253&app=120&f=JPEG.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 0;
  animation: heroPan 32s ease-in-out infinite alternate;
}

.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 45%, rgba(54, 213, 255, 0.12) 48%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: scan 5s linear infinite;
}

.hero-content2 {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 28px;
  padding: 74px 0 54px;
}

.hero-copy2 {
  max-width: 720px;
}

.eyebrow2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(37, 88, 255, 0.58);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(37, 88, 255, 0.16);
  box-shadow: 0 0 30px rgba(37, 88, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero2 h2 {
  margin: 18px 0 14px;
  color: #fff;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-shadow: 0 0 34px rgba(37, 88, 255, 0.34);
}

.hero2 p {
  color: #c3cce3;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-stats2 {
  display: flex;
  gap: 34px;
  margin-top: 26px;
}

.hero-stats2 strong {
  display: block;
  font-size: 26px;
  color: #fff;
}

.hero-stats2 span {
  color: #93a3c9;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-collage2 {
  position: relative;
  min-height: 430px;
}

.media-orb2 {
  position: absolute;
  overflow: hidden;
  background-image: url("https://test-1434981983.cos.ap-beijing.myqcloud.com/u=3273885996,677565664&fm=253&app=120&f=JPEG.jpg");
  background-size: 850px auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 32px rgba(37, 88, 255, 0.28);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-collage2:hover .media-orb {
  box-shadow: 0 38px 86px rgba(0, 0, 0, 0.62), 0 0 42px rgba(54, 213, 255, 0.28);
}

.orb-main2 {
  left: 30px;
  top: 30px;
  width: 350px;
  height: 120px;
  border-radius: 4px;
  background-position: 28% 46%;
}

.orb-top2 {
  left: 80px;
  top: 0px;
  width: 80px;
  height: 350px;
  border-radius: 5%;
  background-position: 55% 24%;
}

.orb-tall2 {
  right: 50px;
  top: 80px;
  width: 120px;
  height: 300px;
  border-radius: 10px;
  background-position: 86% 35%;
}

.orb-bottom2 {
  right: 130px;
  bottom: 20px;
  width: 180px;
  height: 210px;
  border-radius: 6px;
  background-position: 64% 78%;
}

.orb-cut2 {
  left: 220px;
  bottom: 120px;
  width: 100px;
  height: 150px;
  border-radius: 8px;
  background-position: 92% 82%;
}

.orb-new {
  right: 150px;
  top: 60px;
  width: 250px;
  height: 70px;
  border-radius: 8px;
  background-position: 45% 64%;
}

/* 品牌条（第一版） */
.brand-strip {
  background: #2558ff;
  color: #fff;
  transform: skewY(-1.15deg);
  margin-top: -1px;
  box-shadow: 0 22px 54px rgba(37, 88, 255, 0.36);
}

.brand-strip .strip-inner {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  transform: skewY(1.15deg);
  font-weight: 850;
  letter-spacing: 0.01em;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.96;
}

.strip-dot {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
}

/* 品牌条（第二版） */
.brand-strip2 {
  background: #2957e1;
  color: #fff;
  transform: skewY(-1.15deg);
  margin-top: -1px;
  box-shadow: 0 22px 54px rgba(37, 88, 255, 0.36);
}

.brand-strip2 .strip-inner2 {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  transform: skewY(1.15deg);
  font-weight: 850;
  letter-spacing: 0.01em;
}

.strip-item2 {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.96;
}

.strip-dot2 {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
}

#authBtn {
  display: none;
}

@keyframes heroPan {
  from { background-position: center top; }
  to { background-position: center bottom; }
}

@keyframes scan {
  from { transform: translateX(-20%); }
  to { transform: translateX(20%); }
}

/* 主内容区 */
main.wrap {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 88px 0 64px;
  position: relative;
}

main.wrap::before {
  content: "BEYOND LOGIC · SHARE · BUILT TO BREAK LIMITS";
  position: absolute;
  top: 60px;
  left: 80%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  z-index: 1000;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(37, 88, 255, 0.34);
}

section,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

section {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(54, 213, 255, 0.72), transparent 30%) top left / 130px 1px no-repeat,
    linear-gradient(180deg, rgba(54, 213, 255, 0.72), transparent 30%) top left / 1px 130px no-repeat,
    linear-gradient(270deg, rgba(37, 88, 255, 0.86), transparent 30%) bottom right / 130px 1px no-repeat,
    linear-gradient(0deg, rgba(192, 44, 255, 0.62), transparent 30%) bottom right / 1px 130px no-repeat;
  opacity: 0.75;
}

h2 {
  color: #fff;
  text-shadow: none;
  font-size: 21px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 9px;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-size: 13px;
  font-weight: 700;
  color: #dce7ff;
}

input,
textarea,
select,
button {
  font: inherit;
}

input[type="password"],
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  color: #f8fbff;
  background: rgba(6, 10, 26, 0.72);
  border: 1px solid rgba(125, 153, 220, 0.28);
  border-radius: 8px;
  outline: none;
  padding: 10px 11px;
  box-shadow: inset 0 0 18px rgba(37, 88, 255, 0.06);
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #36d5ff;
  box-shadow: 0 0 0 3px rgba(54, 213, 255, 0.12), 0 0 22px rgba(37, 88, 255, 0.2);
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  background: #2558ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 34px rgba(37, 88, 255, 0.28);
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 88, 255, 0.36);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost {
  color: #e8f0ff;
  background: rgba(37, 88, 255, 0.11);
  border: 1px solid rgba(72, 110, 255, 0.42);
}

.ghost:hover {
  background: rgba(37, 88, 255, 0.2);
}

.danger {
  color: #ffdce8;
  background: rgba(255, 75, 135, 0.1);
  border: 1px solid rgba(255, 75, 135, 0.42);
}

.danger:hover {
  background: rgba(255, 75, 135, 0.18);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.config-grid label {
  margin-top: 0;
}

.config-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px dashed rgba(80, 116, 255, 0.48);
  border-radius: 8px;
  background: rgba(37, 88, 255, 0.065);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  transform: translateY(-2px);
  border-color: #36d5ff;
  box-shadow: 0 0 28px rgba(54, 213, 255, 0.2);
}

.upload-zone.invalid {
  animation: warnPulse 0.58s ease 2;
  border-color: var(--red);
  box-shadow: 0 0 28px rgba(255, 59, 127, 0.45);
}

.upload-content {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2558ff;
  border: 1px solid rgba(54, 213, 255, 0.38);
  border-radius: 8px;
  font-size: 22px;
  box-shadow: 0 0 24px rgba(37, 88, 255, 0.34);
}

.upload-preview {
  position: absolute;
  inset: 0;
  display: none;
}

.upload-zone.has-image .upload-preview {
  display: block;
}

.upload-zone.has-image .upload-content {
  opacity: 0;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-actions {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.upload-zone:hover .upload-actions {
  opacity: 1;
  transform: translateY(0);
}

.upload-actions button {
  padding: 8px 10px;
  font-size: 12px;
}

@keyframes warnPulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.steps {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 9px;
  background: rgba(9, 16, 35, 0.78);
  font-size: 13px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 700;
}

.step.active {
  border-color: var(--amber);
  background: rgba(244, 240, 10, 0.5);
}

.step.done {
  border-color: var(--green);
  background: rgba(0, 255, 157, 0.09);
}

.step.fail {
  border-color: var(--red);
  background: rgba(255, 59, 127, 0.1);
}

.step.active .badge {
  color: var(--amber);
  background: rgba(230, 175, 76, 0.5);
}

.step.done .badge {
  color: var(--green);
  background: rgba(0, 255, 157, 0.14);
}

.step.fail .badge {
  color: var(--red);
  background: rgba(255, 59, 127, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* 底部按钮栏 */
.primary-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 70;
  width: min(420px, calc(100vw - 32px));
  padding: 12px;
  margin: 0;
  border: 1px solid rgba(54, 213, 255, 0.22);
  border-radius: 10px;
  background: rgba(6, 10, 26, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(37, 88, 255, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
}

#runBtn {
  width: auto;
  min-width: 220px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2558ff, #36d5ff);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(37, 88, 255, 0.38);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 10px;
}

.aspect-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.aspect-card {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #b7c3de;
  background: rgba(37, 88, 255, 0.08);
  border: 1px solid rgba(95, 130, 216, 0.28);
  border-radius: 8px;
  padding: 9px 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow-x: auto;
}

.aspect-card:hover,
.aspect-card.active {
  color: #fff;
  background: #2558ff;
  border-color: #2558ff;
  box-shadow: 0 0 26px rgba(37, 88, 255, 0.34);
}

.aspect-thumb {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.aspect-shape {
  border: 2px solid currentColor;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.18);
}

.aspect-shape.ratio-1-1 { width: 32px; height: 32px; }
.aspect-shape.ratio-3-4 { width: 27px; height: 36px; }
.aspect-shape.ratio-9-16 { width: 22px; height: 39px; }
.aspect-shape.ratio-4-5 { width: 29px; height: 36px; }
.aspect-shape.ratio-16-9 { width: 40px; height: 23px; }

.aspect-card strong {
  color: inherit;
  font-size: 13px;
}

.aspect-card span {
  font-size: 11px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.target-option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  color: #e2e8f8;
  background: rgba(9, 16, 35, 0.78);
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.target-option:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 213, 255, 0.42);
  background: rgba(37, 88, 255, 0.14);
}

.target-option input {
  width: auto;
  accent-color: var(--green);
}

.log {
  min-height: 88px;
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border: 1px solid rgba(95, 130, 216, 0.28);
  border-radius: 10px;
  background: rgba(4, 7, 18, 0.86);
  color: #dce7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  position: static;
  padding: 8px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 8px;
  background: rgba(5, 8, 19, 0.54);
}

.tabs button {
  color: #aebbd7;
  background: transparent;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tabs button.on {
  color: #fff;
  background: #2558ff;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-card {
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(9, 16, 35, 0.78);
}

.prompt-card .meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
  gap: 14px;
}

.result {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(95, 130, 216, 0.28);
  border-radius: 8px;
  background: rgba(15, 25, 52, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.result:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 213, 255, 0.46);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36), 0 0 26px rgba(37, 88, 255, 0.18);
}

.result img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 13px 13px 0 0;
  background: rgba(5, 8, 19, 0.6);
}

.result .cap {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  color: #e8f0ff;
  background: rgba(15, 25, 52, 0.96);
  border-top: 1px solid rgba(95, 130, 216, 0.24);
  font-size: 13px;
  border-radius: 0 0 13px 13px;
}

.result button,
.result a,
.download-all-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: rgba(37, 88, 255, 0.15);
  border: 1px solid rgba(54, 213, 255, 0.35);
  border-radius: 8px;
  padding: 7px;
  text-decoration: none;
  font-weight: 800;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.result-actions button,
.result-actions a {
  min-width: 0;
  font-size: 12px;
}

.results-toolbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 10px;
  background: rgba(9, 16, 35, 0.78);
}

.results-toolbar.show {
  display: flex;
}

.progress-line {
  display: none;
  width: 100%;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(54, 213, 255, 0.28);
}

.progress-line::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c02cff, #36d5ff, #2558ff);
  box-shadow: 0 0 18px rgba(54, 213, 255, 0.7);
  animation: progressFlow 1.1s ease-in-out infinite;
}

.progress-line.active {
  display: block;
}

@keyframes progressFlow {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

/* 灯箱（完善版，包含移动端适配） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 18px;
  background: rgba(3, 6, 17, 0.92);
  backdrop-filter: blur(14px);
}
.lightbox.open {
  display: grid;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.lightbox-stage {
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.lightbox-image-wrap {
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox img {
  display: block;
  max-width: min(100%, calc(100vw - 160px));
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.18);
}
.lightbox button {
  min-width: 44px;
}

/* 历史记录 */
.history {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 240, 255, 0.18);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#historyPager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(195, 210, 255, 0.7);
}

#historyPager button {
  padding: 4px 14px;
  border: 1px solid rgba(95, 130, 216, 0.3);
  border-radius: 6px;
  background: rgba(15, 23, 50, 0.7);
  color: rgba(195, 210, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
}

#historyPager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#historyPager button:not(:disabled):hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
}

.history-card {
  overflow: hidden;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 10px;
  background: rgba(9, 16, 35, 0.78);
}

.history-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  background: rgba(5, 8, 19, 0.6);
}

.history-card button {
  width: 100%;
  border-radius: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
}

.empty-state {
  min-height: 460px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(95, 130, 216, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 28, 0.72);
  text-align: center;
  color: #aebbd7;
}

.empty-orbit {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(54, 213, 255, 0.32);
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
  box-shadow: 0 0 42px rgba(37, 88, 255, 0.16), inset 0 0 34px rgba(192, 44, 255, 0.1);
  animation: rotate 9s linear infinite;
}

.empty-orbit::before,
.empty-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(189, 0, 255, 0.35);
  border-radius: 28%;
  transform: rotate(45deg);
}

.empty-orbit::after {
  inset: 58px;
  border-color: rgba(0, 255, 157, 0.42);
  background: rgba(0, 255, 157, 0.14);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.skeleton-card {
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  background: linear-gradient(110deg, rgba(0, 240, 255, 0.05), rgba(189, 0, 255, 0.18), rgba(0, 255, 157, 0.06));
  background-size: 220% 100%;
  animation: pulseLoad 1.35s ease infinite;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

@keyframes pulseLoad {
  0% { background-position: 0% 50%; opacity: 0.65; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.65; }
}

.hidden {
  display: none;
}

.notice {
  margin-top: 12px;
  padding: 11px;
  color: #ffe8a8;
  background: rgba(255, 211, 107, 0.09);
  border: 1px solid rgba(255, 211, 107, 0.28);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.error-banner {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 75, 135, 0.48);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 75, 135, 0.22), rgba(37, 88, 255, 0.12));
  text-shadow: none;
  position: relative;
  z-index: 2;
}

.error-banner.show {
  display: block;
}

/* 利润表格相关 */
.profit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: var(--profit-bg);
}

.profit-table th,
.profit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(95, 130, 216, 0.18);
  text-align: left;
  font-size: 13px;
}

.profit-table th {
  width: 42%;
  color: #dce7ff;
  font-weight: 800;
}

.profit-table td {
  color: #f8fbff;
}

.profit-table tr:last-child th,
.profit-table tr:last-child td {
  border-bottom: none;
}

.profit-table thead th {
  background: rgba(37, 88, 255, 0.12);
  border-bottom: 1px solid rgba(95, 130, 216, 0.24);
}

.profit-table-compact th,
.profit-table-compact td {
  font-size: 12px;
  padding: 8px 10px;
}

.value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.value-strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.inner-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  background: rgba(6, 10, 26, 0.62);
}

.strategy {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(4, 7, 18, 0.86);
  border: 1px solid rgba(95, 130, 216, 0.28);
  min-height: 56px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.cell-input {
  width: 100%;
  background: var(--profit-bg-2);
  border: 1px solid rgba(125, 153, 220, 0.28);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
}

.cell-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(54, 213, 255, 0.12);
}

#out_profit,
#out_profitRate {
  font-size: 20px;
  font-weight: bold;
  color: #1edd17;
}

/* 竞品对比表格 */
.competitor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border: 1px solid rgba(95, 130, 216, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: var(--profit-bg);
}
.competitor-table thead th {
  background: rgba(37, 88, 255, 0.12);
  border-bottom: 1px solid rgba(95, 130, 216, 0.24);
  font-weight: 800;
  color: #dce7ff;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}
.competitor-table th,
.competitor-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(95, 130, 216, 0.18);
  font-size: 13px;
  color: #f8fbff;
}
.competitor-table tr:last-child th,
.competitor-table tr:last-child td {
  border-bottom: none;
}
.competitor-table th:first-child,
.competitor-table td:first-child {
  width: 8%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.competitor-table th:nth-child(2),
.competitor-table td:nth-child(2) {
  width: 12%;
  text-align: right;
}
.competitor-table th:nth-child(3),
.competitor-table td:nth-child(3) {
  width: 10%;
  text-align: right;
  font-weight: 600;
  color: #ffd966;
}
.competitor-table th:nth-child(4),
.competitor-table td:nth-child(4) {
  width: 12%;
  text-align: right;
}
.competitor-table th:nth-child(5),
.competitor-table td:nth-child(5) {
  width: 15%;
  text-align: right;
}
.competitor-table th:last-child,
.competitor-table td:last-child {
  width: 8%;
  text-align: center;
  white-space: nowrap;
}
.competitor-table td:last-child a {
  color: #36d5ff;
  text-decoration: none;
  font-size: 12px;
}
.competitor-table td:last-child a:hover {
  text-decoration: underline;
}

/* 画廊、订阅卡片等额外组件 */
#greatgallery {
  margin-top: 50px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 5px;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.gallery img:hover {
  transform: scale(1.02);
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 30px 0;
}

#openmannerModal .modal-content {
  width: 900px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#openmannerModal .modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
}

/* 模态框通用样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: rgba(17, 27, 53, 0.96);
  border: 1px solid rgba(54, 213, 255, 0.4);
  border-radius: 16px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 0 40px rgba(37, 88, 255, 0.3);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.2s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(54, 213, 255, 0.3);
}
.modal-header h3 {
  margin: 0;
  color: #36d5ff;
  font-size: 20px;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #aebbd7;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: #ff4b87;
}
.modal-body {
  padding: 20px;
  color: #e8f0ff;
  line-height: 1.7;
  font-size: 14px;
}
.modal-body p {
  margin: 12px 0;
}
.modal-body strong {
  color: #44f0c2;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 隐藏选项（JS 动态控制） */
body.hide-admin .config-grid,
body.hide-admin .sign-in {
  display: none !important;
}
body.hide-download .secondary-actions button#downloadWorkflowBtn {
  display: none !important;
}
body.hide-preview .primary-actions button#previewPayloadBtn {
  display: none !important;
}
body.hide-prompts-tab .tabs button[data-tab="prompts"],
body.hide-payload-tab .tabs button[data-tab="payload"] {
  display: none !important;
}

/* 登录遮罩 */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-overlay.hidden {
  display: none;
}
.login-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: fadeInUp 0.3s ease;
}
.login-card h2 {
  color: #fff;
  margin-bottom: 8px;
}
.login-field {
  margin-bottom: 14px;
}
.login-field input {
  width: 100%;
  color: #f8fbff;
  background: rgba(6, 10, 26, 0.72);
  border: 1px solid rgba(125, 153, 220, 0.28);
  border-radius: 8px;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}
.login-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(54, 213, 255, 0.12);
}
.login-captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.login-captcha-row input {
  flex: 1;
  color: #f8fbff;
  background: rgba(6, 10, 26, 0.72);
  border: 1px solid rgba(125, 153, 220, 0.28);
  border-radius: 8px;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}
.login-captcha-row input:focus {
  border-color: var(--cyan);
}
.captcha-img {
  cursor: pointer;
  border: 1px solid rgba(125, 153, 220, 0.28);
  border-radius: 8px;
  height: 44px;
}
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2558ff, #36d5ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 14px 34px rgba(37, 88, 255, 0.28);
  transition: transform 0.2s, filter 0.2s;
}
.login-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.login-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.login-msg {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}
.login-msg.error { color: var(--red); }
.login-msg.success { color: var(--green); }

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



   /* 双栏布局核心样式 - 实现左侧固定状态栏 + 右侧自适应操作区 */
.two-column-layout {
  display: flex; /* 使用弹性布局实现并排 */
  width:95%;            /* 铺满父容器宽度 */

  min-height: 100vh;
  margin: 40px auto 0;
  position: relative;
  /* 占满视口高度，可按需调整为 min-height: 100vh */
  /*overflow: hidden;       !* 防止整体滚动，子区域各自管理滚动 *!*/
}

/* 左侧容器：状态/侧边栏区域（第一个子元素） */
.two-column-layout > :first-child {
  flex-shrink: 0;         /* 防止被压缩 */
  width: 300px;           /* 固定宽度，模仿经典侧边栏效果（可按需调整） */
  border-right: 1px solid #e9ecef;
  /*overflow-y: auto;       !* 内容过多时独立滚动 *!*/
  padding: 1.25rem;
}

/* 右侧容器：主要操作/结果显示区（第二个子元素） */
.two-column-layout > :last-child {
  flex-grow: 1;           /* 占据剩余所有宽度 */
  /*overflow-y: auto;       !* 内容过多时独立滚动 *!*/
  padding: 3rem;
}

/* 可选：基础页面重置，让布局紧贴边缘 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.two-column-layout::before {
  content: "BEYOND LOGIC · SHARE · BUILT TO BREAK LIMITS";
  position: absolute;
  bottom: 100%;
  left: 80%;            /* 改为 50% 实现居中，避免溢出被裁剪 */
  transform: translateX(-50%);
  width: auto;             /* 不再固定 100%，由内容撑开 */
  white-space: nowrap;     /* 防止换行 */
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(37, 88, 255, 0.34);
  z-index: 10;
  pointer-events: none;    /* 可选：让标题不干扰点击 */
}



   /* 20266/13 大盘总览专用卡片+圆环布局 */

.overview-dashboard {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.overview-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.overview-stat-card {
  flex: 1;
  background: rgba(17, 27, 53, 0.78);
  border: 1px solid rgba(54, 213, 255, 0.28);
  border-radius: 28px;
  padding: 20px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.stat-label {
  font-size: 15px;
  letter-spacing: 2px;
  color: #9aa8c8;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.stat-number {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #36d5ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stat-unit {
  font-size: 16px;
  color: #36d5ff;
  margin-left: 6px;
}
.ring-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
}
.ring-panel {
  flex: 1;
  min-width: 260px;
  background: rgba(9, 16, 35, 0.65);
  border: 1px solid rgba(95,130,216,0.3);
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.ring-panel h4 {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: #cce4ff;
  border-left: 3px solid #36d5ff;
  padding-left: 12px;
}
/* 圆环画布容器 */
.canvas-ring {
  display: flex;
  justify-content: center;
  margin: 20px 0 16px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* 圆环画布：尺寸加大 + 质感增强 */
canvas.ring-canvas {
  width: 430px;          /* 原来 400px，加大到 480px */
  height:430px;
  background: radial-gradient(circle at 30% 25%, rgba(25, 35, 65, 0.7), rgba(8, 12, 24, 0.95));
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(54, 213, 255, 0.3),
              0 18px 35px rgba(0, 0, 0, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

canvas.ring-canvas:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(54, 213, 255, 0.5),
              0 22px 40px rgba(0, 0, 0, 0.6);
}
.legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: rgba(37,88,255,0.1);
  border-radius: 20px;
  padding: 4px 10px;
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}
.legend-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-percent {
  font-weight: 600;
  color: #44f0c2;
}

 /* ===== Solar Loader ===== */

.solar-loader{
    position: relative;
    width: 200px;
    height: 200px;
    margin: auto;
}

.star{
    position: absolute;
    left: 53%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #ffe066, #ffb347);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 192, 0, 0.6),
                0 0 30px rgba(255, 165, 0, 0.4);
}

/* 行星轨道公共样式 */
.planet{
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

/* 行星1 */
.planet1{
    width: 18px;
    height: 18px;
    background: #4fc3ff;
    transform: translateX(60px) translateY(-50%);
    animation: orbit1 4s linear infinite;
}

/* 行星2 */
.planet2{
    width: 10px;
    height: 10px;
    background: #ff6f91;
    transform: translateX(90px) translateY(-50%);
    animation: orbit2 6s linear infinite reverse;
}

/* 行星3 */
.planet3{
    width: 12px;
    height: 12px;
    background: #a29bfe;
    transform: translateX(120px) translateY(-50%);
    animation: orbit3 8s linear infinite;
}

/* 行星4 */
.planet4{
    width: 8px;
    height: 8px;
    background: #00b894;
    transform: translateX(150px) translateY(-50%);
    animation: orbit4 10s linear infinite reverse;
}

/* 轨道动画 */
@keyframes orbit1{
    0% { transform: rotate(0deg) translateX(60px) translateY(-50%); }
    100% { transform: rotate(360deg) translateX(60px) translateY(-50%); }
}

@keyframes orbit2{
    0% { transform: rotate(0deg) translateX(90px) translateY(-50%); }
    100% { transform: rotate(360deg) translateX(90px) translateY(-50%); }
}

@keyframes orbit3{
    0% { transform: rotate(0deg) translateX(120px) translateY(-50%); }
    100% { transform: rotate(360deg) translateX(120px) translateY(-50%); }
}

@keyframes orbit4{
    0% { transform: rotate(0deg) translateX(150px) translateY(-50%); }
    100% { transform: rotate(360deg) translateX(150px) translateY(-50%); }
}

/* ===== 轨道 ===== */

.orbit{
    position: absolute;
    top: 54.5%;
    left: 53%;
    border: 1px solid rgba(255,255,255,0.15); /* 高级半透明 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 每个行星轨道大小 */
.orbit1{ width: 120px; height: 120px; }
.orbit2{ width: 180px; height: 180px; }
.orbit3{ width: 240px; height: 240px; }
.orbit4{ width: 300px; height: 300px; }


/* 表格整体：圆润 + 光晕 */
/* ========== 表格容器 ========== */
/* ========== 表格容器 ========== */
.table-scroll-wrapper {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  overflow-x: auto;
  overflow-y: visible !important;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  position: relative;
  z-index: 1;
}

/* ========== 表格整体 - 关键修复 ========== */
.product-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse !important;  /* ✅ 改为 collapse，避免 separate 导致的裁剪 */
  border-radius: 20px;
  overflow: visible !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ========== 所有元素允许溢出 ========== */
.product-table,
.product-table thead,
.product-table tbody,
.product-table tr,
.product-table th,
.product-table td {
  overflow: visible !important;
}

/* ========== 单元格样式 ========== */
.product-table th,
.product-table td {
  padding: 14px 10px;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid rgba(0, 255, 255, 0.25);
  border-bottom: 1px solid rgba(153, 223, 28, 0.3);
  white-space: nowrap;
  font-size: 13px;
  color: #f0f3ff;
  background-color: rgba(24, 37, 72, 0.75);
  overflow: visible !important;
  position: relative;
}

/* ========== 表头 ========== */
.product-table th {
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(132, 25, 223, 0.95), rgba(80, 0, 180, 0.95));
  color: #ffffff;
  border-bottom: 2px solid #99df1c;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ========== 图片列 - 最高层级 ========== */
.product-table td:nth-child(2) {
  overflow: visible !important;
  position: relative;
  z-index: 100;  /* 提高层级 */
}

/* ========== 图片样式 ========== */
.product-table img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 101;
  transition: all 0.3s ease;
}

/* ========== 点击放大 - 彻底脱离表格 ========== */
.product-table img:active {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-30%, -50%) scale(45%) !important;
  width: auto !important;
  height: auto !important;
  max-width: 80vw !important;
  max-height: 80vh !important;
  z-index: 999999 !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  border: 3px solid #99df1c !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95) !important;
  background: rgba(0, 0, 0, 0.9) !important;
  padding: 20px !important;
  pointer-events: none !important;
}

/* ========== 行悬浮 ========== */
.product-table tbody tr:hover td {
  background: rgba(0, 255, 255, 0.12);
}

/* ========== 链接 ========== */
.product-table a {
  color: #36d5ff;
  text-decoration: none;
  font-weight: 500;
}
.product-table a:hover {
  text-decoration: underline;
  color: #99df1c;
}

/* ========== 滚动条 ========== */
.table-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}
.table-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(54, 213, 255, 0.5);
  border-radius: 10px;
}
.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(54, 213, 255, 0.8);
}



/* ========== 响应式调整 ========== */
@media screen and (max-width: 1200px) {
  .product-table th,
  .product-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .product-table img {
    width: 40px;
    max-height: 40px;
  }


}

@media screen and (max-width: 768px) {
  .product-table th,
  .product-table td {
    padding: 8px 4px;
    font-size: 11px;
    height: 45px;
  }

  .product-table img {
    width: 30px;
    max-height: 30px;
  }


}





/* 响应式调整 */
@media (max-width: 980px) {
  .hero-content,
  .hero-content2,
  main.wrap {
    grid-template-columns: 1fr;
  }
  #guide {
    position: static;
    max-height: none;
  }
  .hero-collage,
  .hero-collage2 {
    min-height: 390px;
  }
  .aspect-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profit-table th {
    width: 48%;
  }
  .competitor-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

   .two-column-layout > :first-child {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero, .hero2 {
    min-height: auto;
  }
  .hero-content, .hero-content2 {
    min-height: auto;
    padding: 74px 0 48px;
  }
  .hero h2, .hero2 h2 {
    font-size: 38px;
  }
  .hero-collage, .hero-collage2 {
    display: none;
  }
  .brand-strip .strip-inner,
  .brand-strip2 .strip-inner2,
  .target-grid,
  .aspect-picker,
  .primary-actions {
    grid-template-columns: 1fr;
  }
  main.wrap::before {
    position: static;
    transform: none;
    margin-bottom: 18px;
    font-size: 21px;
    text-align: left;
  }
  .primary-actions {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
  }
  /* 历史任务手机端纵向全宽布局 */
  #historyGrid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 8px 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  .history-card {
    background: rgba(9, 16, 35, 0.78);
    border-radius: 12px;
    display: block !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px !important;
    margin: 0 !important;
    max-height: none !important;
  }
  .history-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: contain !important;
    background: #0a0f1f;
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
  }
  .history-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    flex-wrap: wrap !important;
  }
  .history-actions button {
    flex: 1 !important;
    min-width: 100px !important;
    font-size: 14px !important;
    padding: 10px 6px !important;
    white-space: nowrap;
  }
  .history-meta {
    padding: 8px 0 0 !important;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }
  #historyPager {
    margin-top: 24px;
    padding: 12px 0;
    clear: both;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .results-toolbar .download-all-btn {
    display: none !important;
  }
  /* 订阅卡片手机端单列 */
  .subscribe-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #subscribeModal .modal-content {
    width: 95vw !important;
    padding: 12px;
  }
  .subscribe-grid {
    gap: 20px !important;
  }
  .subscribe-grid > div {
    padding: 12px !important;
  }
  .subscribe-grid .subscribe-select {
    font-size: 14px;
    padding: 8px;
  }
  #subscribeModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px;
  }
  /* 灯箱手机调整 */
  .lightbox {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    padding: 20px 12px 80px 12px !important;
  }
  .lightbox-bar {
    justify-content: flex-start !important;
    margin-bottom: 16px;
  }
  .lightbox-bar button#lightboxClose {
    order: -1;
    margin-right: 15px;
  }
  .lightbox-bar strong {
    order: 0;
    margin-left: 0;
  }
  .lightbox-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 12px !important;
    grid-template-columns: unset !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .lightbox-image-wrap {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .lightbox-stage img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 180px) !important;
    object-fit: contain !important;
  }
  .lightbox-stage button {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

   .two-column-layout > :first-child {
    width: 200px;
  }
}


