/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; }
a { text-decoration: none; color: #0056b3; transition: color 0.3s; }
a:hover { color: #003d82; }
ul { list-style: none; }

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

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #003d82;
  text-decoration: underline;
}

.breadcrumb span {
  color: #333;
  font-weight: 500;
}
header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
/* WG 官网 Header Logo + 流光标语（1:1 复刻 wg.com） */
.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  width: 198px;     /* 官网真实尺寸 */
  height: 60px;
  background-image: url("images/logo.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* WebP 不支持时兜底 */
@supports not (background-image: url("images/logo.webp")) {
  .logo-link {
    background-image: url("images/logo.png");
  }
}

.logo-tips {
  width: 121px;     /* 官网真实尺寸 */
  height: 40px;
  margin-left: 32px; /* 官网真实间距 */
  background-image: url("images/logo_tips.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: wg-logo-streamer 2.5s infinite;
}

/* 官网流光动画节奏 */
@keyframes wg-logo-streamer {
  0% {
    opacity: 0.9;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3)
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  }
  100% {
    opacity: 0.9;
    filter: brightness(1);
  }
}

/* Navigation */
nav ul { display: flex; gap: 30px; }
nav a { font-weight: 500; color: #555; }
nav a.active { color: #d32f2f; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 800px; margin: 0 auto 30px; opacity: 0.9; }
.btn { display: inline-block; background: #d32f2f; color: #fff; padding: 12px 30px; border-radius: 4px; font-weight: bold; }
.btn:hover { background: #b71c1c; color: #fff; }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; color: #222; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Cards */
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 15px; color: #1a237e; }
.card-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.card img { max-width: 100%; height: auto; display: block; }

/* Footer */
footer { background: #222; color: #aaa; padding: 40px 0; margin-top: 60px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
footer h4 { color: #fff; margin-bottom: 20px; }
footer ul li { margin-bottom: 10px; }
footer a { color: #aaa; }
footer a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* Detail Page specific */
.feature-list li { background: #fff; margin-bottom: 15px; padding: 20px; border-left: 4px solid #d32f2f; box-shadow: 0 2px 4px rgba(0,0,0,0.03); position: relative; padding-left: 100px; min-height: 80px; }
.feature-icon-img { position: absolute; left: 20px; top: 20px; width: 60px; height: 60px; object-fit: contain; }
.contact-box { background: #e3f2fd; padding: 40px; border-radius: 8px; text-align: center; }

/* Advantages Grid (8 items) */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.advantage-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: block;
}

.advantage-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Game Showcase Grid */
.game-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.game-showcase-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
  cursor: pointer;
}

.game-showcase-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.game-showcase-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-showcase-item:hover img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
  padding: 25px 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.game-overlay h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: bold;
}

.game-overlay p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.game-showcase-item:hover .game-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 70%, transparent 100%);
  padding: 30px 20px;
}

/* Game Types Grid */
.game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.game-type-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-type-card h3 {
  font-size: 20px;
  color: #1a237e;
  margin-bottom: 12px;
}

.game-type-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.game-tags .tag {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.game-tags .tag:hover {
  background: #1976d2;
  color: #fff;
}

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.platform-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: all 0.3s;
}

.platform-icons img:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Cooperator Grid */
.cooperator-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.cooperator-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooperator-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cooperator-item img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.cooperator-item:hover img {
  filter: grayscale(0%);
}

/* Services Showcase */
.services-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-item-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-content h3 {
  font-size: 24px;
  color: #1a237e;
  margin-bottom: 15px;
}

.service-content p {
  line-height: 1.8;
  color: #555;
}

/* Invitation Section */
.invitation-section {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
}

.invitation-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.invitation-img-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.invitation-img-item img:hover {
  transform: scale(1.05);
}

/* Article Page Styles */
.article-content {
  padding: 40px 0;
  background: #f9f9f9;
}

.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.article-main {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.article-title {
  font-size: 36px;
  line-height: 1.4;
  color: #222;
  margin-bottom: 20px;
  font-weight: bold;
}

.article-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-item a {
  color: #0056b3;
}

.article-featured-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-summary {
  background: #e3f2fd;
  padding: 25px;
  border-left: 4px solid #0056b3;
  margin: 30px 0;
  border-radius: 4px;
}

.article-summary p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.article-body h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 2px solid #0056b3;
}

.article-body h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #333;
}

.article-body h4 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: #555;
}

.article-body p {
  margin: 15px 0;
}

.article-body ul,
.article-body ol {
  margin: 15px 0;
  padding-left: 30px;
}

.article-body li {
  margin: 10px 0;
  line-height: 1.8;
}

.article-body strong {
  color: #0056b3;
  font-weight: 600;
}

.article-body blockquote {
  background: #fffbf0;
  border-left: 4px solid #ffa500;
  padding: 20px 25px;
  margin: 20px 0;
  font-style: italic;
}

.content-image {
  margin: 30px 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.case-study {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.case-study h4 {
  color: #0056b3;
  margin-top: 20px;
  margin-bottom: 15px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-body table th {
  background: #0056b3;
  color: #fff;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.article-body table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.article-body table tr:hover {
  background: #f5f5f5;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  background: #e3f2fd;
  font-weight: 600;
}

.testimonials {
  margin: 30px 0;
}

.testimonial {
  background: #fff;
  border-left: 4px solid #28a745;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.testimonial .quote {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.testimonial .author {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

.cta-box {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  color: #fff;
  margin-bottom: 15px;
}

.cta-box p {
  color: #fff;
  opacity: 0.9;
  margin-bottom: 25px;
}

.article-tags {
  margin: 40px 0 20px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.tag-label {
  font-weight: 600;
  color: #333;
  margin-right: 10px;
}

.article-tags .tag {
  display: inline-block;
  background: #e3f2fd;
  color: #0056b3;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin: 5px;
  transition: all 0.3s;
}

.article-tags .tag:hover {
  background: #0056b3;
  color: #fff;
}

.article-share {
  margin: 20px 0;
  padding: 20px 0;
}

.share-label {
  font-weight: 600;
  color: #333;
  margin-right: 15px;
}

.share-btn {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  border-radius: 5px;
  background: #f0f0f0;
  color: #333;
  transition: all 0.3s;
}

.share-btn:hover {
  background: #0056b3;
  color: #fff;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-widget {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
  font-size: 20px;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0056b3;
}

.related-articles {
  list-style: none;
}

.related-articles li {
  margin-bottom: 15px;
}

.related-articles a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
}

.related-articles a:hover {
  background: #f5f5f5;
}

.related-articles img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
}

.related-articles span {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-tag {
  display: inline-block;
  padding: 6px 15px;
  background: #f0f0f0;
  color: #555;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}

.cloud-tag:hover {
  background: #0056b3;
  color: #fff;
}

.contact-widget {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: #fff;
  text-align: center;
}

.contact-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.contact-widget p {
  color: #fff;
  opacity: 0.9;
  margin: 10px 0;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container { flex-direction: column; height: auto; padding: 15px 20px; }
    .logo-wrap { margin-bottom: 15px; }
    .logo-link { width: 150px; height: 45px; }
    .logo-tips { width: 90px; height: 30px; margin-left: 20px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .grid { grid-template-columns: 1fr; }
    .feature-list li { padding-left: 20px; min-height: auto; }
    .feature-icon-img { position: static; display: block; margin: 0 auto 15px; }
    .section { padding: 40px 0; }
    footer .container { flex-direction: column; gap: 30px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .advantage-item img { width: 60px; height: 60px; }
    .invitation-images { grid-template-columns: 1fr; gap: 20px; }
    .service-item-horizontal { grid-template-columns: 1fr; padding: 20px; }
    .service-item-horizontal img { order: -1; }
    .cooperator-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .platform-icons img { width: 24px; height: 24px; }
    .game-showcase-grid { grid-template-columns: 1fr; gap: 20px; }
    .game-showcase-item img { height: 220px; }
    
    /* Article page responsive */
    .article-content { padding: 20px 0; }
    .article-wrapper { grid-template-columns: 1fr; gap: 0; }
    .article-main { padding: 20px 15px; border-radius: 0; }
    .article-title { font-size: 24px; line-height: 1.3; }
    .article-meta { 
        gap: 10px; 
        font-size: 12px; 
        flex-direction: column;
        align-items: flex-start;
    }
    .article-featured-image { margin: 20px -15px; border-radius: 0; }
    .article-summary { padding: 20px; margin: 20px 0; }
    .article-summary p { font-size: 15px; }
    .article-body { font-size: 15px; }
    .article-body h2 { font-size: 22px; margin: 30px 0 15px; }
    .article-body h3 { font-size: 19px; margin: 25px 0 12px; }
    .article-body h4 { font-size: 17px; }
    .article-body blockquote { padding: 15px 20px; }
    .content-image { margin: 20px -15px; }
    .content-image img { border-radius: 0; }
    .case-study { padding: 20px; margin: 20px 0; }
    .article-body table { font-size: 13px; }
    .article-body table th,
    .article-body table td { padding: 10px 8px; }
    .testimonial { padding: 20px; }
    .cta-box { padding: 30px 20px; margin: 30px 0; }
    .article-tags { margin: 30px 0 15px; padding: 15px 0; }
    .article-tags .tag { font-size: 13px; padding: 5px 12px; }
    .article-share { padding: 15px 0; }
    .share-btn { padding: 6px 15px; font-size: 13px; }
    .article-sidebar { 
        position: static; 
        margin-top: 20px; 
        padding: 0 15px;
    }
    .sidebar-widget { padding: 20px; margin-bottom: 20px; }
    .widget-title { font-size: 18px; }
    .related-articles img { width: 50px; height: 50px; }
    .related-articles span { font-size: 13px; }
}