:root {
  --color-primary: #8b5cf6;
  --color-primary-dark: #7c3aed;
  --color-bg-primary: #1a0f2e;
  --color-bg-secondary: #2d1b4e;
  --color-bg-tertiary: #3d2661;
  --color-text-primary: #ffffff;
  --color-text-secondary: #c4b5fd;
  --color-text-muted: #a78bfa;
  --color-border: #4c2f7a;
  --color-border-light: #3d2661;
  --color-accent: #8b5cf6;
  --color-overlay: rgba(26, 15, 46, 0.95);
  --color-shadow: rgba(139, 92, 246, 0.3);
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-pill: 30px;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  position: relative;
}

/* 动态背景容器 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(124, 58, 237, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 40%
    );
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* 动态粒子背景 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(circle, rgba(168, 85, 247, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(196, 181, 253, 0.4) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  background-position: 0 0, 40px 60px, 20px 30px;
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
    opacity: 1;
  }
  25% {
    background-position: 100% 50%, 0% 100%, 80% 20%;
    opacity: 0.8;
  }
  50% {
    background-position: 50% 100%, 50% 0%, 20% 80%;
    opacity: 1;
  }
  75% {
    background-position: 0% 50%, 100% 50%, 60% 40%;
    opacity: 0.9;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.app-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-overlay);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 50px var(--color-shadow);
}

.page-header {
  text-align: center;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.brand-logo::before {
  content: "📈";
  font-size: 18px;
}

.hero-section {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--color-bg-tertiary);
  opacity: 0.3;
  animation: pulse-animation 4s ease-in-out infinite;
}

@keyframes pulse-animation {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.hero-section__title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-section__subtitle {
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-section__description {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.text-highlight {
  color: var(--color-primary);
  font-weight: bold;
}

.content-section {
  padding: 10px 10px;
}

.section-heading {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--color-text-primary);
}

.signal-showcase {
  width: 100%;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.signal-showcase img {
  width: 100%;
}

.stock-banner {
  width: 100%;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}

.stock-banner__content {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
}

.stock-banner__content img {
  width: 100%;
}

.dashboard-preview {
  width: 100%;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.dashboard-preview img {
  width: 100%;
}

.chart-wrapper {
  width: 100%;
  height: 200px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.chart-visual {
  width: 90%;
  height: 80%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 150"><path d="M 0 120 Q 50 80, 100 90 T 200 40 T 300 60" stroke="%238b5cf6" stroke-width="2" fill="none"/></svg>')
    center/contain no-repeat;
}

.position-details {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  padding: 15px;
}

.position-details__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.position-details__label {
  color: var(--color-text-muted);
}

.position-details__value {
  color: var(--color-text-primary);
  font-weight: bold;
}

.btn {
  padding: var(--spacing-sm);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn--primary {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-text-primary);
  margin-top: 15px;
  box-shadow: 0 4px 15px var(--color-shadow);
}

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

.btn--cta {
  display: inline-block;
  padding: 15px var(--spacing-xl);
  background: var(--color-primary);
  color: var(--color-text-primary);
  text-decoration: none;
}

.btn--cta:hover {
  transform: translateY(-3px);
  background: var(--color-primary-dark);
}

.pattern-grid {
  display: grid;
  gap: var(--spacing-md);
}

.pattern-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 15px;
  border: 1px solid var(--color-border);
}

.pattern-card__image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9;
  border: 1px solid var(--color-border);
}

.pattern-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pattern-card__symbol {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-primary);
}

.pattern-card__label {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: normal;
  opacity: 0.8;
}

.pattern-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.pattern-card__chart {
  width: 100%;
  height: 150px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.pattern-card__chart::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: var(--color-primary);
  opacity: 0.3;
  clip-path: polygon(
    0% 100%,
    20% 80%,
    40% 90%,
    60% 40%,
    80% 30%,
    100% 20%,
    100% 100%,
    0% 100%
  );
}

.chart-annotation {
  position: absolute;
  background: var(--color-primary);
  color: var(--color-text-primary);
  padding: 4px var(--spacing-xs);
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.reputation-section {
  text-align: center;
  background: var(--color-bg-secondary) url("img/Track.png") center/cover
    no-repeat;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.reputation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 0;
}

.reputation-section > * {
  position: relative;
  z-index: 1;
}

.reputation-section__quote {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.reputation-section__subtitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.reputation-section__rating {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 2px;
}

.testimonial-list {
  background: var(--color-text-primary);
  color: #333;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.testimonial-item {
  display: flex;
  gap: 15px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #e0e0e0;
}

.testimonial-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.testimonial-item__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
}

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

.testimonial-item__body {
  flex: 1;
}

.testimonial-item__name {
  font-weight: bold;
  color: var(--color-bg-primary);
  margin-bottom: 5px;
}

.testimonial-item__text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.cta-block {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.cta-block__question {
  font-size: 16px;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

.page-footer {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
}

.page-footer__links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.page-footer__link {
  color: var(--color-primary);
  text-decoration: none;
}

.page-footer__link:hover {
  text-decoration: underline;
}

.page-header img {
  width: 100%;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-overlay);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  box-shadow: 0 -4px 20px var(--color-shadow);
  border-top: 2px solid var(--color-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  animation: slideUpAnimation 0.5s ease-out;
}

.cookie-consent--hidden {
  display: none;
}

@keyframes slideUpAnimation {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent__wrapper {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  width: 100%;
}

.cookie-consent__message {
  flex: 1;
  min-width: 250px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.cookie-consent__link {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-consent__link:hover {
  color: var(--color-primary-dark);
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 10px 25px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-consent__btn--accept {
  background: var(--color-primary);
  color: var(--color-text-primary);
  box-shadow: 0 4px 15px var(--color-shadow);
}

.cookie-consent__btn--accept:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
}

.cookie-consent__btn--decline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cookie-consent__btn--decline:hover {
  background: var(--color-bg-secondary);
}

/* Mobile Responsive - 768px and below */
@media (max-width: 768px) {
  body::after {
    background-size: 40px 40px, 60px 60px, 80px 80px;
    opacity: 0.4;
  }

  .app-container {
    max-width: 100%;
    box-shadow: none;
  }

  .hero-section__title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .hero-section__subtitle {
    font-size: 14px;
  }

  .hero-section__description {
    font-size: 13px;
  }

  .content-section {
    padding: var(--spacing-md) 15px;
  }

  .section-heading {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .signal-showcase {
    border-radius: var(--radius-sm);
  }

  .stock-banner {
    border-radius: var(--radius-sm);
  }

  .dashboard-preview {
    border-radius: var(--radius-sm);
  }

  .position-details__row {
    font-size: 12px;
  }

  .btn--primary {
    font-size: 14px;
    padding: 10px;
  }

  .pattern-card {
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
  }

  .pattern-card__symbol {
    font-size: 18px;
  }

  .pattern-card__label {
    font-size: 12px;
  }

  .pattern-card__date {
    font-size: 11px;
  }

  .pattern-card__chart {
    height: 120px;
  }

  .chart-annotation {
    font-size: 10px;
    padding: 3px 6px;
  }

  .reputation-section {
    border-radius: 12px;
    padding: 25px 15px;
  }

  .reputation-section__quote {
    font-size: 16px;
  }

  .reputation-section__subtitle {
    font-size: 18px;
  }

  .reputation-section__rating {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .testimonial-list {
    border-radius: var(--radius-sm);
    padding: 15px;
  }

  .testimonial-item {
    gap: var(--spacing-sm);
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .testimonial-item__avatar {
    width: 45px;
    height: 45px;
  }

  .testimonial-item__name {
    font-size: 14px;
  }

  .testimonial-item__text {
    font-size: 12px;
  }

  .cta-block {
    padding: var(--spacing-lg) 15px;
  }

  .cta-block__question {
    font-size: 14px;
  }

  .btn--cta {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 14px;
  }

  .page-footer {
    padding: 25px 15px;
    font-size: 10px;
  }

  .page-footer__links {
    gap: 10px;
    font-size: 11px;
  }

  .chart-wrapper {
    height: 150px;
  }

  .cookie-consent {
    padding: 15px;
  }

  .cookie-consent__wrapper {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__message {
    font-size: 12px;
    min-width: 100%;
  }

  .cookie-consent__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
    padding: var(--spacing-sm);
  }
}

/* Extra small mobile - 480px and below */
@media (max-width: 480px) {
  .hero-section__title {
    font-size: 24px;
  }

  .hero-section__subtitle {
    font-size: 13px;
  }

  .hero-section__description {
    font-size: 12px;
  }

  .section-heading {
    font-size: 18px;
  }

  .reputation-section__rating {
    font-size: 24px;
  }

  .btn--cta {
    padding: 10px 25px;
    font-size: 13px;
  }

  .page-footer__links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}
