/* ============================================
   Iris Focus — 涟漪·光瞳聚焦翻页游戏平台样式系统
   瞳孔放射 × 菲涅尔光圈 × 圆形瞳环 × 光圈列表
   ============================================ */

/* ===== 全局重置 ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== Body — 瞳孔放射渐变 ===== */
.fold-body {
  font-family: 'Times New Roman', 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  background: radial-gradient(circle at 50% 40%, #FFFBF0 0%, #FFF3E0 40%, #FFE4C4 70%, #F5D5A8 100%);
  background-attachment: fixed;
  color: #2D1B00;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 菲涅尔光圈纹理 — 呼吸缩放 ===== */
.fold-fresnel-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 40%, rgba(255,215,0,0.15) 0px, rgba(255,215,0,0.15) 3px, transparent 3px, transparent 12px);
  animation: fresnel-breathe 6s ease-in-out infinite;
}
@keyframes fresnel-breathe {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 顶部粘性导航栏 — 暖色毛玻璃 ===== */
.fold-navbar {
  position: sticky; top: 0; z-index: 100; width: 100%; height: 72px;
  background: rgba(255, 251, 240, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,130,70,0.15);
}
.fold-navbar-inner {
  max-width: 1600px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 24px; gap: 28px;
}
/* Logo 金色渐变字标 */
.fold-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(90deg, #D4920B, #F5C842);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none; letter-spacing: 2px;
  filter: drop-shadow(0 0 8px rgba(212,146,11,0.4));
  white-space: nowrap; flex-shrink: 0;
}
.fold-logo:hover { filter: brightness(1.2) drop-shadow(0 0 12px rgba(245,200,66,0.6)); }

/* 主导航链接 */
.fold-nav-links { display: flex; align-items: center; gap: 36px; }
.fold-nav-link {
  color: #6B6B6B; text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 1.5px; position: relative; padding: 4px 0;
  transition: color 0.3s; white-space: nowrap;
}
/* 金色下划线从中间向两侧展开 */
.fold-nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px;
  background: #D4920B; border-radius: 1px; transition: all 0.3s; transform: translateX(-50%);
}
.fold-nav-link:hover { color: #D4920B; }
.fold-nav-link:hover::after { width: 100%; }

/* 搜索框 */
.fold-search-wrap { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.fold-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.fold-search-input {
  width: 100%; padding: 10px 16px 10px 42px; height: 44px;
  background: #FFF0DC;
  border: 1px solid rgba(180,130,70,0.2); border-radius: 10px;
  color: #2D1B00; font-family: 'Rajdhani', sans-serif;
  font-size: 14px; outline: none; transition: all 0.3s;
}
.fold-search-input::placeholder { color: #C49350; }
.fold-search-input:focus {
  border-color: #D4920B;
  box-shadow: 0 0 15px rgba(212,146,11,0.3);
}

/* 汉堡菜单按钮 */
.fold-mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: transparent;
  border: 1px solid rgba(180,130,70,0.3); border-radius: 8px;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
.fold-mobile-menu-btn span { display: block; width: 100%; height: 2px; background: #A36200; border-radius: 1px; transition: all 0.3s; }
.fold-mobile-menu-btn.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.fold-mobile-menu-btn.active span:nth-child(2){opacity:0;}
.fold-mobile-menu-btn.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}

/* 移动端导航面板 */
.fold-mobile-nav-panel {
  display: none; background: rgba(255,251,240,0.95); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,130,70,0.15); overflow: hidden;
  max-height: 0; transition: max-height 0.4s;
}
.fold-mobile-nav-panel.open { max-height: 360px; }
.fold-mobile-nav-links { display: flex; flex-direction: column; padding: 12px 24px; gap: 4px; }
.fold-mobile-nav-links .fold-nav-link { padding: 12px 16px; border-radius: 10px; font-size: 15px; letter-spacing: .5px; color: #6B6B6B; transition: all .2s; }
.fold-mobile-nav-links .fold-nav-link:hover { background: rgba(212,146,11,.08); color: #D4920B; }

/* ===== 瞳环阵列精选区 — 2×2圆形瞳环 ===== */
.fold-iris-section {
  position: relative; max-width: 1600px; margin: 0 auto;
  padding: 24px 24px 0; height: 221px; overflow: hidden;
}
.fold-iris-grid {
  display: grid; grid-template-columns: repeat(2, 90px); gap: 20px;
  justify-content: center; align-items: center;
  height: 200px;
}
/* 瞳环卡片 — 正圆形 */
.fold-iris-card {
  position: relative; width: 90px; height: 90px;
  border-radius: 50%; overflow: visible;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}
.fold-iris-card.hint {
  filter: brightness(1.08);
}
.fold-iris-card.focused {
  transform: scale(1.2);
  z-index: 10;
}
.fold-iris-card.unfocused {
  transform: scale(0.85);
  filter: blur(0.5px);
  opacity: 0.6;
}
.fold-iris-image {
  width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  background: #FFE8CC;
  position: relative; z-index: 2;
}
.fold-iris-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* 内圈金色细环 */
.fold-iris-inner-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,215,0,0.6);
  pointer-events: none; z-index: 3;
  transition: all 0.3s;
}
/* 外圈半透彩虹环 */
.fold-iris-outer-ring {
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#FFFBF0, #FFFBF0) padding-box,
              linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,165,0,0.3), rgba(255,255,0,0.3), rgba(0,128,0,0.3), rgba(0,0,255,0.3), rgba(128,0,128,0.3)) border-box;
  pointer-events: none; z-index: 1;
  transition: all 0.3s;
}
/* 聚焦状态 — 外圈放大且旋转 */
.fold-iris-card.focused .fold-iris-outer-ring {
  inset: -12px;
  border-width: 3px;
  animation: iris-halo-spin 10s linear infinite;
}
@keyframes iris-halo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* 游戏名称标签 — 半透黑底药丸 */
.fold-iris-label {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 2px 10px; border-radius: 12px;
  font-size: 10px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none; z-index: 5;
  backdrop-filter: blur(4px);
}
.fold-iris-card.focused .fold-iris-label {
  opacity: 1; bottom: -10px;
}
/* 光波粒子 */
.fold-iris-particles {
  position: absolute; inset: -20px;
  border-radius: 50%; pointer-events: none; z-index: 4;
  opacity: 0; transition: opacity 0.3s;
}
.fold-iris-card.focused .fold-iris-particles {
  opacity: 1;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 30%, transparent 70%);
  animation: particle-pulse 2s ease-out infinite;
}
@keyframes particle-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* 触摸反馈：光晕环收缩 */
.fold-iris-card:active {
  transform: scale(0.95) !important;
}

/* ===== 分类横幅 ===== */
.fold-category-section { padding: 20px 24px; max-width: 1600px; margin: 0 auto; }
.fold-category-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: rgba(180,130,70,.3) transparent; padding: 4px 0;
}
.fold-category-scroll::-webkit-scrollbar { height: 6px; }
.fold-category-scroll::-webkit-scrollbar-track { background: transparent; }
.fold-category-scroll::-webkit-scrollbar-thumb { background: rgba(180,130,70,.3); border-radius: 3px; }
.fold-category-card {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; min-width: 140px; height: 100px; border-radius: 14px;
  border: 1px solid rgba(180,130,70,0.2); text-decoration: none;
  transition: all .3s; position: relative; overflow: hidden;
}
.fold-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(180,130,70,0.2);
  border-color: #DAA520;
}
.fold-category-emoji { font-size: 28px; position: relative; z-index: 1; }
.fold-category-label {
  font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 1px;
  text-transform: uppercase; position: relative; z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== 光圈列表式游戏分区 ===== */
.fold-main { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 0 0 40px; }
.fold-iris-list-section {
  margin: 0 24px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(180,130,70,0.12);
  margin-bottom: 8px;
}
.fold-iris-list-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 0 20px; height: 48px; cursor: pointer; transition: background 0.2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.fold-iris-list-header:hover { background: rgba(212,146,11,0.06); }
.fold-iris-list-header:active { background: rgba(212,146,11,0.1); }
.fold-iris-list-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 光瞳圆点 */
.fold-iris-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #C49350; transition: all 0.3s;
  box-shadow: 0 0 0 0 rgba(212,146,11,0);
}
.fold-iris-dot.glow {
  background: #D4920B;
  box-shadow: 0 0 12px rgba(212,146,11,0.5), 0 0 24px rgba(212,146,11,0.2);
}

.fold-iris-list-arrow {
  font-size: 14px; color: #8B5E3C; transition: transform 0.3s;
}
.fold-iris-list-section.open .fold-iris-list-arrow { transform: rotate(180deg); }

.fold-section-title {
  font-family: 'Times New Roman', serif; font-size: 20px; font-weight: 300;
  color: #8B5E3C; letter-spacing: 2px;
}
.fold-section-more {
  color: #C49350; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .5px; transition: all .3s;
}
.fold-section-more:hover { color: #A36200; letter-spacing: 1px; }

/* 光圈列表内容 — 弹性展开 */
.fold-iris-list-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.33,1,0.68,1);
}
.fold-iris-list-section.open .fold-iris-list-content {
  max-height: 2000px;
}

/* ===== 游戏网格（响应式）===== */
.fold-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 16px; }
@media (min-width: 640px) { .fold-games-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .fold-games-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
@media (min-width: 1440px) { .fold-games-grid { grid-template-columns: repeat(7, 1fr); } }

/* ===== 透明圆角条徽章游戏卡片 ===== */
.fold-game-card {
  background: #FFFFFF;
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s, border-color 0.3s;
  position: relative; border: 1px solid rgba(180,130,70,0.12);
  /* fade-in */
  opacity: 0; transform: translateY(20px);
}
.fold-game-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s, border-color 0.3s; }
.fold-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,146,11,0.3);
  box-shadow: 0 8px 24px rgba(180,130,70,0.2);
}
/* 触摸反馈：光晕环收缩 */
.fold-game-card:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}
.fold-card-link { display: block; text-decoration: none; color: inherit; }

/* 卡片图片区域 — 4:3 */
.fold-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #FFE8CC; }
.fold-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fold-game-card:hover .fold-card-image img { transform: scale(1.05); }
/* 棱镜折射渐变覆盖 */
.fold-card-refraction {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,146,11,0.08), rgba(245,200,66,0.05));
  pointer-events: none; z-index: 1;
}

/* 透明圆角条徽章 */
.fold-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,215,0,0.2);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  color: #DAA520; padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; z-index: 3; border: none;
}

/* 卡片信息区 */
.fold-card-info { padding: 10px 10px 12px; }
.fold-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  color: #A36200;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fold-game-card:hover .fold-card-title { color: #8B5E00; }
.fold-card-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fold-card-tag {
  padding: 2px 8px; border-radius: 12px; font-size: 10px;
  color: #C49350; background: rgba(255,248,237,0.8);
  border: 1px solid rgba(218,165,32,0.2);
  letter-spacing: 0.5px; font-weight: 500;
}

/* ===== 广告容器 ===== */
.fold-ad-container {
  text-align: center; padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 1600px; margin: 8px auto 0;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(180,130,70,0.15); border-radius: 12px;
}
.fold-ad-label { color: #C49350; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }

/* ===== 详情页 ===== */
.fold-detail-page { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; }
.fold-detail-back { margin-bottom: 24px; }
.fold-back-btn {
  display: inline-flex; align-items: center; gap: 6px; color: #A36200;
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(255,240,220,0.9); border: 1px solid rgba(180,130,70,0.2);
  transition: all .3s; letter-spacing: .3px;
}
.fold-back-btn:hover { background: rgba(255,240,220,1); border-color: #A36200; box-shadow: 0 0 15px rgba(212,146,11,0.2); }

.fold-detail-hero {
  display: flex; gap: 32px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(180,130,70,0.12); border-radius: 20px; padding: 28px; margin-bottom: 28px;
}
.fold-detail-thumb {
  flex-shrink: 0; width: 340px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(180,130,70,0.12); position: relative;
}
.fold-detail-thumb img { width: 100%; height: auto; display: block; }
.fold-detail-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.fold-detail-title {
  font-family: 'Times New Roman', serif; font-size: 28px; font-weight: 700;
  color: #8B5E3C; line-height: 1.2; letter-spacing: 1px;
}
.fold-detail-desc { color: #6B6B6B; font-size: 15px; line-height: 1.8; }
.fold-play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 42px;
  background: linear-gradient(90deg, #D4920B, #F5C842);
  color: #fff; border: none; border-radius: 12px; font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: .5px;
  width: fit-content; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.fold-play-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transition: left .5s;
}
.fold-play-btn:hover::before { left: 100%; }
.fold-play-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(212,146,11,0.5); }
.fold-play-btn:active { transform: scale(0.95); }

.fold-game-iframe {
  width: 100%; height: 650px; border-radius: 16px; overflow: hidden;
  margin-bottom: 28px; background: #fff; border: 1px solid rgba(180,130,70,0.12);
  box-shadow: 0 0 20px rgba(180,130,70,0.08);
}
.fold-game-iframe iframe { width: 100%; height: 100%; border: none; }

.fold-related-section { margin-top: 48px; }
.fold-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .fold-related-grid { grid-template-columns: repeat(4, 1fr); } }
.fold-related-card .fold-card-info { padding: 8px 10px 10px; }
.fold-related-card .fold-card-title { font-size: 12px; }

/* ===== 静态页面 ===== */
.fold-static-page { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 28px 24px 48px; }
.fold-static-back { margin-bottom: 24px; }
.fold-static-title {
  font-family: 'Times New Roman', serif; font-size: 28px; font-weight: 700;
  color: #8B5E3C; margin-bottom: 24px; letter-spacing: 1px;
}
.fold-static-content {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(180,130,70,0.12); border-radius: 16px; padding: 36px;
  color: #2D1B00; line-height: 1.85; font-size: 15px;
}
.fold-static-content p { margin-bottom: 16px; }
.fold-static-content strong { color: #A36200; }
.fold-static-content ul, .fold-static-content ol { margin: 12px 0 12px 24px; }
.fold-static-content li { margin-bottom: 8px; }
.fold-static-content a { color: #D4920B; text-decoration: underline; }
.fold-static-content h2, .fold-static-content h3, .fold-static-content h4 {
  font-family: 'Times New Roman', serif; color: #8B5E3C;
  margin-top: 24px; margin-bottom: 12px; font-weight: 300; letter-spacing: 2px;
}

/* ===== 手机端底部导航栏 ===== */
.fold-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  height: 64px; background: rgba(255,251,240,0.93); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(180,130,70,0.25); box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  justify-content: space-around; align-items: center;
}
.fold-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #6B6B6B; text-decoration: none; font-size: 10px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: color .3s;
}
.fold-bottom-nav a:hover, .fold-bottom-nav .fold-bottom-nav-active { color: #A36200; }
.fold-bottom-nav-icon { font-size: 20px; }

/* ===== 响应式调整 ===== */
@media (max-width: 1024px) {
  .fold-nav-links { display: none; }
  .fold-search-wrap { display: none; }
  .fold-mobile-menu-btn { display: flex; }
  .fold-mobile-nav-panel { display: block; }
  .fold-detail-hero { flex-direction: column; }
  .fold-detail-thumb { width: 100%; max-width: 420px; }
}

@media (max-width: 640px) {
  .fold-navbar { height: 58px; }
  .fold-logo { font-size: 22px; }
  .fold-category-section { display: none; }
  .fold-bottom-nav { display: flex !important; }
  .fold-main { padding-bottom: 80px; }
  .fold-detail-page { padding-bottom: 80px; }
  .fold-static-page { padding-bottom: 80px; }
  .fold-iris-section { padding: 16px 16px 0; height: 200px; }
  .fold-iris-grid { grid-template-columns: repeat(2, 75px); gap: 16px; }
  .fold-iris-card { width: 75px; height: 75px; }
  .fold-iris-list-section { margin: 0 16px; }
  .fold-games-section { padding: 20px 16px 0; }
  .fold-section-title { font-size: 17px; }
  .fold-detail-page { padding: 16px; }
  .fold-detail-hero { padding: 16px; }
  .fold-detail-title { font-size: 22px; }
  .fold-game-iframe { height: 450px; }
  .fold-static-page { padding: 16px; }
  .fold-static-content { padding: 20px; }
  .fold-games-grid { gap: 12px; }
  .fold-footer .fold-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #FFFBF0; }
::-webkit-scrollbar-thumb { background: rgba(180,130,70,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(180,130,70,0.5); }
::selection { background: rgba(212,146,11,0.3); color: #2D1B00; }
a { color: inherit; }
