/* 
 This CSS file is used to override the existing styles of the theme.
 You can change the article headings, fonts, colors, etc.
*/

/* 导入免费商用中文字体 - 思源黑体和思源宋体 (开源字体，完全免费商用) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@400;700;900&family=ZCOOL+XiaoWei&family=Zhi+Mang+Xing&display=swap");

/* 全局字体设置 */
body {
  background: #ffffff;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #2d3748;
}

/* 主内容区域 */
main {
  background: #ffffff;
  min-height: 100vh;
}

/* 标题使用更有个性的字体 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a202c;
}

/* 特殊标题 - 使用免费艺术字体 */
.game-header h1,
.title {
  font-family: "ZCOOL XiaoWei", "Zhi Mang Xing", "Noto Serif SC", serif;
  font-weight: 900;
  color: #1a202c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.1em;
}

#mobileMenu a {
  color: white;
  font-weight: bold;
}

/* 游戏产品页面样式增强 */
.game-header {
  animation: fadeInDown 0.8s ease-out;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(168, 85, 247, 0.08) 100%
  );
  padding: 3rem 2rem;
  border-radius: 24px;
  margin-bottom: 3rem;
  border: 2px solid rgba(99, 102, 241, 0.15);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.highlights > div {
  animation: slideInLeft 0.6s ease-out;
  animation-fill-mode: both;
}

.highlights > div:nth-child(1) {
  animation-delay: 0.1s;
}
.highlights > div:nth-child(2) {
  animation-delay: 0.2s;
}
.highlights > div:nth-child(3) {
  animation-delay: 0.3s;
}
.highlights > div:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-section {
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
  .feature-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
  .game-header .text-6xl {
    font-size: 3rem;
  }

  .feature-card {
    margin-bottom: 1rem;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 产品列表卡片样式优化 */
.summary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fafbff 0%, #f3f4ff 100%) !important;
  border: 2px solid #667eea !important;
  transition: all 0.3s ease;
}

.summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.summary:hover::before {
  left: 100%;
}

.summary:hover {
  background: linear-gradient(135deg, #f3f4ff 0%, #e8eaf6 100%) !important;
  border-color: #764ba2 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25) !important;
}

/* 产品列表标题颜色 */
.summary h2 {
  color: #1a202c !important;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  font-weight: 900 !important;
  letter-spacing: 0.08em;
}

/* 产品列表描述颜色 */
.summary p {
  color: #2d3748 !important;
  font-weight: 600 !important;
  line-height: 1.7;
}

/* 标签样式增强 */
.summary span {
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.5rem 1.2rem !important;
  min-width: fit-content;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.summary:hover span {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* 产品详情页 - 不同板块背景区分 */
.content > h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  font-size: 1.75rem;
}

.content > h3 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(240, 147, 251, 0.3);
}

.content > h4 {
  color: #667eea;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* 游戏简介区块 */
.content > p:first-of-type {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 2rem;
  border-radius: 16px;
  border-left: 5px solid #f57c00;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.2);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #2d3748;
  font-weight: 500;
}

/* 分隔线美化 */
.content > hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  margin: 3rem 0;
  position: relative;
}

.content > hr::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 1rem;
  color: #667eea;
  font-size: 1.5rem;
}

/* 引用块样式 */
.content blockquote {
  background: linear-gradient(135deg, #e0f2f1 0%, #fff9c4 100%);
  border-left: 5px solid #00897b;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 137, 123, 0.2);
  font-style: italic;
  color: #1a202c;
  font-weight: 500;
}

.content blockquote strong {
  color: #00695c;
  font-weight: 700;
}

/* 列表样式优化 */
.content ul {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2rem 1.5rem 3rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content ul li {
  margin: 0.75rem 0;
  position: relative;
  color: #2d3748;
  font-weight: 400;
}

.content ul li::marker {
  color: #667eea;
  font-weight: bold;
}

/* 普通段落文字颜色 */
.content p {
  color: #2d3748;
  line-height: 1.8;
}

/* 特色卡片背景渐变变化 */
.feature-card:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

.feature-card:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  color: white !important;
}

.feature-card:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: white !important;
}

.feature-card:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
  color: white !important;
}

.feature-card h3 {
  color: white !important;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.98) !important;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.feature-card .text-4xl {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* 亮点列表卡片背景 */
.highlights > div {
  background: linear-gradient(135deg, #fafbff 0%, #f8f9fa 100%);
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlights > div h4 {
  color: #1a202c;
  font-weight: 700;
}

.highlights > div p {
  color: #4a5568;
  font-weight: 400;
}

.highlights > div:hover {
  background: linear-gradient(135deg, #fff5f8 0%, #ffe8ef 100%);
  border-left-color: #f5576c;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.2);
}

/* 成就/阶段卡片 */
.content .grid > div {
  transition: all 0.3s ease;
}

.content .grid > div:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.content .grid > div h4 {
  color: #1a202c;
  font-weight: 800;
}

.content .grid > div p {
  color: #374151;
  font-weight: 500;
}

.content .grid > div .text-3xl {
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.1));
}

/* CTA按钮区域 */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }

  main {
    background: #0f172a;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #f7fafc;
  }

  .game-header h1,
  .title {
    color: #f7fafc;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  }

  .game-header {
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.15) 0%,
      rgba(168, 85, 247, 0.15) 100%
    );
    border-color: rgba(99, 102, 241, 0.3);
  }

  .content > p:first-of-type {
    background: linear-gradient(
      135deg,
      rgba(255, 152, 0, 0.15) 0%,
      rgba(255, 193, 7, 0.15) 100%
    );
    border-left-color: #ff9800;
    color: #f7fafc;
    font-weight: 500;
  }

  .content p {
    color: #e2e8f0;
  }

  .content ul {
    background: rgba(45, 55, 72, 0.8);
  }

  .content ul li {
    color: #e2e8f0;
  }

  .highlights > div {
    background: linear-gradient(
      135deg,
      rgba(45, 55, 72, 0.9) 0%,
      rgba(26, 32, 44, 0.9) 100%
    );
  }

  .highlights > div h4 {
    color: #f7fafc;
  }

  .highlights > div p {
    color: #cbd5e0;
  }

  .highlights > div:hover {
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.3) 0%,
      rgba(118, 75, 162, 0.3) 100%
    );
  }

  .content blockquote {
    background: linear-gradient(
      135deg,
      rgba(0, 150, 136, 0.15) 0%,
      rgba(255, 235, 59, 0.1) 100%
    );
    border-left-color: #26a69a;
    color: #f7fafc;
  }

  .content blockquote strong {
    color: #4db6ac;
  }

  /* 深色模式 - 产品列表卡片 */
  .summary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #667eea !important;
  }

  .summary:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
    border-color: #764ba2 !important;
  }

  .summary h2 {
    color: #f1f5f9 !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  }

  .summary p {
    color: #cbd5e0 !important;
    font-weight: 600 !important;
  }

  .summary span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  }

  .summary:hover span {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
  }

  /* 深色模式 - 成就/阶段卡片 */
  .content .grid > div h4 {
    color: #f7fafc;
  }

  .content .grid > div p {
    color: #cbd5e0;
  }
}
