/* 页面标题样式 */
.page-header {
    background: linear-gradient(180deg, rgba(6, 12, 40, 0.20), rgba(6, 12, 40, 0.45)), url('/assets/Other/contact-header.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

/* 强制白色标题：覆盖全局 body :not(.navbar) 黑字规则 */
.page-header .container h1,
.page-header .container p {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 3px;
}

/* 联系信息样式 */
.contact-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.contact-info {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.contact-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.contact-social .social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.contact-social .social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* 微信服务号板块样式 */
.wechat-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.wechat-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.wechat-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.wechat-section .section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.wechat-content {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.wechat-qrcode {
    flex-shrink: 0;
}

.wechat-qrcode img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.wechat-info {
    flex: 1;
}

.wechat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.wechat-info p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.wechat-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wechat-info li {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wechat-info li i {
    color: var(--success-color);
    font-size: 16px;
}

/* 招募信息板块样式 */
.recruit-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.recruit-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.recruit-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.recruit-section .section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.recruit-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.recruit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 36px;
}

.recruit-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.recruit-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.recruit-card-title h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.recruit-card-title p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.recruit-tags {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.recruit-tags li {
    padding: 8px 18px;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--gray-light);
    border-radius: 20px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.recruit-tags li:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.recruit-note {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 18px 26px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.recruit-note i {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.recruit-note p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== 立即加入动画按钮 ========== */
.join-cta {
    display: flex;
    justify-content: center;
    /* 左侧给叠层投影、上下给倾斜变换预留空间，防止视觉裁切 */
    padding: 52px 24px 24px 72px;
}

/* 全局样式强制所有 span 灰色 !important，这里恢复按钮字母的透明底，
   可见文字完全由 ::before / ::after 伪元素（白色）呈现 */
.join-cta .button .char span {
  color: transparent !important;
}

.button {
  --white: #ffe7ff;
  --purple-100: #f4b1fd;
  --purple-200: #d190ff;
  --purple-300: #c389f2;
  --purple-400: #8e26e2;
  --purple-500: #5e2b83;
  --radius: 18px;

  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  font-size: 23px;
  font-family: Arial, sans-serif;
  background: transparent;
  letter-spacing: -1px;
  border: 0;
  position: relative;
  width: 220px;
  height: 80px;
  transform: rotate(353deg) skewX(4deg);
  -webkit-tap-highlight-color: transparent;
}

.bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: blur(1px);
}
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 1.1);
  background: var(--purple-500);
}
.bg::before {
  filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow:
    -7px 6px 0 0 rgb(115 75 155 / 40%),
    -14px 12px 0 0 rgb(115 75 155 / 30%),
    -21px 18px 4px 0 rgb(115 75 155 / 25%),
    -28px 24px 8px 0 rgb(115 75 155 / 15%),
    -35px 30px 12px 0 rgb(115 75 155 / 12%),
    -42px 36px 16px 0 rgb(115 75 155 / 8%),
    -56px 42px 20px 0 rgb(115 75 155 / 5%);
}

.wrap {
  border-radius: inherit;
  overflow: hidden;
  height: 100%;
  transform: translate(6px, -6px);
  padding: 3px;
  background: linear-gradient(
    to bottom,
    var(--purple-100) 0%,
    var(--purple-400) 100%
  );
  position: relative;
  transition: all 0.3s ease;
}

.outline {
  position: absolute;
  overflow: hidden;
  inset: 0;
  opacity: 0;
  outline: none;
  border-radius: inherit;
  transition: all 0.4s ease;
}
.outline::before {
  content: "";
  position: absolute;
  inset: 2px;
  width: 120px;
  height: 300px;
  margin: auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    white 50%,
    transparent 100%
  );
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.content {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  height: 100%;
  gap: 16px;
  border-radius: calc(var(--radius) * 0.85);
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(
    to bottom,
    var(--purple-300) 0%,
    var(--purple-400) 100%
  );
  box-shadow:
    inset -2px 12px 11px -5px var(--purple-200),
    inset 1px -3px 11px 0px rgb(0 0 0 / 35%);
}
.content::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 10;
  width: 80%;
  top: 45%;
  bottom: 35%;
  opacity: 0.7;
  margin: auto;
  background: linear-gradient(to bottom, transparent, var(--purple-400));
  filter: brightness(1.3) blur(5px);
}

.char {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char span {
  display: block;
  color: transparent;
  position: relative;
}
.char span:nth-child(5) {
  margin-left: 5px;
}
.char.state-1 span:nth-child(5) {
  margin-right: -3px;
}
.char.state-1 span {
  animation: charAppear 1.2s ease backwards calc(var(--i) * 0.03s);
}
.char.state-1 span::before,
.char span::after {
  content: attr(data-label);
  position: absolute;
  color: var(--white);
  text-shadow: -1px 1px 2px var(--purple-500);
  left: 0;
}
.char.state-1 span::before {
  opacity: 0;
  transform: translateY(-100%);
}
.char.state-2 {
  position: absolute;
  left: 80px;
}
.char.state-2 span::after {
  opacity: 1;
}

.icon {
  animation: resetArrow 0.8s cubic-bezier(0.7, -0.5, 0.3, 1.2) forwards;
  z-index: 10;
}
.icon div,
.icon div::before,
.icon div::after {
  height: 3px;
  border-radius: 1px;
  background-color: var(--white);
}
.icon div::before,
.icon div::after {
  content: "";
  position: absolute;
  right: 0;
  transform-origin: center right;
  width: 14px;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.icon div {
  position: relative;
  width: 24px;
  box-shadow: -2px 2px 5px var(--purple-400);
  transform: scale(0.9);
  background: linear-gradient(to bottom, var(--white), var(--purple-100));
  animation: swingArrow 1s ease-in-out infinite;
  animation-play-state: paused;
}
.icon div::before {
  transform: rotate(44deg);
  top: 1px;
  box-shadow: 1px -2px 3px -1px var(--purple-400);
  animation: rotateArrowLine 1s linear infinite;
  animation-play-state: paused;
}
.icon div::after {
  bottom: 1px;
  transform: rotate(316deg);
  box-shadow: -2px 2px 3px 0 var(--purple-400);
  background: linear-gradient(200deg, var(--white), var(--purple-100));
  animation: rotateArrowLine2 1s linear infinite;
  animation-play-state: paused;
}

.path {
  position: absolute;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  pointer-events: none;
}

.splash {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  stroke-dasharray: 60 60;
  stroke-dashoffset: 60;
  transform: translate(-17%, -31%);
  stroke: var(--purple-300);
}

/** STATES */

.button:hover .char.state-1 span::before {
  animation: charAppear 0.7s ease calc(var(--i) * 0.03s);
}

.button:hover .char.state-1 span::after {
  opacity: 1;
  animation: charDisappear 0.7s ease calc(var(--i) * 0.03s);
}

.button:hover .wrap {
  transform: translate(8px, -8px);
}

.button:hover .outline {
  opacity: 1;
}

.button:hover .outline::before,
.button:hover .icon div::before,
.button:hover .icon div::after,
.button:hover .icon div {
  animation-play-state: running;
}

.button:active .bg::before {
  filter: blur(5px);
  opacity: 0.7;
  box-shadow:
    -7px 6px 0 0 rgb(115 75 155 / 40%),
    -14px 12px 0 0 rgb(115 75 155 / 25%),
    -21px 18px 4px 0 rgb(115 75 155 / 15%);
}
.button:active .content {
  box-shadow:
    inset -1px 12px 8px -5px rgba(71, 0, 137, 0.4),
    inset 0px -3px 8px 0px var(--purple-200);
}

.button:active .outline {
  opacity: 0;
}

.button:active .wrap {
  transform: translate(3px, -3px);
}

.button:active .splash {
  animation: splash 0.8s cubic-bezier(0.3, 0, 0, 1) forwards 0.05s;
}

.button:focus .path {
  animation: path 1.6s ease forwards 0.2s;
}

.button:focus .icon {
  animation: arrow 1s cubic-bezier(0.7, -0.5, 0.3, 1.5) forwards;
}

.char.state-2 span::after,
.button:focus .char.state-1 span {
  animation: charDisappear 0.5s ease forwards calc(var(--i) * 0.03s);
}

.button:focus .char.state-2 span::after {
  animation: charAppear 1s ease backwards calc(var(--i) * 0.03s);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes charAppear {
  0% {
    transform: translateY(50%);
    opacity: 0;
    filter: blur(20px);
  }
  20% {
    transform: translateY(70%);
    opacity: 1;
  }
  50% {
    transform: translateY(-15%);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes charDisappear {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-70%);
    opacity: 0;
    filter: blur(3px);
  }
}

@keyframes arrow {
  0% { opacity: 1; }
  50% {
    transform: translateX(60px);
    opacity: 0;
  }
  51% {
    transform: translateX(-200px);
    opacity: 0;
  }
  100% {
    transform: translateX(-128px);
    opacity: 1;
  }
}

@keyframes swingArrow {
  50% {
    transform: translateX(5px) scale(0.9);
  }
}

@keyframes rotateArrowLine {
  50% { transform: rotate(30deg); }
  80% { transform: rotate(55deg); }
}

@keyframes rotateArrowLine2 {
  50% { transform: rotate(330deg); }
  80% { transform: rotate(300deg); }
}

@keyframes resetArrow {
  0% { transform: translateX(-128px); }
  100% { transform: translateX(0); }
}

@keyframes path {
  from { stroke: white; }
  to {
    stroke-dashoffset: -480;
    stroke: #f9c6fe;
  }
}

@keyframes splash {
  to {
    stroke-dasharray: 2 60;
    stroke-dashoffset: -60;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info {
        padding: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-content h3 {
        font-size: 16px;
    }
    
    .contact-content p {
        font-size: 14px;
    }
    
    .contact-social {
        gap: 12px;
        margin-top: 30px;
    }
    
    .contact-social .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .wechat-section {
        padding: 60px 0;
    }
    
    .wechat-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
        text-align: center;
    }
    
    .wechat-qrcode img {
        width: 180px;
        height: 180px;
    }
    
    .wechat-info h3 {
        font-size: 20px;
    }
    
    .wechat-info li {
        justify-content: center;
    }

    .recruit-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recruit-card {
        padding: 28px;
    }

    .recruit-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 24px;
    }

    .join-cta {
        padding: 40px 16px 16px 44px;
    }
}