@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');



:root {
  --wuhun-red: #991B1B;
  --wuhun-red-light: #B91C1C;
  --wuhun-red-dark: #7F1D1D;
  --wuhun-bronze: #B45309;
  --wuhun-bronze-light: #D97706;
  --wuhun-gold: #FCD34D;
  --wuhun-gold-light: #FDE68A;
  --wuhun-ink: #1a0f0a;
  --wuhun-ink-light: #2a1810;
  --wuhun-paper: #f5e6d3;
  --wuhun-stone: #57534E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--wuhun-ink);
  color: var(--wuhun-paper);
  line-height: 1.7;
  overflow-x: hidden;
}

.font-title {
  font-family: 'Ma Shan Zheng', cursive;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--wuhun-gold);
  text-shadow: 0 2px 10px rgba(153, 27, 27, 0.6);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wuhun-bronze), var(--wuhun-gold), var(--wuhun-bronze), transparent);
}

.section-subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--wuhun-bronze-light);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--wuhun-red) 0%, var(--wuhun-red-dark) 100%);
  color: var(--wuhun-gold);
  font-weight: 700;
  border: 2px solid var(--wuhun-bronze);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 27, 27, 0.6);
  border-color: var(--wuhun-gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--wuhun-gold);
  font-weight: 600;
  border: 2px solid var(--wuhun-bronze);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(180, 83, 9, 0.15);
  border-color: var(--wuhun-gold);
}

.card-wuhun {
  background: linear-gradient(145deg, rgba(42, 24, 16, 0.9), rgba(26, 15, 10, 0.95));
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-wuhun::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wuhun-red), var(--wuhun-bronze), var(--wuhun-gold), var(--wuhun-bronze), var(--wuhun-red));
}

.card-wuhun:hover {
  transform: translateY(-5px);
  border-color: rgba(252, 211, 77, 0.4);
  box-shadow: 0 10px 30px rgba(153, 27, 27, 0.25);
}

.tag-gold {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(252, 211, 77, 0.12);
  color: var(--wuhun-gold);
  border: 1px solid var(--wuhun-gold);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-red {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(153, 27, 27, 0.2);
  color: #FCA5A5;
  border: 1px solid var(--wuhun-red);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-green {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
  border: 1px solid #16a34a;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.container-wuhun {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container-wuhun {
    padding: 0 1.5rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--wuhun-ink);
}

::-webkit-scrollbar-thumb {
  background: var(--wuhun-bronze);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wuhun-gold);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(252, 211, 77, 0.3); }
  50% { box-shadow: 0 0 40px rgba(252, 211, 77, 0.6); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 15, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 83, 9, 0.3);
}

.nav-link {
  color: var(--wuhun-paper);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wuhun-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--wuhun-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--wuhun-gold);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 15, 10, 0.98);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(180, 83, 9, 0.2);
}

.site-footer {
  background: linear-gradient(180deg, rgba(42, 24, 16, 0.8), var(--wuhun-ink));
  border-top: 1px solid rgba(180, 83, 9, 0.3);
  padding: 3rem 0 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid rgba(180, 83, 9, 0.4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wuhun-gold);
  border: 3px solid var(--wuhun-red);
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

.accordion-item {
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-header {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(42, 24, 16, 0.6);
  color: var(--wuhun-gold);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  text-align: left;
  font-size: 1rem;
}

.accordion-header:hover {
  background: rgba(153, 27, 27, 0.2);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(26, 15, 10, 0.5);
}

.accordion-body.open {
  max-height: 500px;
}

.accordion-content {
  padding: 1rem 1.25rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.qr-img {
  width: 140px;
  height: 140px;
  border-radius: 0.5rem;
  border: 2px solid var(--wuhun-bronze);
  object-fit: cover;
  background: #fff;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  border-radius: 2.5rem;
  border: 12px solid var(--wuhun-bronze);
  background: var(--wuhun-ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(252, 211, 77, 0.15);
  flex-shrink: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.5), transparent);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner-decor {
  position: relative;
}

.corner-decor::before,
.corner-decor::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--wuhun-bronze);
}

.corner-decor::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.corner-decor::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient-gold {
  background: linear-gradient(180deg, var(--wuhun-gold-light), var(--wuhun-bronze-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-ink-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(180, 83, 9, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
}

/* 图片防溢出加固 */
.hero-logo,
.intro-image,
.feature-card img,
.article-body img,
.contact-card img,
.phone-screen,
.cover-image,
.article-cover,
.qr-img {
  max-width: 100%;
  height: auto;
}

.accordion-content {
  min-width: 0;
}

/* 友情链接 */
.friend-links-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--wuhun-ink) 0%, #0f0805 100%);
}

.friend-links-card {
  background: linear-gradient(145deg, rgba(42, 24, 16, 0.9), rgba(26, 15, 10, 0.95));
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 1rem;
  padding: 1.25rem;
}

.friend-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.friend-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(180, 83, 9, 0.5);
  border-radius: 0.5rem;
  color: var(--wuhun-gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(180, 83, 9, 0.08);
  word-break: break-all;
}

.friend-link:hover {
  background: rgba(153, 27, 27, 0.2);
  border-color: var(--wuhun-gold);
  color: var(--wuhun-gold-light);
}

@media (min-width: 768px) {
  .friend-links-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .friend-links-card {
    padding: 1.5rem;
  }
}
