/* ========================================
   德州扑克策略网站 - 主样式表
   配色：扑克绿 #1B5E20, 毡布绿 #2E7D32, 筹码红 #D32F2F
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --poker-green: #1B5E20;
  --felt-green: #2E7D32;
  --chip-red: #D32F2F;
  --gold: #FFD700;
  --dark-bg: #0a1a0a;
  --card-white: #f5f5f0;
  --text-light: #e8e8e0;
  --text-muted: #a0a090;
  --border-green: #3E8E42;
  --shadow-dark: rgba(0,0,0,0.5);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "STXihei", "华文细黑", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "STSong", "华文宋体", "SimSun", "Songti SC", serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  text-align: justify;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--chip-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  background: linear-gradient(180deg, #0d2b0d 0%, var(--dark-bg) 100%);
  padding: 15px 0;
  border-bottom: 2px solid var(--felt-green);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--chip-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  font-weight: bold;
  border: 3px solid var(--gold);
}

.site-logo .logo-text {
  font-family: "STSong", "华文宋体", serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: bold;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--felt-green);
  color: var(--gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--felt-green);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ========================================
   Poker Table Layout (Hero Section)
   ======================================== */
.poker-table-hero {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 60px 40px;
  background: radial-gradient(ellipse at center, #2a6e2a 0%, #1a4a1a 50%, #0d2b0d 100%);
  border-radius: 50% / 30%;
  border: 8px solid #5a3a1a;
  box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.3), 0 0 80px rgba(30,90,30,0.2);
}

.poker-table-hero::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50% / 30%;
  border: 2px solid rgba(255,215,0,0.3);
  pointer-events: none;
}

.poker-table-hero .table-center {
  text-align: center;
  position: relative;
  z-index: 2;
}

.poker-table-hero .table-center h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.poker-table-hero .table-center p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: center;
}

.poker-table-hero .table-center .cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--chip-red);
  color: white;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--gold);
}

.poker-table-hero .table-center .cta-btn:hover {
  background: #b71c1c;
  transform: scale(1.05);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  padding: 0 20px;
  position: relative;
}

.section-title h2::before,
.section-title h2::after {
  content: '♠';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--chip-red);
  font-size: 1.2rem;
}

.section-title h2::before { left: -10px; }
.section-title h2::after { right: -10px; content: '♥'; }

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 10px auto 0;
  text-align: center;
}

/* ========================================
   Starting Hand Matrix (13x13 Grid)
   ======================================== */
.hand-matrix-wrapper {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
}

.hand-matrix {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  font-size: 0.7rem;
  width: 100%;
  min-width: 500px;
}

.hand-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-weight: bold;
  cursor: default;
  transition: all 0.3s ease;
  font-size: 0.65rem;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.hand-cell.suited { background: var(--felt-green); }
.hand-cell.offsuit { background: #555; }
.hand-cell.pair { background: var(--chip-red); }
.hand-cell.raise { background: var(--chip-red); }
.hand-cell.call { background: #f9a825; color: #333; text-shadow: none; }
.hand-cell.fold { background: #424242; }
.hand-cell.highlight { box-shadow: 0 0 6px var(--gold); transform: scale(1.1); z-index: 2; }

/* Position buttons */
.position-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pos-btn {
  padding: 8px 20px;
  background: transparent;
  border: 2px solid var(--felt-green);
  color: var(--text-light);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pos-btn:hover,
.pos-btn.active {
  background: var(--felt-green);
  color: var(--gold);
  border-color: var(--gold);
}

/* ========================================
   Card-style Content Blocks
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.card {
  background: linear-gradient(145deg, #1a3a1a, #0d2b0d);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--chip-red), var(--gold), var(--chip-red));
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-color: var(--gold);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.card .read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 18px;
  background: var(--chip-red);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.card .read-more:hover {
  background: #b71c1c;
}

/* Player archetype cards (J, Q, K style) */
.archetype-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.archetype-card {
  background: linear-gradient(145deg, #f5f5f0, #e0e0d8);
  color: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid #ccc;
}

.archetype-card::before {
  content: attr(data-suit);
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.2rem;
}

.archetype-card::after {
  content: attr(data-suit);
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 1.2rem;
  transform: rotate(180deg);
}

.archetype-card .archetype-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
}

.archetype-card h3 {
  color: #1a1a1a;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.archetype-card p {
  color: #555;
  font-size: 0.9rem;
}

.archetype-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.archetype-card.red { border-color: var(--chip-red); }
.archetype-card.red::before,
.archetype-card.red::after { color: var(--chip-red); }

.archetype-card.black { border-color: #333; }
.archetype-card.black::before,
.archetype-card.black::after { color: #333; }

.archetype-card .card-link {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 18px;
  background: var(--poker-green);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ========================================
   Hall of Fame (Movie Poster Style)
   ======================================== */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.hof-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #333;
  transition: all 0.4s ease;
}

.hof-card .hof-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hof-card .hof-year {
  display: inline-block;
  padding: 3px 12px;
  background: var(--chip-red);
  color: white;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hof-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: white;
}

.hof-card p {
  color: #ccc;
  font-size: 0.85rem;
}

.hof-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.hof-card .hof-icon {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  opacity: 0.3;
}

/* ========================================
   Mental Game & Tools Section
   ======================================== */
.mental-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mental-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(145deg, #1a3a1a, #0d2b0d);
  border: 1px solid var(--border-green);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mental-item:hover {
  border-color: var(--gold);
  transform: translateX(5px);
}

.mental-item .mental-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.mental-item h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.mental-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tool-card {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid #444;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.tool-card .tool-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.tool-card h4 {
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   Article / Inner Page Styles
   ======================================== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.article-content h1 {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--felt-green);
}

.article-content h2 {
  margin-top: 35px;
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 4px solid var(--chip-red);
}

.article-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.article-content ul, .article-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin: 20px 0;
  background: rgba(255,215,0,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content table th,
.article-content table td {
  padding: 10px 15px;
  border: 1px solid var(--border-green);
  text-align: left;
}

.article-content table th {
  background: var(--poker-green);
  color: var(--gold);
  font-weight: bold;
}

.article-content table tr:nth-child(even) {
  background: rgba(30,90,30,0.1);
}

/* Range chart in articles */
.range-chart {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background: #1a3a1a;
  border-radius: 10px;
  border: 1px solid var(--border-green);
}

.range-legend {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.range-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}

.range-legend .legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: linear-gradient(180deg, var(--dark-bg), #050f05);
  border-top: 2px solid var(--felt-green);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--felt-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--chip-red);
}

.responsible-gaming {
  padding: 20px;
  margin: 20px 0;
  background: rgba(211,47,47,0.1);
  border: 1px solid var(--chip-red);
  border-radius: 8px;
  text-align: center;
}

.responsible-gaming h4 {
  color: var(--chip-red);
  margin-bottom: 8px;
}

.responsible-gaming p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========================================
   Dealing Animation
   ======================================== */
.deal-animate {
  opacity: 0;
  transform: translateY(40px) rotate(-5deg) scale(0.9);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.deal-animate.dealt {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

.deal-animate:nth-child(1) { transition-delay: 0.1s; }
.deal-animate:nth-child(2) { transition-delay: 0.2s; }
.deal-animate:nth-child(3) { transition-delay: 0.3s; }
.deal-animate:nth-child(4) { transition-delay: 0.4s; }
.deal-animate:nth-child(5) { transition-delay: 0.5s; }
.deal-animate:nth-child(6) { transition-delay: 0.6s; }

.fan-animate {
  opacity: 0;
  transform: rotate(-30deg) translateX(-100px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.fan-animate.dealt {
  opacity: 1;
  transform: rotate(0) translateX(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.5s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.5s ease;
}

.slide-in-left.dealt,
.slide-in-right.dealt {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   App Download Page
   ======================================== */
.app-hero {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(ellipse at center, #1a4a1a, var(--dark-bg));
}

.app-hero h1 {
  margin-bottom: 20px;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #333;
  border: 2px solid #555;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.app-btn:hover {
  border-color: var(--gold);
  background: #444;
  color: white;
}

.app-btn .btn-icon {
  font-size: 1.8rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 15px;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .poker-table-hero {
    border-radius: 20px;
    padding: 40px 20px;
    margin: 20px auto;
  }

  .poker-table-hero::before {
    border-radius: 16px;
  }

  .hand-matrix {
    font-size: 0.55rem;
    min-width: 350px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .archetype-cards {
    grid-template-columns: 1fr;
  }

  .hof-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .position-buttons {
    gap: 5px;
  }

  .pos-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--chip-red); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Schema hidden content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
