/* ============================================
   HHPOKER Pop Art Style — 波普艺术风
   Red + Blue + Yellow on White
   Comic Book / Halftone / Warhol-inspired
   ============================================ */

/* --- CSS Variables --- */
:root {
  --pop-red: #E63946;
  --pop-blue: #1D3557;
  --pop-yellow: #F4D03F;
  --pop-white: #FFFFFF;
  --pop-black: #111111;
  --pop-cyan: #00B4D8;
  --pop-orange: #F77F00;
  --border-thick: 4px solid #111;
  --border-fat: 6px solid #111;
  --shadow-comic: 5px 5px 0px #111;
  --shadow-comic-sm: 3px 3px 0px #111;
  --halftone-sm: radial-gradient(circle, #111 1px, transparent 1px);
  --halftone-md: radial-gradient(circle, #111 2px, transparent 2px);
  --halftone-lg: radial-gradient(circle, #111 3px, transparent 3px);
  --halftone-red: radial-gradient(circle, #E63946 2px, transparent 2px);
  --halftone-blue: radial-gradient(circle, #1D3557 2px, transparent 2px);
  --halftone-yellow: radial-gradient(circle, #F4D03F 2px, transparent 2px);
  --halftone-white: radial-gradient(circle, rgba(255,255,255,0.6) 2px, transparent 2px);
  --text-outline: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
  --text-outline-white: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* --- Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--pop-white);
  color: var(--pop-black);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* --- Halftone Background Patterns --- */
.halftone-dots-sm {
  background-color: transparent;
  background-image: var(--halftone-sm);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}
.halftone-dots-md {
  background-color: transparent;
  background-image: var(--halftone-md);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}
.halftone-dots-lg {
  background-color: transparent;
  background-image: var(--halftone-lg);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.halftone-red-dots {
  background-color: transparent;
  background-image: var(--halftone-red);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
.halftone-blue-dots {
  background-color: transparent;
  background-image: var(--halftone-blue);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
.halftone-white-dots {
  background-color: transparent;
  background-image: var(--halftone-white);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}

/* --- Comic Text Outlines --- */
.comic-outline { text-shadow: var(--text-outline); }
.comic-outline-white { text-shadow: var(--text-outline-white); }

/* --- Bold Borders --- */
.border-comic { border: var(--border-thick); }
.border-comic-fat { border: var(--border-fat); }
.border-comic-red { border: 4px solid var(--pop-red); }
.border-comic-blue { border: 4px solid var(--pop-blue); }
.border-comic-yellow { border: 4px solid var(--pop-yellow); }

/* --- Comic Shadows --- */
.shadow-comic { box-shadow: var(--shadow-comic); }
.shadow-comic-sm { box-shadow: var(--shadow-comic-sm); }
.shadow-comic-hover { transition: all 0.2s ease; }
.shadow-comic-hover:hover {
  box-shadow: 7px 7px 0px #111;
  transform: translate(-3px, -3px);
}

/* --- Pop Art Burst Shapes --- */
.pop-burst {
  position: relative;
  display: inline-block;
}
.pop-burst::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  transform: translate(-50%, -50%);
  background: var(--pop-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: -1;
  animation: pop-rotate 12s linear infinite;
}
@keyframes pop-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Star burst */
.star-burst {
  position: relative;
}
.star-burst::after {
  content: '★';
  position: absolute;
  font-size: 3rem;
  color: var(--pop-yellow);
  text-shadow: var(--text-outline);
  animation: star-pop 1.5s ease-in-out infinite alternate;
}
@keyframes star-pop {
  0% { transform: scale(0.8) rotate(-10deg); }
  100% { transform: scale(1.2) rotate(10deg); }
}

/* --- Navigation --- */
.nav-pop {
  background: var(--pop-white);
  border-bottom: var(--border-fat);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-pop .nav-link {
  color: var(--pop-black);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.25rem;
  transition: all 0.15s ease;
  position: relative;
  font-size: 0.95rem;
}
.nav-pop .nav-link:hover {
  background: var(--pop-yellow);
  color: var(--pop-black);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0px #111;
}
.nav-pop .nav-link.active {
  background: var(--pop-red);
  color: #fff;
  box-shadow: 3px 3px 0px #111;
}
.nav-pop .logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pop-red);
  text-shadow: var(--text-outline);
  letter-spacing: -0.5px;
}
.mobile-menu-btn {
  border: 3px solid #111;
  background: var(--pop-yellow);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-comic-sm);
  transition: all 0.15s ease;
}
.mobile-menu-btn:hover {
  background: var(--pop-red);
  color: #fff;
}
.mobile-menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* --- Hero Section --- */
.hero-pop {
  background-color: var(--pop-yellow);
  position: relative;
  overflow: hidden;
}
.hero-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pop-red) 2px, transparent 2px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero-pop > * { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--pop-white);
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111,
    -4px -4px 0 var(--pop-red), 4px -4px 0 var(--pop-red),
    -4px 4px 0 var(--pop-red), 4px 4px 0 var(--pop-red);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--pop-black);
  text-shadow: var(--text-outline-white);
  background: rgba(255,255,255,0.7);
  display: inline-block;
  padding: 0.25rem 1rem;
  border: 3px solid #111;
}

/* Hero comic dots accent circles */
.hero-dot-circle {
  position: absolute;
  border-radius: 50%;
  border: 4px solid #111;
  pointer-events: none;
  z-index: 2;
}
.hero-dot-circle.red {
  width: 80px; height: 80px;
  background: var(--pop-red);
  right: 10%; top: 20%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px);
  background-size: 10px 10px;
}
.hero-dot-circle.blue {
  width: 60px; height: 60px;
  background: var(--pop-blue);
  left: 5%; bottom: 30%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px);
  background-size: 8px 8px;
}

/* --- Buttons --- */
.btn-pop {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.875rem 2.5rem;
  border: var(--border-thick);
  box-shadow: var(--shadow-comic);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-size: 1rem;
}
.btn-pop:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #111;
}
.btn-pop:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #111;
}
.btn-pop-red {
  background: var(--pop-red);
  color: #fff;
}
.btn-pop-blue {
  background: var(--pop-blue);
  color: #fff;
}
.btn-pop-yellow {
  background: var(--pop-yellow);
  color: var(--pop-black);
}
.btn-pop-white {
  background: var(--pop-white);
  color: var(--pop-black);
}
.btn-pop-black {
  background: var(--pop-black);
  color: #fff;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--pop-white);
  border: var(--border-fat);
  box-shadow: var(--shadow-comic);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px #111;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--pop-yellow) 2px, transparent 2px);
  background-size: 10px 10px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.feature-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 4px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.feature-icon.red { background: var(--pop-red); color: #fff; }
.feature-icon.blue { background: var(--pop-blue); color: #fff; }
.feature-icon.yellow { background: var(--pop-yellow); color: #111; }

/* --- Stats Section --- */
.stats-pop {
  background: var(--pop-blue);
  position: relative;
  overflow: hidden;
}
.stats-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
  background-size: 15px 15px;
  background-position: 0 0, 7.5px 7.5px;
  pointer-events: none;
}
.stat-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--pop-yellow);
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111;
}
.stat-label {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0 #111;
}

/* --- Testimonial Speech Bubbles --- */
.speech-bubble {
  position: relative;
  background: var(--pop-white);
  border: var(--border-fat);
  box-shadow: var(--shadow-comic);
  padding: 2rem;
  border-radius: 0;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50px;
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 25px solid #111;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 54px;
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 20px solid #fff;
  z-index: 1;
}
.speech-bubble.blue-bg { background: var(--pop-blue); color: #fff; }
.speech-bubble.blue-bg::before { border-top-color: var(--pop-blue); }
.speech-bubble.yellow-bg { background: var(--pop-yellow); }
.speech-bubble.yellow-bg::before { border-top-color: var(--pop-yellow); }

/* --- FAQ Accordion --- */
.faq-item {
  border: var(--border-thick);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-q {
  padding: 1.25rem 1.5rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}
.faq-q.red { background: var(--pop-red); color: #fff; }
.faq-q.blue { background: var(--pop-blue); color: #fff; }
.faq-q.yellow { background: var(--pop-yellow); color: #111; }
.faq-q:hover {
  filter: brightness(1.1);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #fff;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 1.25rem 1.5rem;
}
.faq-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  font-weight: 900;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* --- CTA Section --- */
.cta-pop {
  background: var(--pop-red);
  position: relative;
  overflow: hidden;
}
.cta-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 3px, transparent 3px);
  background-size: 25px 25px;
  pointer-events: none;
}
.cta-title {
  color: var(--pop-yellow);
  font-weight: 900;
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111,
    -2px 2px 0 #111, 2px 2px 0 #111;
}
.cta-sub {
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 0 #111;
}

/* --- Footer --- */
.footer-pop {
  background: #111;
  color: #fff;
  border-top: 6px solid var(--pop-yellow);
}
.footer-pop .footer-heading {
  color: var(--pop-yellow);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-pop a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-pop a:hover { color: var(--pop-yellow); }
.footer-bottom {
  border-top: 3px solid #333;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: #888;
}

/* --- Download Page --- */
.download-card {
  background: #fff;
  border: var(--border-fat);
  box-shadow: var(--shadow-comic);
  padding: 2rem;
  text-align: center;
  transition: all 0.25s ease;
}
.download-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px #111;
}
.download-card.ios-card { border-color: var(--pop-blue); }
.download-card.android-card { border-color: var(--pop-red); }
.download-card.pc-card { border-color: var(--pop-yellow); }

.download-icon-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 5px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background-size: 12px 12px;
}
.download-icon-circle.ios { background-color: var(--pop-blue); color: #fff; }
.download-icon-circle.android { background-color: var(--pop-red); color: #fff; }
.download-icon-circle.pc { background-color: var(--pop-yellow); color: #111; }

/* QR Code box */
.qr-box {
  display: inline-block;
  border: var(--border-thick);
  box-shadow: var(--shadow-comic);
  background: #fff;
  padding: 1rem;
}
.qr-box-inner {
  width: 180px; height: 180px;
  background: var(--pop-yellow);
  border: 3px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* --- Steps --- */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid #111;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: var(--shadow-comic-sm);
}
.step-badge.red { background: var(--pop-red); color: #fff; }
.step-badge.blue { background: var(--pop-blue); color: #fff; }
.step-badge.yellow { background: var(--pop-yellow); color: #111; }

/* --- About Page --- */
.about-hero {
  background: var(--pop-blue);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 2px, transparent 2px);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  pointer-events: none;
}

.value-card {
  background: #fff;
  border: var(--border-thick);
  box-shadow: var(--shadow-comic);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.2s ease;
}
.value-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #111;
}

/* --- To Top Button --- */
#toTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid #111;
  background: var(--pop-yellow);
  color: #111;
  font-weight: 900;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-comic-sm);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#toTopBtn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #111;
}
#toTopBtn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #111;
}

/* --- Pulsing pop animation --- */
@keyframes pop-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.pop-pulse {
  animation: pop-pulse 2s ease-in-out infinite;
}

/* --- Warhol-style repeating color blocks --- */
.warhol-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.warhol-strip .warhol-cell {
  padding: 2rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  border: 3px solid #111;
  text-shadow: var(--text-outline);
  color: #fff;
}
.warhol-strip .warhol-cell:nth-child(1) { background: var(--pop-red); }
.warhol-strip .warhol-cell:nth-child(2) { background: var(--pop-blue); }
.warhol-strip .warhol-cell:nth-child(3) { background: var(--pop-yellow); color: #111; text-shadow: var(--text-outline-white); }
.warhol-strip .warhol-cell:nth-child(4) { background: var(--pop-cyan); }

/* --- Animated Comic Explosion --- */
@keyframes comic-boom {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.comic-boom { animation: comic-boom 0.5s ease-out forwards; }

/* --- Section titles --- */
.section-title-pop {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--pop-red);
  text-shadow: var(--text-outline);
  text-align: center;
  display: inline-block;
}
.section-title-pop.blue { color: var(--pop-blue); }
.section-title-pop.yellow { color: var(--pop-yellow); text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111; }

/* Pop-art underline */
.pop-underline {
  position: relative;
}
.pop-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--pop-yellow);
  border: 2px solid #111;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-pop .nav-links { display: none; }
  .nav-pop .nav-links.open { display: flex; flex-direction: column; }
  .hero-dot-circle { display: none; }
  .warhol-strip { grid-template-columns: 1fr; }
}

/* --- Ben-Day dot overlay for images placeholders --- */
.benday-overlay {
  position: relative;
}
.benday-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}

/* --- Highlight tag --- */
.pop-tag {
  display: inline-block;
  background: var(--pop-yellow);
  color: #111;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border: 3px solid #111;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-comic-sm);
}

/* --- Price / emphasis block --- */
.price-pop {
  display: inline-block;
  background: var(--pop-red);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 4px solid #111;
  box-shadow: var(--shadow-comic);
  transform: rotate(-2deg);
}

/* --- Check list --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.4rem 0;
  font-weight: 600;
}
.check-list li::before {
  content: '✓ ';
  color: var(--pop-red);
  font-weight: 900;
  font-size: 1.1rem;
}

/* --- Alert/Badge --- */
.pop-badge {
  display: inline-block;
  background: var(--pop-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border: 2px solid #111;
  border-radius: 0;
  text-transform: uppercase;
}
