/* ===== Play Page Styles ===== */
/* Auto-extracted from src/play.html */

/* Global Section Standards */
    .section {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 100px 0;
      position: relative;
    }

    /* Hero */
    .hero {
      height: 100vh;
      position: relative;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background-size: cover;
      background-position: center;
      z-index: 1;
      filter: brightness(0.6);
      transform: scale(1.1);
      animation: heroZoomOut 20s forwards ease-out;
    }
    @keyframes heroZoomOut { to { transform: scale(1); } }
    .hero-content { position: relative; z-index: 2; color: white; }
    .hero h1 { font-size: 4.5rem; font-weight: 900; margin-bottom: 24px; }
    .hero p.subtitle { 
      font-size: 1.5rem; 
      color: #ffffff !important; 
      font-weight: 500; 
      opacity: 1 !important; 
      max-width: 800px; 
      margin: 0 auto;
    }

    /* Scenario Cards */
    #section-scenarios { background: #0a0a0a; color: white; }
    #section-scenarios .section-header h2 { color: #ffffff; }
    #section-scenarios .section-header p { color: rgba(255, 255, 255, 0.8); }
    .scenario-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      margin-top: 60px;
    }
    .scenario-card {
      position: relative;
      height: 60vh;
      border-radius: 24px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 40px;
      transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .scenario-card:hover { transform: translateY(-15px); }
    .scenario-bg {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background-size: cover;
      background-position: center;
      z-index: 1;
      transition: transform 1s ease;
    }
    .scenario-card:hover .scenario-bg { transform: scale(1.1); }
    .scenario-card::after {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
      z-index: 2;
    }
    .scenario-card-content { position: relative; z-index: 3; }
    .scenario-card h4 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
    .scenario-card p { font-size: 1rem; opacity: 0.9; color: #fff; line-height: 1.6; }

    /* Game Library Slider Logic */
    #section-games { background: #ffffff; color: #111; overflow: hidden; }
    .game-filter-nav { display: flex; justify-content: center; gap: 40px; margin: 50px 0; }
    .filter-btn {
      background: none; border: none; font-size: 1.2rem; font-weight: 800;
      color: #ccc; cursor: pointer; padding: 12px 0; position: relative; transition: 0.3s;
    }
    .filter-btn.active { color: #0066ff; }
    .filter-btn.active::after {
      content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
      background: #0066ff; border-radius: 2px;
    }
    .game-grid-play {
      position: relative;
      height: 420px;
      width: 100%;
    }
    .game-slide {
      position: absolute;
      top: 0; left: 0; width: 100%;
      display: grid; 
      grid-template-columns: repeat(5, 1fr); 
      gap: 30px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .game-slide.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      z-index: 5;
    }
    .game-card-play {
      background: #fff; border-radius: 20px; overflow: hidden;
      box-shadow: 0 15px 40px rgba(0,0,0,0.06); transition: 0.4s;
      border: 1px solid #eee;
    }
    .game-card-play:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); border-color: #0066ff; }
    .game-cover-play { height: 260px; background-size: cover; background-position: center; background-color: #f0f0f0; position: relative; }
    .game-tag-steam {
      position: absolute; top: 15px; right: 15px; background: #0066ff; color: white;
      font-size: 0.75rem; padding: 5px 12px; border-radius: 6px; font-weight: 800;
    }
    .game-body-play { padding: 20px; text-align: center; }
    .game-title-play { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; color: #111; display: block; }
    .game-desc-play { font-size: 0.85rem; color: #777; font-weight: 500; }

    /* Steps Section */
    #section-steps { 
      background: #f8f9fa;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .step-grid { 
      display: grid; 
      grid-template-columns: repeat(3, 1fr); 
      gap: 60px; 
      margin-top: 60px; 
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      position: relative;
    }
    /* Connector Lines */
    .step-grid::before {
      content: '';
      position: absolute;
      top: 120px;
      left: 15%;
      width: 70%;
      height: 2px;
      background: repeating-linear-gradient(to right, #0066ff 0, #0066ff 10px, transparent 10px, transparent 20px);
      z-index: 1;
      opacity: 0.2;
    }
    .step-card-play { 
      text-align: center; 
      position: relative; 
      z-index: 2;
      transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .step-card-play:hover {
      transform: translateY(-10px);
    }
    .step-img-wrapper {
      position: relative;
      margin-bottom: 30px;
    }
    .step-img { 
      height: 240px; 
      border-radius: 24px; 
      background-size: cover; 
      background-position: center; 
      border: 1px solid #fff;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
      animation: stepFloat 4s ease-in-out infinite alternate;
    }
    .step-card-play:nth-child(2) .step-img { animation-delay: 0.5s; }
    .step-card-play:nth-child(3) .step-img { animation-delay: 1s; }

    @keyframes stepFloat {
      from { transform: translateY(0); }
      to { transform: translateY(-15px); }
    }
    .step-card-play:hover .step-img {
      transform: scale(1.05);
      box-shadow: 0 30px 60px rgba(0,102,255,0.15);
      border-color: #0066ff;
    }
    .step-badge {
      width: 44px; height: 44px; background: #0066ff; color: white;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      margin: -22px auto 20px; font-weight: 800; font-size: 1.2rem;
      position: relative; z-index: 3;
      box-shadow: 0 10px 20px rgba(0,102,255,0.3);
      transition: 0.3s;
    }
    .step-card-play:hover .step-badge {
      transform: scale(1.1) rotate(360deg);
      background: #00D4AA;
    }
    .step-card-play h4 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #111; }
    .step-card-play p { color: #666; line-height: 1.7; font-size: 1rem; padding: 0 20px; }

    .scenario-icon {
      position: relative;
      z-index: 3;
      font-size: 2rem;
      color: #00D4AA;
      margin-bottom: 24px;
    }
    
    /* Responsive adjustment */
    @media (max-width: 1024px) {
      .scenario-grid { grid-template-columns: repeat(2, 1fr); }
      .scenario-card { height: 50vh; }
      .game-slide { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 768px) {
      .hero h1 { font-size: 2.2rem !important; }
      .hero .subtitle { font-size: 1.2rem !important; }
      html.lang-en .hero h1 { font-size: 2.2rem !important; }
      html.lang-en .hero .subtitle { font-size: 1rem !important; }
      /* 主标题 2rem / 副标题 1rem */
      #section-scenarios .section-header h2,
      #section-games .section-header h2,
      #section-steps .section-header h2 { font-size: 2rem; }
      #section-scenarios .section-header p { font-size: 1rem; color: #fff; }
      #section-games .section-header p,
      #section-steps .section-header p { font-size: 1rem; opacity: 0.7; }
      .scenario-card h4 { font-size: 2rem; }
      .scenario-card p { font-size: 1rem; }
      .game-title-play { font-size: 2rem; }
      .game-desc-play { font-size: 1rem; }
      .step-card-play h4 { font-size: 2rem; }
      .step-card-play p { font-size: 1rem; color: #666; }
      .cta-section h2 { font-size: 2rem; }
      .cta-section > .container > p { font-size: 1rem; }
      .game-grid-play { height: auto; }
      .game-slide { position: relative; display: flex; flex-direction: column; gap: 16px; opacity: 1; visibility: visible; transform: none; }
      .game-slide:not(:last-child) { margin-bottom: 16px; }
      .game-card-play { display: flex; flex-direction: row; align-items: center; }
      .game-cover-play { height: 120px; width: 120px; min-width: 120px; }
      .game-body-play { text-align: left; padding: 12px; }
      .scenario-grid { grid-template-columns: 1fr; gap: 16px; }
      .scenario-card { height: 40vh; padding: 24px; }
      #section-steps { height: auto; padding: 60px 0; }
      .step-grid { grid-template-columns: 1fr; gap: 24px; }
      .step-grid::before { display: none; }
      .step-card-play { max-width: 400px; margin: 0 auto; }
      .step-img { height: 180px; }
      .game-filter-nav { gap: 16px; overflow-x: auto; padding: 0 16px; justify-content: flex-start; }
      #section-games { padding: 60px 0; height: auto; }
    }
    @media (max-width: 480px) {
      .hero h1 { font-size: 2.2rem !important; }
      .hero .subtitle { font-size: 1.2rem !important; }
      html.lang-en .hero h1 { font-size: 2.2rem !important; }
      html.lang-en .hero .subtitle { font-size: 1rem !important; }
      /* 主标题 2rem / 副标题 1rem */
      #section-scenarios .section-header h2 { font-size: 2rem; }
      #section-games .section-header h2,
      #section-steps .section-header h2 { font-size: 1.8rem; }
      #section-scenarios .section-header p { font-size: 1rem; color: #fff; }
      #section-games .section-header p,
      #section-steps .section-header p { font-size: 0.9rem; }
      .scenario-card h4 { font-size: 1.8rem; }
      .scenario-card p { font-size: 0.9rem; }
      .game-title-play { font-size: 1.6rem; }
      .game-desc-play { font-size: 0.9rem; }
      .step-card-play h4 { font-size: 1.8rem; }
      .step-card-play p { font-size: 0.9rem; }
      .cta-section h2 { font-size: 1.8rem; }
      .cta-section > .container > p { font-size: 0.9rem; }
      .scenario-card { height: 35vh; margin: 0 -16px; border-radius: 16px; }
      .game-slide { grid-template-columns: 1fr; gap: 16px; }
      .game-cover-play { height: 100px; width: 100px; min-width: 100px; }
      .step-img { height: 140px; }
      .filter-btn { font-size: 0.9rem; white-space: nowrap; }
    }
