/* ===== style.css for 乐竟体育中文官网 ===== */
/* 随机风格：科技暗夜 + 璀璨金辉 */
/* 渐变Banner、圆角卡片、毛玻璃效果、响应式布局、暗色模式、滚动动画、hover动画 */

:root {
  --primary: #1a1a2e;
  --accent: #ffd700;
  --bg: #0f0f1a;
  --card-bg: rgba(255,255,255,0.05);
  --text: #e0e0e0;
  --glass: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
  --primary: #ffffff;
  --accent: #d4a017;
  --bg: #f5f5f5;
  --card-bg: rgba(0,0,0,0.03);
  --text: #1a1a2e;
  --glass: rgba(0,0,0,0.05);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

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

a:hover {
  color: #ffed4a;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Nav ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,215,0,0.15);
  transition: all 0.3s;
}

[data-theme="light"] header {
  background: rgba(245,245,245,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--glass);
  border-radius: 30px;
  padding: 4px 16px;
  border: 1px solid rgba(255,215,0,0.2);
  transition: border-color 0.3s;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 0;
  outline: none;
  width: 140px;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: rgba(224,224,224,0.5);
}

[data-theme="light"] .search-box input::placeholder {
  color: rgba(26,26,46,0.4);
}

.search-box button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: transform 0.3s;
}

.search-box button:hover {
  transform: scale(1.1);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s;
}

.theme-toggle:hover {
  transform: rotate(30deg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== Banner ===== */
.banner {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 520px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
}

[data-theme="light"] .banner {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.banner-slide {
  display: none;
  flex: 1;
  padding: 60px 40px;
  animation: fadeSlide 0.8s ease;
}

.banner-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.banner .btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
  border: none;
  cursor: pointer;
}

.banner .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dots span.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,215,0,0.1);
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: rgba(255,215,0,0.3);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.card p {
  opacity: 0.85;
  line-height: 1.6;
}

.card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  display: block;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
  transition: transform 0.3s;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item h4 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item p {
  opacity: 0.85;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 20px 24px;
  cursor: pointer;
  border: 1px solid rgba(255,215,0,0.08);
  transition: border-color 0.3s, background 0.3s;
}

.faq-item:hover {
  border-color: var(--accent);
  background: rgba(255,215,0,0.02);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s;
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer p {
  opacity: 0.85;
  line-height: 1.6;
}

/* ===== HowTo ===== */
.howto-steps {
  counter-reset: step;
}

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
  transition: transform 0.3s;
}

.howto-step:hover {
  transform: translateX(8px);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

.howto-step h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.howto-step p {
  opacity: 0.85;
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 60px 0 30px;
  transition: background 0.3s;
}

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

footer h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  opacity: 0.8;
  transition: opacity 0.3s, padding-left 0.3s;
}

footer a:hover {
  opacity: 1;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.7;
  gap: 12px;
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a2e;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.6);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb span {
  color: var(--accent);
}

/* ===== Article Cards ===== */
.article-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,215,0,0.08);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.article-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.article-card .date {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 12px;
}

.article-card p {
  opacity: 0.85;
  line-height: 1.6;
}

/* ===== Partners ===== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.partner-logos svg {
  width: 100px;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.partner-logos svg:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== Counter ===== */
.counter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.counter-item {
  min-width: 150px;
}

.counter-item h2 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.2;
}

.counter-item p {
  opacity: 0.8;
  font-size: 1rem;
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  background: var(--card-bg);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,215,0,0.2);
  transition: border-color 0.3s;
}

.map-placeholder:hover {
  border-color: var(--accent);
}

/* ===== Fade Up Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility ===== */
ul[style*="list-style: none"] li {
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}

ul[style*="list-style: none"] li:hover {
  background: rgba(255,215,0,0.08);
  transform: translateX(4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .banner h1 {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    gap: 12px;
  }
  
  nav ul.open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .search-box input {
    width: 100px;
  }
  
  .banner {
    min-height: 400px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  .banner-slide {
    padding: 30px 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }
  
  .card-grid {
    gap: 20px;
  }
  
  .counter-item h2 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    gap: 30px;
  }
  
  .back-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .logo svg {
    width: 32px;
    height: 32px;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-item {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .banner h1 {
    font-size: 1.6rem;
  }
  
  .banner .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .partner-logos {
    gap: 24px;
  }
  
  .partner-logos svg {
    width: 80px;
    height: 48px;
  }
  
  .counter-grid {
    gap: 24px;
  }
  
  .counter-item h2 {
    font-size: 1.8rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Dark Mode Smooth Transition ===== */
body, header, footer, .card, .faq-item, .article-card {
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6c200;
}

/* ===== Selection ===== */
::selection {
  background: var(--accent);
  color: #1a1a2e;
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
  header, .back-top, .search-box, .theme-toggle, .menu-toggle, .banner-dots {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .banner {
    margin-top: 0;
    background: #f0f0f0 !important;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}