/* =============================================
   STEAM 2077 ink - Guide Page Styles
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #050505;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #00f0ff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #fce803;
}

img {
  max-width: 100%;
  display: block;
}

code {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  color: #00f0ff;
  font-size: 0.9em;
}

/* =============================================
   Container
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(252, 232, 3, 0.2);
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
}

.navbar .logo h1 span {
  color: #fce803;
}

.navbar .nav-links {
  display: flex;
  gap: 30px;
}

.navbar .nav-links a {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #fce803;
}

.navbar .cta-buttons .btn-primary {
  background: #00f0ff;
  color: #000;
  padding: 8px 20px;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.navbar .cta-buttons .btn-primary:hover {
  background: #fff;
  color: #000;
}

.navbar .mobile-menu {
  display: none;
}

.navbar .menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =============================================
   Hero Video Section
   ============================================= */
.hero-video-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-background-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050505 0%, #121212 50%, #050505 100%);
  z-index: 0;
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-video-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-video-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.3;
}

.hero-video-content p {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-video-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-video-buttons .btn-primary {
  background: #fce803;
  color: #000;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.3s, transform 0.3s;
}

.hero-video-buttons .btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.hero-video-buttons .btn-secondary {
  background: transparent;
  color: #00f0ff;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid #00f0ff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.3s, color 0.3s;
}

.hero-video-buttons .btn-secondary:hover {
  background: #00f0ff;
  color: #000;
}

/* =============================================
   Guide Content Section
   ============================================= */
.guide-content-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  font-family: 'Noto Sans SC', sans-serif;
}

.section-header p {
  font-size: 1rem;
  color: #888;
  max-width: 700px;
  margin: 0 auto;
}

.guide-steps {
  max-width: 900px;
  margin: 0 auto;
}

.guide-step {
  margin-bottom: 30px;
}

.guide-step-content {
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  border-left: 4px solid #fce803;
  padding: 30px;
  border-radius: 0 8px 8px 0;
}

.guide-step-content p {
  color: #ccc;
  line-height: 1.9;
  margin-bottom: 15px;
  font-size: 1rem;
}

.guide-step-content h3 {
  font-size: 1.2rem;
  color: #00f0ff;
  margin: 20px 0 15px;
  font-weight: 600;
}

.guide-step-content ul {
  list-style: none;
  padding: 0;
}

.guide-step-content ul li {
  color: #ccc;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.guide-step-content ul li::before {
  content: '>';
  color: #fce803;
  position: absolute;
  left: 0;
  font-family: monospace;
}

.game-url-example {
  background: #000;
  border: 1px solid #333;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
  overflow-x: auto;
}

.game-id-highlight {
  color: #fce803;
  font-weight: 700;
  background: rgba(252, 232, 3, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

.highlight-text {
  color: #fce803 !important;
  font-size: 1.1rem !important;
  font-weight: 500;
}

.guide-note {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
  color: #888;
}

.guide-note strong {
  color: #00f0ff;
}

.guide-note a {
  color: #00f0ff;
  word-break: break-all;
}

.guide-image {
  margin: 25px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
}

.guide-image img {
  width: 100%;
  object-fit: cover;
}

.image-caption {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  padding: 10px;
  background: #0a0a0a;
}

.guide-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #fce803, transparent);
  margin: 50px 0;
  opacity: 0.3;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
  padding: 80px 0;
  background: #080808;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: #00f0ff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
  font-size: 1rem;
  color: #ddd;
  font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #fce803;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  padding: 0 25px;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: #888;
  line-height: 1.8;
  margin-bottom: 10px;
}

.faq-answer ul {
  list-style: none;
  padding: 0;
}

.faq-answer ul li {
  color: #888;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.faq-answer ul li::before {
  content: '>';
  color: #fce803;
  position: absolute;
  left: 0;
  font-family: monospace;
}

.faq-answer a {
  color: #00f0ff;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.open .faq-question h3 {
  color: #fce803;
}

/* =============================================
   Download Section
   ============================================= */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, #fce803, #e0c800);
}

.download-content {
  text-align: center;
}

.download-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #000;
  margin-bottom: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
}

.download-content p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  margin-bottom: 30px;
}

.download-content .btn-primary {
  background: #050505;
  color: #fff;
  padding: 15px 40px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

.download-content .btn-primary:hover {
  background: #222;
  transform: translateY(-2px);
  color: #fce803;
}

.download-note {
  margin-top: 15px;
  font-size: 0.85rem;
  font-family: monospace;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: #020202;
  border-top: 1px solid #1a1a1a;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  font-family: 'Noto Sans SC', sans-serif;
}

.footer-logo h2 span {
  color: #fce803;
}

.footer-logo p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', sans-serif;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #666;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fce803;
}

.footer-contact ul li {
  color: #666;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #444;
  font-size: 0.8rem;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }

  .navbar .cta-buttons {
    display: none;
  }

  .navbar .mobile-menu {
    display: block;
  }

  .hero-video-content h1 {
    font-size: 1.8rem;
  }

  .guide-step-content {
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-question h3 {
    font-size: 0.9rem;
  }
}

/* =============================================
   Scrollbar
   ============================================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #fce803;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}
