:root {
  --bg-body: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-surface-2: #fafafa;
  --bg-nav: rgba(255,255,255,0.88);
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --primary: #6b4fa0;
  --primary-light: #8b6fc0;
  --primary-dark: #4f3780;
  --primary-bg: rgba(107,79,160,0.08);
  --accent: #7b5ea7;
  --accent-light: #9b7bcb;
  --success: #4a9d6b;
  --success-bg: rgba(74,157,107,0.08);
  --error: #c0392b;
  --error-bg: rgba(192,57,43,0.08);
  --gradient-1: linear-gradient(135deg, #4f3780 0%, #6b4fa0 50%, #8b6fc0 100%);
  --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -8px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cn: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-height: 68px;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg-body: #191919;
  --bg-surface: #1e1e1e;
  --bg-surface-2: #252525;
  --bg-nav: rgba(25,25,25,0.9);
  --text-primary: #d4d4d4;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border: #333333;
  --border-light: #2a2a2a;
  --primary: #7b5ea7;
  --primary-light: #9b7bcb;
  --primary-dark: #5c4084;
  --primary-bg: rgba(123,94,167,0.12);
  --accent: #8b6fc0;
  --accent-light: #a98dd8;
  --success: #4a9d6b;
  --success-bg: rgba(74,157,107,0.12);
  --error: #c0392b;
  --error-bg: rgba(192,57,43,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 50px -8px rgba(0,0,0,0.5);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-cn);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 10000;
  width: 0;
  transition: width 0.1s linear;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.remain-info {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--primary-light);
  text-align: center;
}

.remain-info i {
  margin-right: 4px;
}

.pro-remain {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 2px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-cn);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(30,64,175,0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-bg);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: transform 0.35s ease;
}

.navbar--hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.logo-text { font-size: 1.15rem; }
.logo-text small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--primary-bg);
}

#darkmode-toggle {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--gradient-2);
}

.particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 20px;
}

.typed-wrapper {
  display: inline;
  border-bottom: 3px solid var(--accent-light);
  padding-bottom: 2px;
}

.typed-text {
  display: inline;
}

.typed-cursor {
  color: var(--accent-light);
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.features-section {
  background: var(--bg-body);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: default;
  transition: all 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.showcase-section {
  background: var(--bg-surface);
}

.showcase-carousel {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.embla__container {
  display: flex;
  user-select: none;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.showcase-card {
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.showcase-before,
.showcase-after {
  position: relative;
}

.showcase-label {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.showcase-before .showcase-label {
  background: var(--error-bg);
  color: var(--error);
}

.showcase-after .showcase-label {
  background: var(--success-bg);
  color: var(--success);
}

.showcase-before p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--error);
}

.showcase-after p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--success);
}

.showcase-arrow {
  text-align: center;
  padding: 12px 0;
  color: var(--primary-light);
  font-size: 1.2rem;
}

.embla__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.embla__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.embla__btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.embla__dots {
  display: flex;
  gap: 6px;
}

.embla__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.embla__dot.is-selected {
  background: var(--primary-light);
  width: 24px;
  border-radius: 4px;
}

.tool-section {
  background: var(--bg-body);
}

.tool-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.tool-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.tool-config {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.config-group {
  margin-bottom: 20px;
}

.config-group:last-child {
  margin-bottom: 0;
}

.config-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.config-label i {
  width: 16px;
  color: var(--primary-light);
}

.config-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.config-select:focus {
  border-color: var(--primary-light);
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.range-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 2.2em;
  text-align: center;
  user-select: none;
}

.range-track-wrapper {
  flex: 1;
  position: relative;
  padding: 6px 0 14px;
}

.config-range {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: background 0.15s;
}

.config-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.config-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.config-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.config-range.max::-webkit-slider-thumb {
  animation: rangeGlow 1.2s ease-in-out infinite;
}

.config-range.max::-moz-range-thumb {
  animation: rangeGlow 1.2s ease-in-out infinite;
}

@keyframes rangeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--primary-bg), 0 0 0 0 rgba(107,79,160,0.06);
  }
  50% {
    box-shadow: 0 0 0 6px var(--primary-bg), 0 0 0 12px rgba(107,79,160,0.04);
  }
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 1px;
  right: 1px;
  z-index: 1;
}

.range-ticks span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.25s ease;
}

.range-ticks span.active {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-bg);
}

.range-value {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.tone-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-2);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tone-btn {
  flex: 1;
  padding: 7px 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.tone-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tone-btn:hover:not(.active) {
  color: var(--text-primary);
}

.tool-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-input-area {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.input-label i { color: var(--primary-light); }

.tool-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 0.95rem;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s;
}

.tool-textarea::placeholder {
  color: var(--text-muted);
}

.tool-textarea:focus {
  border-color: var(--primary-light);
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.char-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tool-output-area {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 260px;
}

.output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-muted);
  text-align: center;
}

.output-placeholder i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.output-placeholder p {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.output-placeholder span {
  font-size: 0.85rem;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.output-actions {
  display: flex;
  gap: 8px;
}

.output-body {
  padding: 20px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.9;
  white-space: pre-wrap;
  min-height: 120px;
}

.output-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.output-footer i { color: var(--accent); }

.output-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pricing-section {
  background: var(--bg-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-btn {
  margin-top: auto;
}

.pricing-card.featured {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-badge.premium {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
  width: 16px;
  font-size: 0.8rem;
  color: var(--success);
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled i {
  color: var(--text-muted);
  opacity: 0.4;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

.faq-section {
  background: var(--bg-body);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.ac {
  margin-bottom: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  background: transparent !important;
}

.ac:first-child {
  border-top: 1px solid var(--border) !important;
}

.ac .ac-header {
  margin: 0;
}

.ac .ac-trigger {
  font-family: var(--font-cn);
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  padding: 18px 40px 18px 0 !important;
  transition: color 0.2s;
}

.ac .ac-trigger::after {
  content: '+' !important;
  font-size: 1.2rem !important;
  color: var(--text-muted) !important;
  right: 4px !important;
  transition: transform 0.3s !important;
}

.ac.is-active .ac-trigger::after {
  transform: rotate(45deg) !important;
}

.ac .ac-trigger:focus {
  color: var(--primary-light) !important;
}

.ac .ac-panel {
  padding-bottom: 16px !important;
}

.ac .ac-panel p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  padding: 0;
}

.cta-section {
  padding: 80px 0;
  background: var(--bg-body);
}

.cta-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--gradient-2);
  border-radius: var(--radius-xl);
  color: #fff;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.modal__container--sm {
  max-width: 380px !important;
}

.modal__container--pay {
  max-width: 360px !important;
}

.pay-tabs {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-bottom: 16px;
}

.pay-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.pay-tab i { margin-right: 4px; }
.pay-tab .fa-weixin { color: #07c160; }
.pay-tab .fa-alipay { color: #1677ff; }

.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  min-height: 200px;
}

#userBtn {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.user-btn-login {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.user-btn-login:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  user-select: none;
}

.user-avatar:hover {
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.user-avatar-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-left: 6px;
  white-space: nowrap;
  display: none;
}

@media (min-width: 769px) {
  .user-avatar-name {
    display: inline;
  }
}

.auth-screen {
  padding: 0 !important;
}

.auth-screen .form-group {
  margin-bottom: 14px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-switch {
  font-size: 0.82rem;
  color: var(--primary-light);
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-switch:hover {
  opacity: 0.8;
}

.auth-submit {
  width: 100%;
  justify-content: center;
}

.verify-box {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  padding: 18px 16px;
  background: var(--bg-surface-2);
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  margin: 16px 0;
  user-select: all;
}

.verify-warn {
  font-size: 0.82rem !important;
  color: var(--error) !important;
  margin-bottom: 16px !important;
}

.verify-warn i {
  margin-right: 4px;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #7b5ea7, #9b7bcb);
  color: #fff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.pro-badge i {
  font-size: 0.65rem;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.micromodal-slide.is-open .modal__overlay {
  opacity: 1;
  visibility: visible;
}

.modal__container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 90%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.micromodal-slide.is-open .modal__container {
  transform: none;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.modal__title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__title i { color: var(--primary-light); }

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal__close::before {
  content: '\2715';
  font-style: normal;
}

.modal__close:hover {
  background: var(--primary-bg);
  color: var(--text-primary);
}

.modal__content {
  padding: 20px 24px;
}

.modal__content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary-light);
}

.form-tip {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

.modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 24px 20px;
}

.disclaimer-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.disclaimer-content strong {
  color: var(--text-primary);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--error);
}

.toast.info {
  border-left: 3px solid var(--primary-light);
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 968px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-sidebar {
    position: static;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .cta-card h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .output-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
