/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

- Primary: #6A5AFF
#4CD964
 #FFCC00
#FF6B6B
- Tints:
#fdf2e9
#fae5d3
#eb984e

- Shades: 
#cf711f
#45260a

- Accents:
- Greys

#888
#767676 (lightest grey allowed on #fff)
#6f6f6f (lightest grey allowed on #fdf2e9)
#555
#333

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;

  overflow-x: hidden;
  background-image: linear-gradient(
    5deg,
    orange 50%,
    orangered 60%,
    orange 50%
  );
  background-color: orange;
  background-size: 1em 1em;
  background-repeat: space;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;
}
section {
  text-align: center;
}

.comic-header {
  --stone-50: #fafaf9;
  --stone-800: #292524;
  --yellow-400: #facc15;

  margin-top: 10rem;
  margin-bottom: 5rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  font-size: 3rem;
  border-radius: 1rem;
  outline: 2px solid transparent;
  outline-offset: 6px;
  color: var(--stone-50);

  &:active {
    outline-color: var(--yellow-400);
  }

  &:focus-visible {
    outline-color: var(--yellow-400);
    outline-style: dashed;
  }

  &::before {
    content: "";
    position: absolute;
    z-index: 0;
    height: 200%;
    max-height: 100px;
    aspect-ratio: 1;
    margin: auto;
    background: white;
    clip-path: polygon(
      100% 50%,
      91.48% 56.57%,
      97.55% 65.45%,
      87.42% 69.07%,
      90.45% 79.39%,
      79.7% 79.7%,
      79.39% 90.45%,
      69.07% 87.42%,
      65.45% 97.55%,
      56.57% 91.48%,
      50% 100%,
      43.43% 91.48%,
      34.55% 97.55%,
      30.93% 87.42%,
      20.61% 90.45%,
      20.3% 79.7%,
      9.55% 79.39%,
      12.58% 69.07%,
      2.45% 65.45%,
      8.52% 56.57%,
      0% 50%,
      8.52% 43.43%,
      2.45% 34.55%,
      12.58% 30.93%,
      9.55% 20.61%,
      20.3% 20.3%,
      20.61% 9.55%,
      30.93% 12.58%,
      34.55% 2.45%,
      43.43% 8.52%,
      50% 0%,
      56.57% 8.52%,
      65.45% 2.45%,
      69.07% 12.58%,
      79.39% 9.55%,
      79.7% 20.3%,
      90.45% 20.61%,
      87.42% 30.93%,
      97.55% 34.55%,
      91.48% 43.43%
    );

    animation: star-rotate 4s linear infinite;
    opacity: 0.1;
  }

  &:hover::before {
    opacity: 1;
  }

  & > div {
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--yellow-400);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow: 0.5px 0.5px 0 0 var(--yellow-400), 1px 1px 0 0 var(--yellow-400),
      1.5px 1.5px 0 0 var(--yellow-400), 2px 2px 0 0 var(--yellow-400),
      2.5px 2.5px 0 0 var(--yellow-400), 3px 3px 0 0 var(--yellow-400),
      0 0 0 2px var(--stone-800), 0.5px 0.5px 0 2px var(--stone-800),
      1px 1px 0 2px var(--stone-800), 1.5px 1.5px 0 2px var(--stone-800),
      2px 2px 0 2px var(--stone-800), 2.5px 2.5px 0 2px var(--stone-800),
      3px 3px 0 2px var(--stone-800), 3.5px 3.5px 0 2px var(--stone-800),
      4px 4px 0 2px var(--stone-800), 0 0 0 4px var(--stone-50),
      0.5px 0.5px 0 4px var(--stone-50), 1px 1px 0 4px var(--stone-50),
      1.5px 1.5px 0 4px var(--stone-50), 2px 2px 0 4px var(--stone-50),
      2.5px 2.5px 0 4px var(--stone-50), 3px 3px 0 4px var(--stone-50),
      3.5px 3.5px 0 4px var(--stone-50), 4px 4px 0 4px var(--stone-50);

    .button:hover & {
      transform: translate(0, 0);
      box-shadow: 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400),
        0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800), 0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50);
    }

    & > div {
      position: relative;
      pointer-events: none;
      border-radius: calc(1rem - 2px);
      background-color: var(--stone-800);

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 1rem;
        opacity: 0.1;
        background-image: radial-gradient(
            rgb(255 255 255 / 80%) 20%,
            transparent 20%
          ),
          radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
        background-position: 0 0, 4px 4px;
        background-size: 8px 8px;
        mix-blend-mode: hard-light;
        box-shadow: inset 0 0 0 1px var(--stone-800);
        animation: dots 0.4s infinite linear;
        transition: opacity 150ms ease;
      }

      & > div {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0.75rem 1.25rem;
        gap: 0.25rem;
        filter: drop-shadow(0 -1px 0 var(--stone-800));

        &:hover {
          filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.1));
        }

        &:active {
          transform: translateY(2px);
        }
      }
    }
  }
}

@keyframes star-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0% {
    background-position: 0 0, 4px 4px;
  }
  100% {
    background-position: 8px 0, 12px 4px;
  }
}

@media (prefers-color-scheme: dark) {
  .button {
    &:active,
    &:focus-visible {
      outline-color: var(--yellow-400);
    }
  }
}

.heading-secondary {
  font-size: 2rem;
  font-weight: 700;
  color: #fff; /* 改为白色字体 */
  margin: 0.8rem 3.2rem;
  margin-bottom: 3.2rem;
  letter-spacing: -0.5px;

  /* 优化的紫色霓虹效果 */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.4),
    0 0 20px #6a5aff, 0 0 35px #6a5aff, 0 0 40px #6a5aff, 0 0 50px #6a5aff,
    0 0 75px #6a5aff;

  animation: flicker 2s infinite alternate;
}

/* 添加闪烁动画增强霓虹效果 */
@keyframes flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
      0 0 10px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.4),
      0 0 20px #6a5aff, 0 0 35px #6a5aff, 0 0 40px #6a5aff, 0 0 50px #6a5aff,
      0 0 75px #6a5aff;
  }
  20%,
  24%,
  55% {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2),
      0 0 5px rgba(255, 255, 255, 0.1), 0 0 10px #6a5aff, 0 0 20px #6a5aff;
  }
}

.comic-button:hover {
  background-color: #fff;
  color: #ff5252;
  border: 2px solid #ff5252;
  box-shadow: 5px 5px 0px #ff5252;
}

.comic-button:active {
  background-color: #fcf414;
  box-shadow: none;
  transform: translateY(4px);
}

.orange-background {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;

  background-image: linear-gradient(
    5deg,
    orange 50%,
    orangered 60%,
    orange 50%
  );
  background-color: orange;
  background-size: 1em 1em;
  background-repeat: space;
}

/* Navigation */
/* Logo 样式 */
.logo {
  height: 10rem;
  transition: all 0.3s ease;
}

/* 主导航样式 */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
  margin: 0;
  padding: 0;
}

/* 保持你原来的按钮样式 */
.main-nav-link {
  display: inline-block;
  text-decoration: none;

  /* 你原来的按钮样式 */
  --stone-50: #fafaf9;
  --stone-800: #292524;
  --yellow-400: #facc15;

  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  line-height: 1;
  padding: 1px;
  transform: translate(-4px, -4px);
  outline: 2px solid transparent;
  outline-offset: 5px;
  border-radius: 9999px;
  background-color: var(--stone-800);
  color: var(--stone-800);
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-align: center;
  box-shadow: 0.5px 0.5px 0 0 var(--stone-800), 1px 1px 0 0 var(--stone-800),
    1.5px 1.5px 0 0 var(--stone-800), 2px 2px 0 0 var(--stone-800),
    2.5px 2.5px 0 0 var(--stone-800), 3px 3px 0 0 var(--stone-800),
    0 0 0 2px var(--stone-50), 0.5px 0.5px 0 2px var(--stone-50),
    1px 1px 0 2px var(--stone-50), 1.5px 1.5px 0 2px var(--stone-50),
    2px 2px 0 2px var(--stone-50), 2.5px 2.5px 0 2px var(--stone-50),
    3px 3px 0 2px var(--stone-50), 3.5px 3.5px 0 2px var(--stone-50),
    4px 4px 0 2px var(--stone-50);
}

.main-nav-link:hover {
  transform: translate(0, 0);
  box-shadow: 0 0 0 2px var(--stone-50);
}

.main-nav-link:active,
.main-nav-link:focus-visible {
  outline-color: var(--yellow-400);
}

.main-nav-link:focus-visible {
  outline-style: dashed;
}

.main-nav-link > div {
  position: relative;
  pointer-events: none;
  background-color: var(--yellow-400);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
}

.main-nav-link > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0.5;
  background-image: radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%),
    radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  mix-blend-mode: hard-light;
  animation: dots 0.5s infinite linear;
}

.main-nav-link > div > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  gap: 0.25rem;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.25));
  color: #292524;
  font-weight: bold;
  font-size: 1.5rem;
}

.main-nav-link > div > span:active {
  transform: translateY(2px);
}

@keyframes dots {
  0% {
    background-position: 0 0, 4px 4px;
  }
  100% {
    background-position: 8px 8px, 12px 12px;
  }
}

/* 移动端菜单按钮 */
.btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1000;
}

.mobile-nav-icon {
  position: relative;
  width: 3rem;
  height: 3px;
  background-color: #333;
  display: inline-block;
  transition: all 0.3s;
}

.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 3px;
  background-color: #333;
  left: 0;
  transition: all 0.3s;
}

.mobile-nav-icon::before {
  top: -0.8rem;
}

.mobile-nav-icon::after {
  top: 0.8rem;
}

/* 移动端菜单打开时的图标动画 */
.btn-mobile-nav.open .mobile-nav-icon {
  background-color: transparent;
}

.btn-mobile-nav.open .mobile-nav-icon::before {
  top: 0;
  transform: rotate(135deg);
}

.btn-mobile-nav.open .mobile-nav-icon::after {
  top: 0;
  transform: rotate(-135deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo {
    height: 8rem;
  }

  .btn-mobile-nav {
    display: block;
  }

  .main-nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  .main-nav-list.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav-link {
    transform: none;
    box-shadow: none;
    margin: 0 2rem;
  }

  .main-nav-link:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 6rem;
  }

  .main-nav-list {
    gap: 1.5rem;
    padding: 2rem 0;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}
/* Hero */
.section-hero {
  height: 30vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  --fill-color: #5c3d99;
  --shine-color: #5c3d9933;
  transform: scale(0.5); /* You can change the size */
  width: 100px;
  height: auto;
  position: relative;
  filter: drop-shadow(0 0 10px var(--shine-color));
}

.loader #pegtopone {
  position: absolute;
  animation: flowe-one 1s linear infinite;
}

.loader #pegtoptwo {
  position: absolute;
  opacity: 0;
  transform: scale(0) translateY(-200px) translateX(-100px);
  animation: flowe-two 1s linear infinite;
  animation-delay: 0.3s;
}

.loader #pegtopthree {
  position: absolute;
  opacity: 0;
  transform: scale(0) translateY(-200px) translateX(100px);
  animation: flowe-three 1s linear infinite;
  animation-delay: 0.6s;
}

.loader svg g path:first-child {
  fill: var(--fill-color);
}

@keyframes flowe-one {
  0% {
    transform: scale(0.5) translateY(-200px);
    opacity: 0;
  }
  25% {
    transform: scale(0.75) translateY(-100px);
    opacity: 1;
  }
  50% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
  75% {
    transform: scale(0.5) translateY(50px);
    opacity: 1;
  }
  100% {
    transform: scale(0) translateY(100px);
    opacity: 0;
  }
}

@keyframes flowe-two {
  0% {
    transform: scale(0.5) rotateZ(-10deg) translateY(-200px) translateX(-100px);
    opacity: 0;
  }
  25% {
    transform: scale(1) rotateZ(-5deg) translateY(-100px) translateX(-50px);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotateZ(0deg) translateY(0px) translateX(-25px);
    opacity: 1;
  }
  75% {
    transform: scale(0.5) rotateZ(5deg) translateY(50px) translateX(0px);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotateZ(10deg) translateY(100px) translateX(25px);
    opacity: 0;
  }
}

@keyframes flowe-three {
  0% {
    transform: scale(0.5) rotateZ(10deg) translateY(-200px) translateX(100px);
    opacity: 0;
  }
  25% {
    transform: scale(1) rotateZ(5deg) translateY(-100px) translateX(50px);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotateZ(0deg) translateY(0px) translateX(25px);
    opacity: 1;
  }
  75% {
    transform: scale(0.5) rotateZ(-5deg) translateY(50px) translateX(0px);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotateZ(-10deg) translateY(100px) translateX(-25px);
    opacity: 0;
  }
}

h1 {
  font-size: 80rem;
  color: white;

  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 4px 30px rgba(0, 0, 0, 0.4);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.hero p {
  color: white;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 2px 15px rgba(0, 0, 0, 0.4);
  font-size: 2rem;
  opacity: 0.95;
}

/* Card */
.gas-cards-section {
  margin-top: 32px;
}

.heading-update {
  padding: 0rem 16rem;
  color: #4c63d9;
}

.gas-cards-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1rem;
}

.gwei-card {
  width: 300px;
  padding: 20px;
  perspective: 1000px;
}

.card {
  padding-top: 50px;
  border: 3px solid #141414;
  transform-style: preserve-3d;
  background: linear-gradient(135deg, #0000 18.75%, #f3f3f3 0 31.25%, #0000 0),
    repeating-linear-gradient(45deg, #f3f3f3 -6.25% 6.25%, #141414 0 18.75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  background-color: #141414;
  width: 100%;
  box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
  transition: all 0.5s ease-in-out;
}

.card:hover {
  background-position: -100px 100px, -100px 100px;
  transform: rotate3d(0.5, 1, 0, 30deg);
}

.content-box {
  transition: all 0.5s ease-in-out;
  padding: 60px 25px 25px 25px;
  transform-style: preserve-3d;
}

.low .content-box {
  background: #4cd964;
}
.average .content-box {
  background: #ffcc00;
}
.high .content-box {
  background: #ff6b6b;
}

.content-box .total-gas-price {
  display: inline-block;
  color: #141414;
  font-size: 25px;
  font-weight: 900;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 50px);
}

.content-box .total-gas-price:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .card-content {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #141414;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 30px);
}

.content-box .card-content:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .see-more {
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  background: #141414;
  padding: 0.5rem 0.7rem;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
  transform: translate3d(0px, 0px, 60px);
}

.speed-box {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
  width: 100px;
  background: #141414;
  border: 1px solid #4cd964;
  padding: 10px;
  transform: translate3d(0px, 0px, 80px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.average .speed-box {
  border: 1px solid #facc15;
}

.high .speed-box {
  border: 1px solid #ff6b6b;
}

.speed-box span {
  display: block;
  text-align: center;
}

.speed-box .emoji {
  color: #4cd964;
  font-size: 9px;
  font-weight: 700;
}

.speed-box .speed {
  font-size: 20px;
  font-weight: 900;
  color: #4cd964;
}

.average .speed {
  color: #facc15;
}

.high .speed {
  color: #ff6b6b;
}

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

/* 超大屏幕适配 (1440px 以上) */
@media (min-width: 1440px) {
  .gas-cards-container {
    gap: 3rem;
    padding: 0 2rem;
  }

  .gwei-card {
    width: 320px;
  }

  .heading-update {
    padding: 0rem 20rem;
  }
}

/* 大屏幕适配 (1200px - 1440px) */
@media (max-width: 1440px) {
  .heading-update {
    padding: 0rem 12rem;
  }
}

/* 中等屏幕适配 (992px - 1200px) */
@media (max-width: 1200px) {
  .heading-update {
    padding: 0rem 8rem;
  }

  .gas-cards-container {
    gap: 1.5rem;
  }

  .gwei-card {
    width: 280px;
    padding: 15px;
  }

  .content-box {
    padding: 50px 20px 20px 20px;
  }

  .content-box .total-gas-price {
    font-size: 22px;
  }
}

/* 平板设备适配 (768px - 992px) */
@media (max-width: 992px) {
  .heading-update {
    padding: 0rem 4rem;
  }

  .gas-cards-container {
    gap: 1rem;
  }

  .gwei-card {
    width: 250px;
    padding: 12px;
  }

  .card {
    padding-top: 40px;
  }

  .content-box {
    padding: 45px 15px 15px 15px;
  }

  .content-box .total-gas-price {
    font-size: 20px;
  }

  .content-box .card-content {
    font-size: 11px;
  }

  .speed-box {
    top: 25px;
    right: 25px;
    height: 50px;
    width: 90px;
    padding: 8px;
  }

  .speed-box .speed {
    font-size: 18px;
  }
}

/* 大屏手机适配 (576px - 768px) */
@media (max-width: 768px) {
  .gas-cards-section {
    margin-top: 24px;
  }

  .heading-update {
    padding: 0rem 2rem;
    text-align: center;
  }

  .gas-cards-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .gwei-card {
    width: 280px;
    padding: 15px;
  }

  .card {
    padding-top: 45px;
  }

  .content-box {
    padding: 50px 20px 20px 20px;
  }

  .content-box .total-gas-price {
    font-size: 22px;
  }

  .content-box .card-content {
    font-size: 12px;
  }

  .speed-box {
    top: 25px;
    right: 25px;
    height: 55px;
    width: 95px;
  }
}

/* 小屏手机适配 (428px - 576px) */
@media (max-width: 576px) {
  .gas-cards-section {
    margin-top: 20px;
  }

  .heading-update {
    padding: 0rem 1.5rem;
  }

  .gas-cards-container {
    gap: 1.2rem;
  }

  .gwei-card {
    width: 260px;
    padding: 12px;
  }

  .card {
    padding-top: 40px;
  }

  .content-box {
    padding: 45px 18px 18px 18px;
  }

  .content-box .total-gas-price {
    font-size: 20px;
  }

  .content-box .card-content {
    font-size: 11px;
  }

  .speed-box {
    top: 20px;
    right: 20px;
    height: 50px;
    width: 85px;
    padding: 7px;
  }

  .speed-box .speed {
    font-size: 17px;
  }
}

/* iPhone 12 Pro 等设备适配 (390px - 428px) */
@media (max-width: 428px) {
  .gas-cards-section {
    margin-top: 16px;
  }

  .heading-update {
    padding: 0rem 1rem;
  }

  .gas-cards-container {
    gap: 1rem;
  }

  .gwei-card {
    width: 240px;
    padding: 10px;
  }

  .card {
    padding-top: 35px;
  }

  .content-box {
    padding: 40px 15px 15px 15px;
  }

  .content-box .total-gas-price {
    font-size: 18px;
  }

  .content-box .card-content {
    font-size: 10px;
  }

  .speed-box {
    top: 18px;
    right: 18px;
    height: 45px;
    width: 80px;
    padding: 6px;
  }

  .speed-box .speed {
    font-size: 16px;
  }

  .speed-box .emoji {
    font-size: 8px;
  }
}

/* 超小屏手机适配 (小于390px) */
@media (max-width: 390px) {
  .gas-cards-section {
    margin-top: 12px;
  }

  .heading-update {
    padding: 0rem 0.5rem;
  }

  .gas-cards-container {
    gap: 0.8rem;
  }

  .gwei-card {
    width: 220px;
    padding: 8px;
  }

  .card {
    padding-top: 30px;
  }

  .content-box {
    padding: 35px 12px 12px 12px;
  }

  .content-box .total-gas-price {
    font-size: 16px;
  }

  .content-box .card-content {
    font-size: 9px;
  }

  .speed-box {
    top: 15px;
    right: 15px;
    height: 40px;
    width: 70px;
    padding: 5px;
  }

  .speed-box .speed {
    font-size: 14px;
  }

  .speed-box .emoji {
    font-size: 7px;
  }

  .content-box .see-more {
    font-size: 8px;
    padding: 0.4rem 0.6rem;
  }
}

/* 极窄屏幕适配 (小于320px) */
@media (max-width: 320px) {
  .gwei-card {
    width: 200px;
    padding: 6px;
  }

  .card {
    padding-top: 25px;
  }

  .content-box {
    padding: 30px 10px 10px 10px;
  }

  .content-box .total-gas-price {
    font-size: 14px;
  }

  .content-box .card-content {
    font-size: 8px;
  }

  .speed-box {
    top: 12px;
    right: 12px;
    height: 35px;
    width: 65px;
    padding: 4px;
  }

  .speed-box .speed {
    font-size: 12px;
  }

  .speed-box .emoji {
    font-size: 6px;
  }
}

/* 横向手机适配 */
@media (max-height: 500px) and (orientation: landscape) {
  .gas-cards-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .gwei-card {
    width: 200px;
    padding: 10px;
  }

  .card {
    padding-top: 35px;
  }

  .content-box {
    padding: 40px 15px 15px 15px;
  }

  .content-box .total-gas-price {
    font-size: 18px;
  }

  .speed-box {
    top: 20px;
    right: 20px;
    height: 45px;
    width: 80px;
  }
}

/* 打印样式 */
@media print {
  .gas-cards-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .gwei-card {
    width: 200px;
    break-inside: avoid;
  }

  .card:hover {
    transform: none;
    background-position: 0 0, 0 0;
  }
}
/* Network mood */

.terminal-loader {
  width: 90%;
  max-width: 800px;
  min-height: 220px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  overflow: hidden;
  font-family: "Courier New", monospace;
  margin: 20px auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.terminal-header {
  background: linear-gradient(90deg, #333 0%, #444 100%);
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #555;
}

.terminal-title {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.terminal-controls {
  display: flex;
  gap: 10px;
}

.control {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.control:hover {
  transform: scale(1.1);
}

.control.close {
  background: #ff5f57;
}

.control.minimize {
  background: #ffbd2e;
}

.control.maximize {
  background: #28ca42;
}

.text {
  padding: 30px;
  color: #00ff00;
  font-size: 17px;
  line-height: 1.7;
  min-height: 140px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  margin: 0;
  border-right: 2px solid #00ff00;
  animation: blink-caret 0.75s step-end infinite;
}

/* 动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff00;
  }
}

/* 平板设备适配 */
@media (max-width: 768px) {
  .terminal-loader {
    width: 95%;
    min-height: 200px;
    max-width: 95%;
    margin: 15px auto;
  }

  .terminal-header {
    padding: 10px 20px;
  }

  .terminal-title {
    font-size: 16px;
  }

  .text {
    padding: 25px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 120px;
  }

  .control {
    width: 12px;
    height: 12px;
  }
}

/* 手机设备适配 */
@media (max-width: 480px) {
  .terminal-loader {
    width: 92%;
    min-height: 180px;
    border-radius: 10px;
    margin: 10px auto;
  }

  .terminal-header {
    padding: 8px 16px;
  }

  .terminal-title {
    font-size: 15px;
  }

  .text {
    padding: 20px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100px;
  }

  .terminal-controls {
    gap: 6px;
  }

  .control {
    width: 10px;
    height: 10px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
  .terminal-loader {
    width: 90%;
    min-height: 160px;
  }

  .text {
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 90px;
  }

  .terminal-header {
    padding: 6px 12px;
  }
}

/* 超大屏幕适配 */
@media (min-width: 1200px) {
  .terminal-loader {
    max-width: 900px;
  }

  .text {
    font-size: 18px;
    padding: 35px;
  }
}

/* data guide */
.data-guide-cards {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  margin-top: 6rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.data-guide-group {
  position: relative;
  width: 190px;
  height: 190px;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: rgb(255, 255, 255);
}

.data-guide-group > div {
  margin: auto auto;
}

.data-guide-group::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #fff01c 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.data-guide-group::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fff01c 0%, #40c9ff 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.heading {
  font-size: 20px;
  text-transform: capitalize;
  font-weight: 700;
  margin-bottom: 1rem;
}

.data-guide-group p:not(.heading) {
  font-size: 14px;
}

.data-guide-group p:last-child {
  color: #e81cff;
  font-weight: 600;
}

.data-guide-group:hover::after {
  filter: blur(30px);
}

.data-guide-group:hover::before {
  transform: rotate(-90deg) scaleX(1) scaleY(1);
}

.data-guide-group:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

/* 中等屏幕适配 (992px - 1200px) */
@media (max-width: 1200px) {
  .data-guide-cards {
    gap: 3rem;
  }
}

/* 平板设备适配 (768px - 992px) - 改为两两一排 */
@media (max-width: 992px) {
  .data-guide-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    max-width: 600px;
  }

  .data-guide-group {
    width: 180px;
    height: 180px;
  }

  .data-guide-group::before {
    width: 190px;
    height: 190px;
  }

  .heading {
    font-size: 18px;
    margin-bottom: 0.8rem;
  }

  .data-guide-group p:not(.heading) {
    font-size: 13px;
  }
}

/* 大屏手机适配 (576px - 768px) - 保持两两一排 */
@media (max-width: 768px) {
  .data-guide-cards {
    gap: 2rem;
    margin-top: 4rem;
    max-width: 500px;
  }

  .data-guide-group {
    width: 160px;
    height: 160px;
    padding: 10px;
  }

  .data-guide-group::before {
    width: 170px;
    height: 170px;
    left: -5px;
  }

  .heading {
    font-size: 16px;
    margin-bottom: 0.6rem;
  }

  .data-guide-group p:not(.heading) {
    font-size: 12px;
  }
}

/* 小屏手机适配 (428px - 576px) - 保持两两一排 */
@media (max-width: 576px) {
  .data-guide-cards {
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 400px;
  }

  .data-guide-group {
    width: 150px;
    height: 150px;
    padding: 8px;
  }

  .data-guide-group::before {
    width: 160px;
    height: 160px;
    left: -5px;
  }

  .heading {
    font-size: 15px;
    margin-bottom: 0.5rem;
  }

  .data-guide-group p:not(.heading) {
    font-size: 11px;
  }
}

/* iPhone 12 Pro 等设备适配 (390px - 428px) - 保持两两一排 */
@media (max-width: 428px) {
  .data-guide-cards {
    gap: 1.2rem;
    margin-top: 2.5rem;
    max-width: 360px;
  }

  .data-guide-group {
    width: 140px;
    height: 140px;
    padding: 7px;
  }

  .data-guide-group::before {
    width: 150px;
    height: 150px;
    left: -5px;
  }

  .heading {
    font-size: 14px;
    margin-bottom: 0.4rem;
  }

  .data-guide-group p:not(.heading) {
    font-size: 10px;
  }
}

/* 超小屏手机适配 (小于390px) - 改为单列并居中 */
@media (max-width: 390px) {
  .data-guide-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    margin-top: 2.5rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .data-guide-group {
    width: 180px;
    height: 180px;
    padding: 12px;
    margin: 0 auto;
  }

  .data-guide-group::before {
    width: 190px;
    height: 190px;
    left: -5px;
  }

  .heading {
    font-size: 18px;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .data-guide-group p:not(.heading) {
    font-size: 13px;
    text-align: center;
  }

  .data-guide-group p:last-child {
    font-size: 16px;
    font-weight: 700;
  }
}

/* 极窄屏幕适配 (小于320px) */
@media (max-width: 320px) {
  .data-guide-cards {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .data-guide-group {
    width: 160px;
    height: 160px;
  }

  .data-guide-group::before {
    width: 170px;
    height: 170px;
  }

  .heading {
    font-size: 16px;
  }

  .data-guide-group p:not(.heading) {
    font-size: 12px;
  }
}

/* 横向手机适配 */
@media (max-height: 500px) and (orientation: landscape) {
  .data-guide-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
    gap: 2rem;
    max-width: 500px;
  }

  .data-guide-group {
    width: 130px;
    height: 130px;
  }

  .data-guide-group::before {
    width: 140px;
    height: 140px;
  }
}

/* 高分辨率屏幕适配 */
@media (min-width: 1440px) {
  .data-guide-cards {
    gap: 6rem;
  }

  .data-guide-group {
    width: 210px;
    height: 210px;
  }

  .data-guide-group::before {
    width: 220px;
    height: 220px;
  }

  .heading {
    font-size: 22px;
  }

  .data-guide-group p:not(.heading) {
    font-size: 15px;
  }
}

/* little guide */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item:hover {
  border-color: #8b5fbf;
  box-shadow: 0 4px 12px rgba(139, 95, 191, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(139, 95, 191, 0.05);
  color: #5c3d99;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #8b5fbf;
  transition: all 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(139, 95, 191, 0.02);
}

.faq-answer p {
  padding: 0 25px 20px;
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 1.5rem;
}

/* 展开状态 */
.faq-item.active {
  border-color: #8b5fbf;
  box-shadow: 0 4px 15px rgba(139, 95, 191, 0.15);
}

.faq-item.active .faq-question {
  background: rgba(139, 95, 191, 0.08);
  color: #5c3d99;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #5c3d99;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 15px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 20px 18px;
  }
}
/* our story  */
.story-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story {
  position: relative;
  color: #2e2e2f;
  cursor: move;
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
  margin-bottom: 1rem;
  border: 3px dashed transparent;
  max-width: 350px;
}

.story {
  box-shadow: rgba(99, 99, 99, 0.3) 0px 2px 8px 0px;
  border-color: rgba(162, 179, 207, 0.2) !important;
}

.story p {
  font-size: 15px;
  margin: 1.2rem 0;
}
.letter-paper {
  max-width: 580px;
  min-height: 420px;
  background: 
    /* 温馨米白色底色 */ linear-gradient(
      #fffaf5 0%,
      #fffaf5 99%,
      #f5f0e8 99%,
      #f5f0e8 100%
    ),
    /* 横线信纸效果 */
      linear-gradient(
        90deg,
        transparent 0%,
        transparent 95%,
        rgba(139, 95, 191, 0.06) 95%
      ),
    linear-gradient(rgba(139, 95, 191, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 20px 100%, 100% 24px;

  padding: 50px 60px;
  border: 2px dashed #e8d8b8;
  border-radius: 8px;
  box-shadow: 0 6px 25px rgba(139, 95, 191, 0.08), inset 0 0 0 12px #fffaf5,
    inset 0 0 30px rgba(139, 95, 191, 0.03);
  position: relative;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: #6b5d4d;
  margin: 30px auto;
}

.letter-paper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px dashed rgba(139, 95, 191, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.letter-paper::after {
  content: "❀";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 24px;
  height: 24px;
  background: #fffaf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8b5fbf;
  border: 2px dashed #e8d8b8;
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.1);
}

/* 右下角装饰花纹 */
.letter-paper .letter-footer::before {
  content: "❀";
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  background: #fffaf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8b5fbf;
  border: 2px dashed #e8d8b8;
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.1);
}

.letter-header {
  border-bottom: 2px dashed #8b5fbf; /* 改为虚线 */
  padding-bottom: 15px;
  margin-bottom: 25px;
  position: relative;
}

/* 标题两侧的小装饰 */
.letter-header::before,
.letter-header::after {
  content: "✦";
  position: absolute;
  bottom: -11px;
  color: #8b5fbf;
  font-size: 16px;
  background: #fffaf5;
  padding: 0 8px;
}

.letter-header::before {
  left: 0;
}

.letter-header::after {
  right: 0;
}

.letter-header h2 {
  margin: 0;
  color: #5c3d99;
  font-weight: normal;
  font-style: italic;
  text-align: center;
}

.letter-content {
  margin-bottom: 30px;
}

.letter-content p {
  margin-bottom: 20px;
  text-indent: 2em;
  position: relative;
}

/* 段落前的可爱小点 */
.letter-content p::before {
  content: "•";
  position: absolute;
  left: 1em;
  color: #8b5fbf;
  opacity: 0.6;
}

.letter-footer {
  text-align: right;
  border-top: 1px dashed #d8c7e8; /* 改为虚线 */
  padding-top: 20px;
  font-style: italic;
  color: #8b5fbf;
  position: relative;
}

.letter-footer p {
  margin: 5px 0;
}

/* 页脚装饰线 */
.letter-footer::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5fbf, transparent);
}

/* 侧边装饰虚线 */
.letter-paper {
  background-image: 
    /* 左侧装饰虚线 */ linear-gradient(
      90deg,
      transparent 10px,
      rgba(139, 95, 191, 0.1) 10px,
      rgba(139, 95, 191, 0.1) 12px,
      transparent 12px
    ),
    /* 右侧装饰虚线 */
      linear-gradient(
        90deg,
        transparent calc(100% - 12px),
        rgba(139, 95, 191, 0.1) calc(100% - 12px),
        rgba(139, 95, 191, 0.1) calc(100% - 10px),
        transparent calc(100% - 10px)
      ),
    /* 原有背景 */
      linear-gradient(#fffaf5 0%, #fffaf5 99%, #f5f0e8 99%, #f5f0e8 100%),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 95%,
      rgba(139, 95, 191, 0.06) 95%
    ),
    linear-gradient(rgba(139, 95, 191, 0.08) 1px, transparent 1px);
}

/* 悬停时的温馨效果 */
.letter-paper:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(139, 95, 191, 0.12), inset 0 0 0 12px #fffaf5,
    inset 0 0 40px rgba(139, 95, 191, 0.05);
  border-color: #d8c7e8;
  transition: all 0.4s ease;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .letter-paper {
    padding: 30px 25px;
    margin: 20px 15px;
    max-width: calc(100% - 30px);
    border-width: 1px dashed;
  }

  .letter-header h2 {
    font-size: 1.3rem;
  }

  /* 移动端减少装饰 */
  .letter-paper::after,
  .letter-paper .letter-footer::before {
    display: none;
  }
}

/* footer */
.footer-logo {
  height: 5rem;
}

footer {
  background: linear-gradient(135deg, #6a5aff 0%, #5a4aee 30%, #4a3add 100%);
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
  position: relative;
}

/* 确保文字在紫色背景上可读 */
.footer-tagline,
.footer-legal p,
.thank-item span,
.footer-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-link:hover {
  color: #fff !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.logo-emoji {
  font-size: 2rem;
  animation: gentle-pulse 2s ease-in-out infinite alternate;
}

@keyframes gentle-pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.logo-text {
  background: linear-gradient(135deg, #8b5fbf, #5c3d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
}

.footer-tagline {
  color: #ccc;
  line-height: 1.6;
  font-size: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* WhatsApp 绿色样式 */
.social-link[aria-label="WhatsApp"] {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.social-link[aria-label="WhatsApp"]:hover {
  background: #25d366;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.social-link[aria-label="WhatsApp"] .social-icon {
  color: #25d366;
}

.social-link[aria-label="WhatsApp"]:hover .social-icon {
  color: white;
}

/* 邮箱浅色样式 */
.social-link[aria-label="Email"] {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link[aria-label="Email"]:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.social-link[aria-label="Email"] .social-icon {
  color: #cccccc;
}

.social-link[aria-label="Email"]:hover .social-icon {
  color: #666666;
}

.social-icon {
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
}

/* 悬停时的脉冲效果 */
.social-link:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

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

.link-group h4 {
  color: #8b5fbf;
  margin-bottom: 15px;

  font-weight: 600;
}

.link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-group li {
  margin-bottom: 8px;
}

.link-group a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: #8b5fbf;
  padding-left: 5px;
}

.footer-special {
  background: rgba(139, 95, 191, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border-left: 4px solid #8b5fbf;
}

.footer-special h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 2rem;
}

.special-thanks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  font-size: 1.5rem;
}

.thank-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.thank-item strong {
  color: #ff6b6b;
  font-size: 2.5rem;
}

.thank-item span {
  color: #ccc;
  font-size: 1.5rem;
}

.thank-item a {
  color: #4cd964;
  text-decoration: none;
  transition: all 0.3s ease;
}

.thank-item a:hover {
  text-decoration: none;
  color: #4cd964;
  text-shadow: 0 0 10px rgba(76, 217, 100, 0.8),
    0 0 20px rgba(76, 217, 100, 0.6), 0 0 30px rgba(76, 217, 100, 0.4);
  transform: translateY(-1px);
}

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

.footer-legal p {
  color: #999;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #8b5fbf;
}

.divider {
  color: #666;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .special-thanks {
    grid-template-columns: 1fr;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-tagline {
    text-align: center;
    font-size: 2.5rem;
  }

  .social-link {
    padding: 10px;
  }
}
