/* Guide Page Styles */
:root {
  --primary-color: #f15a2a;
  --primary-dark: #cf4f21;
  --secondary-color: #3ac7b8;
  --accent-color: #f3c77d;
  --text-dark: #0f1c2e;
  --text-light: #e9eef7;
  --text-muted: rgba(233, 238, 247, 0.72);
  --bg-dark: #0b1322;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(243, 199, 125, 0.12), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(58, 199, 184, 0.16), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(241, 90, 42, 0.12), transparent 40%),
    linear-gradient(135deg, #0b1322 0%, #101d31 40%, #112342 100%);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 120px;
}

.guide-page {
  min-height: 100vh;
}

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

/* Header */
.guide-header {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  background: rgba(11, 19, 34, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Section */
.guide-hero {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 14px;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.eyebrow-link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(243, 199, 125, 0.1);
}

.eyebrow-link:hover {
  background: rgba(243, 199, 125, 0.15);
  border-color: rgba(243, 199, 125, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 199, 125, 0.2);
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: #fdfaf5;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.hero-features {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-pill .icon {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Quick Navigation */
.quick-nav {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nav-icon {
  font-size: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: #fdfaf5;
}

/* Floating Sidebar Navigation */
.floating-sidebar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  transition: all 0.3s ease;
  /* Add semi-transparent background for better visibility on mobile */
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 19, 34, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  min-width: 70px;
  /* Prevent text selection on mobile */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(243, 199, 125, 0.3);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(243, 199, 125, 0.2);
}

.sidebar-item:hover .sidebar-label {
  color: var(--accent-color);
}

.sidebar-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.sidebar-item:hover .sidebar-icon {
  transform: scale(1.1);
}

.sidebar-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(233, 238, 247, 0.8);
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Active state for sidebar items */
.sidebar-item.active {
  background: rgba(243, 199, 125, 0.15);
  border-color: rgba(243, 199, 125, 0.4);
}

.sidebar-item.active .sidebar-label {
  color: var(--accent-color);
}

.sidebar-item.active .sidebar-icon {
  transform: scale(1.1);
}

/* Main Content */
.guide-main {
  padding: var(--spacing-xl) 0;
}

.guide-section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.guide-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(241, 90, 42, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.section-number {
  font-size: 48px;
  font-weight: 900;
  color: rgba(243, 199, 125, 0.3);
  line-height: 1;
  min-width: 80px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  color: #fdfaf5;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.steps-grid.single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.step-badge {
  display: inline-flex;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-color), #f38a3a);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.step-header h3 {
  font-size: 20px;
  color: #fdfaf5;
  margin: 0;
}

.step-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.step-card:hover .step-image img {
  transform: scale(1.05);
}

.step-content {
  padding: var(--spacing-md);
}

.step-content p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
  font-size: 15px;
}

.step-content ul {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-md);
  color: var(--text-muted);
}

.step-content li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

.step-content strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Tip Box */
.tip-box {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(58, 199, 184, 0.1);
  border-left: 3px solid var(--secondary-color);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-md);
  font-size: 14px;
  line-height: 1.5;
}

.tip-box.warning {
  background: rgba(241, 90, 42, 0.1);
  border-left-color: var(--primary-color);
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Feature Intro */
.feature-intro {
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.intro-card {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.intro-card h3 {
  font-size: 24px;
  color: #fdfaf5;
  margin-bottom: var(--spacing-sm);
}

.intro-card > p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.feature-item .check {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-item span:last-child {
  color: var(--text-light);
  line-height: 1.6;
}

.feature-item strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Visual Example */
.visual-example {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.example-image {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-caption {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.faq-question,
.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.faq-question {
  margin-bottom: var(--spacing-md);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.faq-question .faq-icon {
  background: linear-gradient(135deg, var(--primary-color), #f38a3a);
  color: var(--text-dark);
}

.faq-answer .faq-icon {
  background: rgba(58, 199, 184, 0.2);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.faq-question h3 {
  font-size: 18px;
  color: #fdfaf5;
  margin: 0;
  line-height: 1.4;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Fixed CTA */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md) 0;
  background: rgba(11, 19, 34, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.cta-button {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary-color), #f38a3a);
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(241, 90, 42, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(241, 90, 42, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-icon {
  font-size: 24px;
}

.cta-text {
  letter-spacing: 0.5px;
}

/* Footer */
.guide-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-info {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-info p {
  margin: 4px 0;
}

.footer-copyright {
  color: rgba(233, 238, 247, 0.5);
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }

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

  .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* Optimize floating sidebar for tablets */
  .floating-sidebar {
    right: 12px;
  }

  .sidebar-nav {
    padding: 12px 8px;
    gap: 8px;
  }

  .sidebar-item {
    min-width: 60px;
    padding: 10px 6px;
  }

  .sidebar-icon {
    font-size: 20px;
  }

  .sidebar-label {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 100px;
  }

  .guide-hero {
    padding: var(--spacing-lg) 0;
  }

  h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .section-header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .section-number {
    font-size: 36px;
    min-width: auto;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .guide-section {
    padding: var(--spacing-md);
  }

  .cta-button {
    font-size: 16px;
    padding: 16px 24px;
  }

  /* Compact sidebar for mobile */
  .floating-sidebar {
    right: 8px;
    transform: translateY(-50%) scale(0.95);
  }

  .sidebar-nav {
    padding: 10px 6px;
    gap: 6px;
    border-radius: 14px;
  }

  .sidebar-item {
    min-width: 50px;
    padding: 8px 4px;
    gap: 4px;
    border-radius: 10px;
  }

  .sidebar-icon {
    font-size: 18px;
  }

  .sidebar-label {
    font-size: 10px;
    line-height: 1.1;
  }

  .sidebar-item:hover {
    transform: translateX(-2px);
  }
}

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

  .guide-header {
    padding: var(--spacing-sm) 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 16px;
  }

  .guide-hero {
    padding: var(--spacing-md) 0;
  }

  h1 {
    font-size: 28px;
  }

  .hero-features {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-pill {
    justify-content: center;
  }

  .quick-nav {
    padding: var(--spacing-md) 0;
  }

  .nav-card {
    padding: var(--spacing-md);
  }

  .nav-icon {
    font-size: 36px;
  }

  .nav-title {
    font-size: 18px;
  }

  .guide-section {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  .section-header h2 {
    font-size: 22px;
  }

  .step-content {
    padding: var(--spacing-sm);
  }

  .cta-button {
    font-size: 15px;
    padding: 14px 20px;
  }

  .fixed-cta {
    padding: var(--spacing-sm) 0;
  }

  /* Extra compact sidebar for small mobile */
  .floating-sidebar {
    right: 4px;
    transform: translateY(-50%) scale(0.85);
  }

  .sidebar-nav {
    padding: 8px 4px;
    gap: 4px;
    border-radius: 12px;
    background: rgba(11, 19, 34, 0.98);
  }

  .sidebar-item {
    min-width: 44px;
    padding: 6px 2px;
    gap: 2px;
  }

  .sidebar-icon {
    font-size: 16px;
  }

  .sidebar-label {
    font-size: 9px;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
  .guide-header,
  .quick-nav,
  .fixed-cta {
    display: none;
  }

  body {
    background: white;
    color: black;
    padding-bottom: 0;
  }

  .guide-section {
    page-break-inside: avoid;
  }
}

