/* =============================================
   QQCW Custom Styles - 长沙奇趣潮玩官网
   ============================================= */

/* --- Base --- */
* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Hide Astra chrome on custom homepage --- */
.ast-main-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-default-footer,
.site-footer,
.ast-footer-copyright,
body.page-template-page-qqcw-home .entry-header,
body.page-template-page-qqcw-home .ast-single-post-featured-section,
body.page-template-page-qqcw-home .page-title,
body.page-template-page-qqcw-home .ast-page-builder-template .entry-header {
  display: none !important;
}

/* Full-width content on homepage */
body.page-template-page-qqcw-home .site-content,
body.page-template-page-qqcw-home .ast-page-builder-template,
body.page-template-page-qqcw-home #content,
body.page-template-page-qqcw-home #content .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.page-template-page-qqcw-home .content-area,
body.page-template-page-qqcw-home .primary {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.page-template-page-qqcw-home .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-qqcw-home .site-content > .ast-container,
body.page-template-page-qqcw-home #content > .ast-container {
  max-width: 100% !important;
}

/* Hide the entry content wrapper padding */
body.page-template-page-qqcw-home .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Custom Header --- */
.qqcw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.qqcw-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.qqcw-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.qqcw-header.scrolled .logo { color: #1a1a2e; }
.qqcw-header .logo span { color: #E17055; }

.qqcw-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.qqcw-header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.qqcw-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E17055;
  transition: width 0.3s;
}

.qqcw-header nav a:hover::after { width: 100%; }
.qqcw-header.scrolled nav a { color: #555; }
.qqcw-header.scrolled nav a:hover { color: #E17055; }

.qqcw-header .nav-cta {
  padding: 8px 24px;
  background: rgba(225,112,85,0.15);
  border: 1px solid rgba(225,112,85,0.3);
  border-radius: 8px;
  color: #fff !important;
  font-weight: 500;
  transition: all 0.3s;
}

.qqcw-header .nav-cta:hover {
  background: #E17055;
  border-color: #E17055;
}

.qqcw-header .nav-cta::after { display: none; }

.qqcw-header.scrolled .nav-cta {
  color: #E17055 !important;
  background: rgba(225,112,85,0.08);
  border-color: rgba(225,112,85,0.2);
}

.qqcw-header.scrolled .nav-cta:hover {
  color: #fff !important;
  background: #E17055;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.qqcw-header.scrolled .nav-toggle span { background: #1a1a2e; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a1a;
}

.hero-bg { position: absolute; inset: 0; }

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(225,112,85,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(243,156,18,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(214,48,49,0.12) 0%, transparent 60%);
}

.hero-particles { position: absolute; inset: 0; }

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(225,112,85,0.4);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(225,112,85,0.12);
  border: 1px solid rgba(225,112,85,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  background: linear-gradient(135deg, #E17055, #F39C12, #D63031);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #E17055, #D63031);
  color: #fff;
  box-shadow: 0 4px 20px rgba(225,112,85,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225,112,85,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-white {
  background: #fff;
  color: #D63031;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.8; }
}

/* --- Section Common --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(225,112,85,0.08);
  color: #E17055;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Services/Products Section --- */
.services-section {
  padding: 100px 0;
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E17055, #F39C12);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
}

/* --- About Section --- */
.about-section { padding: 100px 0; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-img-block {
  border-radius: 16px;
  min-height: 180px;
}

.block-1 { background: linear-gradient(135deg, #D63031, #E17055); min-height: 200px; }
.block-2 { background: linear-gradient(135deg, #F39C12, #FDCB6E); min-height: 160px; align-self: end; }
.block-3 { background: linear-gradient(135deg, #E17055, #fab1a0); grid-column: 1 / -1; min-height: 120px; }

.about-floating-card {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.floating-icon { font-size: 2rem; margin-bottom: 8px; }
.floating-text { font-weight: 700; font-size: 1.1rem; color: #1a1a2e; }
.floating-sub { font-size: 0.85rem; color: #E17055; }

.about-lead {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features { display: grid; gap: 20px; }

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E17055, #F39C12);
  margin-top: 6px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.about-feature p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* --- Advantages/Platforms Section --- */
.advantages-section {
  padding: 100px 0;
  background: #0a0a1a;
}

.advantages-section .section-title { color: #fff; }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.advantage-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}

.advantage-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.adv-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(225,112,85,0.4), rgba(243,156,18,0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #D63031, #E17055, #F39C12);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Footer --- */
.qqcw-footer {
  background: #0a0a1a;
  padding: 60px 0 30px;
  color: rgba(255,255,255,0.5);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span { color: #E17055; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: #fab1a0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 0.8rem;
}

/* --- Animations --- */
.service-card,
.advantage-card,
.news-card,
.about-layout {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.service-card.visible,
.advantage-card.visible,
.news-card.visible,
.about-layout.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.05em; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.6rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-floating-card { right: 20px; top: auto; bottom: -20px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .cta-content h2 { font-size: 2rem; }
  .cta-actions { flex-direction: column; align-items: center; }

  .qqcw-header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,26,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .qqcw-header nav.open { display: flex; }
  .qqcw-header nav a { color: #fff !important; font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}

/* --- Site-wide header on subpages: light background variant --- */
body:not(.page-template-page-qqcw-home) .qqcw-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
body:not(.page-template-page-qqcw-home) .qqcw-header .logo { color: #1a1a2e; }
body:not(.page-template-page-qqcw-home) .qqcw-header nav a { color: #555; }
body:not(.page-template-page-qqcw-home) .qqcw-header nav a:hover { color: #E17055; }
body:not(.page-template-page-qqcw-home) .qqcw-header .nav-cta {
  color: #E17055 !important;
}
/* main content offset: fixed header overlaps page top on subpages */
body:not(.page-template-page-qqcw-home) .ast-container,
body:not(.page-template-page-qqcw-home) .site-content {
  padding-top: 96px;
}
