/* ========== 全局样式重置与基础配置 ========== */
/* 重置浏览器默认边距/内边距，避免样式差异 */
* {
  margin: 0;
  padding: 0;
  /* 盒模型：宽度包含边框/内边距，更易控制布局 */
  box-sizing: border-box; 
}

/* 全局字体：微软雅黑适配中文，无衬线字体更现代 */
body {
  font-family: "Microsoft Yahei", sans-serif; 
  /* 深色背景，还原原图风格 */
  background-color: #1e1e1e; 
  /* 文字白色，保证深色背景下可读性 */
  color: #ffffff; 
  /* 行高：增强文字呼吸感 */
  line-height: 1.6; 
}

/* 容器：限制宽度+居中+内边距，适配不同屏幕 */
.container {
  width: 90%;          /* 宽度占屏幕90% */
  max-width: 1200px;   /* 最大宽度1200px，防止过大 */
  margin: 0 auto;      /* 水平居中 */
  padding: 0 1rem;     /* 左右内边距，小屏幕留白 */
}

/* ========== 顶部导航栏（Site Header） ========== */
.site-header {
  /* 导航栏背景色：深灰，区分页面主体 */
  background-color: #2c2c2c; 
  padding: 1rem 0; /* 上下内边距1rem，左右0 */
}

/* 导航栏容器：Flex布局，让Logo左对齐，菜单右对齐 */
.site-header .container {
  display: flex;
  align-items: center;   /* 垂直居中 */
  justify-content: space-between; /* 两端对齐（Logo左，菜单右） */
}

/* Logo图片：设置高度，保持比例 */
.logo {
  height: 40px; /* 可根据实际Logo调整高度 */
}

/* 主页链接：文字样式+hover动效 */
.home-link {
  text-decoration: none; /* 去除默认下划线 */
  color: #ffffff;        /* 文字白色 */
  font-weight: bold;     /* 字体加粗 */
  transition: color 0.3s ease; /* 颜色过渡动画（0.3秒，缓动） */
}

/* 鼠标悬浮时，文字变浅蓝（增强交互） */
.home-link:hover {
  color: #00bfff; 
}

/* ========== 核心标题区（Hero Section） ========== */
.hero {
  /* 背景渐变：从深灰到暗紫，增强层次感 */
  background: linear-gradient(to right, #1e1e1e, #2c2c2c); 
  padding: 4rem 0; /* 上下内边距4rem，打造视觉重心 */
}

/* 标题区容器：Flex布局，让文字区与图片区分栏 */
.hero .container {
  display: flex;
  align-items: center; /* 垂直居中 */
}

/* 左侧文字内容区：与图片区留出2rem间距 */
.hero-content {
  flex: 1; /* 占剩余宽度 */
  padding-right: 2rem; 
}

/* 主标题：层级分明，行高紧凑 */
.hero-content h1 {
  font-size: 2.5rem;   /* 字号2.5倍基准 */
  margin-bottom: 1rem; /* 与副标题间距1rem */
  line-height: 1.2;    /* 行高更紧凑 */
}

/* 主标题中“坞中客官网”紫色高亮 */
.hero-content h1 span {
  color: #a770ef; 
}

/* 副标题：浅灰，弱化视觉权重 */
.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem; /* 与按钮区间距2rem */
  color: #cccccc;      /* 浅灰色文字 */
}

/* 按钮组：Flex布局，按钮间留1rem间距 */
.buttons {
  display: flex;
  gap: 1rem; 
}

/* 通用按钮样式：圆角+鼠标悬浮动效 */
.btn {
  padding: 0.75rem 1.5rem; /* 内边距：上下0.75，左右1.5 */
  border: none;            /* 去除默认边框 */
  border-radius: 25px;     /* 大圆角，柔和风格 */
  cursor: pointer;         /* 鼠标悬浮变手型 */
  font-weight: bold;       /* 字体加粗 */
  text-decoration: none;   /* 去除a标签下划线 */
  color: #ffffff;          /* 文字白色 */
  transition: background 0.3s ease, transform 0.3s ease; /* 背景+位移过渡 */
}

/* 按钮悬浮时：轻微上浮（增强互动感） */
.btn:hover {
  transform: translateY(-2px); 
}

/* 进服教程按钮：紫→蓝渐变 */
.primary {
  background: linear-gradient(to right, #6a11cb, #2575fc); 
}

/* 游玩须知按钮：灰→深灰渐变 */
.secondary {
  background: linear-gradient(to right, #444444, #666666); 
}

/* 右侧角色图片：宽度300px，圆角+自适应裁剪 */
.hero-image img {
  width: 300px;
  border-radius: 10px;  /* 圆角柔化 */
  object-fit: cover;    /* 保持图片比例，裁剪多余部分 */
}

/* ========== 功能卡片区（Features Section） ========== */
.features {
  padding: 4rem 0; /* 上下内边距4rem，与标题区间隔呼应 */
}

/* 卡片容器：Flex布局，自动换行+间距2rem */
.feature-cards {
  display: flex;
  flex-wrap: wrap;   /* 屏幕缩小时自动换行 */
  justify-content: center; /* 卡片组水平居中 */
  gap: 2rem;         /* 卡片间间距2rem */
}

/* 单个卡片：深灰背景+圆角+阴影+悬浮动效 */
.feature-card {
  background-color: #2c2c2c; /* 卡片背景深灰 */
  padding: 2rem;             /* 内边距2rem */
  border-radius: 10px;       /* 卡片圆角 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 浅阴影，增强层次 */
  text-align: center;        /* 文字居中 */
  width: 250px;              /* 卡片宽度（可自适应） */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 动画过渡 */
}

/* 卡片悬浮时：上浮+阴影加深（增强互动） */
.feature-card:hover {
  transform: translateY(-5px); /* 上浮更明显 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* 阴影更深 */
}

/* 卡片图标：字号2倍，与文字留间距 */
.icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* 卡片标题：字号1.25倍，与描述留间距 */
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ========== 底部备案区（Site Footer） ========== */
.site-footer {
  /* 底部背景色：深灰，与导航一致 */
  background-color: #2c2c2c; 
  padding: 1.5rem 0; /* 上下内边距1.5rem */
  text-align: center;/* 文字居中 */
  color: #bbbbbb;    /* 浅灰文字，弱化视觉 */
}

/* 底部文字：行高1.4，增强可读性 */
.site-footer p {
  line-height: 1.4;
}
/* 在styles.css中添加以下内容 */

/* 玩法导航样式 */
.play-navigation {
  background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
  padding: 2rem 0;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-tab {
  padding: 1rem 2rem;
  border-radius: 25px;
  color: #8892b0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* 玩法区块样式 */
.play-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.05);
}

.rule-block {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rule-block h3 {
  color: #64ffda;
  margin-bottom: 1.5rem;
}

.demo-img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 2rem 0;
}

/* 事件卡片样式 */
.event-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* 在styles.css中添加以下内容 */

/* 赞助区块样式 */
.sponsor-section {
  background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
  padding: 4rem 0;
}

.sponsor-block {
  max-width: 800px;
  margin: 0 auto;
}

.method-card {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.method-card h3 {
  color: #64ffda;
  margin-bottom: 1.5rem;
}

.method-card ul {
  list-style: none;
  padding-left: 1.5rem;
}

.method-card li {
  margin-bottom: 1rem;
  color: #8892b0;
}

.method-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #64ffda;
}

/* 致谢板块样式 */
.acknowledgement-section {
  padding: 4rem 0;
  background: rgba(255,255,255,0.03);
}

.ack-item {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.ack-item .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #64ffda;
}

/* 合作伙伴区块样式 */
.partner-section {
  padding: 4rem 0;
  text-align: center;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.partner-logo {
  width: 200px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

