/* KOYSO游戏世界 - 全新原创风格CSS */
:root {
  --main-bg: linear-gradient(120deg, #1e2235 0%, #23244a 100%);
  --primary: #ff7a00;
  --primary-dark: #c95c00;
  --secondary: #2e8fff;
  --text: #f3f3fa;
  --text-light: #b3b3d1;
  --card-bg: #23244aee;
  --card-glass: rgba(34, 36, 70, 0.85);
  --shadow: 0 6px 32px 0 #0003;
  --radius: 18px;
  --transition: 0.3s cubic-bezier(.4,2,.6,1);
  --brand-font: 'Exo', 'Poppins', Arial, sans-serif;
  --body-font: 'Poppins', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--main-bg);
  color: var(--text);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

/* 导航栏 */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0;
  background: #18192bfa;
  box-shadow: var(--shadow);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 3vw;
}
.nav-logo span {
  font-family: var(--brand-font); font-size: 2rem; font-weight: 700;
  color: var(--primary); letter-spacing: 2px;
}
.nav-menu {
  display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu li a {
  color: var(--text); font-size: 1.08rem; font-weight: 600; position: relative; padding: 8px 0;
}
.nav-menu li a.active, .nav-menu li a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.nav-search-btn {
  background: none; border: none; color: var(--secondary); font-size: 1.3rem; cursor: pointer;
  border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.nav-search-btn:hover { background: var(--primary); color: #fff; }
.nav-btn {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  font-family: var(--brand-font); font-weight: 700; font-size: 1rem; padding: 0.5em 1.5em;
  box-shadow: 0 2px 12px #ff7a0033; transition: background var(--transition), color var(--transition);
}
.nav-btn:hover { background: var(--secondary); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer;
}

/* 英雄区 */
.hero-section {
  margin-top: 68px; min-height: 420px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #23244a 60%, #1e2235 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero-bg2.webp') center/cover no-repeat, linear-gradient(120deg, #23244aee 60%, #1e2235ee 100%);
  z-index: 1;
  filter: blur(2px) brightness(0.7);
}
.hero-content-wrap {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 3.5rem 3vw 2.5rem 3vw;
}
.hero-content {
  flex: 1.2; min-width: 260px;
}
.hero-content h1 {
  font-family: var(--brand-font); font-size: 2.5rem; color: var(--primary); margin-bottom: 1.2rem;
}
.hero-content p { font-size: 1.15rem; color: #fff; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1.2rem; }
.hero-btn {
  display: inline-block; font-family: var(--brand-font); font-weight: 700; font-size: 1.08rem;
  border-radius: var(--radius); padding: 0.7em 2em; border: none; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.hero-btn-main { background: var(--primary); color: #fff; box-shadow: 0 2px 12px #ff7a0033; }
.hero-btn-main:hover { background: var(--secondary); }
.hero-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.hero-btn-outline:hover { background: var(--primary); color: #fff; }
.hero-visual { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 320px; max-width: 90vw; border-radius: 2rem; box-shadow: var(--shadow); }

/* 平台特色 */
.feature-section { padding: 4rem 0 2.5rem 0; background: #23244a; }
.feature-title-group { text-align: center; margin-bottom: 2.5rem; }
.feature-title-group h2 { font-family: var(--brand-font); font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.feature-title-group span { color: var(--text-light); font-size: 1.1rem; }
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.2rem; max-width: 1200px; margin: 0 auto;
}
.feature-item {
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.2rem; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; position: relative;
}
.feature-item:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 8px 32px #ff7a0033; }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-item h3 { margin: 0.5rem 0 1rem 0; font-size: 1.15rem; color: var(--secondary); }
.feature-item p { color: var(--text-light); font-size: 1rem; }

/* 平台介绍 */
.platform-intro-section {
  background: linear-gradient(120deg, #23244a 60%, #1e2235 100%);
  padding: 3.2rem 0 2.2rem 0;
  text-align: center;
}
.platform-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2vw 1.5rem 2vw;
}
.platform-intro-inner h2 {
  font-family: var(--brand-font);
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.platform-intro-inner p {
  color: var(--text-light);
  font-size: 1.15rem;
  margin: 0;
}

/* 关于我们 */
.about-section { background: #1e2235; padding: 4rem 0 2.5rem 0; }
.about-inner { display: flex; gap: 2.5rem; max-width: 1200px; margin: 0 auto; align-items: center; flex-wrap: wrap; }
.about-info { flex: 1.2; min-width: 260px; }
.about-info h2 { font-family: var(--brand-font); color: var(--primary); font-size: 2rem; margin-bottom: 1.2rem; }
.about-info p { color: var(--text-light); font-size: 1.08rem; margin-bottom: 1.5rem; }
.about-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.about-stat { background: var(--card-glass); border-radius: 1em; padding: 1.1em 1.5em; text-align: center; min-width: 100px; }
.stat-num { font-family: var(--brand-font); font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.stat-label { color: var(--text-light); font-size: 0.98rem; }
.about-btn { display: inline-block; background: var(--secondary); color: #fff; border-radius: var(--radius); font-family: var(--brand-font); font-weight: 700; font-size: 1.08rem; padding: 0.7em 2em; border: none; box-shadow: 0 2px 12px #2e8fff33; transition: background var(--transition), color var(--transition); }
.about-btn:hover { background: var(--primary); color: #fff; }
.about-visual { flex: 1; display: flex; align-items: center; justify-content: center; }
.about-visual img { width: 260px; max-width: 90vw; border-radius: 1.5rem; box-shadow: var(--shadow); }

/* FAQ */
.faq-section { background: #23244a; padding: 4rem 0 2.5rem 0; }
.faq-title-group { text-align: center; margin-bottom: 2.5rem; }
.faq-title-group h2 { font-family: var(--brand-font); font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.faq-title-group span { color: var(--text-light); font-size: 1.1rem; }
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.faq-card { background: var(--card-glass); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.5rem; transition: box-shadow var(--transition); cursor: pointer; }
.faq-card:hover { box-shadow: 0 8px 32px #2e8fff33; }
.faq-q { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--secondary); font-size: 1.08rem; }
.faq-q i { margin-left: 1rem; transition: transform var(--transition); }
.faq-card.open .faq-q i { transform: rotate(180deg); }
.faq-a { color: var(--text-light); font-size: 1rem; max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(.4,2,.6,1), padding 0.3s; padding: 0 0; }
.faq-card.open .faq-a { max-height: 200px; padding: 1rem 0 0.5rem 0; }

/* 评价 */
.review-section { background: #1e2235; padding: 4rem 0 2.5rem 0; }
.review-title-group { text-align: center; margin-bottom: 2.5rem; }
.review-title-group h2 { font-family: var(--brand-font); font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.review-title-group span { color: var(--text-light); font-size: 1.1rem; }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.review-card { background: var(--card-glass); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.2rem; display: flex; flex-direction: column; align-items: center; transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.review-card:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 8px 32px #2e8fff33; }
.review-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; box-shadow: 0 2px 12px #2e8fff22; }
.review-content { text-align: center; }
.review-stars { color: #ffb400; margin-bottom: 0.7rem; }
.review-content p { color: var(--text-light); font-size: 1rem; margin-bottom: 0.7rem; }
.review-user { color: var(--primary); font-size: 0.98rem; font-weight: 600; }

/* 页脚 */
.footer-section { background: #23244a; color: var(--text-light); padding: 2.5rem 0 0 0; border-top: 1px solid #1e2235; }
.footer-main { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.footer-brand { flex: 1.5; min-width: 220px; }
.footer-logo { font-family: var(--brand-font); font-size: 1.5rem; color: var(--primary); font-weight: bold; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-light); margin: 1rem 0 1.5rem 0; font-size: 1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--secondary); font-size: 1.5rem; transition: color var(--transition); }
.footer-social a:hover { color: var(--primary); }
.footer-links { flex: 1; min-width: 180px; }
.footer-links h4 { color: var(--primary); margin-bottom: 1rem; font-size: 1.1rem; font-family: var(--brand-font); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul a { color: var(--text-light); transition: color var(--transition); }
.footer-links ul a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding: 1.2rem 0 1.5rem 0; color: var(--text-light); font-size: 0.95rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; border-top: 1px solid #1e2235; margin-top: 2rem; }

.footer-friendship {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-friendship span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-friendship a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-friendship a:hover {
  color: var(--primary);
}
.footer-legal a { color: var(--text-light); margin-left: 1.2rem; font-size: 0.95rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--primary); }

/* 返回顶部 */
.back2top {
  position: fixed; right: 2.2rem; bottom: 2.2rem; background: var(--primary); color: #fff; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); z-index: 1200;
}
.back2top.show { opacity: 1; pointer-events: auto; transform: scale(1.08); }

/* 搜索模态 */
.search-modal {
  position: fixed; inset: 0; background: rgba(24,25,43,0.92); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.search-modal.active { opacity: 1; pointer-events: auto; }
.search-modal-box {
  background: var(--card-glass); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.5rem; min-width: 320px; max-width: 96vw; display: flex; flex-direction: column; gap: 1.2rem; position: relative;
}
.search-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.search-modal-header h3 { color: var(--primary); font-size: 1.2rem; margin: 0; }
.search-modal-close { background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.search-modal-form { display: flex; gap: 0.5rem; }
.search-modal-form input { flex: 1; padding: 0.75em 1em; border-radius: var(--radius); border: none; background: #18192b; color: var(--text); font-size: 1rem; }
.search-modal-form button { background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 1.2rem; padding: 0 1.2em; cursor: pointer; transition: background var(--transition); }
.search-modal-form button:hover { background: var(--secondary); }
.search-modal-tags { color: var(--text-light); font-size: 0.98rem; margin-top: 0.5rem; }
.search-modal-tags a { background: var(--secondary); color: #fff; border-radius: 1em; padding: 0.2em 1em; font-size: 0.95rem; margin-right: 0.5em; transition: background var(--transition), color var(--transition); }
.search-modal-tags a:hover { background: var(--primary); color: #fff; }

/* 响应式 */
@media (max-width: 1200px) {
  .nav-inner, .hero-content-wrap, .feature-list, .about-inner, .footer-main { max-width: 98vw; }
  .about-stats { gap: 1rem; }
  .footer-main { gap: 1.2rem; }
}
@media (max-width: 992px) {
  .nav-menu { gap: 1.2rem; }
  .about-inner { flex-direction: column; gap: 1.2rem; }
  .footer-main { flex-direction: column; gap: 1.2rem; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #18192bfa; flex-direction: column; width: 100vw; height: 0; overflow: hidden; transition: height var(--transition); z-index: 1100; }
  .nav-menu.open { display: flex; height: 320px; }
  .nav-toggle { display: block; }
  .hero-content-wrap { flex-direction: column; gap: 2rem; padding: 2rem 2vw; }
  .about-inner { flex-direction: column; gap: 1.2rem; }
  .feature-list, .review-list { grid-template-columns: 1fr; }
  .container, .nav-inner { width: 98%; }
}
@media (max-width: 480px) {
  .hero-content-wrap, .about-inner, .feature-list, .review-list, .faq-list, .footer-main { padding: 0 0.5rem; }
  .hero-visual img, .about-visual img { width: 98vw; max-width: 98vw; }
  .search-modal-box { min-width: 0; padding: 1.2rem; }
} 

/* 子页面美化 */
.subpage-main {
  max-width: 900px;
  margin: 90px auto 0 auto;
  background: var(--card-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  min-height: 60vh;
}
.subpage-header {
  border-bottom: 1.5px solid #2e8fff33;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  text-align: left;
}
.subpage-header h1 {
  font-family: var(--brand-font);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.subpage-header p {
  color: var(--text-light);
  font-size: 1.08rem;
}
.subpage-content {
  margin-top: 1.5rem;
}
.subpage-content h2 {
  color: var(--secondary);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  font-family: var(--brand-font);
}
.subpage-content ul, .subpage-content ol {
  margin: 0 0 1.2rem 1.2rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}
.subpage-content li {
  margin-bottom: 0.3em;
}
.subpage-content p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.feedback-form, .cooperation-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  background: #23244aee;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #2e8fff22;
  padding: 2rem 1.5rem;
}
.feedback-form label, .cooperation-form label {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.feedback-form input, .feedback-form textarea,
.cooperation-form input, .cooperation-form textarea {
  border: none;
  border-radius: var(--radius);
  padding: 0.7em 1em;
  font-size: 1rem;
  background: #18192b;
  color: var(--text);
  margin-bottom: 0.2rem;
  resize: vertical;
}
.feedback-form button, .cooperation-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.7em 2em;
  box-shadow: 0 2px 12px #ff7a0033;
  transition: background var(--transition), color var(--transition);
  margin-top: 0.5rem;
  cursor: pointer;
}
.feedback-form button:hover, .cooperation-form button:hover {
  background: var(--secondary);
}
@media (max-width: 600px) {
  .subpage-main { padding: 1.2rem 0.5rem; }
  .feedback-form, .cooperation-form { padding: 1.2rem 0.5rem; }
} 

/* 英雄区轮播图 */
.hero-carousel {
  position: relative;
  width: 600px;
  max-width: 98vw;
  height: 360px;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  background: #23244a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.4,2,.6,1);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2rem;
}
.hero-carousel-controls {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}
.hero-carousel-prev, .hero-carousel-next {
  background: var(--card-glass);
  border: none;
  color: var(--primary);
  font-size: 1.3rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition);
  pointer-events: auto;
}
.hero-carousel-prev:hover, .hero-carousel-next:hover {
  background: var(--primary); color: #fff;
}
.hero-carousel-indicators {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}
.hero-carousel-indicators span {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff3;
  border: 2px solid var(--primary);
  transition: background var(--transition), border var(--transition);
  cursor: pointer;
}
.hero-carousel-indicators .active {
  background: var(--primary);
  border-color: var(--secondary);
}
@media (max-width: 900px) {
  .hero-carousel { width: 98vw; height: 220px; border-radius: 1.2rem; }
  .hero-slide img { border-radius: 1.2rem; }
}
@media (max-width: 600px) {
  .hero-carousel { width: 98vw; height: 140px; border-radius: 1.2rem; }
  .hero-slide img { border-radius: 1.2rem; }
} 

