:root {
  /* Digital Brutalism Palette */
  --color-black: #0a0a0a;
  --color-off-white: #f3f3f1;
  --color-accent-lime: #d7fe45;
  --color-accent-red: #ff4d00;
  --color-gray: #808080;

  /* Core variables mapped to new palette */
  --primary-color: var(--color-accent-lime);
  --background-color: #1d1d1d;
  --text-color: var(--color-off-white);
  --subtle-text-color: var(--color-gray);
  --card-background: #1e1e1e;
  /* A slightly lighter black for cards on black bg */
  --border-color: #333333;

  /* Additional variables for the new style */
  --text-on-light: var(--color-black);
  --border-color-light: #dcdcdc;
}
.bg-light {
  background-color: var(--color-off-white);
  color: var(--color-black);
}

.text-dark {
  color: var(--color-black);
}

.text-subtle-light {
  color: #505050;
}

.section-title {
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-align: center;
}

/* MARQUEE */
.marquee-content span {
  margin-right: 4rem;
}

.accent-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent-red);
  border-radius: 50%;
  margin: 0 1rem;
  vertical-align: middle;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* HERO SECTION */
.cta-button:hover {
  transform: scale(1.05);
  background-color: white;
}

/* Tablet Component Styles */
.tablet-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.tablet-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 802 / 743;
}

.overlay-gif {
  position: absolute;
  top: 21.5%;
  left: 84%;
  height: 16%;
  width: auto;
  aspect-ratio: 104 / 128;
}

.hero-image {
  display: block; /* 防止内联元素的奇怪边距 */
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .hero-image:hover {
    transform: scale(1.3) rotate(-2deg) translateX(-30px);
  }
}

/* HOW-TO SECTION */
.how-to-section {
  position: relative;
  overflow: hidden;
}

.how-to-section.diagonal-split.bg-light {
  background: linear-gradient(
    45deg,
    var(--color-black) 0%,
    var(--color-black) 50%,
    var(--color-off-white) 50.1%,
    var(--color-off-white) 100%
  );
}

.how-to-text-block {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
  position: relative;
  color: var(--color-off-white);
  mix-blend-mode: difference;
}

.how-to-text-block .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--color-off-white);
}

.how-to-text-block .section-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-off-white);
}

.how-to-text-block .section-body strong {
  font-weight: 700;
}

/* FEATURES SECTION */
.features-section > .section-title,
.features-section > .feature-grid {
  width: 90%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.features-section .section-title {
  margin-bottom: 6rem;
  position: relative;
}

.features-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-lime),
    var(--color-accent-red)
  );
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--color-off-white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(33.333% - 1.5rem);
  min-width: 280px;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  border-radius: 8px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/*
  The following pseudo-elements are for the old card design.
  We are keeping them here in case they are needed later, but they don't affect the new design.
*/
.feature-card::before {
  content: none;
}
.feature-card::after {
  content: none;
}

.card-content {
  padding: 0;
  position: relative;
  flex-grow: 1;
}

.card-symbol {
  position: relative;
  top: 0;
  right: 0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.card-title {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Remove old card-specific styles that are no longer needed */
.card-1,
.card-2,
.card-3 {
  grid-column: auto;
  grid-row: auto;
  transform: none;
  z-index: 1;
}

.card-1::before,
.card-2::before,
.card-3::before,
.card-1::after,
.card-2::after,
.card-3::after {
  content: none;
}

.card-1 .card-symbol,
.card-2 .card-symbol,
.card-3 .card-symbol,
.card-1 .card-title,
.card-2 .card-title,
.card-3 .card-title,
.card-1 .card-body,
.card-2 .card-body,
.card-3 .card-body {
  color: inherit;
  text-shadow: none;
}

.card-1:hover,
.card-2:hover,
.card-3:hover {
  border-color: transparent;
  box-shadow: none;
}

.card-1:hover .card-symbol,
.card-2:hover .card-symbol,
.card-3:hover .card-symbol {
  transform: none;
  text-shadow: none;
}

.feature-card:before {
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
}

.feature-card:hover .card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}

/* BLOG SECTION */
.blog-section {
  padding: 6rem 0;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.blog-link {
  color: var(--color-accent-lime);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.blog-link:hover {
  color: white;
}

.accent-arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.blog-link:hover .accent-arrow {
  transform: translateX(5px);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog-card {
  flex: 1 1 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-lime);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-lime),
    var(--color-accent-red)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card-content {
  padding: 2rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.blog-date {
  color: var(--color-accent-lime);
}

.blog-category {
  color: var(--subtle-text-color);
}

.blog-card-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-card-excerpt {
  color: var(--subtle-text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.blog-read-more {
  color: var(--color-accent-lime);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.blog-read-more:hover {
  color: white;
}

.blog-read-more:hover .accent-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .blog-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .blog-link {
    justify-content: center;
  }

  .blog-card-title {
    font-size: 1.5rem;
  }
}

/* CO-CREATION SECTION */
.cocreation-section .grid-container {
  display: flex; /* Simplified for centering */
  justify-content: center;
}

.cocreation-card {
  background: var(--card-background);
  border: 2px solid var(--color-off-white);
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.card-icon {
  margin-top: 1rem;
  /* SVG 样式 */
  width: 3rem;
  height: 3rem;
  fill: var(--color-accent-lime);
}

.cocreation-title {
  font-family: inherit;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.vision-statement {
  font-size: 1.1rem;
  color: var(--subtle-text-color);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 3rem auto;
}

.cocreation-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Custom Input Styles (replaces q-input) */
.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-wrapper label {
  color: var(--color-off-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-hint {
  color: var(--subtle-text-color);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
  font-style: italic;
}

.brutalist-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  color: var(--color-off-white);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brutalist-input:hover {
  border-color: var(--color-accent-lime);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.brutalist-input:focus {
  outline: none;
  border-color: var(--color-accent-lime);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(215, 254, 69, 0.2);
  transform: translateY(-1px);
}

.brutalist-input::placeholder {
  color: var(--color-gray);
  opacity: 0.8;
  font-size: 0.95rem;
}

.cta-button-form {
  background-color: var(--color-accent-lime);
  color: var(--color-black);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  width: 100%;
  transition: all 0.2s ease;
  border-radius: 4px;
  text-transform: none;
  border: none;
  cursor: pointer;
}

.cta-button-form:hover {
  background: white;
  transform: scale(1.02);
}

.trust-badge {
  text-align: center;
  color: var(--text-color);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* FAQ SECTION */
.faq-section > .section-title,
.faq-section > .faq-list {
  width: 90%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .section-title {
  margin-bottom: 3rem;
}

.faq-section .faq-list {
  max-width: 1200px; /* 1440px * 10/12 */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color-light);
  border-radius: 0;
  background-color: transparent;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  color: var(--text-on-light);
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  font-weight: 700;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  background-color: white;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  /* padding aniamtion removed for performance */
}

.faq-answer p {
  margin: 0;
  padding: 0 1.5rem; /* Apply horizontal padding here */
}

.faq-item.is-open .faq-answer {
  max-height: 500px; /* Adjust as needed */
}

.faq-item.is-open .faq-answer p {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 920px) {
  .feature-card {
    flex-basis: calc(50% - 1.5rem);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto; /* 移除固定高度 */
  }

  .feature-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important; /* 允许自动行定位 */
    transform: translateY(0) !important; /* Reset transform */
  }

  .how-to-text-block {
    width: 100%;
    max-width: none;
    mix-blend-mode: difference;
    color: var(--color-off-white);
    position: relative;
    z-index: 10; /* 确保文本在背景层之上 */
  }

  .how-to-section.diagonal-split.bg-light {
    /* 移动端使用简单的水平分割，避免对角线造成的高度问题 */
    background: linear-gradient(
      to bottom,
      var(--color-black) 0%,
      var(--color-black) 60%,
      var(--color-off-white) 60%,
      var(--color-off-white) 100%
    );
  }

  /* 如果需要保持对角线效果，可以使用伪元素方案 */
  .how-to-section.diagonal-split.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-black);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 50%);
    z-index: 1;
  }

  .how-to-section.diagonal-split.bg-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-off-white);
    clip-path: polygon(0 50%, 100% 70%, 100% 100%, 0 100%);
    z-index: 1;
  }

  .how-to-text-block .section-title,
  .how-to-text-block .section-body {
    color: var(--color-off-white);
    text-align: center;
  }
}

/* FOOTER STYLES */
.site-footer {
  padding: 4rem 0;
  font-size: 0.9rem;
  background-color: var(--color-black);
  color: var(--color-off-white);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-logo-link {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-off-white);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-links,
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-links strong {
  font-weight: 700;
  color: var(--subtle-text-color);
}

.footer-links a {
  color: var(--color-off-white);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent-lime);
}

.footer-brand {
  justify-self: start;
}

.acknowledgements-link {
  cursor: pointer;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: rgba(26, 26, 31, 0.85);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  max-width: 600px;
  min-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-lime),
    transparent
  );
  opacity: 0.8;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
}

.modal-title {
  font-size: 1.5rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-accent-lime),
    var(--color-accent-red)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-off-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--color-accent-lime);
}

.modal-body {
  padding: 0 2rem 2rem;
}

.acknowledgements-content {
  padding: 0;
}

.intro-text {
  text-align: center;
  color: var(--subtle-text-color);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent-lime);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}

.tech-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
}

.tech-info h4 a {
  color: var(--color-accent-lime);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tech-info h4 a:hover {
  color: var(--color-accent-red);
  text-decoration: underline;
}

.tech-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--subtle-text-color);
  line-height: 1.4;
}

.gratitude-note {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  border-top: 1px solid var(--border-color);
  margin: 0 -1rem -1rem;
  background: rgba(138, 43, 226, 0.05);
}

.gratitude-note p {
  margin: 0;
  color: var(--subtle-text-color);
  font-style: italic;
  font-size: 0.9rem;
}

/* Mobile responsiveness for footer and modal */
@media (max-width: 920px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    justify-self: center;
  }
}

.friendship-links {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .modal-content {
    min-width: auto;
    max-width: 95vw;
    margin: 1rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-header {
    padding: 1rem 1.5rem 0.5rem;
  }

  .modal-body {
    padding: 0 1.5rem 1.5rem;
  }
}
/* Widgets Link Button Style */
.widgets-link {
  background: linear-gradient(135deg, var(--color-accent-lime), #b8e02e);
  color: var(--color-black) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.widgets-link:hover {
  background: var(--color-off-white);
  color: var(--color-black) !important;
  border-color: var(--color-accent-lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 254, 69, 0.3);
}
