/* 
 * 豆包智能体下架自救站 (doubaodaochu.com) 
 * Design System & Core Stylesheet - Kling AI & v0.dev Premium Edition
 */

:root {
  --bg-dark: #07090E;
  --bg-card: rgba(13, 17, 28, 0.7);
  --bg-card-hover: rgba(22, 28, 45, 0.85);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(139, 92, 246, 0.5);
  
  --primary-glow: linear-gradient(135deg, #A78BFA 0%, #3B82F6 100%);
  --accent-purple: #A78BFA;
  --accent-blue: #60A5FA;
  --accent-red: #F87171;
  --accent-green: #34D399;
  
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.1);
  --shadow-neon-hover: 0 0 40px rgba(139, 92, 246, 0.25);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
}

.text-gradient {
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-light) 1px solid;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(7, 9, 14, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-glow);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-purple);
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: calc(100vh - 70px);
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-left: var(--border-light) 1px solid;
    transition: var(--transition-smooth);
  }
  .nav-menu.open { right: 0; }
  .nav-toggle { display: block; }
}

/* Main Layout container */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px - 220px);
  padding: 2.5rem 1.5rem;
}

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

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  color: var(--accent-purple);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-title {
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
  z-index: 10;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.4rem;
}

.btn-primary {
  background: var(--primary-glow);
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: var(--border-light) 1px solid;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Kling AI Style Showcase Container */
.showcase-container {
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(13, 17, 28, 0.5);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-neon);
  margin-bottom: 4rem;
  position: relative;
  transition: var(--transition-smooth);
}

.showcase-container:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-neon-hover);
}

.showcase-img {
  width: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.85;
}

/* Glass Floating Countdown Panel */
.floating-countdown {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 460px;
  background: rgba(13, 17, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.countdown-label-highlight {
  color: var(--accent-red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown-item {
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-light) 1px solid;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
}

.countdown-number {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-unit {
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: block;
}

/* Compact SEO Info Cards (Kling/v0.dev inspired) */
.grid-2, .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-light) 1px solid;
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tag-warning {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--accent-red);
}

.tag-info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--accent-blue);
}

.tag-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent-green);
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
}

.card-link:hover {
  gap: 0.6rem;
  color: var(--text-primary);
}

/* Page Headers */
.page-header {
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

/* Step Container & Tutorials */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  padding-left: 3rem;
}

.step-number {
  position: absolute;
  top: 1.5rem;
  left: 1rem;
  width: 22px;
  height: 22px;
  background: var(--primary-glow);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Copy Block Component */
.copy-block {
  background: rgba(0, 0, 0, 0.45);
  border: var(--border-light) 1px solid;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.75rem 0;
  position: relative;
}

.copy-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  border-bottom: rgba(255, 255, 255, 0.05) 1px solid;
  padding-bottom: 0.4rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-light) 1px solid;
  color: var(--text-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: var(--accent-purple);
  color: var(--bg-dark);
  border-color: var(--accent-purple);
}

.copy-content {
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-primary);
}

/* Comparison Table Layout */
.table-wrapper {
  overflow-x: auto;
  border: var(--border-light) 1px solid;
  border-radius: 12px;
  background: var(--bg-card);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: var(--border-light) 1px solid;
}

th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: var(--text-primary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.01); }

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 2rem auto;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 0.25rem;
  left: -1.75rem;
  width: 12px;
  height: 12px;
  background: var(--bg-dark);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-purple);
  z-index: 1;
}

.timeline-dot.critical {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 0.4rem;
  display: block;
}

.timeline-date.critical { color: var(--accent-red); }

.timeline-content {
  background: var(--bg-card);
  border: var(--border-light) 1px solid;
  border-radius: 10px;
  padding: 1.25rem;
}

.timeline-content h3 {
  font-size: 1.05rem;
}

/* Accordion FAQs */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: var(--border-light) 1px solid;
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.01); }
.faq-icon { font-size: 1.1rem; color: var(--accent-purple); transition: var(--transition-smooth); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  padding: 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid transparent;
  line-height: 1.5;
}

.faq-item.active { border-color: var(--border-glow); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 1rem 1.25rem;
  border-top-color: var(--border-light);
}

/* Footer Section */
footer {
  background: rgba(7, 9, 14, 0.9);
  border-top: var(--border-light) 1px solid;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-link:hover { color: var(--text-primary); }

.footer-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 1.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* General Alerts */
.alert {
  border-radius: 10px;
  padding: 1rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.alert-important {
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: var(--text-primary);
}

.alert-important i {
  color: var(--accent-purple);
  font-size: 1.1rem;
}
