/* ==============================
   style.css - 九州娱乐(中文)官网
   ============================== */

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #1a1a2e;
  --accent: #16213e;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --bg: #0f0f1a;
  --text: #f0f0f5;
  --text-muted: #a0a0b8;
  --card-bg: #1e1e30;
  --card-hover: #2a2a40;
  --nav-bg: rgba(15, 15, 26, 0.85);
  --footer-bg: #0a0a14;
  --gradient-1: linear-gradient(135deg, #1a1a2e, #16213e);
  --gradient-2: linear-gradient(135deg, #ff6b35, #e55a2b);
  --gradient-3: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

body.dark-mode {
  --bg: #0f0f1a;
  --text: #f0f0f5;
  --text-muted: #a0a0b8;
  --card-bg: #1e1e30;
  --card-hover: #2a2a40;
  --nav-bg: rgba(15, 15, 26, 0.85);
  --footer-bg: #0a0a14;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: var(--gradient-2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* === Glass Effect === */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === Cards === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s;
  border: 1px solid transparent;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--glass-border);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === Grids === */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* === Scroll Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === Responsive Grids === */
@media (max-width: 992px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s;
}

.dark-toggle {
  background: none;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.dark-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-3);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-slider {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 60%;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide svg {
  width: 90%;
  height: 90%;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-slider {
    position: relative;
    width: 100%;
    height: 300px;
    transform: none;
    margin-top: 40px;
  }
}

/* === Brand Intro === */
.brand-intro {
  background: var(--gradient-1);
  position: relative;
}

.brand-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Ccircle cx='400' cy='400' r='300' fill='none' stroke='%23ff6b35' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.3;
}

.brand-intro .container {
  position: relative;
  z-index: 1;
}

/* === Brand Story === */
.brand-story {
  background: var(--bg);
}

/* === Culture === */
.culture {
  background: var(--gradient-1);
}

/* === Team === */
.team {
  background: var(--bg);
}

.team-member svg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
}

/* === Products === */
.products {
  background: var(--gradient-1);
}

.product-card svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

/* === Advantages === */
.advantages {
  background: var(--bg);
}

/* === Solutions === */
.solutions {
  background: var(--gradient-1);
}

/* === Industries === */
.industries {
  background: var(--bg);
}

/* === Stats === */
.stats {
  background: var(--gradient-1);
  position: relative;
}

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

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Cases === */
.cases {
  background: var(--bg);
}

/* === Clients === */
.clients {
  background: var(--gradient-1);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

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

.client-logos svg:hover {
  opacity: 1;
}

/* === Testimonials === */
.testimonials {
  background: var(--bg);
}

/* === News === */
.news {
  background: var(--gradient-1);
}

/* === FAQ === */
.faq {
  background: var(--bg);
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  cursor: pointer;
}

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

.faq-question span {
  transition: transform 0.3s;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  padding-top: 8px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* === How To === */
.howto {
  background: var(--gradient-1);
}

/* === Contact === */
.contact {
  background: var(--bg);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-details p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* === Friends Links === */
.friends {
  background: var(--gradient-1);
}

.friends-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.friends-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--glass);
  transition: all 0.3s;
}

.friends-links a:hover {
  background: var(--primary);
  color: #fff;
}

/* === Sitemap === */
.sitemap {
  background: var(--bg);
}

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

.sitemap-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.sitemap-grid ul {
  list-style: none;
}

.sitemap-grid li {
  margin-bottom: 8px;
}

.sitemap-grid a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sitemap-grid a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Footer === */
footer {
  background: var(--footer-bg);
  padding: 40px 0 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

/* === Search Modal === */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal.open {
  display: flex;
}

.search-modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  border: 1px solid var(--glass-border);
}

.search-modal input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
}

.search-modal input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-modal .close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

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

/* === Related Posts === */
.related-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .related-posts {
    grid-template-columns: 1fr;
  }
}

/* === Pagination === */
.pagination {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}