/**
 * PC 零散页面样式 (404等)
 */

/* === Skip link (accessibility) === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--accent-color, #00ff9d);
  color: #000;
  font-weight: 600;
  z-index: 99999;
}

/* === 404.php === */
.error-page {
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  font-size: 72px;
  color: #e74c3c;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 30px;
}

.error-page .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.error-page .btn-primary:hover {
  background: #2980b9;
}

/* === cookie-consent.php === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--card-bg, #1a1a2e);
  border-top: 1px solid var(--border-color, #333);
  padding: 16px 24px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary, #888);
}
.cookie-content a {
  color: var(--accent-color, #00ff9d);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 8px;
}
.cookie-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.cookie-accept {
  background: var(--accent-color, #00ff9d);
  color: #000;
}
.cookie-accept:hover {
  background: #00cc82;
}

/* === popup-ad.php === */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.popup-box {
  position: relative;
  background: var(--card-bg, #1a1a2e);
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.popup-close {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.popup-close:hover { background: rgba(255,0,0,.6); }
.popup-link { display: block; }
.popup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.popup-content { padding: 24px; text-align: center; }
.popup-title {
  font-size: 18px;
  color: var(--text-primary, #e0e0e0);
  margin: 0 0 12px;
}
.popup-text {
  font-size: 14px;
  color: var(--text-secondary, #888);
  margin: 0 0 20px;
  line-height: 1.6;
}
.popup-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent-color, #00ff9d);
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.popup-btn:hover { background: #00cc82; }

/* === marquee.php === */
.marquee-bar {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
  gap: 12px;
}
.marquee-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  font-size: 14px;
  padding-right: 50px;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.marquee-text a {
  color: inherit;
  text-decoration: underline;
}
.marquee-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-color, #00ff9d);
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-btn:hover { background: #00cc82; }

/* === banner-carousel.php === */
.banner-carousel {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}
.banner-slides {
  position: relative;
  width: 100%;
}
.banner-slide {
  display: none;
  width: 100%;
}
.banner-slide.active {
  display: block;
}
.banner-slide a {
  display: block;
}
.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.banner-dot.active { background: #fff; }
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.banner-nav:hover { background: rgba(0,0,0,.7); }
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }

/* === hot-recommend.php === */
.hot-recommend-section {
  margin-bottom: 24px;
}
.hot-recommend-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hot-recommend-section .section-heading {
  font-size: 20px;
  margin: 0;
  color: var(--text-primary, #e0e0e0);
}
.hot-recommend-section .section-count {
  font-size: 13px;
  color: var(--text-secondary, #888);
}
.hot-recommend-grid {
  display: grid;
  gap: 12px;
}
.grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.grid-col-4 { grid-template-columns: repeat(4, 1fr); }
.grid-col-5 { grid-template-columns: repeat(5, 1fr); }
.grid-col-6 { grid-template-columns: repeat(6, 1fr); }
.hot-item-card {
  display: block;
  text-decoration: none;
  background: var(--card-bg, #1a1a2e);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.hot-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.hot-item-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.hot-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hot-item-title {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-primary, #e0e0e0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .grid-col-5, .grid-col-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-col-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-col-3, .grid-col-4, .grid-col-5, .grid-col-6 { grid-template-columns: repeat(2, 1fr); }
}

/* === Static pages (privacy/terms/about) === */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}
.static-page h1 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text-primary, #e0e0e0);
}
.static-page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--text-primary, #e0e0e0);
}
.static-page p,
.static-page ul,
.static-page ol {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--text-secondary, #888);
}
.static-page ul,
.static-page ol {
  padding-left: 24px;
}
.static-page li {
  margin-bottom: 8px;
}
.static-page a {
  color: var(--accent-color, #00ff9d);
  text-decoration: none;
}
.static-page a:hover {
  text-decoration: underline;
}
.static-page .page-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #333);
  font-size: 13px;
  color: var(--text-secondary, #888);
}
