/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1e1e2f;
  background: #f8f9fe;
  transition: background 0.35s ease, color 0.35s ease;
}
body.dark {
  background: #0b0b1a;
  color: #e2e2ee;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.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;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

/* ===== Header ===== */
header {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.3));
}
.logo span {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  border-radius: 2px;
  transition: width 0.35s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}
nav ul li a:hover {
  color: #ffd700;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}
.dark-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
  backdrop-filter: blur(4px);
}
.dark-toggle:hover {
  background: rgba(255,215,0,0.2);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 30% 50%, rgba(255,215,0,0.08) 0%, transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 70% 60%, rgba(255,140,0,0.06) 0%, transparent 50%);
  animation: heroGlow2 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 6%) scale(1.05); }
}
@keyframes heroGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -8%) scale(1.08); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero h1 span {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero .btn-group {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.35s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.hero .btn-primary {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.hero .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255,215,0,0.4);
}
.hero .btn-outline {
  border-color: #ffd700;
  color: #ffd700;
  background: transparent;
}
.hero .btn-outline:hover {
  background: #ffd700;
  color: #1a1a2e;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.25);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: rgba(245,245,250,0.8);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dark .breadcrumb {
  background: rgba(26,26,46,0.7);
  border-bottom-color: rgba(255,255,255,0.06);
}
.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.breadcrumb ul li:not(:last-child)::after {
  content: '›';
  margin-left: 10px;
  color: #999;
  font-weight: 300;
}
.breadcrumb a {
  color: #2a6fdb;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: #ff8c00;
}
.dark .breadcrumb a {
  color: #6aa3ff;
}

/* ===== Sections ===== */
section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #1a1a2e, #302b63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .section-title h2 {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p {
  color: #5a5a7a;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}
.dark .section-title p {
  color: #b0b0cc;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255,255,255,0.6);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(255,215,0,0.2);
}
.dark .card {
  background: rgba(30,30,58,0.7);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.06);
}
.dark .card:hover {
  background: rgba(40,40,72,0.8);
  border-color: rgba(255,215,0,0.15);
}
.card img {
  border-radius: 14px;
  margin-bottom: 18px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover img {
  transform: scale(1.02);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e1e2f;
}
.dark .card h3 {
  color: #f0f0fa;
}
.card p {
  color: #4a4a6a;
  font-size: 0.95rem;
  line-height: 1.6;
}
.dark .card p {
  color: #b8b8d0;
}

/* ===== Banner Slider ===== */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin: 20px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.banner-slide {
  display: none;
  animation: fadeSlide 0.7s ease;
}
.banner-slide.active {
  display: block;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.banner-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
}
.banner-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.banner-nav button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
}
.banner-nav button.active {
  background: #ffd700;
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(255,215,0,0.5);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 18px 0;
  transition: background 0.3s;
}
.dark .faq-item {
  border-color: rgba(255,255,255,0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 4px 0;
  transition: color 0.3s;
}
.faq-question:hover {
  color: #ff8c00;
}
.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: #ffd700;
}
.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  padding-top: 0;
  color: #4a4a6a;
}
.dark .faq-answer {
  color: #b8b8d0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 14px;
}

/* ===== HowTo Steps ===== */
.howto-steps {
  list-style: none;
  counter-reset: step;
}
.howto-steps li {
  counter-increment: step;
  padding: 18px 0 18px 56px;
  position: relative;
  border-left: 3px solid #ffd700;
  margin-left: 22px;
  transition: background 0.3s;
}
.howto-steps li:hover {
  background: rgba(255,215,0,0.04);
  border-radius: 0 12px 12px 0;
}
.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: 16px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #c8c8e0;
  padding: 50px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #ffd700;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-grid a {
  color: #a0a0c0;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-grid a:hover {
  color: #ffd700;
  padding-left: 4px;
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: #8888aa;
}
.footer-bottom a {
  color: #ffd700;
  transition: opacity 0.3s;
}
.footer-bottom a:hover {
  opacity: 0.8;
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,215,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 36px rgba(255,215,0,0.45);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Search Box ===== */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 36px;
}
.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 40px;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.dark .search-box input {
  background: rgba(30,30,58,0.7);
  border-color: rgba(255,255,255,0.1);
  color: #f0f0fa;
}
.search-box button {
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.search-box button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(255,215,0,0.3);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  background: rgba(0,0,0,0.04);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin: 4px;
  transition: background 0.3s;
}
.tag:hover {
  background: rgba(255,215,0,0.15);
}
.dark .tag {
  background: rgba(255,255,255,0.06);
}

/* ===== Avatar ===== */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,215,0,0.2);
}

/* ===== Utility ===== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-16 { gap: 16px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title h2 { font-size: 1.8rem; }
  .banner-slide img { height: 320px; }
}
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(20px);
    padding: 24px 20px;
    gap: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-radius: 0 0 20px 20px;
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero {
    padding: 70px 0 60px;
  }
  .banner-slide img {
    height: 240px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 50px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .back-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .header-inner {
    padding: 8px 16px;
  }
  .logo span {
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .card {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box button {
    width: 100%;
  }
}