/* ============================================
   字节力量官网 - 全局样式
   配色：蝌蚪绿 #22C55E + 橘黄 #F97316
   ============================================ */

/* === CSS Variables === */
:root {
  --color-primary: #22C55E;
  --color-primary-dark: #16A34A;
  --color-primary-light: #DCFCE7;
  --color-accent: #F97316;
  --color-accent-dark: #EA580C;
  --color-accent-light: #FFF7ED;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 72px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo img {
  width: 60px;
  height: 60px;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 4px 0;
}

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

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-toggle span {
  opacity: 0.5;
}

.lang-toggle span.active {
  opacity: 1;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

/* === Hero Section === */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 50%, var(--color-accent-light) 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #000000;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-desc-block {
  margin-bottom: 32px;
}

.hero-desc-block p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-desc-block p:last-child {
  margin-bottom: 0;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* === Hero Visual === */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--color-bg);
  border-radius: 40px;
  border: 8px solid var(--color-text);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

.phone-mockup .screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.phone-mockup .screen-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.phone-mockup .screen-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.phone-mockup .screen-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.phone-mockup .screen-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.floating-card {
  position: absolute;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 60px;
  right: -40px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 80px;
  left: -40px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card .card-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.floating-card .card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* === Section Common === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .label {
  display: inline-block;
  padding: 4px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

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

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === Product Card === */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-showcase.reverse {
  direction: rtl;
}

.product-showcase.reverse > * {
  direction: ltr;
}

.product-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-info p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.feature-list li .icon {
  width: 24px;
  height: 24px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.product-visual {
  display: flex;
  justify-content: center;
}

.product-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow-lg);
}

/* === Feature Cards Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  overflow: hidden;
}

.feature-card .card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feature-card:nth-child(even) .card-icon {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

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

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

/* === Download Section === */
.download-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

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

.download-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  width: 240px;
  height: 72px;
  justify-content: center;
  background: white;
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  line-height: 1.2;
  white-space: nowrap;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.download-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.download-btn .btn-icon svg {
  display: block;
}

.download-btn .btn-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.download-btn .btn-text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* === Download Redesign === */
.download-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.download-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.download-left .download-buttons {
  justify-content: flex-start;
}

.dl-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.dl-security svg {
  flex-shrink: 0;
}

.dl-security-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.dl-security-center svg {
  flex-shrink: 0;
}

.dl-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dl-qr img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.dl-qr span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Android Dropdown */
.dl-dropdown-wrap {
  position: relative;
}

.dl-drop-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.dl-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 100;
  overflow: hidden;
  animation: dlDropIn 0.2s ease;
}

.dl-dropdown-menu.show {
  display: block;
}

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

.dl-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--color-border);
}

.dl-dropdown-item:last-child {
  border-bottom: none;
}

.dl-dropdown-item:hover {
  background: var(--color-bg-alt);
}

.dl-dropdown-item .dd-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dl-dropdown-item .dd-label {
  flex: 1;
}

.dl-dropdown-item .dd-arrow {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* === Version History === */
.version-list {
  max-width: 700px;
  margin: 0 auto;
}

.version-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.version-item:last-child {
  border-bottom: none;
}

.version-number {
  flex-shrink: 0;
  width: 80px;
  padding: 8px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.version-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.version-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === Footer === */
.footer {
  background: var(--color-text);
  color: white;
  padding: 60px 0 32px;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  width: 60px;
  height: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

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

/* === Responsive: Tablet === */
@media (min-width: 769px) and (max-width: 960px) {
  .nav {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-showcase.reverse {
    direction: ltr;
  }

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

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

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header {
    height: 60px;
  }

  .nav {
    display: none;
    /* header 的 backdrop-filter 会使其成为 fixed 后代的包含块，
       故用 absolute 锚定 header 底部做下拉面板 */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    background: var(--color-bg);
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
    padding: 13px 0;
  }

  .nav a.active::after {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

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

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-content {
    flex-direction: column;
    gap: 32px;
  }

  .download-left {
    align-items: center;
  }

  .download-left .download-buttons {
    justify-content: center;
  }

  .dl-dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    animation: none;
  }

  .dl-dropdown-menu.show {
    transform: translateX(-50%) translateY(0);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand .footer-logo {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* === Phone Mockup Screenshots === */
.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 4px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.screenshot-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  padding: 20px 20px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.phone-frame {
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #1a1a1a;
  background: #000;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-label {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .screenshots-scroll {
    gap: 16px;
    padding: 16px 4px 24px;
  }

  .screenshot-card {
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .phone-frame {
    width: 180px;
    border-radius: 22px;
  }

  .phone-label {
    font-size: 0.82rem;
    margin-top: 10px;
  }
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(34, 197, 94, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}
