:root {
  /* 基于图片的配色方案 - 亮蓝色天空、绿色草地、红色角色、黄色文字 */
  --primary-color: #1a1a1a;
  --secondary-color: #2d2d2d;
  --accent-color: #2c3e50; /* 深蓝灰色文字 */
  --accent-hover: #34495e;
  --text-color: #ffffff;
  --text-light: #e0e0e0;
  --bg-color: #87ceeb; /* 亮蓝色天空 */
  --bg-light: #98d8f0; /* 稍浅的蓝色 */
  --bg-card: #ffffff; /* 白色卡片 */
  --bg-card-alt: #f0f8ff; /* 淡蓝色卡片 */
  --border-color: #4682b4; /* 钢蓝色边框 */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  
  /* 图片中的特定颜色 */
  --sky-blue: #87ceeb;
  --grass-green: #32cd32;
  --red-cube: #dc143c;
  --yellow-text: #2c3e50;
  --white-wings: #ffffff;

  /* 间距 */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem;
  --s-5:1.25rem; --s-6:1.5rem; --s-8:2rem; --s-10:2.5rem;
  --s-12:3rem; --s-16:4rem; --s-20:5rem; --s-24:6rem;
}

*{box-sizing:border-box; margin:0; padding:0}
html{
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body{
  margin:0; padding:0;
  background-color: var(--bg-color);
  background-image: linear-gradient(135deg, var(--sky-blue) 0%, var(--bg-light) 50%, var(--sky-blue) 100%);
  color: var(--primary-color);
  font: 16px/1.6 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{color:var(--accent-color); text-decoration:none}
a:hover{color:var(--accent-hover); text-decoration:underline}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header - 基于图片配色 */
header.header{
  background: linear-gradient(135deg, var(--grass-green), #228b22);
  color: white;
  padding:1rem 0;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow: var(--shadow);
  will-change: transform;
  backface-visibility: hidden;
}
.header-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.logo{display:flex;align-items:center;gap:12px}
.logo-icon{
  width:50px;height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #2ADCF8;
  border: 2px solid #166499;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.logo-text .logo-title{display:block;font-weight:700;color:var(--text-primary);}
.logo-text p{margin:.1rem 0 0; font-size:.9rem; opacity:.8; color: var(--text-secondary);}
nav.nav{display:flex;gap:2rem}
.nav-link{
  color: white;
  padding:.5rem 1rem;
  border-radius:var(--border-radius);
  transition:var(--transition);
  font-weight:500;
}
.nav-link:hover{
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}
.nav-link.active{
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Hero - 基于图片配色 */
.hero{
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--bg-light) 50%, var(--sky-blue) 100%);
  color: var(--primary-color);
  padding:4rem 0 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(50, 205, 50, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-text{text-align: left;}
.hero-image{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-text h1{
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--yellow-text);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}
.hero-text p{
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}
.hero-note{
  font-style:italic; 
  opacity:.8; 
  margin-bottom:var(--s-6); 
  color: var(--primary-color);
}
.hero-buttons{
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.btn{
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary{
  background-color: var(--red-cube);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary:hover{
  background-color: #b22222;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary{
  background-color: transparent;
  color: var(--yellow-text);
  border: 2px solid var(--yellow-text);
  font-weight: 600;
}
.btn-secondary:hover{
  background-color: var(--yellow-text);
  color: white;
  transform: translateY(-2px);
}

.hero-image .script-illustration{
  width: 400px;
  height: 400px;
  background: url('assets/THE_FOG_IS_COMING.webp') center/cover no-repeat;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: menacingGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}
.script-illustration::after{
  content:"";
  font-size: 4rem;
  color: var(--yellow-text);
}
.script-illustration:hover {
  animation-play-state: paused;
  transform: scale(1.15);
  filter: brightness(1.3);
}
@keyframes menacingGlow {
  0% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% { 
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.15);
  }
  50% { 
    transform: scale(1.12) rotate(0deg);
    filter: brightness(1.25);
  }
  75% { 
    transform: scale(1.08) rotate(-2deg);
    filter: brightness(1.15);
  }
  100% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
}

/* Sections - 基于图片配色 */
main{padding:var(--s-16) 0; }
section{
  margin:var(--s-16) 0;
  padding:var(--s-8) 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 100px;
}
.hero{
  margin: 0;
  scroll-margin-top: 100px;
}
.section-header{text-align:center; margin-bottom:var(--s-16)}
h2{
  font-size:clamp(1.6rem,3.2vw,2.2rem);
  margin:0 0 var(--s-8);
  color: var(--primary-color);
  font-weight: 700;
}

/* Steps - 基于图片配色 */
.steps-section{
  padding:var(--s-8);
}
.steps-container{
  max-width: 1200px; 
  margin: 0 auto;
}
ol.steps{
  list-style:none; 
  padding:0; 
  margin:0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
ol.steps li{
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius:var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
ol.steps li:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.step-content{
  display: flex; 
  gap: 1rem; 
  align-items: flex-start;
  flex-direction: column;
  text-align: center;
}
.step-icon{
  font-size: 2rem;
  color: var(--red-cube);
  margin: 0 auto;
  display: block;
}
.step-text{
  color: var(--primary-color);
}
code,kbd{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding:.4rem .6rem;
  border-radius:4px;
  font-family: 'Courier New', monospace;
  font-size:.9rem;
  color: var(--red-cube);
  display: inline-block;
  word-break: break-all;
  max-width: 100%;
}

/* Features - 基于图片配色 */
.features-section{
  padding: 3rem 0;
}
.features-section h2{
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--yellow-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.features-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card{
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.feature-icon{
  font-size: 3rem;
  margin-bottom: 1rem;
}
.feature-card h3{
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--red-cube);
}
.feature-card p{
  color: var(--primary-color);
  line-height: 1.6;
}

/* Tutorial cards - 基于图片配色 */
.tutorial-section{
  padding: 3rem 0;
}
.tutorial-section h2{
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--yellow-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.tutorial-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--s-12);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.tutorial-step{
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tutorial-step:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.tutorial-number{
  position: absolute;
  top: -12px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-cube);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.tutorial-content{
  margin-top: 1rem;
}
.tutorial-content h3{
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}
.tutorial-content p{
  color: var(--primary-color);
  line-height: 1.6;
  margin: 0;
}

/* FAQ - 基于图片配色 */
.faq-section{
  padding: 3rem 0;
}
.faq-section h2{
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--yellow-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.faq-container{
  max-width: 800px;
  margin: 0 auto;
}
.faq-item{
  background: var(--bg-card-alt);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover{
  box-shadow: var(--shadow-hover);
}
.faq-question{
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
  transition: var(--transition);
}
.faq-question:hover{
  background: linear-gradient(135deg, var(--yellow-text), #34495e);
  color: white;
}
.faq-question h3{
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}
.faq-toggle{
  font-size: 1.5rem;
  font-weight: bold;
  transition: var(--transition);
  min-width: 30px;
  text-align: center;
}
.faq-item.active .faq-toggle{
  transform: rotate(45deg);
}
.faq-answer{
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--bg-card-alt);
}
.faq-item.active .faq-answer{
  padding: 1.5rem;
  max-height: 1000px;
}
.faq-answer p{
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--primary-color);
}

/* Footer - 基于图片配色 */
footer.footer{
  background: linear-gradient(135deg, var(--grass-green), #228b22);
  color: white;
  padding: 3rem 0 1rem;
  border-top: 2px solid var(--yellow-text);
}
.footer-content{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:2rem; margin-bottom:2rem}
.footer-section h3{
  color: white;
  margin-bottom: 1rem;
}
.footer-section a{
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}
.footer-section a:hover{
  opacity: 1;
}
.footer-bottom{
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Pills - 简洁风格 */
.pillz{display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem}

/* Visually hidden for SEO keywords */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pill{
  padding:.4rem .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius:20px;
  font-size:.85rem;
  color: var(--primary-color);
  transition: var(--transition);
}
.pill:hover{
  background: var(--yellow-text);
  color: white;
  transform: translateY(-1px);
}

/* Scrollbar - 基于图片配色 */
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{
  background: var(--bg-card-alt);
}
::-webkit-scrollbar-thumb{
  background: var(--border-color);
  border-radius:4px;
}
::-webkit-scrollbar-thumb:hover{
  background: var(--red-cube);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
  html{scroll-behavior:auto}
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  .nav {
    gap: 1rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .script-illustration {
    width: 300px;
    height: 300px;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  ol.steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .tutorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-question h3 {
    font-size: 1rem;
  }
  .faq-question {
    padding: 1rem;
  }
  .faq-item.active .faq-answer {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero {
    padding: 2rem 0;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .features-section h2,
  .tutorial-section h2,
  .faq-section h2 {
    font-size: 2rem;
  }
  .script-illustration {
    width: 250px;
    height: 250px;
  }
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  ol.steps {
    grid-template-columns: 1fr;
  }
}

/* Promotion Cards Section */
.promotion-cards-section {
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--bg-light) 50%, var(--sky-blue) 100%);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  margin-top: -2rem;
}

.promotion-cards-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(50, 205, 50, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.promotion-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
}

.promotion-content {
  display: flex;
  align-items: center;
  animation: cardScroll 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
  gap: 30px;
}

.promotion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 560px;
  width: 560px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.promotion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.promotion-card:hover::before {
  left: 100%;
}

.promotion-card:hover {
  background: var(--bg-card-alt);
  border-color: var(--red-cube);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  width: 200px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.promotion-card:hover .card-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-cube);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.promotion-card:hover .card-img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220, 20, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.promotion-card:hover .card-overlay {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8));
}

.card-text {
  text-align: center;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 8px;
  transition: var(--transition);
  line-height: 1.3;
}

.promotion-card:hover .card-title {
  color: var(--red-cube);
}

.card-description {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
  transition: var(--transition);
}

.promotion-card:hover .card-description {
  color: var(--red-cube);
  opacity: 1;
}

@keyframes cardScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.promotion-container:hover .promotion-content {
  animation-play-state: paused;
}

/* Coming Soon card styles */
.promotion-card.coming-soon {
  background: var(--bg-card-alt);
  border: 2px dashed var(--border-color);
  opacity: 0.8;
  cursor: default;
}

.promotion-card.coming-soon:hover {
  background: var(--bg-card);
  border-color: var(--red-cube);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.promotion-card.coming-soon .card-image {
  filter: grayscale(50%);
  opacity: 0.8;
}

.promotion-card.coming-soon:hover .card-image {
  transform: scale(1.05);
  filter: grayscale(30%);
}

.promotion-card.coming-soon .card-title {
  color: var(--primary-color);
  opacity: 0.8;
}

.promotion-card.coming-soon .card-description {
  color: var(--primary-color);
  font-style: italic;
  opacity: 0.6;
}

.promotion-card.coming-soon:hover .card-title {
  color: var(--red-cube);
  opacity: 1;
}

.promotion-card.coming-soon:hover .card-description {
  color: var(--red-cube);
  opacity: 0.8;
}

/* Promotion Cards mobile styles */
@media (max-width: 768px) {
  .promotion-cards-section {
    padding: 1.5rem 0;
  }
  
  .promotion-container {
    height: 200px;
  }
  
  .promotion-card {
    min-width: 300px;
    width: 300px;
    padding: 20px;
    border-radius: 15px;
  }
  
  .card-image {
    width: 150px;
    height: 90px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-description {
    font-size: 1rem;
  }
  
  .card-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .promotion-cards-section {
    padding: 1rem 0;
  }
  
  .promotion-container {
    height: 180px;
  }
  
  .promotion-card {
    min-width: 250px;
    width: 250px;
    padding: 16px;
    border-radius: 12px;
  }
  
  .card-image {
    width: 120px;
    height: 75px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-description {
    font-size: 0.9rem;
  }
  
  .card-icon {
    font-size: 1.8rem;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--red-cube);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  transform: translateX(400px);
  transition: var(--transition);
  z-index: 10000;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.toast.show {
  transform: translateX(0);
}

@media (max-width: 480px) {
  .toast {
    right: 1rem;
    left: 1rem;
    transform: translateY(100px);
  }

  .toast.show {
    transform: translateY(0);
  }
}
