@charset "utf-8";

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0f;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c8963e, #e8c872);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-changsheng .hero-overlay {
  background: linear-gradient(105deg, rgba(8, 16, 32, 0.92) 0%, rgba(8, 16, 32, 0.55) 45%, rgba(8, 16, 32, 0.25) 100%);
}

.hero-coffee .hero-overlay {
  background: linear-gradient(105deg, rgba(40, 24, 16, 0.92) 0%, rgba(40, 24, 16, 0.55) 45%, rgba(40, 24, 16, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-info h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.hero-changsheng .hero-info h1 {
  background: linear-gradient(135deg, #fff 30%, #7eb8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-coffee .hero-info h1 {
  background: linear-gradient(135deg, #fff 30%, #f0c080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.hero-rating strong {
  font-size: 20px;
  color: #f0c040;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
  margin-bottom: 28px;
  max-height: 10.5em;
  overflow-y: auto;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #c8963e, #e8b84a);
  color: #1a1008;
  box-shadow: 0 4px 20px rgba(200, 150, 62, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-media {
  position: relative;
}

.video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  cursor: pointer;
}

.video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s;
}

.video-wrap:hover .play-btn {
  background: rgba(0, 0, 0, 0.4);
}

.play-btn::after {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(38% 28%, 38% 72%, 72% 50%);
}

.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* Products Section */
.section {
  padding: 100px 0;
}

.section-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.section-title .line {
  width: 60px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, #c8963e, #e8c872);
  border-radius: 2px;
}

.section-title p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  letter-spacing: 2px;
}

/* Game Cards */
.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card.reverse {
  direction: rtl;
}

.game-card.reverse > * {
  direction: ltr;
}

.game-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.game-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.game-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  margin-bottom: 20px;
}

.game-features {
  margin-bottom: 24px;
}

.game-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-features li::before {
  content: "◆";
  margin-right: 8px;
  font-size: 8px;
  color: #c8963e;
}

/* Screenshot Carousel */
.screenshot-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.swiper-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #111;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
  opacity: 0.7;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #c8963e !important;
}

/* Developer Note */
.dev-note {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #c8963e;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  max-height: 200px;
  overflow-y: auto;
}

/* About */
.about-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.about-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-contact {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-contact li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.8;
}

.contact-label {
  flex-shrink: 0;
  width: 72px;
  color: rgba(255, 255, 255, 0.45);
}

.contact-value {
  color: rgba(255, 255, 255, 0.85);
}

a.contact-value {
  color: #e8c872;
  transition: color 0.2s;
}

a.contact-value:hover {
  color: #fff;
}

.about-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 2;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item strong {
  display: block;
  font-size: 32px;
  color: #e8c872;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 2;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: min(900px, 92vw);
}

.video-modal video {
  width: 100%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

.modal-fallback {
  text-align: center;
  padding: 40px;
}

.modal-fallback img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-fallback p {
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.96);
    padding: 24px;
    gap: 20px;
  }
  .menu-toggle { display: flex; }

  .hero-content,
  .game-card,
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game-card.reverse {
    direction: ltr;
  }

  .hero-media {
    order: -1;
  }
}
