/* Afun - CSS全新设计 2026 */
/* 配色：黄橙渐变 + 白色 + 深灰 */

:root {
  --primary-yellow: #FFD700;
  --primary-orange: #FF8C00;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --border-radius: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--light-bg);
}

/* 顶部导航 - 水平居中布局 */
header {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-area img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-area h1 {
  font-size: 2rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.cta-button {
  background: var(--dark-bg);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* 主内容区 - 网格布局 */
main {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Hero区域 */
.hero-section {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.hero-section img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  padding: 3rem;
}

.hero-content h2 {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
}

/* 面包屑导航 */
.breadcrumb {
  background: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 0.5rem;
}

/* 内容卡片 - 网格布局 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.content-card h3 {
  font-size: 1.8rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-card h3::before {
  content: "⭐";
  font-size: 1.5rem;
}

.content-card p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card ul {
  list-style: none;
  padding-left: 0;
}

.content-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.content-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
}

/* 游戏卡片网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.game-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card-content {
  padding: 1.5rem;
}

.game-card h4 {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 0.8rem;
}

.game-card p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.game-card a {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,140,0,0.4);
}

/* FAQ手风琴 */
.faq-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  margin: 3rem 0;
}

.faq-section h2 {
  font-size: 2.2rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  border-bottom: 2px solid var(--light-bg);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-question::before {
  content: "❓";
  font-size: 1.2rem;
}

.faq-answer {
  color: var(--text-dark);
  line-height: 1.8;
  padding-left: 2rem;
}

/* 评论区 */
.reviews-section {
  margin: 3rem 0;
}

.reviews-section h2 {
  font-size: 2.2rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-info h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.reviewer-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.rating {
  color: var(--primary-yellow);
  font-size: 1.3rem;
}

.review-text {
  color: var(--text-dark);
  line-height: 1.7;
  margin-top: 1rem;
}

.review-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: right;
}

/* 支付方式图标 */
.payment-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0;
}

.payment-icons img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.payment-icons img:hover {
  transform: scale(1.1);
}

/* 页脚 */
footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.footer-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer-badges img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 作者信息卡片 */
.author-card {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--white);
}

.author-info h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
  color: var(--white);
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--light-bg);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(255,215,0,0.05);
}
