@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap');

:root {
  --jh-ink: #0c0a09;
  --jh-paper: #1c1917;
  --jh-green: #15803D;
  --jh-green-dark: #14532d;
  --jh-copper: #B45309;
  --jh-copper-light: #D97706;
  --jh-gold: #FACC15;
  --jh-light: #e7e5e4;
  --jh-muted: #a8a29e;
  --font-shufa: 'Ma Shan Zheng', cursive;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--jh-ink);
  color: var(--jh-light);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(21,128,61,.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(180,83,9,.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }



.container { width: min(92%, 1200px); margin-inline: auto; position: relative; z-index: 1; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}

.header-scrolled {
  background: rgba(12,10,9,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: .75rem; font-family: var(--font-shufa); color: var(--jh-gold); font-size: clamp(1.25rem, 4vw, 1.75rem); }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }

.nav-links { display: none; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--jh-light); font-size: .95rem; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--jh-gold); transition: width .3s; }
.nav-links a:hover { color: var(--jh-gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: .4rem; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--jh-gold); transition: .3s; }

.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1rem 1rem 1.5rem; background: rgba(12,10,9,.96); border-top: 1px solid rgba(250,204,21,.15); }
.mobile-menu a { color: var(--jh-light); font-size: 1.05rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  background-image: linear-gradient(to bottom, rgba(12,10,9,.78) 0%, rgba(12,10,9,.35) 50%, rgba(12,10,9,1) 100%), url('https://yqcdn.fuhua95.com/game/20250624/866bee01d2db6f449b79d3e2b28054bc.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-content { position: relative; z-index: 2; padding: 2rem 1rem; }
.hero-title {
  font-family: var(--font-shufa);
  color: var(--jh-gold);
  text-shadow: 0 4px 24px rgba(0,0,0,.7);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.05;
  margin: 0 0 .5rem;
}
.hero-sub {
  font-family: var(--font-serif);
  color: var(--jh-light);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
}
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.tag {
  border: 1px solid rgba(250,204,21,.45);
  color: var(--jh-gold);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  background: rgba(250,204,21,.08);
}

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: .5rem; font-weight: 700; transition: transform .2s, box-shadow .2s; cursor: pointer; border: none; font-size: 1rem; }
.btn-gold { background: linear-gradient(135deg, var(--jh-gold), #D97706); color: #1c1917; box-shadow: 0 8px 24px rgba(250,204,21,.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(250,204,21,.35); }
.btn-copper { background: transparent; border: 2px solid var(--jh-copper); color: var(--jh-gold); }
.btn-copper:hover { background: var(--jh-copper); color: #fff; }

.section { padding: 5rem 0; position: relative; }
.section-title {
  font-family: var(--font-shufa);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--jh-gold);
  margin-bottom: .5rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.section-title::before {
  content: ''; width: 6px; height: .85em; background: linear-gradient(to bottom, var(--jh-gold), var(--jh-green)); border-radius: 3px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px; min-width: 60px; background: linear-gradient(to right, var(--jh-copper), transparent); border-radius: 1px;
}
.title-center { justify-content: center; }
.title-center::after { display: none; }
.section-intro { color: var(--jh-muted); max-width: 680px; margin: 0 0 2.5rem; font-size: clamp(1rem, 2vw, 1.15rem); }

.feature-accordion {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}
.feature-panel {
  position: relative;
  flex: 1;
  min-width: 80vw;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(250,204,21,.12);
  transition: flex .6s cubic-bezier(.25,.8,.25,1), min-width .6s;
  scroll-snap-align: start;
}
.feature-panel.active, .feature-panel:hover { flex: 3; }
.feature-panel .panel-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s;
}
.feature-panel:hover .panel-bg { transform: scale(1.05); }
.feature-panel .panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,9,.95) 0%, rgba(12,10,9,.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.panel-title { font-family: var(--font-shufa); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--jh-gold); margin-bottom: .25rem; }
.panel-text { color: var(--jh-light); opacity: 0; transform: translateY(12px); transition: .4s; font-size: .95rem; }
.feature-panel.active .panel-text, .feature-panel:hover .panel-text { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .feature-panel { min-width: 0; }
  .panel-title { writing-mode: vertical-rl; text-orientation: upright; transition: .4s; }
  .feature-panel.active .panel-title, .feature-panel:hover .panel-title { writing-mode: horizontal-tb; }
}

.occ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.occ-card {
  position: relative;
  background: linear-gradient(180deg, rgba(21,128,61,.18), rgba(12,10,9,.8));
  border: 1px solid rgba(250,204,21,.12);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform .3s, border-color .3s;
  overflow: hidden;
}
.occ-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--jh-green), var(--jh-gold));
}
.occ-card:hover { transform: translateY(-6px); border-color: rgba(250,204,21,.4); }
.occ-icon { font-size: 2rem; color: var(--jh-gold); margin-bottom: .5rem; }
.occ-name { font-family: var(--font-shufa); font-size: 1.5rem; color: var(--jh-gold); margin-bottom: .25rem; }
.occ-desc { color: var(--jh-muted); font-size: .92rem; line-height: 1.5; }

.high-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.highlight-card {
  background: rgba(28,25,23,.7);
  border: 1px solid rgba(180,83,9,.25);
  border-radius: 1rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.highlight-card::after {
  content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(250,204,21,.12) 0%, transparent 70%);
}
.highlight-icon { color: var(--jh-copper-light); font-size: 1.75rem; margin-bottom: .75rem; }
.highlight-title { font-family: var(--font-shufa); font-size: 1.45rem; color: var(--jh-gold); margin-bottom: .5rem; }
.highlight-text { color: var(--jh-muted); font-size: .95rem; }

.pet-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.pet-card {
  min-width: 160px; flex: 1; max-width: 200px;
  background: linear-gradient(180deg, rgba(180,83,9,.15), rgba(12,10,9,.8));
  border: 1px solid rgba(250,204,21,.12); border-radius: 1rem;
  padding: 1.25rem 1rem; text-align: center;
  scroll-snap-align: center; transition: transform .3s;
}
.pet-card:hover { transform: translateY(-5px); }
.pet-avatar { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50%; background: rgba(12,10,9,.6); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--jh-gold); border: 2px solid rgba(250,204,21,.2); }
.pet-name { font-family: var(--font-shufa); font-size: 1.25rem; color: var(--jh-gold); }

.download-box {
  background: linear-gradient(135deg, rgba(21,128,61,.15), rgba(180,83,9,.1));
  border: 1px solid rgba(250,204,21,.18);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
}
.download-steps { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.step { display: flex; align-items: center; gap: .5rem; color: var(--jh-muted); font-size: .95rem; }
.step-number { width: 28px; height: 28px; border-radius: 50%; background: var(--jh-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.progress-wrap { max-width: 480px; margin: 0 auto 1.5rem; height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; display: none; }
.download-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--jh-green), var(--jh-gold)); border-radius: 999px; transition: width 1.4s linear; }

.site-footer { padding: 3rem 0 2rem; border-top: 1px solid rgba(250,204,21,.1); background: linear-gradient(to bottom, rgba(12,10,9,0), rgba(21,128,61,.06)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-title { font-family: var(--font-shufa); font-size: 1.75rem; color: var(--jh-gold); margin-bottom: 1rem; }
.contact-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; color: var(--jh-light); }
.contact-item i { color: var(--jh-copper-light); width: 20px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 1rem; }
.qr-card { background: rgba(28,25,23,.7); border: 1px solid rgba(250,204,21,.12); border-radius: .75rem; padding: .75rem; text-align: center; }
.qr-card img { width: 100%; max-width: 120px; margin: 0 auto .5rem; border-radius: .5rem; }
.qr-label { color: var(--jh-muted); font-size: .85rem; }
.bot-card { display: inline-flex; align-items: center; gap: .75rem; background: rgba(21,128,61,.15); border: 1px solid rgba(21,128,61,.35); border-radius: .75rem; padding: 1rem; color: var(--jh-gold); transition: background .2s; }
.bot-card:hover { background: rgba(21,128,61,.28); }
.copyright { text-align: center; color: var(--jh-muted); font-size: .85rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,204,21,.08); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.revealed { opacity: 1; transform: none; }

/* Position-specific image sizing */

header img { height: 2.5rem; width: auto; }
.hero-logo { width: min(300px, 70vw); height: auto; }
.feature-card img { width: 100%; height: 200px; object-fit: cover; }
.qr-card img { width: 100%; max-width: 150px; height: auto; }
footer img { width: 100%; max-width: 120px; height: auto; }

/* Friendly links block */

.friendly-links.zjjh { padding: 3rem 1rem; background: #0c0a09; border-top: 1px solid rgba(180,83,9,.35); }
.friendly-links.zjjh .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.zjjh h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #FACC15; margin-bottom: .25rem; }
.friendly-links.zjjh h2 i { color: #15803D; margin-right: .5rem; }
.friendly-links.zjjh p { color: #A8A29E; margin-bottom: 1.5rem; }
.friendly-links.zjjh ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.zjjh li a { display: block; padding: .6rem .8rem; border-radius: .5rem; background: rgba(21,128,61,.1); border: 1px solid rgba(180,83,9,.35); color: #E7E5E4; font-size: .9rem; transition: .2s; }
.friendly-links.zjjh li a:hover { background: rgba(250,204,21,.12); border-color: #FACC15; color: #FACC15; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.zjjh ul { grid-template-columns: repeat(2, 1fr); } }

