/* ==========================================================================
   POPEYE MAGAZINE - GRAPHIC UI DESIGN SYSTEM
   Aesthetic: 100% Faithful Replica of POPEYE Magazine (popeyemagazine.jp)
   Typography: ALL SANS-SERIF (Noto Sans TC, system sans-serif) - NO SERIF
   Background: SOLID LIGHT BLUE (#D9E8F5) - NO GRADIENTS
   Animations: NO CHEAP LIFTING/UPWARD HOVER ANIMATIONS
   Modal: XIAOHONGSHU TWO-COLUMN DETAIL VIEW WITH UNCROPPED (CONTAIN) IMAGES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
  --color-popeye-bg: #D9E8F5;          /* Solid light blue from Popeye screenshot */
  --color-popeye-card-box: #D9E8F5;
  --color-box-white: #FFFFFF;
  --color-ink: #111111;
  --color-text-sub: #4A5568;
  --color-text-muted: #718096;
  --color-border: #111111;
  --color-popeye-logo: #6F94BD;
  --radius-card: 20px;
  --radius-sub: 16px;
  --radius-thumb: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-popeye-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--color-popeye-bg);
}
::-webkit-scrollbar-thumb {
  background: #B6CDE3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8FAECB;
}

/* ==========================================================================
   HEADER (Exact Popeye Layout: Solid Light Blue, Centered Logo, Clean Icons)
   ========================================================================== */
.site-header {
  background-color: var(--color-popeye-bg);
  padding: 18px 24px 14px;
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-left-issue {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #334155;
  text-transform: uppercase;
}

/* Authentic POPEYE Slate-Blue Logo */
.header-center-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popeye-logo-svg {
  height: 36px;
  display: block;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  padding: 4px;
  transition: opacity 0.15s ease;
}
.btn-header-icon:hover {
  opacity: 0.6;
}
.btn-header-icon:active {
  transform: scale(0.95);
}

/* ==========================================================================
   NAVIGATION BAR (5 Core Chapters - Sticky with Real-Time Scrollspy)
   ========================================================================== */
.popeye-nav-bar {
  background-color: var(--color-popeye-bg);
  padding: 8px 24px 16px;
  position: sticky;
  top: 0;
  z-index: 990;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav-container::-webkit-scrollbar {
  display: none;
}

/* Button style: NO upward-lift hover animation! Solid and tactile */
.nav-pill {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-pill:hover {
  background: #E8F0F8;
  border-color: #111111;
}

.nav-pill:active {
  transform: scale(0.97);
}

.nav-pill.active {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

/* ==========================================================================
   POPEYE 3-COLUMN EDITORIAL HERO GRID
   ========================================================================== */
.popeye-main-grid {
  max-width: 1480px;
  margin: 12px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

/* COLUMN 1: LEFT VERTICAL COLUMN */
.col-left {
  display: flex;
  flex-direction: column;
}

.col-header-jap {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
  display: block;
}

.left-snap-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sub);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #C9DBEB;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.left-snap-card:hover {
  opacity: 0.9;
}
.left-snap-card:active {
  transform: scale(0.98);
}

.left-snap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* COLUMN 2: CENTER HERO & FEATURED CARDS */
.col-center {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Large Featured Hero Card (古堰畫鄉 綠溪跳石 - Clean, No Jumpy Upward Lift) */
.popeye-hero-card {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background-color: #C9DBEB;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.popeye-hero-card:hover {
  opacity: 0.96;
}
.popeye-hero-card:active {
  transform: scale(0.99);
}

.popeye-hero-img-wrap {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.popeye-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* POPEYE STACKED OVERLAY BOXES */
.popeye-overlay {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 86%;
  z-index: 5;
}

.popeye-overlay-badge {
  background-color: var(--color-popeye-card-box);
  border: 1px solid var(--color-border);
  border-bottom: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  display: inline-block;
  color: #111;
  text-transform: uppercase;
}

.popeye-overlay-title {
  background-color: var(--color-popeye-card-box);
  border: 1px solid var(--color-border);
  padding: 13px 18px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: #111;
  width: 100%;
}

.popeye-overlay-credit {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-top: none;
  font-size: 11px;
  font-weight: 700;
  color: #222;
  padding: 3px 12px;
  display: inline-block;
}

/* Center Pair Grid (2 Half Cards) */
.center-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.popeye-half-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background-color: #C9DBEB;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.popeye-half-card:hover {
  opacity: 0.95;
}
.popeye-half-card:active {
  transform: scale(0.98);
}

.popeye-half-img-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
}
.popeye-half-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popeye-half-card .popeye-overlay-title {
  font-size: 15px;
  padding: 10px 14px;
}

/* COLUMN 3: RIGHT ISSUE BOX & FEED */
.col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Right Bordered Issue Box */
.popeye-issue-box {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.popeye-issue-box:hover {
  background-color: #EEF4FA;
}
.popeye-issue-box:active {
  transform: scale(0.98);
}

.issue-box-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #111;
  font-weight: 700;
}
.issue-box-text strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.issue-box-cover {
  width: 76px;
  height: 100px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.12);
}
.issue-box-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Column Medium Landscape Card */
.right-medium-card {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sub);
  overflow: hidden;
  position: relative;
  background-color: #C9DBEB;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.right-medium-card:hover {
  opacity: 0.92;
}
.right-medium-card:active {
  transform: scale(0.98);
}
.right-medium-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chronological Feed Stream */
.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}
.feed-stream-item:hover {
  opacity: 0.75;
}
.feed-stream-item:active {
  transform: scale(0.98);
}

.feed-stream-info {
  flex: 1;
}

.feed-stream-date {
  font-size: 11px;
  color: #111;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.feed-stream-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: #111;
}

.feed-stream-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #C9DBEB;
}
.feed-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   CHAPTER SECTIONS (1古堰畫鄉, 2千峽湖, 3麗水美食, 4松陽, 5龙溪草甸)
   ========================================================================== */
.chapter-section {
  max-width: 1480px;
  margin: 0 auto 50px;
  padding: 0 24px;
  scroll-margin-top: 100px;
}

.chapter-header {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.chapter-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.chapter-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111;
}

.chapter-name {
  font-size: 20px;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.02em;
}

.chapter-subhead {
  font-size: 12px;
  font-weight: 700;
  color: #4A5568;
}

/* Chapter Photo Grid */
.chapter-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.chapter-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background-color: #C9DBEB;
  cursor: pointer;
  height: 380px;
  transition: opacity 0.2s ease;
}
.chapter-card:hover {
  opacity: 0.95;
}
.chapter-card:active {
  transform: scale(0.98);
}

.chapter-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-card .popeye-overlay {
  max-width: 90%;
}
.chapter-card .popeye-overlay-title {
  font-size: 14.5px;
  padding: 8px 12px;
}

/* ==========================================================================
   XIAOHONGSHU STYLE TWO-COLUMN MODAL (UNCROPPED IMAGES)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}

.modal-box-xhs {
  background: #FFFFFF;
  border-radius: 20px;
  width: 1040px;
  max-width: 95vw;
  height: 720px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Close Button (top-right of right column) */
.xhs-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #475569;
  font-weight: 700;
  z-index: 30;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.xhs-close-btn:hover {
  background: #111111;
  color: #FFFFFF;
}
.xhs-close-btn:active {
  transform: scale(0.92);
}

/* LEFT MEDIA COLUMN (UNCROPPED IMAGE VIEWER) */
.xhs-media-col {
  flex: 1.25;
  height: 100%;
  background-color: #0B0F19; /* Pure dark matte theater backdrop */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* CRITICAL: OBJECT-FIT CONTAIN - NEVER CROPS PHOTOS */
.xhs-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Full complete uncropped photo! */
  display: block;
  user-select: none;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

/* Left & Right Arrow Buttons */
.xhs-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.15s ease;
  user-select: none;
}
.xhs-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}
.xhs-arrow-btn:active {
  transform: translateY(-50%) scale(0.92);
}
.xhs-arrow-btn.prev {
  left: 14px;
}
.xhs-arrow-btn.next {
  right: 14px;
}

/* Dots Indicator */
.xhs-dots-wrap {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}
.xhs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.xhs-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.xhs-dot.active {
  background: #FFFFFF;
  width: 16px;
  border-radius: 4px;
}

/* Photo Counter Badge (Top Right matching Xiaohongshu Web) */
.xhs-counter-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: 0.04em;
  user-select: none;
}

/* RIGHT NOTE COLUMN (XIAOHONGSHU STYLE NOTES) */
.xhs-note-col {
  flex: 0.85;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  position: relative;
}

/* NOTE HEADER PANEL (Chapter Tag, Large View Prompt, Preview Thumbnail Strip) */
.xhs-header-panel {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #E2E8F0;
  background: #FAFCFE;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xhs-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 44px; /* Space for close button */
}

.xhs-chapter-tag {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.xhs-zoom-hint {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

/* Horizontal Preview Strip of Uniform Cropped Square Thumbnails */
.xhs-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.xhs-preview-row::-webkit-scrollbar {
  height: 4px;
}
.xhs-preview-row::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.xhs-thumb-item {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  background-color: #E2E8F0;
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.xhs-thumb-item:hover {
  opacity: 0.85;
}

.xhs-thumb-item.active {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.xhs-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Unified cropped square thumbnails as requested! */
  display: block;
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX MODAL (Large Image View)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-ambient-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.15s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.lightbox-close-btn:active {
  transform: scale(0.92);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 5;
  width: 92vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.lightbox-main-img {
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
  display: block;
  user-select: none;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  transform-origin: center center;
}

.lightbox-main-img.zoomed {
  cursor: grab;
}

.lightbox-main-img.zoomed.grabbing {
  cursor: grabbing;
  transition: none;
}

/* Lightbox Toolbar with Navigation & Zoom Controls */
.lightbox-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  color: #FFFFFF;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-nav-group,
.lightbox-zoom-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-tool-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.lightbox-tool-btn:active {
  transform: scale(0.92);
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 44px;
  text-align: center;
  user-select: none;
}

.lightbox-zoom-percent {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  min-width: 46px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.lightbox-zoom-percent:hover {
  color: #FFFFFF;
}

/* Note Scroll Area */
.xhs-note-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 30px;
}

.xhs-note-title {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: 14px;
}

.xhs-note-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}
.xhs-note-text p {
  margin-bottom: 12px;
}

/* Note Tips Box */
.xhs-tips-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 14px;
}
.xhs-tips-card h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.xhs-tips-card ul {
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #475569;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-popeye-bg);
  border-top: 1.5px solid var(--color-border);
  padding: 40px 24px 30px;
  text-align: center;
}
.footer-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--color-popeye-logo);
}
.footer-text {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 20px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links a {
  color: #111;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-copy {
  font-size: 11px;
  color: #718096;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1180px) {
  .popeye-main-grid {
    grid-template-columns: 1fr 320px;
  }
  .col-left {
    display: none;
  }
  .chapter-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .popeye-main-grid {
    grid-template-columns: 1fr;
  }
  .center-pair-grid {
    grid-template-columns: 1fr;
  }
  .chapter-cards-grid {
    grid-template-columns: 1fr;
  }
  .popeye-hero-img-wrap {
    height: 340px;
  }
  .popeye-half-img-wrap {
    height: 280px;
  }
  .chapter-card {
    height: 300px;
  }
  
  /* Modal turns into vertical stack on mobile */
  .modal-box-xhs {
    flex-direction: column;
    height: 85vh;
  }
  .xhs-media-col {
    flex: none;
    height: 48%;
  }
  .xhs-note-col {
    flex: none;
    height: 52%;
    border-left: none;
    border-top: 1px solid #E2E8F0;
  }
}
