﻿:root {

  /* 苹果风格色彩系统 - 增强版本 */

  --bg-primary: #fafbfc;

  --bg-secondary: #f5f5f7;

  --bg-tertiary: #ffffff;

  --bg-elevated: #ffffff;

  --bg-card: #ffffff;

  --bg-section: #f8f9fa;

  --bg-overlay: rgba(0, 0, 0, 0.04);

  --bg-hover: rgba(0, 122, 255, 0.04);

  --bg-selected: #007aff;

  --text-primary: #1d1d1f;

  --text-secondary: #6e6e73;

  --text-tertiary: #8e8e93;

  --text-white: #ffffff;

  --primary: #007aff;

  --primary-hover: #0056d6;

  --primary-active: #004aad;

  --secondary: #5856d6;

  --success: #34c759;

  --warning: #ff9500;

  --error: #ff3b30;

  --border-light: rgba(0, 0, 0, 0.04);

  --border-medium: rgba(0, 0, 0, 0.08);

  --border-strong: rgba(0, 0, 0, 0.12);

  --border-card: rgba(0, 0, 0, 0.06);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);

  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);

  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);

  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);

  --radius-xs: 4px;

  --radius-sm: 8px;

  --radius-md: 12px;

  --radius-lg: 16px;

  --radius-xl: 20px;

  --spacing-xs: 4px;

  --spacing-sm: 8px;

  --spacing-md: 16px;

  --spacing-lg: 24px;

  --spacing-xl: 32px;

  --spacing-2xl: 48px;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Roboto", "Arial", sans-serif;

  --font-size-xs: 12px;

  --font-size-sm: 14px;

  --font-size-base: 16px;

  --font-size-lg: 18px;

  --font-size-xl: 20px;

  --font-size-2xl: 24px;

  --font-size-3xl: 32px;

  --font-weight-light: 300;

  --font-weight-regular: 400;

  --font-weight-medium: 500;

  --font-weight-semibold: 600;

  --font-weight-bold: 700;

  --transition-fast: 0.15s ease;

  --transition-normal: 0.25s ease;

  --transition-slow: 0.35s ease;

  /* legacy color aliases to keep existing UI pieces working */

  --text: var(--text-primary);

  --muted: var(--text-secondary);

  --accent: var(--primary);

  --border: var(--border-medium);

  --card: var(--bg-card);

  --card-strong: var(--bg-elevated);

}

*,

*::before,

*::after {

  box-sizing: border-box;

}

body {

  margin: 0;

  background: var(--bg-primary);

  color: var(--text-primary);

  min-height: 100vh;

  font-family: var(--font-family);

  font-size: var(--font-size-base);

  font-weight: var(--font-weight-regular);

  line-height: 1.5;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

}

body.home {
  background-color: #000000;
  background-image: none;
  color: #ecf1ff;
}

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.35), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

body.home .site-header,
body.home .notice {
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ecf1ff;
}

body.home .notice-item {
  color: rgba(236, 241, 255, 0.85);
}

body.home nav a,
body.home .brand p,
body.home .brand small {
  color: rgba(236, 241, 255, 0.85);
}

body.home nav a.active {
  color: var(--primary);
}

body.home .account-dropdown {
  background: rgba(12, 16, 26, 0.92);
  color: #ecf1ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .card {
  background: rgba(12, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(4, 6, 12, 0.45);
}

body.home .ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(236, 241, 255, 0.9);
}

.landing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px var(--spacing-lg) 88px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.promo-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.promo-logo {
  position: relative;
  padding: 16px 24px 8px;
}

.promo-logo-image {
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  display: block;
  margin: 0 auto 8px;
  border-radius: 18px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  animation: float-logo 6s ease-in-out infinite;
}


.promo-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 122, 255, 0.18), rgba(13, 18, 32, 0) 60%),
    radial-gradient(circle, rgba(88, 86, 214, 0.18), rgba(13, 18, 32, 0) 68%);
  filter: blur(12px);
  z-index: -1;
}

.promo-eyebrow {
  margin: 0;
  color: rgba(236, 241, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.promo-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  color: #f5f7ff;
}

.promo-subtitle {
  margin: 0;
  max-width: 720px;
  color: rgba(236, 241, 255, 0.72);
  font-size: 16px;
}

.promo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-input {
  width: min(680px, 92vw);
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
}

.promo-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f5f7ff;
  font-size: 14px;
  outline: none;
}

.promo-input input::placeholder {
  color: rgba(236, 241, 255, 0.55);
}

.promo-input .primary {
  white-space: nowrap;
}

.promo-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-showcase {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.showcase-header {
  text-align: center;
  margin-bottom: 24px;
}

.showcase-header h2 {
  margin: 0 0 6px;
  color: #f5f7ff;
}

.showcase-header p {
  margin: 0;
  color: rgba(236, 241, 255, 0.68);
  font-size: 14px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-card:first-of-type {
  border-top: none;
}

.showcase-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 241, 255, 0.6);
}

.showcase-copy h3 {
  margin: 0;
  color: #f5f7ff;
  font-size: 20px;
}

.showcase-copy p {
  margin: 0;
  color: rgba(236, 241, 255, 0.7);
  font-size: 14px;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.visual-panel {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.22), rgba(88, 86, 214, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.visual-panel.visual-alt {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.18), rgba(0, 122, 255, 0.25));
}

.visual-panel.visual-img {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(255, 59, 48, 0.2));
}

.feature-item {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise-in 0.6s ease both;
}

.feature-item h3 {
  margin: 0;
  font-size: 18px;
  color: #f5f7ff;
}

.feature-item p {
  margin: 0;
  color: rgba(236, 241, 255, 0.7);
  font-size: 14px;
}

.feature-item a {
  margin-top: 6px;
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .promo-features {
    grid-template-columns: 1fr;
  }

  .promo-input {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-card {
    grid-template-columns: 1fr;
  }
}



  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.landing {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.hero-card {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
}

.hero-media {
  flex: 1;
  min-width: 260px;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  flex: 1;
  min-width: 280px;
}

.hero-copy .eyebrow {
  margin: 0 0 8px;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
}

.hero-copy .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 280px;
}

.hero-highlight {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.06);
}

.hero-highlight h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.hero-highlight p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.flow-card .section-heading {
  margin-bottom: 16px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

@media (max-width: 980px) {
  .hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 移除复杂的背景效果，保持简洁 */

.page {

  max-width: 1200px;

  margin: 0 auto;

  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);

}

/* Soft color wash for content surfaces */
.site-header,
.notice,
.function-section,
.section-card,
.card,
.feature-card,
.content-card,
.sidebar-card {
  background-image: linear-gradient(135deg, rgba(33, 197, 166, 0.06), rgba(30, 139, 255, 0.04));
}



a {

  color: var(--primary);

  text-decoration: none;

  transition: color var(--transition-fast);

}

a:hover {

  color: var(--primary-hover);

}

a:active {

  color: var(--primary-active);

}

button {

  font-family: inherit;

  font-size: var(--font-size-base);

  font-weight: var(--font-weight-medium);

  border: none;

  border-radius: var(--radius-md);

  cursor: pointer;

  transition: all var(--transition-normal);

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: var(--spacing-sm);

  outline: none;

  -webkit-appearance: none;

  appearance: none;

  -webkit-tap-highlight-color: transparent;

}

button:active {

  transform: scale(0.98);

}

.primary,

.ghost {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  gap: 8px;

}

.primary {

  background: var(--primary);

  color: var(--text-white);

  padding: var(--spacing-md) var(--spacing-xl);

  border-radius: var(--radius-md);

  font-weight: var(--font-weight-medium);

  min-height: 44px;

  box-shadow: var(--shadow-sm);

}

.primary:hover {

  background: var(--primary-hover);

  box-shadow: var(--shadow-md);

}

.primary:active {

  background: var(--primary-active);

  box-shadow: var(--shadow-xs);

  transform: scale(0.98);

}

.primary.small {

  padding: var(--spacing-sm) var(--spacing-lg);

  min-height: 36px;

  font-size: var(--font-size-sm);

}

.primary.soft {

  background: transparent;

  color: var(--primary);

  box-shadow: none;

  border: 1px solid var(--border-medium);

}

.primary.soft:hover {

  background: rgba(0, 122, 255, 0.08);

  border-color: var(--border-strong);

}

.ghost {

  background: var(--bg-elevated);

  color: var(--text-primary);

  padding: var(--spacing-md) var(--spacing-xl);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-medium);

  box-shadow: var(--shadow-xs);

}

.ghost:hover {

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));

  border-color: var(--border-strong);

  box-shadow: var(--shadow-sm);

}

.ghost.small {

  padding: 8px 16px;

  font-size: 14px;

}

.ghost.icon-btn {

  display: inline-flex;

  align-items: center;

  gap: 8px;

}

.plain-btn {

  background: transparent;

  color: var(--primary);

  border: none;

  padding: 0;

  font-weight: 500;

}

.full {

  width: 100%;

}

.badge {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 4px 12px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 0.6px;

  text-transform: uppercase;

  background: rgba(30, 139, 255, 0.16);

  color: var(--primary);

}

.badge.subtle {

  background: rgba(30, 139, 255, 0.12);

}



.tier-badge {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 2px 8px;

  border-radius: 12px;

  font-size: 11px;

  font-weight: 600;

  text-transform: none;

  letter-spacing: normal;

  margin-top: 4px;

}



.tier-badge-lite {

  background: rgba(40, 167, 69, 0.16);

  color: #28a745;

}



.tier-badge-pro {

  background: rgba(0, 123, 255, 0.16);

  color: #007bff;

}



.tier-badge-max {

  background: rgba(220, 53, 69, 0.16);

  color: #dc3545;

}

.site-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;

  margin-top: 12px;

  margin-bottom: 18px;

}

.brand {

  display: flex;

  gap: 14px;

  align-items: center;

}

.brand p {
  margin: 0;
}

.brand small {
  margin: 0;
}

.logo-mark {

  width: 40px;

  height: 40px;

  border-radius: var(--radius-md);

  background-color: transparent;

  background-image: url("./logo-64.png");

  background-repeat: no-repeat;

  background-position: center;

  background-size: cover;

  color: transparent;

  font-weight: var(--font-weight-bold);

  font-size: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: var(--shadow-sm);

  transition: all var(--transition-normal);

}

.logo-mark:hover {

  background-image: url("./logo-64.png");

  background-repeat: no-repeat;

  background-position: center;

  background-size: cover;

  box-shadow: var(--shadow-md);

  transform: scale(1.15);

}

.brand h1 {

  margin: 0;

  font-size: var(--font-size-xl);

  font-weight: var(--font-weight-semibold);

  color: var(--text-primary);

  line-height: 1.2;

}

.brand small {

  color: var(--text-tertiary);

  font-size: var(--font-size-sm);

  font-weight: var(--font-weight-regular);

  margin-top: var(--spacing-xs);

  display: block;

}

nav {

  display: flex;

  gap: var(--spacing-md);

}

nav a,

nav .more {

  color: var(--text-secondary);

  font-weight: var(--font-weight-medium);

  padding: var(--spacing-sm) var(--spacing-md);

  border-radius: var(--radius-md);

  transition: all var(--transition-normal);

  text-decoration: none;

}


nav a.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
  font-weight: var(--font-weight-semibold);
}
nav a:hover,
nav .more:hover {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
}
nav .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
nav .nav-dropdown-toggle {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: calc(var(--spacing-sm) - 1px) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}
nav .nav-dropdown-toggle:hover,
nav .nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
}
nav .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  pointer-events: none;
}
nav .nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-secondary);
}
nav .nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
}

nav .nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 18px;
}
nav .nav-dropdown:hover .nav-dropdown-menu,
nav .nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  pointer-events: auto;
}
nav .nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  pointer-events: auto;
}
nav a[href="./batch.html"] {
  display: none;
}

/* Admin sub-tabs */
.subtab-btn {
  border: 1px solid #d7dfeb;
  background: #f7f9fc;
  color: #1d1d1f;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.subtab-btn.active {
  background: #1e8bff;
  color: #fff;
  border-color: #1e8bff;
  box-shadow: 0 6px 14px rgba(30, 139, 255, 0.25);
}
.subtab-btn:hover {
  border-color: #1e8bff;
  color: #1e8bff;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #1e8bff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  cursor: pointer;
}
.user {

  display: flex;

  align-items: center;

  gap: 12px;

  position: relative;

}

.user-chip {

  padding: 6px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.8);

  border: 1px solid var(--border);

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-weight: 600;

  font-size: var(--font-size-sm);

  line-height: 1;

  min-height: 36px;

  box-shadow: 0 6px 16px rgba(15, 30, 63, 0.08);

}

.user-chip.active {

  border-color: var(--primary);

  box-shadow: 0 6px 18px rgba(30, 139, 255, 0.2);

}

.account-dropdown {

  position: absolute;

  right: 0;

  top: calc(100% + 10px);

  width: 240px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  border-radius: 18px;

  border: 1px solid rgba(27, 73, 143, 0.15);

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);

  padding: 16px;

  display: none;

  flex-direction: column;

  gap: 12px;

  z-index: 5;

}

.account-dropdown.open {

  display: flex;

}

.account-header {

  display: flex;

  gap: 12px;

  align-items: center;

}

.account-header p {

  margin: 0;

  font-weight: 600;

}


.account-header small {

  display: block;

  color: var(--muted);

}

.avatar {

  width: 46px;

  height: 46px;

  border-radius: 50%;

  background: rgba(30, 139, 255, 0.12);

  display: grid;

  place-items: center;

  font-weight: 700;

}

.account-points {

  display: flex;

  justify-content: space-between;

  align-items: center;
  gap: 10px;

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.1), rgba(30, 139, 255, 0.08));

  border-radius: 14px;

  padding: 10px 14px;

}

.account-points > div {

  min-width: 0;

}

.account-points .ghost.tiny {

  white-space: nowrap;
  flex-shrink: 0;

}

.account-points strong {

  font-size: 20px;

}

.account-coupons {

  border-radius: 14px;

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.12), rgba(30, 139, 255, 0.06));

  padding: 8px 12px;

}

.coupons-header {

  display: grid;
  grid-template-columns: 1fr auto;

  align-items: center;
  gap: 8px;

  margin-bottom: 8px;

}

.coupon-actions {

  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;

}

.coupons-header p {

  margin: 0;

  font-size: 12px;

  font-weight: 600;

  color: var(--text);
  white-space: nowrap;

}

.coupons-header small {

  font-size: 10px;

  color: var(--muted);
  white-space: nowrap;

}

.coupon-actions .ghost.tiny {

  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;

}

.coupons-list {

  max-height: 120px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 6px;

}

.empty-coupons {

  text-align: center;

  padding: 12px;

  font-size: 12px;

  color: var(--muted);

}

.coupon-item {

  background: white;

  border: 1px dashed rgba(34, 214, 196, 0.3);

  border-radius: 8px;

  padding: 8px 10px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 12px;

}

.coupon-amount {

  font-weight: 700;

  color: var(--accent);

  font-size: 14px;

}

.coupon-expire {

  font-size: 10px;

  color: var(--muted);

}

.coupon-item.used {

  opacity: 0.5;

  background: rgba(0, 0, 0, 0.02);

}

.account-links {

  list-style: none;

  padding: 0;

  margin: 0;

  display: flex;

  flex-direction: column;

  gap: 8px;

}

.account-links a {

  color: var(--text);

  display: inline-flex;

  gap: 8px;

  align-items: center;

}

.tier-actions {

  display: flex;

  align-items: center;

  gap: 6px;

  margin-top: 6px;

  font-size: 12px;

  color: var(--muted);

}

.tier-actions a {

  color: var(--primary);

  font-weight: 600;

}

.tier-actions .divider {

  color: var(--border-strong);

}

.ghost.tiny {

  padding: 6px 10px;

  font-size: 12px;

}

.ghost.full {

  width: 100%;

}

.hidden {

  display: none !important;

}

.dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  display: inline-block;

}

.dot.online {

  background: var(--accent);

  box-shadow: 0 0 12px rgba(34, 214, 196, 0.6);

}

.notice {

  padding: var(--spacing-md) var(--spacing-lg);

  border-radius: var(--radius-md);

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));

  color: var(--text-secondary);

  border: 1px solid var(--border-light);

  margin-bottom: var(--spacing-lg);

  font-size: var(--font-size-sm);

  line-height: 1.5;

  overflow: hidden;

  position: relative;

}

.notice-rotator {

  position: relative;

  min-height: 40px;

}

.notice-item {

  position: absolute;

  left: 0;

  right: 0;

  opacity: 0;

  transform: translateY(8px);

  transition: opacity 0.6s ease, transform 0.6s ease;

  font-weight: 600;

  color: #0f172a;

}

.notice-item.active {

  opacity: 1;

  transform: translateY(0);

}

.notice-item::before {

  content: "⚡";

  margin-right: 6px;

  color: #d97706;

}

.workspace {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-xl);

}

.function-section {

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-xl);

  padding: var(--spacing-2xl);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-sm);

}

.function-header {

  margin-bottom: var(--spacing-xl);

  padding-bottom: var(--spacing-md);

  border-bottom: 1px solid var(--border-light);

}

.function-title {

  font-size: var(--font-size-xl);

  font-weight: var(--font-weight-semibold);

  color: var(--text-primary);

  margin-bottom: var(--spacing-xs);

}

.function-subtitle {

  color: var(--text-tertiary);

  font-size: var(--font-size-sm);

  line-height: 1.4;

}

.generator-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}
.generator-pane {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
.generator-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
}
.generator-tab {
  background: transparent;
  color: var(--text-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.generator-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}
.generator-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-xs);
}
.generator-panel {
  display: none;
}
.generator-panel.active {
  display: block;
}
.card {

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-xl);

  border: 1px solid var(--border-card);

  box-shadow: var(--shadow-card);

  transition: all var(--transition-normal);

  position: relative;

  overflow: hidden;

}

.card::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 1px;

  background: linear-gradient(90deg,

    transparent,

    rgba(255, 255, 255, 0.3),

    transparent);

  opacity: 0;

  transition: opacity var(--transition-normal);

}

.card:hover {

  box-shadow: var(--shadow-card-hover);

  transform: translateY(-2px);

  border-color: var(--border-medium);

}

.card:hover::before {

  opacity: 1;

}

/* 功能区域卡片 */

.function-card {

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-xl);

  border: 1px solid var(--border-card);

  box-shadow: var(--shadow-card);

  transition: all var(--transition-normal);

  position: relative;

}

.function-card:hover {

  box-shadow: var(--shadow-card-hover);

  transform: translateY(-2px);

  border-color: var(--border-medium);

}

.section-card {

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-xl);

  padding: var(--spacing-2xl);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-sm);

  margin-bottom: var(--spacing-xl);

}

.feature-card {

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-lg);

  border: 1px solid var(--border-card);

  box-shadow: var(--shadow-card);

  transition: all var(--transition-normal);

  height: 100%;

  display: flex;

  flex-direction: column;

}

.feature-card:hover {

  box-shadow: var(--shadow-card-hover);

  transform: translateY(-1px);

}

.content-card {

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-xl);

  border: 1px solid var(--border-card);

  box-shadow: var(--shadow-card);

  margin-bottom: var(--spacing-lg);

}

.sidebar-card {

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-lg);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-xs);

  margin-bottom: var(--spacing-md);

}

.brief-card header {

  display: flex;

  justify-content: space-between;

  gap: 12px;

  align-items: center;

  flex-wrap: wrap;

  margin-bottom: 24px;

}

.brief-card h2 {

  margin: 0 0 var(--spacing-sm) 0;

  font-size: var(--font-size-2xl);

  font-weight: var(--font-weight-semibold);

  color: var(--text-primary);

  line-height: 1.3;

}

.brief-card p {

  margin: var(--spacing-xs) 0 0 0;

  color: var(--text-tertiary);

  font-size: var(--font-size-sm);

  line-height: 1.5;

}

.progress-track {

  margin-bottom: 24px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 14px 20px;

  border-radius: var(--radius-lg);

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-card);

}

.progress-step {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: 13px;

  color: var(--text-secondary);

}

.progress-step .dot {

  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: var(--border-medium);

  display: inline-block;

  position: relative;

}

.progress-step.active {

  color: var(--primary);

  font-weight: 600;

}

.progress-step.active .dot {

  background: var(--primary);

  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.12);

  animation: pulse 2s ease-in-out infinite;

}

@keyframes pulse {

  0%, 100% {

    transform: scale(1);

    opacity: 1;

  }

  50% {

    transform: scale(1.1);

    opacity: 0.8;

  }

}

.progress-divider {

  flex: 1;

  height: 1px;

  background: var(--border-light);

}

.brief-form {

  display: flex;

  flex-direction: column;

  gap: 16px;

}

.brief-form label {

  font-size: 14px;

  font-weight: 600;

  display: flex;

  justify-content: space-between;

  align-items: center;

  color: var(--text);

}

.textarea-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 12px;

}

.label-stack {

  flex: 1;

}

.label-stack label {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

  display: inline-block;

  margin-bottom: 4px;

}

.helper {

  margin: 0;

  font-size: 12px;

  color: var(--muted);

  line-height: 1.4;

}

.hint {

  font-size: 12px;

  color: var(--muted);

  font-weight: 400;

}

input,

textarea {

  font-family: inherit;

  font-size: var(--font-size-base);

  padding: var(--spacing-md);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-medium);

  background: var(--bg-elevated);

  color: var(--text-primary);

  transition: all var(--transition-normal);

  outline: none;

  -webkit-appearance: none;

  appearance: none;

  resize: none;

}

input::placeholder,

textarea::placeholder {

  color: var(--text-tertiary);

}

input:focus,

textarea:focus {

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);

}

input:hover,

textarea:hover {

  border-color: var(--border-strong);

}

.textarea-meta {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 13px;

  color: var(--muted);

}

.textarea-meta .over-limit {

  color: #d64545;

  font-weight: 600;

}

.deliverable-selector {

  margin-top: 14px;

  padding: 20px;

  border: 1px solid var(--border-light);

  border-radius: var(--radius-md);

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  box-shadow: var(--shadow-card);

}

.deliverable-selector h3 {

  margin: 0 0 4px;

  font-size: 15px;

}

.deliverable-selector .hint {

  margin: 4px 0 0;

  line-height: 1.4;

}

.deliverable-grid {

  margin-top: 8px;

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

  gap: 6px;

}

.deliverable-item {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 10px 14px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-light);

  background: var(--bg-tertiary);

  font-size: 13px;

  transition: all 0.2s ease;

  cursor: pointer;

  position: relative;

}

.deliverable-item:hover {

  border-color: var(--primary);

  background: var(--bg-hover);

  transform: translateY(-1px);

}

.deliverable-item input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}

.deliverable-item span {

  display: inline-flex;

  align-items: center;

  gap: 8px;

}

.deliverable-item span::before {

  content: "";

  width: 18px;

  height: 18px;

  border-radius: 6px;

  border: 2px solid var(--border-medium);

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 13px;

  color: #fff;

  transition: all 0.2s ease;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);

}

.deliverable-item.required {

  border-style: dashed;

  background: rgba(0, 122, 255, 0.06);

  border-color: rgba(0, 122, 255, 0.25);

}

.deliverable-item input:checked + span {

  color: var(--primary);

  font-weight: 600;

}

.deliverable-item input:checked + span::before {

  content: "✓";

  background: var(--primary);

  border-color: var(--primary);

  color: #fff;

  box-shadow: 0 6px 12px rgba(0, 122, 255, 0.25);

}

.deliverable-item.required input:disabled + span::before {

  background: var(--primary);

  border-color: var(--primary);

  color: #fff;

}

.deliverable-item input:focus-visible + span::before {

  outline: 2px solid rgba(0, 122, 255, 0.35);

  outline-offset: 2px;

}

.form-actions {

  display: flex;

  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;

  margin-top: 10px;

}

.batch-info {

  margin-top: var(--spacing-md);

  padding: var(--spacing-md);

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));

  border: 1px solid var(--border-light);

  border-radius: var(--radius-md);

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: var(--spacing-md);

}

.batch-info p {

  margin: 4px 0 0;

  font-size: 14px;

  color: var(--text-secondary);

}

.showcase-card {

  display: flex;

  flex-direction: column;

  gap: 16px;

}

.showcase-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}

.showcase-media {

  border-radius: var(--radius-md);

  background: linear-gradient(135deg, rgba(30, 139, 255, 0.12), rgba(34, 214, 196, 0.2));

  padding: 18px;

}

.mock-player {

  background: var(--card-strong);

  border-radius: 20px;

  height: 220px;

  position: relative;

  padding: 16px;

  border: 1px solid rgba(27, 73, 143, 0.12);

  box-shadow: inset 0 0 20px rgba(30, 139, 255, 0.08);

}

.player-bar {

  display: flex;

  gap: 4px;

}

.player-bar span {

  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: rgba(14, 29, 51, 0.15);

}

.play-btn {

  position: absolute;

  inset: 0;

  margin: auto;

  width: 68px;

  height: 68px;

  border-radius: 50%;

  border: 1px solid rgba(14, 29, 51, 0.15);

  background: rgba(255, 255, 255, 0.65);

  color: var(--primary);

  font-size: 22px;

  box-shadow: 0 10px 25px rgba(14, 29, 51, 0.15);

}

.quick-links {

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

}

.quick-links button {

  flex: 1;

  min-width: 120px;

  padding: 10px 14px;

  border-radius: 14px;

  border: 1px dashed rgba(27, 73, 143, 0.25);

  background: rgba(255, 255, 255, 0.65);

  color: var(--text);

}

.right-column {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-xl);

}

.quick-entry .entry-list {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin-top: 16px;

}

.quick-entry a {

  padding: 10px 12px;

  border-radius: 12px;

  border: 1px solid rgba(27, 73, 143, 0.2);

  background: rgba(255, 255, 255, 0.85);

  color: var(--muted);

  font-weight: 500;

  text-align: center;

}

.recent-projects {

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-xl);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-xs);

}

.recent-projects .section-heading {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: var(--spacing-md);

  flex-wrap: wrap;

  margin-bottom: var(--spacing-lg);

  padding-bottom: var(--spacing-md);

  border-bottom: 1px solid var(--border-light);

}

.recent-projects h3 {

  margin: 0;

  font-size: var(--font-size-lg);

  font-weight: var(--font-weight-semibold);

  color: var(--text-primary);

}

.empty-state {

  margin-top: 8px;

  padding: 40px;

  text-align: center;

  color: var(--muted);

  border-radius: var(--radius-md);

  background: rgba(255, 255, 255, 0.8);

  border: 1px dashed rgba(27, 73, 143, 0.25);

}

.project-list {

  display: none;

  flex-direction: column;

  gap: 14px;

  margin-top: 8px;

}

.project-item {

  padding: var(--spacing-xl);

  border-radius: var(--radius-lg);

  border: 1px solid var(--border-card);

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  box-shadow: var(--shadow-card);

  transition: all var(--transition-normal);

  position: relative;

  overflow: hidden;

  margin-bottom: var(--spacing-lg);

}

.project-item::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 1px;

  background: linear-gradient(90deg,

    transparent,

    rgba(255, 255, 255, 0.3),

    transparent);

  opacity: 0;

  transition: opacity var(--transition-normal);

}

.project-item:hover {

  border-color: var(--border-medium);

  box-shadow: var(--shadow-card-hover);

  transform: translateY(-2px);

}

.project-item:hover::before {

  opacity: 1;

}

.project-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 16px;

  margin-bottom: 12px;

}

.project-name {

  margin: 0 0 6px;

  font-size: 17px;

  font-weight: 700;

  color: var(--text);

  line-height: 1.3;

}

.project-meta-line {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

}

.project-id {

  font-size: 12px;

  color: var(--muted);

  font-weight: 500;

  letter-spacing: 0.3px;

}

.meta-separator {

  color: var(--muted);

  font-size: 12px;

  opacity: 0.5;

}

.meta-item {

  font-size: 12px;

  color: var(--muted);

  font-weight: 500;

}

.project-status {

  padding: 5px 14px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 600;

  white-space: nowrap;

  letter-spacing: 0.3px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

}

.project-status.completed {

  background: rgba(31, 146, 84, 0.12);

  color: #1f9254;

}

.project-status.pending {

  background: rgba(255, 183, 77, 0.12);

  color: #a86a00;

}

.project-status.failed {

  background: rgba(214, 69, 69, 0.12);

  color: #d64545;

}

.project-status.cancelled,
.project-status.CANCELLED {
  background: rgba(142, 142, 147, 0.16);
  color: #6b6b70;
}


.project-status.pending,

.project-status.processing,

.project-status.PENDING,

.project-status.PROCESSING {

  position: relative;

  padding-left: 24px;

}

.project-status.pending::before,

.project-status.processing::before,

.project-status.PENDING::before,

.project-status.PROCESSING::before {

  content: "";

  position: absolute;

  left: 8px;

  top: 50%;

  width: 10px;

  height: 10px;

  margin-top: -5px;

  border: 2px solid currentColor;

  border-top-color: transparent;

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

  opacity: 0.8;

}

@keyframes spin {

  from { transform: rotate(0deg); }

  to { transform: rotate(360deg); }

}

.project-brief {

  margin: 0 0 14px;

  font-size: 14px;

  color: var(--muted);

  line-height: 1.6;

}

.project-deliverables {

  margin-bottom: 12px;

  padding: 8px 14px;

  background: rgba(34, 214, 196, 0.04);

  border-radius: 12px;

  border: 1px solid rgba(34, 214, 196, 0.15);

}

.deliverables-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

}

.deliverable-tag {

  display: inline-flex;

  align-items: center;

  padding: 4px 10px;

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid rgba(34, 214, 196, 0.2);

  border-radius: 8px;

  font-size: 12px;

  color: var(--text);

  font-weight: 500;

  transition: all 0.2s ease;

}

.deliverable-tag:hover {

  background: rgba(34, 214, 196, 0.1);

  border-color: var(--accent);

  transform: translateY(-1px);

}

.project-meta {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

  padding-top: 12px;

  border-top: 1px solid rgba(27, 73, 143, 0.08);

}

.project-time {

  font-size: 12px;

  color: var(--muted);

  font-weight: 500;

  display: inline-flex;

  align-items: center;

  gap: 4px;

}

.project-time::before {

  content: '🕐';

  font-size: 14px;

}

.project-actions {

  display: flex;

  gap: 8px;

  align-items: center;

  flex-wrap: wrap;

}

.project-actions button[disabled] {

  opacity: 0.45;

  cursor: not-allowed;

  pointer-events: none;

  filter: grayscale(0.2);

}

/* H5 pack task list refinements */
.h5pack-page .project-list {
  gap: 12px;
}

.h5pack-page .project-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
}

.h5pack-page .project-item:hover {
  border-color: rgba(0, 122, 255, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.h5pack-page .project-header {
  align-items: center;
  margin-bottom: 10px;
}

.h5pack-page .project-name {
  font-size: 16px;
  font-weight: 600;
}

.h5pack-page .project-meta-line {
  gap: 6px;
}

.h5pack-page .project-status {
  padding: 4px 12px;
  box-shadow: none;
}

.h5pack-page .project-meta {
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.h5pack-page .project-actions {
  gap: 6px;
}

.h5pack-page .task-progress {
  position: relative;
  margin: 10px 0 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.h5pack-page .task-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  transition: width 0.3s ease;
}

.h5pack-page .task-progress-label {
  position: absolute;
  right: 10px;
  top: -22px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.h5pack-page .task-progress[data-status="completed"] .task-progress-bar {
  background: linear-gradient(90deg, #34c759, #16a34a);
}

.h5pack-page .task-progress[data-status="failed"] .task-progress-bar {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.primary.tiny {

  padding: 6px 14px;

  font-size: 12px;

  font-weight: 600;

  box-shadow: 0 4px 14px rgba(30, 139, 255, 0.3);

}

.primary.tiny:hover {

  box-shadow: 0 6px 18px rgba(30, 139, 255, 0.4);

  transform: translateY(-1px);

}

.projects-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 24px;

  margin: 32px 0 40px;

  flex-wrap: wrap;

}

.projects-header h1 {

  margin: 0 0 12px;

  font-size: 36px;

  font-weight: 700;

  color: var(--text);

  background: linear-gradient(135deg, var(--text), var(--primary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.projects-header .muted {

  font-size: 16px;

  line-height: 1.6;

  color: var(--muted);

}

.header-actions {

  display: flex;

  gap: 12px;

  align-items: center;

  flex-wrap: wrap;

}

.filters {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: var(--spacing-lg);

  margin-bottom: var(--spacing-2xl);

  flex-wrap: wrap;

  padding: var(--spacing-xl);

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-lg);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-sm);

}

.filter-group {

  display: flex;

  gap: 12px;

  align-items: center;

  flex-wrap: wrap;

}

.search-input-wrapper {

  display: flex;

  flex: 1;

  min-width: 260px;

  align-items: center;

  background: rgba(30, 41, 59, 0.6);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  padding: 4px;

  transition: all 0.3s ease;

}

.search-input-wrapper:hover {

  border-color: var(--border-strong);

}

.search-input-wrapper:focus-within {

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}

.search-icon {

  padding: 0 12px;

  color: var(--muted);

  font-size: 16px;

}

.search input {

  flex: 1;

  border: none;

  background: transparent;

  padding: 12px 16px;

  color: var(--text);

  min-width: 280px;

}

.search-btn {

  background: var(--primary);

  color: white;

  border: none;

  padding: 12px 20px;

  border-radius: var(--radius-sm);

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;

}

.search-btn:hover {

  background: var(--primary-hover);

  transform: translateY(-1px);

}

.filters {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  margin-bottom: 24px;

  flex-wrap: wrap;

}

.pill {

  padding: 8px 18px;

  border-radius: 999px;

  border: 1px solid rgba(27, 73, 143, 0.2);

  background: rgba(255, 255, 255, 0.9);

  color: var(--muted);

  font-size: 14px;

  font-weight: 500;

  cursor: pointer;

  transition: all 0.2s ease;

}

.pill:hover {

  border-color: var(--primary);

  color: var(--primary);

  background: rgba(30, 139, 255, 0.05);

}

.pill.active {

  background: linear-gradient(120deg, var(--primary), #5cc1ff);

  color: #fff;

  border-color: transparent;

  font-weight: 600;

  box-shadow: 0 4px 12px rgba(30, 139, 255, 0.3);

}

.search {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  width: 100%;

  max-width: none;

}

.search input {

  flex: 1;

  min-width: 200px;

}

.search button {

  padding: 10px 20px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid rgba(27, 73, 143, 0.2);

  color: var(--text);

  font-weight: 500;

  cursor: pointer;

  transition: all 0.2s ease;

}

.batch-actions-row {

  display: flex;

  gap: 10px;

  align-items: center;

  margin: 8px 0 16px 0;

}

.search button:hover {

  background: var(--primary);

  color: #fff;

  border-color: var(--primary);

}

.all-projects {

  min-height: 400px;

}

.all-projects .project-list {

  display: none;

  flex-direction: column;

  gap: 14px;

}

.all-projects .project-list {

  display: block;

}

.all-projects .empty-state {

  margin-top: 60px;

}

.auth-center {

  margin-top: 16px;

}

.auth-header {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;

  align-items: center;

  margin-bottom: 20px;

}

.auth-header h3 {

  margin: 8px 0 0;

}

.auth-header p {

  color: var(--muted);

  max-width: 420px;

  line-height: 1.5;

}

.auth-shell {

  max-width: 520px;

  margin: 0 auto;

}

.auth-tabs {

  display: inline-flex;

  border: 1px solid rgba(27, 73, 143, 0.15);

  border-radius: 999px;

  padding: 4px;

  background: rgba(255, 255, 255, 0.75);

  margin-bottom: 20px;

}

.auth-tab {

  border-radius: 999px;

  border: none;

  padding: 8px 24px;

  font-weight: 600;

  color: var(--muted);

  background: transparent;

  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease;

}

.auth-tab.active {

  background: linear-gradient(120deg, var(--primary), #5cc1ff);

  color: #fff;

  box-shadow: 0 10px 20px rgba(30, 139, 255, 0.2);

}

.auth-panel {

  display: none;

  flex-direction: column;

  gap: 14px;

  padding: 26px 24px;

  border-radius: var(--radius-md);

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid rgba(27, 73, 143, 0.18);

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3),

    0 15px 30px rgba(23, 44, 90, 0.08);

}

.auth-panel.active {

  display: flex;

}

.auth-panel h4 {

  margin: 0 0 4px;

}

.auth-panel label {

  font-size: 13px;

  font-weight: 600;

  color: var(--text);

  display: flex;

  flex-direction: column;

  gap: 6px;

}

.auth-panel input {

  width: 100%;

}

.auth-panel button + button {

  margin-top: 8px;

}

.auth-panel .form-hint {

  font-size: 12px;

  color: var(--muted);

  margin: 0;

}

.form-status {

  min-height: 20px;

  font-size: 13px;

  margin: 0;

}

.form-status.success {

  color: #1f9254;

}

.form-status.error {

  color: #d64545;

}

footer {

  margin-top: 56px;

  padding-top: 32px;

  border-top: 1px solid rgba(27, 73, 143, 0.15);

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 24px;

  font-size: 14px;

  color: var(--muted);

}

.footer-title {

  font-weight: 600;

  color: var(--text);

}

.footer-column a {

  display: block;

  margin: 4px 0;

  color: var(--muted);

}

.status {

  display: inline-flex;

  gap: 6px;

  align-items: center;

  margin-top: 8px;

  color: var(--primary);

}

.toast {

  position: fixed;

  right: 30px;

  bottom: 30px;

  padding: 18px 22px;

  border-radius: 18px;

  background: rgba(8, 20, 43, 0.9);

  color: #fff;

  box-shadow: 0 25px 50px rgba(8, 20, 43, 0.3);

  opacity: 0;

  transform: translateY(100%);

  transition: opacity 0.4s ease, transform 0.4s ease;

  pointer-events: none;

  border: 1px solid rgba(255, 255, 255, 0.08);

}

.toast.visible {

  opacity: 1;

  transform: translateY(0);

}

.toast span {

  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 13px;

}

@media (max-width: 960px) {

  .generator-area {

    grid-template-columns: 1fr;

  }

  .right-column {

    order: -1;

  }

  .site-header {

    flex-direction: column;

    align-items: flex-start;

  }

  nav {

    flex-wrap: wrap;

  }

  .quick-entry .entry-list {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}

@media (max-width: 600px) {

  .form-actions {

    flex-direction: column;

  }

  .quick-links button {

    flex: 100%;

  }

  .toast {

    left: 16px;

    right: 16px;

    bottom: 16px;

  }

}

.quick-entry {

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-lg);

  padding: var(--spacing-lg);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-xs);

}

.quick-entry h3 {

  margin: 0 0 12px;

}

.advantages-list {

  list-style: none;

  margin: 0;

  padding: 0;

  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

}

.advantages-list li {

  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  padding: 12px 14px;

  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);

}

.advantages-list strong {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-size: 15px;

  color: #111827;

}

.advantages-list strong::before {

  content: "★";

  color: #1e8bff;

  font-size: 14px;

}

.advantages-list p {

  margin: 6px 0 0;

  color: #4b5563;

  line-height: 1.5;

  font-size: 14px;

}

.quick-entry h3 {

  margin: 0 0 var(--spacing-md) 0;

  font-size: var(--font-size-lg);

  font-weight: var(--font-weight-semibold);

  color: var(--text-primary);

}

.quick-entry .entry-list {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: var(--spacing-md);

}

.quick-entry a {

  padding: var(--spacing-md);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-medium);

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  color: var(--text-secondary);

  font-weight: var(--font-weight-medium);

  text-align: center;

  text-decoration: none;

  transition: all var(--transition-normal);

  box-shadow: var(--shadow-xs);

}

.quick-entry a:hover {

  background: var(--bg-hover);

  border-color: var(--border-strong);

  color: var(--text-primary);

  box-shadow: var(--shadow-sm);

  transform: translateY(-1px);

}

.config-section {

  display: flex;

  flex-direction: column;

  gap: 12px;

}

.config-section.inline {

  margin-top: 18px;

}

.config-toggle {

  align-self: flex-end;

}

.config-panel {

  display: none;

  flex-direction: column;

  gap: 14px;

  padding: 20px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(27, 73, 143, 0.18);

  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);

}

.config-panel.open {

  display: flex;

}

.config-panel-header h4 {

  margin: 0 0 6px;

  font-size: 16px;

}

.config-alert {

  margin: 0;

  padding: 10px 12px;

  border-radius: 12px;

  background: #fff6e1;

  color: #a86a00;

  border: 1px solid rgba(255, 183, 77, 0.6);

  font-size: 13px;

}

.config-field {

  display: flex;

  flex-direction: column;

  gap: 6px;

  font-size: 13px;

  color: var(--text);

}

.config-field select {

  padding: 10px 14px;

  border-radius: 12px;

  border: 1px solid rgba(27, 73, 143, 0.2);

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

}

.device-options {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

}

.device-option {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 12px;

  border-radius: 999px;

  border: 1px solid rgba(27, 73, 143, 0.2);

  background: rgba(255, 255, 255, 0.9);

  font-size: 13px;

  position: relative;

}

.device-option input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}

.device-option span {

  display: inline-flex;

  align-items: center;

  gap: 6px;

}

.device-option span:not(.device-tooltip)::before {

  content: "";

  width: 16px;

  height: 16px;

  border-radius: 50%;

  border: 2px solid var(--border-medium);

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 11px;

  color: #fff;

  transition: all 0.2s ease;

}

.device-option input:checked + span {

  color: var(--primary);

  font-weight: 600;

}

.device-option input:checked + span:not(.device-tooltip)::before {

  content: "✓";

  background: var(--primary);

  border-color: var(--primary);

  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);

}

/* 设备类型悬停提示 */
.device-option {
  position: relative;
}

.device-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1a1f35;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* 重置继承样式 */
  display: block;
  align-items: initial;
  gap: initial;
}

.device-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1f35;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.device-option:hover .device-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.device-option:hover .device-tooltip::before {
  opacity: 1;
  visibility: visible;
}

.config-actions {

  display: flex;

  justify-content: flex-end;

  gap: 12px;

}

.config-modal-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(5, 10, 24, 0.5);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 10;

  backdrop-filter: blur(4px);

}

.config-modal-backdrop.open {

  display: flex;

}

.payment-modal-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(5, 10, 24, 0.6);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 20;

  backdrop-filter: blur(6px);

}

.payment-modal-backdrop.open {

  display: flex;

}

.payment-modal {

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  border-radius: 24px;

  width: 90%;

  max-width: 600px;

  max-height: 90vh;

  overflow-y: auto;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);

  animation: modalSlideIn 0.3s ease;

}

@keyframes modalSlideIn {

  from {

    opacity: 0;

    transform: translateY(-20px) scale(0.95);

  }

  to {

    opacity: 1;

    transform: translateY(0) scale(1);

  }

}

.payment-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 24px 28px;

  border-bottom: 1px solid rgba(27, 73, 143, 0.1);

}

.payment-header h3 {

  margin: 0;

  font-size: 20px;

  font-weight: 700;

  color: var(--text);

}

.close-btn {

  width: 32px;

  height: 32px;

  border-radius: 50%;

  border: none;

  background: rgba(27, 73, 143, 0.08);

  color: var(--muted);

  font-size: 24px;

  line-height: 1;

  cursor: pointer;

  transition: all 0.2s ease;

}

.close-btn:hover {

  background: rgba(214, 69, 69, 0.1);

  color: #d64545;

}

.payment-content {

  padding: 28px;

}

/* 套餐选择 */

.plan-selection,

.addon-selection,

.discount-selection {

  margin-bottom: 20px;

}

.plan-selection h4,

.addon-selection h4 {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

  margin-bottom: 12px;

}

.plan-options {

  display: flex;

  flex-direction: column;

  gap: 10px;

}

.plan-option {

  display: flex;

  align-items: center;

  padding: 12px 14px;

  border: 2px solid rgba(30, 139, 255, 0.2);

  border-radius: 12px;

  cursor: pointer;

  transition: all 0.3s;

}

.plan-option:hover {

  border-color: var(--primary);

  background: rgba(30, 139, 255, 0.03);

}

.plan-option.featured {

  background: linear-gradient(135deg, rgba(30, 139, 255, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);

  border-color: var(--primary);

}

.plan-option input[type="radio"] {

  margin-right: 12px;

  cursor: pointer;

  accent-color: var(--primary);

}

.plan-option-content {

  flex: 1;

}

.plan-option-header {

  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 4px;

}

.plan-option-header strong {

  font-size: 15px;

  color: var(--text);

}

.plan-option-badge {

  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);

  color: white;

  padding: 2px 8px;

  border-radius: 6px;

  font-size: 11px;

  font-weight: 600;

}

.plan-option-price {

  margin-left: auto;

  font-size: 18px;

  font-weight: 700;

  color: var(--primary);

}

.plan-option-content small {

  font-size: 12px;

  color: var(--muted);

}

/* 附加选项 */

.addon-options {

  display: flex;

  flex-direction: column;

  gap: 8px;

}

.addon-option {

  display: flex;

  align-items: center;

  padding: 10px 12px;

  border: 1px solid rgba(30, 139, 255, 0.15);

  border-radius: 10px;

  cursor: pointer;

  transition: all 0.3s;

}

.addon-option:hover {

  border-color: rgba(30, 139, 255, 0.3);

  background: rgba(30, 139, 255, 0.02);

}

.addon-option input[type="checkbox"] {

  margin-right: 10px;

  cursor: pointer;

  accent-color: var(--primary);

}

.addon-option-content {

  flex: 1;

}

.addon-option-content strong {

  font-size: 14px;

  color: var(--text);

  display: block;

  margin-bottom: 2px;

}

.addon-option-content small {

  font-size: 12px;

  color: var(--muted);

}

.addon-option-price {

  font-size: 14px;

  font-weight: 600;

  color: var(--primary);

}

/* 优惠选项 */

.discount-option {

  display: flex;

  align-items: center;

  padding: 10px 12px;

  border: 1px solid rgba(34, 214, 196, 0.25);

  border-radius: 10px;

  margin-bottom: 8px;

  cursor: pointer;

  transition: all 0.3s;

}

.discount-option-content small {

  font-size: 13px;

  color: var(--muted);

  display: block;

  margin-top: 2px;

}

.discount-value {



/* ???????? */

.price-breakdown {

  border: 1px solid var(--border-light);

  border-radius: var(--radius-md);

  padding: 12px;

  background: var(--bg-tertiary);

  box-shadow: var(--shadow-xs);

  margin-bottom: 12px;

}



.breakdown-title {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

  margin-bottom: 6px;

}



.breakdown-row,

.breakdown-total {

  display: flex;

  justify-content: space-between;

  font-size: 13px;

  padding: 6px 0;

  color: var(--text);

}



.breakdown-row.muted {

  color: var(--muted);

}



.breakdown-total {

  border-top: 1px solid var(--border-light);

  margin-top: 6px;

  font-weight: 700;

}









.calc-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 16px;

}



.calc-title {

  margin: 0 0 10px 0;

  font-size: 15px;

  color: var(--text);

}



.calc-list {

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.calc-pill {

  display: block;

  border: 1px solid var(--border-light);

  border-radius: var(--radius-md);

  padding: 10px 12px;

  background: var(--bg-tertiary);

  box-shadow: var(--shadow-xs);

  cursor: pointer;

  transition: all 0.2s ease;

}



.calc-pill:hover {

  border-color: var(--primary);

  background: var(--bg-hover);

  transform: translateY(-1px);

  box-shadow: 0 6px 14px rgba(0, 122, 255, 0.12);

}



.calc-pill input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}



.calc-pill-body {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 8px;

}



.calc-pill strong {

  font-size: 14px;

  color: var(--text);

}



.calc-pill small {

  display: block;

  font-size: 12px;

  color: var(--muted);

}



.calc-price {

  font-weight: 700;

  color: var(--primary);

}



.calc-summary {

  border: 1px solid var(--border-light);

  border-radius: var(--radius-md);

  padding: 12px;

  background: var(--bg-tertiary);

  box-shadow: var(--shadow-xs);

}



.calc-items {

  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 10px;

}



.calc-item {

  display: flex;

  justify-content: space-between;

  font-size: 13px;

  color: var(--text);

}



.calc-item.muted {

  color: var(--muted);

}



.calc-total {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding-top: 10px;

  border-top: 1px solid var(--border-light);

  font-size: 15px;

}



.calc-total strong {

  font-size: 18px;

  color: var(--primary);

}



.calc-pill input:checked .calc-price {

  color: var(--primary);

}

  font-size: 14px;

  font-weight: 600;

  color: #4caf50;

}



/* ???????? - ?????????? */

.discount-selection {

  display: grid;

  gap: 10px;

}



.discount-pill {

  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 12px;

  padding: 12px 14px;

  border-radius: var(--radius-md);

  border: 1px solid var(--border-light);

  background: var(--bg-tertiary);

  box-shadow: var(--shadow-xs);

  cursor: pointer;

  transition: all 0.25s ease;

  position: relative;

}



.discount-pill:hover {

  border-color: var(--primary);

  background: var(--bg-hover);

  transform: translateY(-1px);

  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.12);

}



.discount-pill input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}



.discount-check {

  width: 18px;

  height: 18px;

  border-radius: 6px;

  border: 2px solid var(--border-medium);

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  color: #fff;

  transition: all 0.2s ease;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);

}



.discount-text strong {

  font-size: 14px;

  color: var(--text);

  display: block;

}



.discount-text small {

  font-size: 12px;

  color: var(--muted);

  display: block;

  margin-top: 2px;

}



.discount-value-box {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-weight: 700;

  color: var(--success);

}



.discount-tag {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 12px;

  color: var(--muted);

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));

  border: 1px solid var(--border-medium);

}



.discount-pill input:checked + .discount-check {

  background: var(--primary);

  border-color: var(--primary);

  color: #fff;

  box-shadow: 0 6px 12px rgba(0, 122, 255, 0.2);

}



.discount-pill input:checked + .discount-check::after {

  content: "✓";

  color: #fff;

  font-size: 12px;

}



.discount-pill input:checked ~ .discount-text strong {

  color: var(--primary);

}



.discount-pill input:checked ~ .discount-value-box .discount-value {

  color: var(--primary);

}



.discount-pill input:checked ~ .discount-value-box .discount-tag {

  color: #fff;

  background: var(--primary);

  border-color: var(--primary);

}



.payment-info {

  background: rgba(30, 139, 255, 0.05);

  border-radius: 16px;

  padding: 16px;

  margin-bottom: 20px;

}

.info-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 0;

  font-size: 14px;

}

.info-row span {

  color: var(--muted);

}

.info-row strong {

  color: var(--text);

  font-weight: 600;

}

.payment-account-info {

  margin-bottom: 20px;

}

.account-balance {

  display: flex;

  gap: 16px;

  background: rgba(34, 214, 196, 0.06);

  border-radius: 14px;

  padding: 16px;

}

.balance-item {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 6px;

}

.balance-label {

  font-size: 12px;

  color: var(--muted);

  font-weight: 500;

}

.balance-value {

  font-size: 24px;

  font-weight: 700;

  color: var(--primary);

}

.price-section {

  background: rgba(248, 251, 255, 0.8);

  border-radius: 16px;

  padding: 20px;

  margin-bottom: 16px;

}

.price-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 10px 0;

  font-size: 15px;

}

.price-row.discount {

  color: var(--accent);

}

.price-row.total {

  margin-top: 12px;

  padding-top: 16px;

  border-top: 2px solid rgba(27, 73, 143, 0.1);

  font-size: 16px;

  font-weight: 600;

}

.price-value {

  font-weight: 600;

  color: var(--text);

}

.price-value.final {

  font-size: 28px;

  color: var(--primary);

  font-weight: 700;

}

.discount-value {

  color: var(--accent);

}

.coupon-selector {

  background: rgba(255, 183, 77, 0.08);

  border: 1px solid rgba(255, 183, 77, 0.3);

  border-radius: 12px;

  padding: 14px 16px;

  margin-bottom: 16px;

}

.coupon-selector label {

  display: flex;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  font-size: 14px;

  color: var(--text);

  font-weight: 500;

}

.coupon-selector input[type="checkbox"] {

  width: 18px;

  height: 18px;

  accent-color: var(--primary);

}

.payment-loading {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 16px;

  padding: 40px 20px;

}

.spinner {

  width: 40px;

  height: 40px;

  border: 4px solid rgba(30, 139, 255, 0.2);

  border-top-color: var(--primary);

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

}

@keyframes spin {

  to { transform: rotate(360deg); }

}

/* 价格配置页面样式 */

.pricing-config {

  max-width: 1200px;

  margin: 0 auto;

  padding: 2rem 1rem;

}

.config-section {

  background: rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(12px);

  border-radius: 24px;

  padding: 2rem;

  margin-bottom: 2rem;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

}

.config-section h2 {

  font-size: 1.5rem;

  margin-bottom: 0.5rem;

  color: var(--text);

}

.config-section > p.muted {

  margin-bottom: 1.5rem;

}

.pricing-form {

  display: grid;

  gap: 1.5rem;

}

.form-group {

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

}

.form-group label {

  font-weight: 600;

  color: var(--text);

}

.form-group input[type="number"],

.form-group input[type="text"] {

  padding: 0.75rem 1rem;

  border: 2px solid rgba(30, 139, 255, 0.2);

  border-radius: 12px;

  font-size: 1rem;

  transition: all 0.3s;

}

.form-group input:focus {

  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(30, 139, 255, 0.1);

}

.pricing-table {

  width: 100%;

  overflow-x: auto;

}

.pricing-table table {

  width: 100%;

  border-collapse: collapse;

  margin-bottom: 1rem;

}

.pricing-table th,

.pricing-table td {

  padding: 1rem;

  text-align: left;

  border-bottom: 1px solid rgba(30, 139, 255, 0.1);

}

.pricing-table th {

  background: rgba(30, 139, 255, 0.05);

  font-weight: 600;

  color: var(--text);

}

.pricing-table input[type="text"],

.pricing-table input[type="number"] {

  width: 100%;

  padding: 0.5rem;

  border: 1px solid rgba(30, 139, 255, 0.2);

  border-radius: 8px;

  font-size: 0.9rem;

}

.pricing-table input:focus {

  outline: none;

  border-color: var(--primary);

}

.pricing-table input[readonly] {

  background: rgba(30, 139, 255, 0.05);

  cursor: not-allowed;

}

.preview-section {

  background: linear-gradient(135deg, rgba(30, 139, 255, 0.05) 0%, rgba(30, 139, 255, 0.02) 100%);

  border: 2px solid rgba(30, 139, 255, 0.2);

}

.preview-calculator {

  display: grid;

  gap: 1.5rem;

}

.calc-group {

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}

.calc-group > label {

  font-weight: 600;

  color: var(--text);

}

.checkbox-group {

  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

}

.checkbox-group label {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  padding: 0.5rem 1rem;

  background: rgba(255, 255, 255, 0.8);

  border: 2px solid rgba(30, 139, 255, 0.2);

  border-radius: 12px;

  cursor: pointer;

  transition: all 0.3s;

}

.checkbox-group label:hover {

  border-color: var(--primary);

  background: rgba(30, 139, 255, 0.05);

}

.checkbox-group input[type="checkbox"] {

  cursor: pointer;

}

.checkbox-group input[type="checkbox"]:disabled {

  cursor: not-allowed;

}



/* 批量选择勾选框：提升可见度 */

.batch-checkbox {

  width: 18px;

  height: 18px;

  -webkit-appearance: none;

  appearance: none;

  border: 2px solid rgba(30, 139, 255, 0.4);

  border-radius: 6px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  display: grid;

  place-items: center;

  box-shadow: 0 0 0 2px rgba(30, 139, 255, 0.1);

  transition: all 0.15s ease;

}

.batch-checkbox:checked {

  background: #1e8bff;

  border-color: #1e8bff;

  box-shadow: 0 0 0 2px rgba(30, 139, 255, 0.2);

}

.batch-checkbox:checked::after {

  content: "✔";

  color: #fff;

  font-size: 12px;

  line-height: 1;

}

.batch-checkbox:focus-visible {

  outline: 2px solid rgba(30, 139, 255, 0.5);

  outline-offset: 2px;

}

.price-result {

  background: rgba(255, 255, 255, 0.9);

  border-radius: 16px;

  padding: 1.5rem;

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}

.price-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0.5rem 0;

  font-size: 1rem;

}

.price-row.discount {

  color: #ff6b6b;

}

.price-row.total {

  border-top: 2px solid rgba(30, 139, 255, 0.2);

  padding-top: 1rem;

  margin-top: 0.5rem;

  font-size: 1.25rem;

  font-weight: 700;

  color: var(--primary);

}

.action-buttons {

  display: flex;

  gap: 1rem;

  justify-content: flex-end;

  margin-top: 2rem;

}

/* 客户端价格方案页面样式 */

.pricing-hero {

  text-align: center;

  padding: var(--spacing-2xl) var(--spacing-lg);

  max-width: 800px;

  margin: 0 auto;

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

  border-radius: var(--radius-xl);

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-sm);

  margin-bottom: var(--spacing-2xl);

}

.pricing-hero h1 {

  font-size: var(--font-size-3xl);

  margin-bottom: var(--spacing-lg);

  font-weight: var(--font-weight-bold);

  color: var(--text-primary);

  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.pricing-hero p {

  color: var(--text-secondary);

  font-size: var(--font-size-lg);

  line-height: 1.6;

}

.pricing-plans {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 2rem;

  max-width: 1200px;

  margin: 0 auto 4rem;

  padding: 0 1rem;

}

.plan-card {

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border-radius: var(--radius-xl);

  padding: var(--spacing-2xl);

  border: 1px solid var(--border-card);

  box-shadow: var(--shadow-card);

  transition: all var(--transition-normal);

  position: relative;

  display: flex;

  flex-direction: column;

}

.plan-card:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow-card-hover);

  border-color: var(--border-medium);

}

.plan-card.featured {

  border-color: var(--primary);

  box-shadow: var(--shadow-md);

  position: relative;

}

.plan-card.featured::before {

  content: '';

  position: absolute;

  inset: 0;

  border-radius: var(--radius-xl);

  background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, transparent 100%);

  pointer-events: none;

}

.plan-badge {

  position: absolute;

  top: 1rem;

  right: 1rem;

  padding: 0.25rem 0.75rem;

  background: rgba(30, 139, 255, 0.1);

  color: var(--primary);

  border-radius: 12px;

  font-size: 0.75rem;

  font-weight: 600;

}

.plan-badge.popular {

  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);

  color: white;

}

.plan-card h3 {

  font-size: 1.5rem;

  margin-bottom: 1rem;

  color: var(--text);

}

.plan-price {

  display: flex;

  align-items: baseline;

  margin-bottom: 0.5rem;

}

.plan-price .currency {

  font-size: 1.25rem;

  color: var(--muted);

  margin-right: 0.25rem;

}

.plan-price .amount {

  font-size: 3rem;

  font-weight: 700;

  color: var(--primary);

}

.plan-price .unit {

  font-size: 1rem;

  color: var(--muted);

  margin-left: 0.5rem;

}

.plan-desc {

  color: var(--muted);

  margin-bottom: 1.5rem;

}

.plan-features {

  flex: 1;

  margin-bottom: 1.5rem;

}

.plan-features h4 {

  font-size: 0.875rem;

  color: var(--muted);

  margin-bottom: 1rem;

  text-transform: uppercase;

  letter-spacing: 0.05em;

}

.plan-features ul {

  list-style: none;

  padding: 0;

  margin: 0;

}

.plan-features li {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.5rem 0;

  color: var(--text);

}

.plan-features .check {

  color: #4caf50;

  font-weight: 700;

}

.plan-features .times {

  color: var(--muted);

}

/* 价格计算器 */

.price-calculator {

  max-width: 1200px;

  margin: 4rem auto;

  padding: 0 1rem;

}

.price-calculator h2 {

  text-align: center;

  font-size: 2rem;

  margin-bottom: 0.5rem;

}

.price-calculator > p.muted {

  text-align: center;

  margin-bottom: 2rem;

}

.calculator-content {

  display: grid;

  grid-template-columns: 1fr 400px;

  gap: 2rem;

  align-items: start;

}

@media (max-width: 968px) {

  .calculator-content {

    grid-template-columns: 1fr;

  }

}

.calculator-left {

  display: flex;

  flex-direction: column;

  gap: 2rem;

}

.calc-section {

  background: rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(12px);

  border-radius: 20px;

  padding: 1.5rem;

  border: 2px solid rgba(30, 139, 255, 0.1);

}

.calc-section h3 {

  font-size: 1.125rem;

  margin-bottom: 1rem;

  color: var(--text);

}

.plan-selector {

  display: grid;

  gap: 1rem;

}

.radio-card {

  display: flex;

  align-items: center;

  padding: 1rem;

  border: 2px solid rgba(30, 139, 255, 0.2);

  border-radius: 12px;

  cursor: pointer;

  transition: all 0.3s;

}

.radio-card:hover {

  border-color: var(--primary);

  background: rgba(30, 139, 255, 0.05);

}

.radio-card input[type="radio"] {

  margin-right: 1rem;

  cursor: pointer;

}

.radio-card input[type="radio"]:checked ~ .radio-content {

  color: var(--primary);

}

.radio-content {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex: 1;

}

.radio-content strong {

  font-size: 1rem;

}

.radio-content span {

  font-size: 1.25rem;

  font-weight: 700;

  color: var(--primary);

}

.addon-list,

.discount-options {

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}

.addon-item,

.discount-item {

  display: flex;

  align-items: center;

  padding: 1rem;

  border: 2px solid rgba(30, 139, 255, 0.1);

  border-radius: 12px;

  cursor: pointer;

  transition: all 0.3s;

}

.addon-item:hover,

.discount-item:hover {

  border-color: rgba(30, 139, 255, 0.3);

  background: rgba(30, 139, 255, 0.02);

}

.addon-item input[type="checkbox"],

.discount-item input[type="checkbox"] {

  margin-right: 1rem;

  cursor: pointer;

}

.addon-content,

.discount-content {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 0.25rem;

}

.addon-content strong,

.discount-content strong {

  font-size: 0.95rem;

  color: var(--text);

}

.addon-content small,

.discount-content small {

  font-size: 0.8rem;

  color: var(--muted);

}

.addon-price {

  font-size: 1rem;

  font-weight: 600;

  color: var(--primary);

}

.discount-value {

  font-size: 1rem;

  font-weight: 600;

  color: #4caf50;

}

/* 价格总结 */

.calculator-right {

  position: sticky;

  top: 2rem;

}

.price-summary {

  background: linear-gradient(135deg, rgba(30, 139, 255, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);

  backdrop-filter: blur(12px);

  border-radius: 24px;

  padding: 2rem;

  border: 2px solid var(--primary);

  box-shadow: 0 8px 24px rgba(30, 139, 255, 0.15);

}

.price-summary h3 {

  font-size: 1.25rem;

  margin-bottom: 1.5rem;

  color: var(--text);

}

.summary-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0.75rem 0;

  font-size: 0.95rem;

}

.summary-row.discount {

  color: #4caf50;

}

.summary-divider {

  height: 1px;

  background: rgba(30, 139, 255, 0.2);

  margin: 0.5rem 0;

}

.summary-row.total {

  padding: 1rem 0;

  font-size: 1.125rem;

  font-weight: 700;

}

.total-price {

  font-size: 2rem;

  color: var(--primary);

}

.savings-badge {

  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);

  color: white;

  padding: 0.75rem 1rem;

  border-radius: 12px;

  text-align: center;

  margin: 1rem 0;

  font-size: 0.9rem;

}

.savings-badge strong {

  font-size: 1.125rem;

}

.price-summary button {

  margin-top: 1rem;

}

.payment-note {

  text-align: center;

  font-size: 0.8rem;

  color: var(--muted);

  margin-top: 0.5rem;

}

.payment-loading p {

  margin: 0;

  color: var(--muted);

  font-size: 14px;

}

.payment-actions {

  display: flex;

  gap: 12px;

  margin-top: 24px;

}

.payment-actions button {

  flex: 1;

  padding: 14px 24px;

  font-size: 15px;

  font-weight: 600;

}

.config-modal {

  width: min(520px, calc(100% - 32px));

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  border-radius: 24px;

  border: 1px solid rgba(27, 73, 143, 0.18);

  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);

  padding: 26px;

  max-height: 90vh;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 16px;

}

.generated-result {

  margin-top: 24px;

  background: var(--card);

  border-radius: var(--radius-lg);

  border: 1px solid var(--border);

  padding: 24px;

}

.result-header {

  display: flex;

  justify-content: space-between;

  gap: 16px;

  flex-wrap: wrap;

  align-items: center;

}

.result-summary {

  color: var(--muted);

}

.result-actions {

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

}

/* 二维码支付样式 */

.qrcode-payment-container {

  margin-top: 2rem;

  text-align: center;

}

.qrcode-section {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 1rem;

}

.qrcode-section h3 {

  margin: 0;

  font-size: 1.2rem;

  color: var(--text);

}

.qrcode-image {

  width: 260px;

  height: 260px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: white;

  border-radius: var(--radius-md);

  border: 2px solid rgba(30, 139, 255, 0.2);

  box-shadow: 0 8px 20px rgba(30, 139, 255, 0.15);

  padding: 20px;

}

.qrcode-image img {

  max-width: 100%;

  max-height: 100%;

  display: block;

}

.qrcode-placeholder {

  color: var(--muted);

  font-size: 14px;

}

.qrcode-tip {

  font-size: 14px;

  color: var(--muted);

  margin: 0;

}

.qrcode-order {

  font-size: 12px;

  color: var(--muted);

  margin: 0;

  font-family: monospace;

}

.qrcode-status {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 12px 24px;

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.1), rgba(30, 139, 255, 0.08));

  border-radius: 999px;

  color: var(--primary);

  font-weight: 500;

  font-size: 14px;

}

.spinner-small {

  width: 16px;

  height: 16px;

  border: 2px solid rgba(30, 139, 255, 0.2);

  border-top-color: var(--primary);

  border-radius: 50%;

  animation: spin 1s linear infinite;

}

@keyframes spin {

  to {

    transform: rotate(360deg);

  }

}

/* ========== 软件功能设计按钮 ========== */

.template-section {

  width: 100%;

}

.template-btn {

  width: 100%;

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border: 1px solid var(--border-light);

  border-radius: var(--radius-lg);

  padding: 0;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow: var(--shadow-card);

  position: relative;

  overflow: hidden;

}

.template-btn:hover {

  transform: translateY(-1px);

  box-shadow: var(--shadow-card-hover);

  border-color: rgba(30, 139, 255, 0.25);

}

.template-btn:active {

  transform: translateY(0);

}

.template-btn::before {

  content: "";

  position: absolute;

  left: 0;

  top: 0;

  bottom: 0;

  width: 6px;

  background: linear-gradient(180deg, #1e8bff, #4fd1c5);

  opacity: 0.9;

}

.template-btn-content {

  display: flex;

  align-items: center;

  gap: 20px;

  padding: 24px 32px;

}

.template-icon {

  width: 52px;

  height: 52px;

  border-radius: 14px;

  display: grid;

  place-items: center;

  background: linear-gradient(145deg, rgba(30, 139, 255, 0.12), rgba(34, 214, 196, 0.18));

  border: 1px solid rgba(30, 139, 255, 0.22);

  font-size: 26px;

  line-height: 1;

  flex-shrink: 0;

}

.template-text {

  flex: 1;

  text-align: left;

}

.template-text h3 {

  margin: 0 0 8px 0;

  font-size: 20px;

  font-weight: 600;

  color: var(--text);

}

.template-text p {

  margin: 0;

  font-size: 13px;

  color: var(--text-secondary);

  font-weight: 500;

}

.template-arrow {

  font-size: 22px;

  color: #1e2a44;

  font-weight: 600;

  flex-shrink: 0;

  transition: transform 0.25s ease, color 0.25s ease;

}

.template-btn:hover .template-arrow {

  transform: translateX(2px);

  color: var(--primary);

}

/* 苹果风格滚动条 */

::-webkit-scrollbar {

  width: 8px;

  height: 8px;

}

::-webkit-scrollbar-track {

  background: transparent;

}

::-webkit-scrollbar-thumb {

  background: rgba(0, 0, 0, 0.2);

  border-radius: 4px;

  transition: background var(--transition-fast);

}

::-webkit-scrollbar-thumb:hover {

  background: rgba(0, 0, 0, 0.3);

}

::-webkit-scrollbar-thumb:active {

  background: rgba(0, 0, 0, 0.4);

}

/* 文字选择样式 */

::selection {

  background: rgba(0, 122, 255, 0.2);

  color: var(--text-primary);

}



/* 支付弹窗价格拆解（覆盖旧样式，提升观感） */

.price-breakdown {

  margin: 12px 0 16px;

  padding: 12px 14px;

  border-radius: var(--radius-md);

  border: 1px solid var(--border-light);

  background: var(--bg-tertiary);

  box-shadow: var(--shadow-xs);

}



.breakdown-title {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

  margin: 0 0 8px 0;

}



.breakdown-row,

.breakdown-total {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 13px;

  padding: 6px 0;

  color: var(--text);

}



.breakdown-row:not(:last-child) {

  border-bottom: 1px dashed var(--border-light);

}



.breakdown-row.muted {

  color: var(--muted);

}



.breakdown-total {

  border-top: 1px solid var(--border-light);

  margin-top: 6px;

  font-weight: 700;

  color: var(--primary);

}

/* 焦点指示器 */

:focus-visible {

  outline: 2px solid var(--primary);

  outline-offset: 2px;

}

/* 移除复杂装饰效果，保持简洁 */

/* 确保功能类正常工作 */

.visible {

  opacity: 1 !important;

  visibility: visible !important;

}

.hidden {

  display: none !important;

  opacity: 0 !important;

  visibility: hidden !important;

}

.show {

  opacity: 1 !important;

}

.active {

  opacity: 1 !important;

}

.open {

  opacity: 1 !important;

  visibility: visible !important;

  pointer-events: auto !important;

}

/* 苹果风格微动画 */

@keyframes fadeIn {

  from {

    opacity: 0;

    transform: translateY(10px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}

@keyframes slideUp {

  from {

    opacity: 0;

    transform: translateY(20px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}

/* 为页面元素添加渐进式动画 */

.page > * {

  animation: fadeIn 0.6s ease-out;

}

.card, .function-card, .section-card, .feature-card, .content-card {

  animation: slideUp 0.4s ease-out;

  animation-fill-mode: both;

}

.card:nth-child(2), .function-card:nth-child(2) {

  animation-delay: 0.1s;

}

.card:nth-child(3), .function-card:nth-child(3) {

  animation-delay: 0.2s;

}

/* 响应式卡片布局优化 */

@media (max-width: 960px) {

  .generator-area {

    grid-template-columns: 1fr;

    gap: var(--spacing-lg);

  }

  .right-column {

    order: -1;

  }

  .pricing-plans {

    grid-template-columns: 1fr;

    gap: var(--spacing-lg);

  }

  .page {

    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-2xl);

  }

}

@media (max-width: 600px) {

  .function-section, .section-card {

    padding: var(--spacing-lg);

  }

  .card, .function-card, .feature-card {

    padding: var(--spacing-lg);

  }

  .pricing-hero {

    padding: var(--spacing-lg) var(--spacing-md);

  }

  .pricing-plans {

    padding: 0 var(--spacing-md);

  }

.quick-entry .entry-list {

    grid-template-columns: 1fr;

  }

}



/* 右侧流程卡片样式 */

.flow-card {

  display: flex;

  flex-direction: column;

  gap: 12px;

  background: linear-gradient(145deg, #f9fbff 0%, #f3f7ff 100%);

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);

}

.flow-card .card {

  background: transparent;

}

.flow-header h3 {

  margin: 0 0 4px;

}

.flow-header p {

  margin: 0;

  color: #6b7280;

  font-size: 13px;

}

.flow-steps {

  list-style: none;

  padding: 0;

  margin: 0;

  display: flex;

  flex-direction: column;

  gap: 10px;

}

.flow-steps li {

  display: flex;

  gap: 12px;

  align-items: flex-start;

  background: #ffffff;

  border: 1px solid #e5e7eb;

  border-radius: 10px;

  padding: 14px 16px;

  position: relative;

}

.flow-steps li::after {

  content: "";

  position: absolute;

  left: 20px;

  top: 100%;

  width: 2px;

  height: 12px;

  background: linear-gradient(180deg, rgba(30, 139, 255, 0.4), rgba(79, 209, 197, 0));

}

.flow-steps li:last-child::after {

  display: none;

}

.flow-badge {

  width: 26px;

  height: 26px;

  border-radius: 8px;

  background: linear-gradient(135deg, #1e8bff, #4fd1c5);

  color: #fff;

  font-weight: 700;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}

.flow-title {

  margin: 0;

  font-weight: 600;

}

.flow-steps small {

  color: #6b7280;

}

/* 全局动画延迟已移除 */

/* ========== 软件功能设计编辑器（折叠） ========== */

.template-btn[aria-expanded="true"] {

  border-color: rgba(30, 139, 255, 0.35);

  box-shadow: var(--shadow-card-hover);

}

.template-btn[aria-expanded="true"] .template-arrow {

  transform: rotate(90deg);

}

.template-collapse {

  margin-top: 12px;

}

.template-collapse[aria-hidden="true"] {

  display: none;

}

.template-card {

  margin-top: 10px;

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

  border: 1px solid var(--border-card);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-card);

  overflow: hidden;

  display: flex;

  flex-direction: column;

}

.template-inline-header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 12px;

  padding: 18px 24px;

  border-bottom: 1px solid var(--border-light);

  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

}

.template-inline-header h4 {

  margin: 0 0 6px 0;

  font-size: 16px;

}

.template-inline-header .hint {

  margin: 0;

  color: var(--text-secondary);

  font-size: 13px;

}

.template-inline-actions {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-wrap: wrap;

  justify-content: flex-end;

}

.template-inline-actions .ghost,

.template-inline-actions .primary {

  min-height: 36px;

  padding: 10px 14px;

}

.template-content {

  flex: 1;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  min-height: 420px;

}

.template-loading {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 16px;

  padding: 40px 20px;

  color: var(--muted);

}

.template-editor {

  display: flex;

  flex-direction: column;

  height: 100%;

}

.editor-toolbar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 24px;

  background: rgba(30, 139, 255, 0.04);

  border-bottom: 1px solid var(--border);

}

.editor-tabs {

  display: flex;

  gap: 8px;

}

.tab-btn {

  padding: 8px 16px;

  background: transparent;

  border: 1px solid transparent;

  border-radius: 8px;

  color: var(--muted);

  font-size: 14px;

  font-weight: 500;

  cursor: pointer;

  transition: all 0.2s ease;

}

.tab-btn:hover {

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.1), rgba(30, 139, 255, 0.08));

  color: var(--primary);

}

.tab-btn.active {

  background: var(--primary);

  color: white;

  border-color: var(--primary);

  box-shadow: 0 4px 12px rgba(30, 139, 255, 0.25);

}

.editor-tips {

  font-size: 12px;

  color: var(--muted);

}

.editor-pane,

.preview-pane {

  flex: 1;

  overflow-y: auto;

  overflow-x: hidden;

  padding: 20px 24px;

  max-height: 520px;

  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);

}

#template-textarea {

  width: 100%;

  height: 100%;

  min-height: 320px;

  border: 1px solid var(--border-light);

  outline: none;

  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;

  font-size: 14px;

  line-height: 1.6;

  color: var(--text);

  background: var(--bg-elevated);

  resize: none;

  padding: 14px;

  border-radius: var(--radius-md);

}

#template-textarea:focus {

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);

}

#template-textarea::placeholder {

  color: var(--muted);

  opacity: 0.5;

}

/* Markdown 预览样式 */

.markdown-body {

  font-size: 15px;

  line-height: 1.7;

  color: var(--text);

  word-wrap: break-word;

}

.markdown-body h1,

.markdown-body h2,

.markdown-body h3,

.markdown-body h4,

.markdown-body h5,

.markdown-body h6 {

  margin-top: 24px;

  margin-bottom: 16px;

  font-weight: 600;

  line-height: 1.25;

  color: var(--text);

}

.markdown-body h1 {

  font-size: 2em;

  border-bottom: 2px solid var(--border);

  padding-bottom: 8px;

}

.markdown-body h2 {

  font-size: 1.5em;

  border-bottom: 1px solid var(--border);

  padding-bottom: 6px;

}

.markdown-body h3 {

  font-size: 1.25em;

}

.markdown-body p {

  margin-top: 0;

  margin-bottom: 16px;

}

.markdown-body ul,

.markdown-body ol {

  padding-left: 2em;

  margin-top: 0;

  margin-bottom: 16px;

}

.markdown-body li {

  margin-bottom: 8px;

}

.markdown-body code {

  padding: 2px 6px;

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.1), rgba(30, 139, 255, 0.08));

  border-radius: 4px;

  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;

  font-size: 0.9em;

  color: var(--primary);

}

.markdown-body pre {

  padding: 16px;

  background: rgba(14, 29, 51, 0.04);

  border-radius: 8px;

  overflow-x: auto;

  margin: 16px 0;

}

.markdown-body pre code {

  padding: 0;

  background: transparent;

  color: var(--text);

}

.markdown-body blockquote {

  margin: 16px 0;

  padding: 0 16px;

  border-left: 4px solid var(--primary);

  color: var(--muted);

}

.markdown-body table {

  border-collapse: collapse;

  width: 100%;

  margin: 16px 0;

}

.markdown-body th,

.markdown-body td {

  padding: 8px 12px;

  border: 1px solid var(--border);

  text-align: left;

}

.markdown-body th {

  background: linear-gradient(135deg, rgba(33, 197, 166, 0.1), rgba(30, 139, 255, 0.08));

  font-weight: 600;

}

.markdown-body hr {

  border: none;

  border-top: 2px solid var(--border);

  margin: 24px 0;

}

.markdown-body a {

  color: var(--primary);

  text-decoration: none;

}

.markdown-body a:hover {

  text-decoration: underline;

}

.template-actions {

  display: flex;

  gap: 12px;

  padding: 20px 32px;

  border-top: 1px solid var(--border);

  background: var(--card-strong);

  border-radius: 0 0 var(--radius-lg) var(--radius-lg);

}

.template-actions button {

  flex: 1;

  padding: 12px 24px;

}

/* H5打包页面样式 */
.upload-area {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.upload-area.dragover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  font-size: 48px;
  opacity: 0.6;
}

.upload-placeholder p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.upload-placeholder small {
  color: var(--text-tertiary);
}

.upload-preview {
  display: none;
}

.upload-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.file-icon {
  font-size: 32px;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.file-details strong {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.file-details small {
  color: var(--text-tertiary);
}

.icon-preview-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.config-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn {
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.option-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 122, 255, 0.25);
}

.icon-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.icon-choice-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.icon-choice-panel {
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-choice-title {
  font-weight: 600;
  color: var(--text-primary);
}

.icon-choice-desc {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.icon-choice-panel .ghost {
  align-self: flex-start;
}

.icon-preview-area {
  margin-top: 12px;
}

.icon-preview-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}

.icon-preview-link:hover {
  text-decoration: underline;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-mask.active {
  display: flex;
}

.modal-card {
  width: min(420px, 92vw);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.modal-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.config-item {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  color: var(--text-primary);
}

/* ========================================
   生成模式切换样式
   ======================================== */

/* 生成模式切换按钮组 */
.generation-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(33, 197, 166, 0.08), rgba(30, 139, 255, 0.06));
}

.mode-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.mode-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* 模式面板 */
.mode-panel {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 软件测试交付物网格 */
.testing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .testing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Teal-blue theme override === */
:root {
  --primary: #1e8bff;
  --primary-hover: #1573d6;
  --primary-active: #0f5fb8;
  --secondary: #21c5a6;
  --accent: var(--secondary);
  --bg-hover: rgba(33, 197, 166, 0.08);
  --bg-selected: #21c5a6;
}

body {
  background-color: #f3f7fb;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(33, 197, 166, 0.18), transparent 62%),
    radial-gradient(820px 520px at 88% 10%, rgba(30, 139, 255, 0.16), transparent 62%),
    radial-gradient(880px 520px at 50% 92%, rgba(33, 197, 166, 0.14), transparent 66%);
  opacity: 0.85;
  animation: float-ambient 22s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(760px 420px at 18% 78%, rgba(30, 139, 255, 0.12), transparent 60%),
    radial-gradient(920px 560px at 82% 62%, rgba(33, 197, 166, 0.16), transparent 64%);
  mix-blend-mode: multiply;
  animation: float-ambient 28s ease-in-out infinite reverse;
}

body::after {
  box-shadow:
    0 0 0 0 rgba(33, 197, 166, 0.12),
    0 0 0 0 rgba(30, 139, 255, 0.1);
}

body::before {
  filter: blur(6px);
}

body::after {
  filter: blur(10px);
}

body .bubble-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.7), rgba(91, 228, 196, 0.18) 40%, rgba(78, 152, 255, 0.16) 62%, rgba(200, 120, 255, 0.12) 78%, transparent 100%);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.55);
  opacity: 0.35;
  filter: blur(0.2px);
  mix-blend-mode: screen;
  animation: bubble-rise 22s ease-in-out infinite;
}

.bubble.sm { width: 28px; height: 28px; }
.bubble.md { width: 46px; height: 46px; }
.bubble.lg { width: 72px; height: 72px; }
.bubble.xl { width: 110px; height: 110px; }

.bubble.b1 { top: 95%; left: 6%; animation-duration: 24s; }
.bubble.b2 { top: 98%; left: 80%; animation-duration: 28s; animation-delay: -6s; }
.bubble.b3 { top: 92%; left: 12%; animation-duration: 32s; animation-delay: -12s; }
.bubble.b4 { top: 96%; left: 70%; animation-duration: 30s; animation-delay: -10s; }
.bubble.b5 { top: 94%; left: 45%; animation-duration: 26s; animation-delay: -14s; }
.bubble.b6 { top: 99%; left: 30%; animation-duration: 34s; animation-delay: -16s; }

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0;
  }
  50% {
    transform: translate3d(-14px, -220px, 0) scale(1);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(10px, -520px, 0) scale(1.06);
    opacity: 0;
  }
}
@keyframes float-ambient {
  0% {
    transform: translate3d(-2%, -2%, 0);
  }
  50% {
    transform: translate3d(2%, 2%, 0);
  }
  100% {
    transform: translate3d(-2%, -2%, 0);
  }
}

/* 后端语言自定义输入框样式 */
.backend-language-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backend-language-wrapper select,
.backend-language-wrapper input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.backend-language-wrapper select:focus,
.backend-language-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.backend-language-wrapper input::placeholder {
  color: var(--muted);
}

/* 取消任务确认弹窗样式 */
.cancel-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(6px);
}

.cancel-confirm-backdrop.open {
  display: flex;
}

.cancel-confirm-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cancelConfirmSlideIn 0.3s ease;
  text-align: center;
}

@keyframes cancelConfirmSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cancel-confirm-header {
  margin-bottom: 24px;
}

.cancel-confirm-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.cancel-confirm-modal h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.cancel-confirm-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.cancel-confirm-actions {
  display: flex;
  gap: 12px;
}

.cancel-confirm-actions button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cancel-confirm-actions .ghost {
  background: #f5f7fa;
  color: var(--text);
}

.cancel-confirm-actions .ghost:hover {
  background: #e8ecf2;
}

.cancel-confirm-actions .danger {
  background: #FF3B30;
  color: #ffffff;
}

.cancel-confirm-actions .danger:hover {
  background: #e5352a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

