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

html {
  width: 100vw;
  overflow-x: hidden;
}

:root {
  /* Color Variables - Crypto Theme */
  --primary-color: #1a237e;
  /* Deep Blue */
  --secondary-color: #f48d3e;
  /* Bitcoin Orange */
  --accent-color: #00c853;
  /* Success Green */
  --dark-bg: #0d1421;
  /* Dark Blue Background */
  --light-bg: #f8f9fa;
  /* Light Background */
  --text-primary: #ffffff;
  /* White Text */
  --text-secondary: #b0bec5;
  /* Light Gray Text */
  --text-dark: #263238;
  /* Dark Text */
  --border-color: #37474f;
  /* Border Color */
  --gradient-bg: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #5c6bc0 100%);
  --shadow: 0 4px 20px rgba(26, 35, 126, 0.15);

  /* Typography */
  --font-primary: 'Noto Sans SC', sans-serif;
  --font-tech: 'Orbitron', monospace;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 20px;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-menu.mobile-active {
    right: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }
}


@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: 80px;
}

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

/* Crypto Ticker Bar */
.crypto-ticker-bar {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2d3748 100%);
  border-bottom: 2px solid var(--secondary-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticker-container {
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  /* No space needed for arrows */
}

.ticker-content-wrapper {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 15px;
  width: max-content;
  animation: continuous-scroll 10s linear infinite;
}

/* Continuous scrolling animation */
@keyframes continuous-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  gap: 10px;
}

.ticker-loading .fa-spinner {
  color: var(--secondary-color);
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 35px;
  backdrop-filter: blur(5px);
  white-space: nowrap;
  min-width: 200px;
  flex-shrink: 0;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

/* Ticker Arrows - Removed for continuous scroll */

/* Removed Play/Pause Control and Page Indicator styles */

/* Slide Animation */
@keyframes slideInFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove old ticker scroll animation */
@keyframes ticker-scroll {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

.coin-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--light-bg);
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
}

.coin-symbol {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 40px;
}

.coin-price {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 8px;
}

.coin-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  min-width: 45px;
  text-align: center;
}

.coin-change.positive {
  color: #00e676;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.coin-change.negative {
  color: #ff3d71;
  background: rgba(255, 61, 113, 0.1);
  border: 1px solid rgba(255, 61, 113, 0.3);
}

.coin-change.neutral {
  color: var(--text-secondary);
  background: rgba(176, 190, 197, 0.1);
  border: 1px solid rgba(176, 190, 197, 0.3);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 35px;
  color: #ff3d71;
  font-size: 0.9rem;
  gap: 10px;
  background: rgba(255, 61, 113, 0.1);
  border: 1px solid rgba(255, 61, 113, 0.3);
  border-radius: 25px;
  padding: 0 20px;
  backdrop-filter: blur(5px);
}

.ticker-reconnect {
  color: var(--secondary-color);
  cursor: pointer;
  text-decoration: underline;
  margin-left: 10px;
}

.ticker-reconnect:hover {
  color: var(--accent-color);
}

/* Responsive ticker */
@media (max-width: 768px) {
  .crypto-ticker-bar {
    height: 45px;
  }

  .ticker-container {
    height: 45px;
    padding: 0 40px;
  }

  .ticker-content {
    gap: 10px;
  }

  .ticker-item {
    padding: 0 15px;
    height: 30px;
    min-width: 180px;
  }

  .coin-logo {
    width: 16px;
    height: 16px;
  }

  .coin-symbol {
    font-size: 0.7rem;
    min-width: 30px;
  }

  .coin-price {
    font-size: 0.75rem;
  }

  .coin-change {
    font-size: 0.7rem;
    padding: 1px 4px;
    min-width: 35px;
  }

  .ticker-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .ticker-arrow-left {
    left: 5px;
  }

  .ticker-arrow-right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .crypto-ticker-bar {
    height: 40px;
  }

  .ticker-container {
    height: 40px;
    padding: 0 35px;
  }

  .ticker-content {
    gap: 8px;
  }

  .ticker-item {
    padding: 0 12px;
    height: 25px;
    min-width: 160px;
  }

  .coin-logo {
    width: 14px;
    height: 14px;
  }

  .coin-symbol {
    font-size: 0.65rem;
    min-width: 25px;
  }

  .coin-price {
    font-size: 0.7rem;
  }

  .coin-change {
    font-size: 0.65rem;
    padding: 1px 3px;
    min-width: 30px;
  }

  .ticker-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .ticker-arrow-left {
    left: 3px;
  }

  .ticker-arrow-right {
    right: 3px;
  }
}

/* Header and Navigation */
.header {
  background: var(--dark-bg);
  position: fixed;
  top: 0px;
  width: 100vw;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-text {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
}

.btc-text {
  color: var(--secondary-color);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -5px;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  background: var(--gradient-bg);
  min-height: 100vh;
  display: block;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Space for ticker bar (50px) + header (80px) */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('~/assets/imgs/tech-background.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--secondary-color);
  font-family: var(--font-tech);
}

.hero-title .subtitle {
  font-size: 2rem;
  color: var(--accent-color);
  display: block;
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 111, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-color);
}

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

.hero-image {
  text-align: center;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.05);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

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

/* About Section */
.about {
  width: 100vw;
  box-sizing: border-box;
  padding: var(--section-padding);
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: var(--dark-bg);
}

.services .section-title {
  color: var(--text-primary);
}

.services .section-subtitle {
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
}

.service-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.features-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: var(--gradient-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  color: var(--text-primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-tech);
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-primary);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Crypto List Section */
.crypto-list {
  padding: var(--section-padding);
  background: var(--light-bg);
  min-height: 100vh;
}

.crypto-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.sort-controls {
  display: flex;
  gap: 1rem;
}

.sort-select {
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.sort-select:focus {
  border-color: var(--secondary-color);
}

.crypto-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.crypto-card {
  background: white;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.crypto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.15);
  border-color: var(--secondary-color);
}

.crypto-card-header {
  display: flex;
  align-items: center;
  width: 250px;
  flex-shrink: 0;
}

.crypto-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.8rem;
  background: var(--light-bg);
}

.crypto-info h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}

.crypto-info .crypto-symbol {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.crypto-info .crypto-price-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.crypto-stat-value.crypto-price-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: normal;
  margin-top: 2px;
}

.crypto-rank {
  background: var(--gradient-bg);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.crypto-card-body {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}

.crypto-stat {
  text-align: left;
  min-width: 120px;
}

.crypto-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crypto-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.crypto-price {
  font-family: var(--font-tech);
  color: var(--secondary-color) !important;
  font-size: 1rem !important;
}

.crypto-change {
  font-weight: 700;
  font-size: 0.9rem;
}

.crypto-change.positive {
  color: var(--accent-color);
}

.crypto-change.negative {
  color: #ff3d71;
}

.crypto-change.neutral {
  color: var(--text-secondary);
}

.crypto-market-cap {
  color: var(--primary-color);
  font-size: 0.9rem;
}

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

.crypto-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.crypto-loading p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.crypto-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.crypto-error h3 {
  color: #ff3d71;
  margin-bottom: 1rem;
}

.crypto-error p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.retry-btn {
  background: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: #e65100;
  transform: translateY(-2px);
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: scale(1.1);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.page-number {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-weight: 600;
}

.page-number:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.page-number.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.page-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-jump input {
  width: 60px;
  padding: 8px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  text-align: center;
  outline: none;
}

.page-jump input:focus {
  border-color: var(--secondary-color);
}

.page-jump button {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-jump button:hover {
  background: #3f51b5;
}

/* Table View Alternative */
.crypto-table-view {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.crypto-table {
  width: 100%;
  border-collapse: collapse;
}

.crypto-table th {
  background: var(--gradient-bg);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crypto-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.crypto-table tbody tr:hover {
  background: #f8f9fa;
}

.crypto-table .crypto-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crypto-table .crypto-logo {
  width: 32px;
  height: 32px;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.view-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.view-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.view-btn:hover:not(.active) {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Responsive Design for Crypto List */
@media (max-width: 768px) {
  .crypto-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search-box {
    max-width: none;
  }

  .sort-controls {
    justify-content: center;
  }

  .crypto-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .crypto-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .crypto-card-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .page-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .crypto-table {
    font-size: 0.85rem;
  }

  .crypto-table th,
  .crypto-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .crypto-card-header {
    flex-direction: row;
    text-align: left;
    gap: 0.5rem;
  }

  .crypto-logo {
    margin: 0;
  }

  .crypto-rank {
    margin-left: auto;
  }

  .page-numbers {
    margin: 0 0.5rem;
  }

  .page-btn,
  .page-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .crypto-stat {
    min-width: 100px;
  }

  .crypto-stat-value {
    font-size: 0.8rem;
  }

  .crypto-price {
    font-size: 0.9rem !important;
  }
}


/* 添加汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* 汉堡菜单激活状态样式 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding-top: 115px;
    /* Adjust for smaller ticker + header */
  }

  /* 显示汉堡菜单按钮 */
  .hamburger {
    display: flex;
  }

  /* 隐藏导航菜单 */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--dark-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
  }

  /* 当菜单激活时 */
  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-title .subtitle {
    font-size: 1.5rem;
  }

  .about-content,
  .features-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

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

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}


@media (max-width: 480px) {
  .hero {
    padding-top: 105px;
    /* Adjust for smallest ticker + header */
  }

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

  .hero-title .subtitle {
    font-size: 1.2rem;
  }

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

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

  .contact-info {
    grid-template-columns: 1fr;
  }

  /* 移动端汉堡菜单样式调整 */
  .nav-menu {
    top: 65px;
  }
}

/* Smooth Scrolling - Disabled for instant scrolling */
/* html {
  scroll-behavior: smooth;
} */

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.service-card,
.feature-item,
.contact-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading animations */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
  animation-delay: 0.4s;
}


/* News Flash Styles */
.news-flash {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #0d1421 0%, #1a237e 100%);
  color: var(--text-primary);
  min-height: 80vh;
}

.news-flash .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-flash .section-title {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--secondary-color), #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-flash .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.news-flash-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* 修改快讯项为列表样式 */
.news-flash-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.news-flash-item:hover {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-flash-item .news-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.news-flash-item .news-time i {
  color: var(--secondary-color);
}

.news-flash-item .news-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.news-flash-item .news-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  flex-grow: 1;
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
  display: block;
}

/* 折叠状态下的内容 */
.news-flash-item.collapsed {
  height: auto;
  min-height: 120px;
  overflow: hidden;
}

.news-flash-item.collapsed .news-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 展开状态下的内容 */
.news-flash-item.expanded {
  height: auto;
  min-height: 120px;
  overflow: visible;
}

.news-flash-item.expanded .news-content {
  display: block;
  overflow: visible;
}

.news-flash-item .news-source {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  flex-shrink: 0;
}

.news-flash-item .news-source span {
  background: rgba(244, 141, 62, 0.2);
  color: var(--secondary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 展开/折叠按钮 */
.toggle-content {
  position: absolute;
  bottom: 35px;
  right: 1.2rem;
  background: rgba(13, 20, 33, 0.8);
  color: var(--secondary-color);
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 10;
  display: none;
}

.news-flash-item:hover .toggle-content {
  opacity: 1;
}

.toggle-content:hover {
  background: rgba(13, 20, 33, 1);
}

/* 重要新闻标记 */
.important-badge {
  background: linear-gradient(45deg, #ff5722, #ff9800);
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: bold;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.news-flash-item-important {
  border-left: 2px solid var(--secondary-color);
  background: rgba(244, 141, 62, 0.05);
}

.news-flash-item-important:hover {
  background: rgba(244, 141, 62, 0.1);
  border-color: var(--secondary-color);
}

.news-flash-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}


/* News Load More Styles */
.news-load-more {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0;
}

/* News Load More Styles (Inline) */
.news-load-more-inline {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0 1rem 0;
  padding: 1rem 0;
}

.news-load-more-inline .load-more-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.news-load-more-inline .load-more-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.news-load-more-inline .load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.end-of-list-inline {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 2rem 0 1rem 0;
}

.end-of-list-inline span {
  position: relative;
  padding: 0 1rem;
}

.end-of-list-inline span::before,
.end-of-list-inline span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.end-of-list-inline span::before {
  left: -35%;
}

.end-of-list-inline span::after {
  right: -35%;
}





.news-loading,
.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.news-loading .fa-spinner {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.news-error {
  color: #ff3d71;
}

.news-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.retry-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: #3f51b5;
  transform: translateY(-2px);
}

.coming-soon {
  display: none;
}

/* Responsive News Flash */
@media (max-width: 768px) {
  .news-flash-list {
    grid-template-columns: 1fr;
    width: calc(100vw - 36px);
  }

  .news-flash .section-title {
    font-size: 2rem;
  }

  .news-flash-item {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .news-flash {
    padding: 60px 20px;
  }

  .news-flash .section-title {
    font-size: 1.8rem;
  }

  .news-flash-list {
    gap: 1rem;
  }
}




.load-more-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.load-more-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.end-of-list {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 1rem;
}

.end-of-list span {
  position: relative;
  padding: 0 1rem;
}

.end-of-list span::before,
.end-of-list span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.end-of-list span::before {
  left: -35%;
}

.end-of-list span::after {
  right: -35%;
}


.coming-soon {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 100%;
}

.coming-soon h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.coming-soon-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.coming-soon-icon i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Exchange Section */
.exchange-list {
  padding: var(--section-padding);
  background: var(--light-bg);
  min-height: 100vh;
}

.exchange-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.exchange-card {
  background: white;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.exchange-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.15);
  border-color: var(--secondary-color);
}

.exchange-card-header {
  display: flex;
  align-items: center;
  width: 250px;
  flex-shrink: 0;
}

.exchange-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.8rem;
  background: var(--light-bg);
}

.exchange-info h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}

.exchange-info .exchange-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.exchange-rank {
  background: var(--gradient-bg);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.exchange-card-body {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}

.exchange-stat {
  text-align: left;
  min-width: 120px;
}

.exchange-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exchange-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.exchange-volume {
  font-family: var(--font-tech);
  color: var(--secondary-color) !important;
  font-size: 1rem !important;
}

.exchange-change {
  font-weight: 700;
  font-size: 0.9rem;
}

.exchange-change.positive {
  color: var(--accent-color);
}

.exchange-change.negative {
  color: #ff3d71;
}

.exchange-change.neutral {
  color: var(--text-secondary);
}

.exchange-pairs {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.exchange-security {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 130px;
}

.exchange-loading,
.exchange-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.exchange-loading p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.exchange-error {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.exchange-error h3 {
  color: #ff3d71;
  margin-bottom: 1rem;
}

.exchange-error p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Responsive Design for Exchange List */
@media (max-width: 768px) {
  .exchange-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .exchange-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .exchange-card-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .exchange-card-header {
    flex-direction: row;
    text-align: left;
    gap: 0.5rem;
  }

  .exchange-logo {
    margin: 0;
  }

  .exchange-rank {
    margin-left: auto;
  }

  .exchange-stat {
    min-width: 100px;
  }

  .exchange-stat-value {
    font-size: 0.8rem;
  }

  .exchange-volume {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .exchange-card-header {
    flex-direction: row;
    text-align: left;
    gap: 0.5rem;
  }

  .exchange-logo {
    margin: 0;
  }

  .exchange-rank {
    margin-left: auto;
  }

  .exchange-stat {
    min-width: 100px;
  }

  .exchange-stat-value {
    font-size: 0.8rem;
  }

  .exchange-volume {
    font-size: 0.9rem !important;
  }
}

/* 新闻详情页面样式 */
.news-detail-container {
  background: var(--light-bg);
  min-height: 100vh;
  padding-top: 80px;
}

.news-detail-header {
  background: var(--dark-bg);
  color: var(--text-primary);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

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

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.news-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-detail-meta-item i {
  color: var(--secondary-color);
}

.news-detail-content {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.news-detail-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.news-detail-body p {
  margin-bottom: 1rem;
}

/* 相关推荐样式 */
.related-news {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.related-news-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-news-title i {
  color: var(--secondary-color);
}

.related-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-news-item {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.related-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.related-news-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.related-news-item:hover .related-news-item-title {
  color: var(--secondary-color);
}

.related-news-item-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.related-news-item-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.related-news-item-meta i {
  color: var(--secondary-color);
}

/* 加载状态样式 */
.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.news-loading-spinner {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.news-loading-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* 错误状态样式 */
.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.news-error-icon {
  font-size: 3rem;
  color: #ff3d71;
  margin-bottom: 1rem;
}

.news-error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff3d71;
  margin-bottom: 0.5rem;
}

.news-error-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-detail-title {
    font-size: 1.5rem;
  }

  .news-detail-meta {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .news-detail-content,
  .related-news {
    padding: 1.5rem;
  }

  .related-news-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .news-detail-title {
    font-size: 1.3rem;
  }

  .news-detail-content,
  .related-news {
    padding: 1rem;
  }

  .related-news-title {
    font-size: 1.3rem;
  }

  .related-news-item {
    padding: 1rem;
  }
}
