@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #3B82F6;
  --primary-light: #4F46E5;
  --primary-bg: #EEF2FF;
  --primary-hover: #2563EB;
  --bg: #FAFAFA;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #F1F5F9;
  --border-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  
  --red-bg: #FEF2F2; --red-text: #EF4444;
  --purple-bg: #FAF5FF; --purple-text: #A855F7;
  --cyan-bg: #ECFEFF; --cyan-text: #06B6D4;
  --green-bg: #ECFDF5; --green-text: #10B981;
  --yellow-bg: #FFFBEB; --yellow-text: #F59E0B;
  --indigo-bg: #EEF2FF; --indigo-text: #6366F1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* 隐藏精选AI工具区域 */
#categories {
  display: none !important;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 16px; }
.mt-auto { margin-top: auto; }
.bg-light { background: #FFFFFF; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; }
.section-title { font-size: 24px; margin-bottom: 8px; }
.section-sub { font-size: 14px; color: var(--text-muted); }
.center { text-align: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-outline-primary { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-bg); }
.btn-white { background: #fff; color: var(--primary-light); font-weight: 700; }
.btn-white:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* SIDEBAR */
.sidebar {
  width: 260px; background: var(--bg-sidebar); border-right: 1px solid rgba(0,0,0,0.04);
  position: fixed; top: 0; left: 0; height: 100vh;
  display: flex; flex-direction: column; z-index: 100;
  padding: 32px 20px;
}
.sidebar-top { margin-bottom: 40px; padding: 0 8px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--text-main); }
.logo-icon {background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: all 0.3s ease;
}
.nav-icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: currentColor; }
.nav-icon svg { width: 100%; height: 100%; }
.nav-item:hover { background: var(--border-light); color: var(--text-main); }
.nav-item.active { background: var(--primary-bg); color: var(--primary-light); }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }

/* MAIN CONTENT */
.main-content {
  margin-left: 260px; flex: 1; min-width: 0;
  display: flex; flex-direction: column; min-height: 100vh;
}
.top-header {
  height: 72px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.03);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; position: sticky; top: 0; z-index: 90;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-left h2 { font-size: 16px; font-weight: 700; margin: 0; }
.beta-badge { background: var(--primary-bg); color: var(--primary-light); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.header-right p { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.page-content { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; }
.page-content-container { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; min-height: calc(100vh - 72px); transition: opacity 0.2s ease; }
.page-content-container.loading { opacity: 0.5; }

/* Loading Container */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* Loader Ring */
.loader-ring {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3B82F6;
  border-right-color: #8B5CF6;
  border-radius: 50%;
  animation: loader-spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.loading-text {
  color: #64748B;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-align: center;
  letter-spacing: 0.5px;
  margin: 0;
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* HERO BANNER */
.hero-banner { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 0 80px; 
  height: 300px;
  border-radius: 24px; 
  position: relative; 
  overflow: hidden; 
  margin-bottom: 64px; 
  border: none; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
  background: #0f172a;
}
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slider .slide { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.slider-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.5) 45%, transparent 100%); z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; max-width: 520px; }
.hero-tag { display: inline-block; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.2); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 16px; border-radius: 100px; margin-bottom: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); backdrop-filter: blur(4px); }
.hero-banner h1 { font-size: 40px; line-height: 1.25; margin-bottom: 12px; color: #ffffff; letter-spacing: -0.5px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-banner p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 24px; line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.slider-dots .dot.active { background: #ffffff; width: 20px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* SECTIONS */
.section { margin-bottom: 64px; }
.flex-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.view-all { font-size: 14px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.view-all:hover { color: var(--primary); }

/* AGENTS */
.agents-filter { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 6px 16px; border-radius: 100px; font-size: 14px; font-weight: 500; background: var(--bg-sidebar); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { background: var(--border-light); }
.filter-btn.active { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent-card { background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.03); cursor: pointer; }
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); border-color: rgba(59,130,246,0.15); }
.agent-cover-img { height: 180px; position: relative; overflow: hidden; background: #f8f9fa; }
.agent-cover-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease, opacity 0.5s ease; 
  z-index: 0;
  /* Chrome优化：减少渲染闪烁 */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.agent-card:hover .agent-cover-img img { transform: scale(1.05); }
.agent-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; z-index: 2; }
.pill-red { background: var(--red-bg); color: var(--red-text); }
.pill-purple { background: var(--purple-bg); color: var(--purple-text); }
.pill-cyan { background: var(--cyan-bg); color: var(--cyan-text); }
.pill-indigo { background: var(--indigo-bg); color: var(--indigo-text); }
.pill-green { background: var(--green-bg); color: var(--green-text); }
.pill-yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.agent-body { padding: 20px; }
.agent-body h3 { font-size: 16px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.agent-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.agent-meta span { display: flex; align-items: center; gap: 4px; }
.agent-use-btn { display: none; } /* Handled by interaction or hover if needed, kept hidden for minimalist look like ref */

/* TOOLS */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tool-card { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; background: var(--bg-card); border-radius: 16px; padding: 24px; border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: rgba(59,130,246,0.15); }
.tool-icon-wrapper { flex-shrink: 0; }
.tool-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.tool-icon svg { width: 28px; height: 28px; }
.tool-content-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.tool-title-desc { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tool-title-desc h3 { font-size: 15px; font-weight: 700; color: #1E293B; margin: 0; }
.tool-title-desc p { font-size: 13px; color: #64748B; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-tags { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge-official { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #10B981; }
.badge-tag { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #94A3B8; }
.badge-official svg, .badge-tag svg { width: 14px; height: 14px; }

/* PROGRAMMING CARDS */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prog-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.02); display: flex; flex-direction: column; cursor: pointer; padding: 0; align-items: stretch; }
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: rgba(59,130,246,0.15); }
.prog-cover { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prog-cover-text { padding: 20px; }
.prog-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prog-body h3 { font-size: 16px; font-weight: 700; color: #1E293B; margin-bottom: 8px; margin-top:0; }
.prog-body p { font-size: 13px; color: #64748B; margin-bottom: 20px; flex: 1; line-height: 1.5; }
.prog-btn { background: #3B82F6; color: #fff; border: none; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; align-self: flex-start; transition: 0.2s; }
.prog-btn:hover { background: #2563EB; }

/* LEARNING */
.learning-tabs { display: flex; gap: 12px; margin-bottom: 24px; justify-content: center; }
.learning-tabs .tab-pill { padding: 8px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: #64748B; border: 1px solid rgba(0,0,0,0.05); transition: 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.learning-tabs .tab-pill.active { background: #6366F1; color: #fff; border-color: #6366F1; }
.learning-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.learn-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.02); display: flex; flex-direction: column; cursor: pointer; padding: 0; }
.learn-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: rgba(59,130,246,0.15); }
.learn-cover { width: 100%; height: 180px; display: flex; flex-direction: column; padding: 20px; position: relative; background-size: cover; background-position: center; border-bottom: 1px solid rgba(0,0,0,0.03); justify-content: center; align-items: flex-start; }
.learn-cover .learn-tag { font-size: 24px; font-weight: 900; color: #3B82F6; margin-bottom: 8px; line-height: 1; display: inline-block; }
.learn-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.learn-info h4 { font-size: 16px; margin-bottom: 6px; font-weight: 700; color: #1E293B; }
.learn-info p { font-size: 13px; color: #64748B; margin-bottom: 16px; flex: 1; }
.learn-btn { background: #3B82F6; color: #fff; border: none; padding: 8px 24px; border-radius: 100px; font-size: 13px; font-weight: 600; align-self: flex-start; cursor: pointer; transition: 0.2s; }
.learn-btn:hover { background: #2563EB; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; }
.pricing-card { background: var(--bg-card); border-radius: 24px; padding: 40px; border: 1px solid rgba(0,0,0,0.03); transition: all 0.4s; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.pricing-card.featured { border: 2px solid var(--primary); box-shadow: 0 20px 40px rgba(59,130,246,0.1); transform: scale(1.02); }
.pricing-card:not(.featured):hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.price-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 16px; }
.price-badge.free { background: var(--green-bg); color: var(--green-text); }
.price-badge.hot { background: var(--red-bg); color: var(--red-text); }
.price-badge.pro { background: var(--indigo-bg); color: var(--indigo-text); }
.pricing-card h3 { font-size: 18px; margin-bottom: 8px; }
.price { font-size: 36px; font-weight: 800; margin: 16px 0 24px; color: var(--text-main); }
.price sup { font-size: 16px; vertical-align: top; margin-top: 8px; display: inline-block; }
.price sub { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; background: var(--primary-bg); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 48px; text-align: center; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-light); }

/* MARQUEE */
.marquee-section { display: none; padding: 24px 0; background: var(--bg-card); border: 1px solid rgba(0,0,0,0.03); border-radius: 20px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.marquee-track { display: flex; gap: 40px; animation: marquee 20s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--text-main); }
.marquee-icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--primary); opacity: 0.8; }
.marquee-icon svg { width: 100%; height: 100%; }

/* FLOATING WIDGETS */
.floating-path { position: fixed; right: 32px; bottom: 100px; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #A855F7, #3B82F6); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 25px rgba(59,130,246,0.4); z-index: 100; transition: transform 0.3s; }
.floating-path:hover { transform: scale(1.1); }
.floating-download { position: fixed; right: 32px; bottom: 32px; background: #1E293B; color: #fff; padding: 10px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 100; transition: transform 0.3s; }
.floating-download:hover { transform: translateY(-4px); }

/* CHAT WINDOW */
.chat-window { position: fixed; right: 32px; bottom: 180px; width: 340px; height: 480px; background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; z-index: 1000; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(0,0,0,0.05); }
.chat-window.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-header { background: linear-gradient(135deg, #A855F7, #3B82F6); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; opacity: 0.8; transition: opacity 0.2s; }
.chat-close:hover { opacity: 1; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #F8FAFC; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 10px; max-width: 85%; }
.msg-ai { align-self: flex-start; }
.msg-avatar { width: 32px; height: 32px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); flex-shrink: 0; color: #3B82F6; }
.msg-bubble { background: #fff; padding: 12px 16px; border-radius: 2px 16px 16px 16px; font-size: 13px; color: #334155; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.chat-input-area { padding: 16px; background: #fff; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.chat-input { flex: 1; border: 1px solid var(--border); border-radius: 100px; padding: 10px 16px; font-size: 13px; outline: none; transition: border-color 0.2s; background: #F8FAFC; }
.chat-input:focus { border-color: #3B82F6; background: #fff; }
.chat-send { background: #3B82F6; color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.chat-send:hover { background: #2563EB; transform: scale(1.05); }

/* VIDEO MODAL */
.video-modal-container { background: white; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; width: 800px; max-width: 95%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; animation: slideUp 0.3s ease; }
.modal-close-float { position: absolute; top: 16px; right: 16px; color: white; font-size: 28px; font-weight: 300; z-index: 1001; background: rgba(0,0,0,0.4); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; backdrop-filter: blur(4px); }
.modal-close-float:hover { background: rgba(0,0,0,0.7); transform: scale(1.05); }

.modal-actions {
  position: absolute;
  top: 70px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.btn-favorite {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  background: rgba(239, 68, 68, 0.6);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-favorite.active {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.8);
}

.btn-favorite.active svg {
  fill: #ef4444;
}

.btn-favorite svg {
  transition: fill 0.3s ease;
}
.modal-rich-content { 
  width: 100%; 
  min-height: 450px; 
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
}

.rich-content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #94A3B8;
}

.rich-content-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E2E8F0;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.rich-content-wrapper {
  width: 100%;
  height: 100%;
  min-height: 450px;
  padding: 48px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rich-text {
  width: 100%;
  max-width: 700px;
  color: #1E293B;
  line-height: 1.8;
  font-size: 16px;
}

.rich-text p {
  margin-bottom: 16px;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text strong {
  font-weight: 700;
  color: #1E293B;
}

.rich-text em {
  font-style: italic;
}

.rich-text ul, .rich-text ol {
  margin: 16px 0;
  padding-left: 24px;
}

.rich-text li {
  margin-bottom: 8px;
}

.rich-text a {
  color: #3B82F6;
  text-decoration: underline;
}

.rich-text a:hover {
  color: #2563EB;
}

.modal-panel { padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; background: white; }
.panel-title { font-size: 22px; font-weight: bold; color: #333; margin: 0; }
.panel-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.btn-make-same { background: #8b5cf6; color: white; font-size: 14px; padding: 10px 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
.panel-buy-group { display: flex; gap: 16px; }
.btn-tokens { background: #ef4444; color: white; font-size: 14px; padding: 10px 24px; border-radius: 100px; display: flex; align-items: center; justify-content: center; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-vip-free { background: #f59e0b; color: white; font-size: 14px; padding: 10px 24px; border-radius: 100px; display: flex; align-items: center; justify-content: center; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.btn-make-same:hover, .btn-tokens:hover, .btn-vip-free:hover { transform: translateY(-2px); opacity: 0.9; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,41,59,0.5); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.modal-container { background: var(--bg-card); border-radius: 24px; overflow: hidden; display: flex; width: 800px; max-width: 95%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; animation: slideUp 0.3s ease; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 16px; transition: 0.2s; z-index: 10; }
.modal-close:hover { background: #E2E8F0; color: var(--text-main); }
.modal-left { width: 40%; background: #1E293B; padding: 48px 32px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.modal-brand { text-align: center; margin-bottom: 40px; }
.logo-icon-white { width: 48px; height: 48px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; }
.modal-brand h3 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.modal-brand p { font-size: 14px; color: #9CA3AF; }
.modal-illustration { display: flex; justify-content: center; gap: 12px; margin-top: auto; }
.illust-box { width: 40px; height: 120px; border-radius: 20px; background: linear-gradient(180deg, #3B82F6, transparent); opacity: 0.8; }
.illust-box:nth-child(2) { height: 160px; background: linear-gradient(180deg, #10B981, transparent); margin-top: -20px; }
.illust-box:nth-child(3) { height: 100px; background: linear-gradient(180deg, #A855F7, transparent); margin-top: 20px; }
.modal-right { width: 60%; padding: 48px; background: #fff; }
.modal-tabs { display: flex; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.modal-tab { padding: 12px 24px; font-size: 16px; font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative; }
.modal-tab.active { color: var(--primary); }
.modal-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.modal-right h2 { font-size: 28px; margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }

/* 表单容器最小高度 - 确保登录注册界面一致 */
#loginForm,
#registerForm,
#forgotPasswordForm {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

#loginForm > h2,
#registerForm > h2,
#forgotPasswordForm > h2 {
  flex-shrink: 0;
}

#loginForm > .modal-subtitle,
#registerForm > .modal-subtitle,
#forgotPasswordForm > .modal-subtitle {
  flex-shrink: 0;
}

#loginForm > .login-methods {
  flex-shrink: 0;
}

#loginForm > #passwordLoginForm,
#loginForm > #smsLoginForm {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#loginForm > #passwordLoginForm > .form-group:last-of-type,
#loginForm > #smsLoginForm > .form-group:last-of-type {
  margin-top: auto;
}

#loginForm > #passwordLoginForm > .btn,
#loginForm > #smsLoginForm > .btn {
  margin-top: auto;
}

#loginForm > .modal-terms,
#loginForm > .modal-forgot,
#registerForm > .modal-terms,
#forgotPasswordForm > .modal-back {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 16px;
}
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-group input { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; outline: none; transition: 0.2s; }
.form-group input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-bg); }
.modal-terms { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 24px; }
.modal-terms a { color: var(--primary); font-weight: 500; }

/* USER PROFILE CARD */
.user-profile-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 12px rgba(0,0,0,0.02); cursor: pointer; transition: 0.2s; }
.user-profile-card:hover { border-color: rgba(59,130,246,0.2); box-shadow: 0 4px 12px rgba(59,130,246,0.05); }
.up-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.up-avatar { width: 40px; height: 40px; background: #F1F5F9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #94A3B8; flex-shrink: 0; }
.up-info { flex: 1; min-width: 0; }
.up-name { font-size: 14px; font-weight: 700; color: #1E293B; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-badge { display: inline-block; background: #FFFBEB; color: #D97706; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.up-logout { background: none; border: none; color: #94A3B8; cursor: pointer; padding: 4px; border-radius: 6px; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.up-logout:hover { background: #F1F5F9; color: #EF4444; }
.up-apikey { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #475569; margin-bottom: 12px; }
.up-copy { background: #FFFBEB; color: #D97706; border: none; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.up-copy:hover { opacity: 0.8; }
.up-tokens-text { font-size: 11px; color: #64748B; margin-bottom: 6px; }
.up-progress { height: 6px; background: #EEF2FF; border-radius: 100px; overflow: hidden; }
.up-progress-fill { height: 100%; background: linear-gradient(90deg, #60A5FA, #6366F1); border-radius: 100px; }

/* PROFILE VIEW */
.profile-dashboard { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 32px; }
.p-card { background: #fff; border-radius: 20px; padding: 32px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.p-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.p-card-header h3 { font-size: 18px; margin: 0; font-weight: 700; }
.p-status { font-size: 12px; font-weight: 600; color: #10B981; background: #ECFDF5; padding: 4px 10px; border-radius: 100px; }
.p-amount { font-size: 40px; font-weight: 800; color: #1E293B; margin-bottom: 8px; }
.p-total { font-size: 20px; color: #94A3B8; font-weight: 600; }
.p-desc { font-size: 14px; color: #64748B; margin-bottom: 24px; }
.p-progress-large { height: 12px; background: #F1F5F9; border-radius: 100px; overflow: hidden; }
.p-progress-fill { height: 100%; background: linear-gradient(90deg, #3B82F6, #8B5CF6); border-radius: 100px; }
.p-actions { display: flex; flex-direction: column; gap: 12px; }
.p-records-container { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 4px 20px rgba(0,0,0,0.02); overflow: hidden; }
.p-tabs { display: flex; border-bottom: 1px solid rgba(0,0,0,0.04); }
.p-tab { flex: 1; padding: 20px; text-align: center; font-size: 16px; font-weight: 600; color: #64748B; background: none; border: none; cursor: pointer; transition: 0.2s; border-bottom: 2px solid transparent; }
.p-tab:hover { color: #1E293B; background: #F8FAFC; }
.p-tab.active { color: #3B82F6; border-bottom-color: #3B82F6; }
.p-table-wrapper { padding: 0; overflow-x: auto; }
.p-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.p-table th { text-align: left; padding: 16px 24px; font-size: 13px; color: #94A3B8; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.04); background: #F8FAFC; }
.p-table td { padding: 20px 24px; font-size: 14px; color: #334155; border-bottom: 1px solid rgba(0,0,0,0.03); }
.p-table tr:last-child td { border-bottom: none; }
.text-red { color: #EF4444; font-weight: 600; }
.status-success { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; background: #ECFDF5; color: #10B981; }

/* ANIMATIONS */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.fade-up { opacity: 1; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* DOWNLOAD MODAL */
.dl-header { text-align: center; margin-bottom: 32px; }
.dl-icon-top { width: 64px; height: 64px; margin: 0 auto 16px; color: #3B82F6; display: flex; align-items: center; justify-content: center; }
.dl-title { font-size: 24px; font-weight: 800; color: #1E293B; margin-bottom: 8px; }
.dl-sub { font-size: 14px; color: #64748B; }
.dl-list { display: flex; flex-direction: column; gap: 16px; }
.dl-card { display: flex; align-items: center; padding: 20px 24px; background: #F8FAFC; border: 1.5px solid transparent; border-radius: 16px; text-decoration: none; transition: all 0.2s; cursor: pointer; color: inherit; }
.dl-card:hover { background: #F0F7FF; border-color: #93C5FD; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,0.1); }
.dl-card-icon { width: 48px; height: 48px; color: #3B82F6; display: flex; align-items: center; justify-content: center; margin-right: 16px; }
.dl-card-info { flex: 1; }
.dl-card-info h3 { font-size: 16px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.dl-card-info p { font-size: 13px; color: #64748B; margin: 0; }
.dl-card-action { color: #3B82F6; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; transition: background 0.2s; }
.dl-card:hover .dl-card-action { background: rgba(59,130,246,0.1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: 0.3s; }
  .main-content { margin-left: 0; }
  .hero-banner { flex-direction: column; text-align: center; padding: 32px 20px; }
  .hero-visual { display: none; }
  .agents-grid, .tools-grid, .prog-grid, .learning-grid, .pricing-grid { grid-template-columns: 1fr; }
  .tool-card { flex-direction: column; }
  .tool-icon { width: 48px; height: 48px; }
  .tool-icon svg { width: 24px; height: 24px; }
  .tool-tags { flex-direction: row; justify-content: space-between; }
  .modal-container { flex-direction: column; width: 100%; height: 90vh; overflow-y: auto; }
  .modal-left { width: 100%; padding: 32px; display: none; }
  .modal-right { width: 100%; padding: 24px; }
}

/* ===== 收藏功能样式 ===== */
.btn-danger {
  background: #fff;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-danger:hover {
  background: #fef2f2;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.favorites-container {
  padding: 20px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.favorite-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.favorite-cover {
  position: relative;
  height: 160px;
}

.favorite-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.favorite-info {
  padding: 16px;
}

.favorite-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
}

.favorite-info p {
  margin: 0;
  font-size: 14px;
  color: #64748B;
}

.favorite-actions {
  padding: 0 16px 16px 16px;
  display: flex;
  gap: 10px;
}

.favorite-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

.register-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  max-width: 85%;
  min-width: 300px;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes slideDown {
  from {
    opacity: 0;
    top: -80px;
    transform: translateX(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    top: 80px;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
}

.register-message.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.success-message {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
  border-color: rgba(34, 197, 94, 0.6);
  color: #ffffff;
  box-shadow: 
    0 8px 32px rgba(34, 197, 94, 0.3),
    0 0 20px rgba(34, 197, 94, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.error-message {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  box-shadow: 
    0 8px 32px rgba(239, 68, 68, 0.3),
    0 0 20px rgba(239, 68, 68, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.message-icon {
  font-size: 20px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.success-message .message-icon {
  background: rgba(255, 255, 255, 0.2);
}

.error-message .message-icon {
  background: rgba(255, 255, 255, 0.2);
}

.message-text {
  flex: 1;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading-text {
  display: inline-block;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  /* animation: spin 0.8s linear infinite; */
  margin-left: 8px;
  vertical-align: middle;
}

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

/* 登录方式切换 */
.login-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
}

.login-method {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-method.active {
  background: #fff;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.login-method:hover:not(.active) {
  color: #334155;
}

/* 验证码输入组 */
.captcha-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-group input {
  flex: 1;
}

.captcha-image {
  width: 100px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.captcha-section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 忘记密码链接 */
.modal-forgot {
  text-align: center;
  color: #3b82f6;
  cursor: pointer;
  margin-top: 16px;
  font-size: 14px;
  transition: color 0.2s;
}

.modal-forgot:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 返回登录链接 */
.modal-back {
  text-align: center;
  color: #64748b;
  cursor: pointer;
  margin-top: 16px;
  font-size: 14px;
  transition: color 0.2s;
}

.modal-back:hover {
  color: #334155;
}

/* 小号按钮 */
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* 倒计时按钮样式 */
.btn:disabled,
.btn.disabled {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
  transform: none !important;
}

.btn.countdown-btn {
  position: relative;
  overflow: hidden;
}

.btn.countdown-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 输入框聚焦效果 */
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 响应式适配 */
@media (max-width: 480px) {
  .captcha-group {
    flex-wrap: wrap;
  }
  
  .captcha-group input {
    width: 100%;
  }
  
  .captcha-image {
    width: 80px;
    height: 38px;
  }
  
  .login-methods {
    padding: 3px;
  }
  
  .login-method {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ========== 拖动滑块验证窗口样式 ========== */
.drag-verify-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.drag-verify-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drag-verify-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.drag-verify-container {
  position: relative;
  width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.drag-verify-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.drag-verify-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.drag-verify-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.drag-verify-content {
  padding: 24px;
}

.drag-verify-tip {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  text-align: center;
}

.drag-verify-track {
  position: relative;
  height: 48px;
  background: #f1f5f9;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.drag-verify-target {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.drag-verify-slider {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 40px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
  transition: box-shadow 0.2s;
  user-select: none;
  z-index: 10;
}

.drag-verify-slider:active {
  cursor: grabbing;
}

.drag-verify-slider.dragging {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.drag-verify-progress {
  position: absolute;
  left: 4px;
  top: 4px;
  height: 36px;
  width: 40px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  border-radius: 18px;
  pointer-events: none;
}

.drag-icon {
  letter-spacing: -2px;
  font-size: 14px;
}

.drag-verify-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border-radius: 12px;
  margin-top: 16px;
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.result-icon.success {
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.result-text {
  font-size: 15px;
  font-weight: 600;
  color: #059669;
}

/* 拖动时的视觉反馈 */
.drag-verify-slider.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.drag-verify-track.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

/* 响应式 */
@media (max-width: 400px) {
  .drag-verify-container {
    width: calc(100% - 32px);
    max-width: 360px;
  }
}
