:root {
  --riot-black: #111111;
  --riot-dark: #0a0a0c;
  --riot-white: #f9f9f9;
  --riot-pure-white: #ffffff;
  --riot-gold: #c89b3c;
  --riot-gold-hover: #f0e6d2;
  --riot-gold-dark: #785a28;
  --riot-red: #d13639;
  --riot-gray: #7e7e7e;
  --riot-border: #e1e1e1;

  --font-serif: "Georgia", "Times New Roman", Times, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei UI", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--riot-white);
  color: var(--riot-black);
  -webkit-font-smoothing: antialiased;
}

/* --- 默认状态：在全屏视频上方时，顶部带暗灰渐变，其余全透明 --- */
.riot-topnav {
  position: fixed; 
  top: 0; 
  width: 100%; 
  z-index: 100;
  height: 80px; 
  display: flex; 
  align-items: center;
  /* 默认背景：从上到下的黑色渐变，保护 Logo 和按钮能看清，向下融入视频 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  border-bottom: 1px solid transparent; /* 默认无边框 */
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* 丝滑的切换动画 */
}

/* --- 滚动状态：下滑到白底区域后，变成高级黑金毛玻璃 --- */
.riot-topnav.scrolled {
  background: rgba(10, 10, 12, 0.95); /* 纯正的黑底，带有 5% 的通透 */
  backdrop-filter: blur(12px);        /* 极强毛玻璃 */
  border-bottom: 1px solid rgba(200, 155, 60, 0.4); /* 底部浮现海克斯金边 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* 加一层阴影，与下方白底强力隔开 */
}
/* 确保父容器是弹性布局，防止按钮乱跑 */
.nav-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 绑定邮箱按钮的“金标”风格 */
/* --- 统一的镂空金边按钮样式（中间透明，金色边框） --- */
.gold-btn {
  background-color: rgba(0, 0, 0, 0.2) !important; /* 中间极度透明，带一点极暗底色确保文字能看清 */
  border: 2px solid var(--riot-gold) !important;   /* 纯金色边框 */
  color: var(--riot-gold) !important;              /* 金色文字 */
  padding: 10px 24px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 0.85rem !important;
  backdrop-filter: blur(4px) !important;           /* 背景微毛玻璃效果 */
}

/* 鼠标放上去时的样式：变成实心金底黑字 */
.gold-btn:hover {
  background-color: var(--riot-gold) !important;   /* 背景填满金色 */
  color: #000 !important;                          /* 字体反转为黑色，对比最强烈 */
  box-shadow: 0 0 15px rgba(200, 155, 60, 0.5) !important; /* 增加发光特效 */
  transform: translateY(-2px);
}

/* 专门针对页面中间的“立即领取”大按钮，让它尺寸更大更霸气 */
#exploreBtn {
  padding: 16px 40px !important;
  font-size: 1.1rem !important;
}

/* 同样专门针对模态框里的“确认绑定”按钮，让它宽度铺满 */
#confirmEmail {
  width: 100% !important;
  padding: 14px !important;
  font-size: 1rem !important;
}

/* 强制右侧容器不被挤压 */
.nav-actions {
  flex: 0 0 auto;
  margin-left: auto; /* 这一步强制把右侧元素推到最右边 */
}
/* --- 顶部导航品牌区 --- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px; /* 控制文字、竖线、L图标之间的间距 */
}

.riot-logo, .lol-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* 鼠标悬停时的微光效果 */
.riot-logo:hover, .lol-logo:hover {
  opacity: 0.7;
}

/* 中间的隔断线 */
.nav-divider {
  width: 2px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

/* 无论你贴入的是 img 还是官方的 svg，都强制规范高度 */
.nav-brand svg, 
.nav-brand img {
  height: 24px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--riot-pure-white); text-decoration: none; font-size: 0.85rem;
  font-weight: bold; letter-spacing: 1px; text-transform: uppercase;
  opacity: 0.7; transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.play-btn {
  background-color: #0bc6e3; color: #000; border: none; border-radius: 20px;
  padding: 10px 24px; font-weight: bold; font-size: 0.85rem; cursor: pointer;
  letter-spacing: 1px; transition: background-color 0.2s;
}
.play-btn:hover { background-color: #00e0ff; }

/* 全屏视频头图 */
.hero-section {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background-color: var(--riot-dark);
}
.video-container {
  position: absolute; inset: 0; width: 100%; height: 110%; /* 预留视差滚动空间 */
  z-index: 1; pointer-events: none;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
}
.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.9) 100%);
}

.hero-content {
  position: relative; z-index: 3; text-align: center;
  padding: 0 20px; display: flex; flex-direction: column; align-items: center;
}
/* --- 替换原来的 .lol-title --- */
.hero-logo {
  width: 100%;
  max-width: 500px; /* 控制 Logo 在 PC 端的最大尺寸，可根据你的图片比例微调 */
  height: auto;
  margin-bottom: 24px;
  /* 为图片增加阴影，确保在任何视频画面上都清晰可见 */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  /* 添加一个极其轻微的放大进场动画 */
  animation: logoFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 顺便微调一下副标题，让它和图片更搭配 */
.lol-subtitle {
  color: var(--riot-pure-white); 
  font-size: 1rem; 
  font-weight: bold;
  letter-spacing: 2px; 
  margin-bottom: 40px; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  animation: logoFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* 保持跟 Logo 同频入场 */
}
.gold-btn {
  background: rgba(0, 0, 0, 0.4); border: 2px solid var(--riot-gold);
  color: var(--riot-gold-hover); padding: 18px 40px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: bold;
  letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.gold-btn:hover {
  background: var(--riot-gold); color: var(--riot-black);
  box-shadow: 0 0 20px rgba(200, 155, 60, 0.4);
}

/* 纯白内容区 */
.content-area {
  position: relative; z-index: 10;
  background-color: var(--riot-white);
  padding: 80px 0 120px; min-height: 500px;
}
.content-wrapper { width: 90%; max-width: 1400px; margin: 0 auto; }

.control-bar {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--riot-border);
  padding-bottom: 20px; margin-bottom: 40px;
}
.section-heading {
  font-family: var(--font-serif); font-size: 2.2rem;
  color: var(--riot-black); font-style: italic; font-weight: bold;
  display: flex; align-items: center; gap: 12px;
}
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background-color: #0bc6e3;
  box-shadow: 0 0 8px #0bc6e3; animation: pulse 2s infinite;
}

.controls-right { display: flex; gap: 40px; align-items: center; }
.search-box input {
  border: none; border-bottom: 2px solid var(--riot-gray);
  background: transparent; padding: 8px 0; font-size: 1rem;
  font-family: var(--font-sans); outline: none; width: 220px;
  transition: border-color 0.3s;
}
.search-box input:focus { border-bottom-color: var(--riot-gold); }

.filter-group { display: flex; gap: 20px; }
.filter-btn {
  background: transparent; border: none; font-size: 0.9rem;
  font-weight: bold; color: var(--riot-gray); cursor: pointer;
  letter-spacing: 1px; transition: color 0.2s;
}
.filter-btn:hover { color: var(--riot-black); }
.filter-btn.active { color: var(--riot-gold); border-bottom: 2px solid var(--riot-gold); padding-bottom: 4px; }

/* --- 官方风格卡片网格 --- */
.riot-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); 
  gap: 24px; 
}

/* --- 卡片基础与进场动画 --- */
.card {
  background: var(--riot-pure-white); 
  border: 1px solid #e5e5e5; 
  border-radius: 2px; 
  text-decoration: none; 
  display: flex; 
  flex-direction: column;
  overflow: hidden;
  
  /* 初始稍微沉得更深一点，配合放慢的动画更有感觉 */
  opacity: 0; 
  transform: translateY(40px);
  
  /* 【放慢速度】：从 0.5s 改为 0.8s，拉长整个运动周期 */
  animation: cardEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* 定义进场关键帧 */
@keyframes cardEnter {
  0% { 
    opacity: 0; 
    transform: translateY(40px); /* 沉得更深 */
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* --- 卡片悬浮状态 --- */
.card:hover { 
  /* 加 !important 防止被动画结束状态覆盖 */
  transform: translateY(-4px) !important; 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); 
  border-color: #d1d1d1;
}

/* --- 图片容器：不设死高度，让里面的图片自由撑开 --- */
.card-img-wrapper {
  width: 100%;
  /* 删掉了 aspect-ratio 和 fixed height，由内部图片决定高度 */
  position: relative;
  overflow: hidden;
  background-color: transparent; /* 不需要黑边底色了 */
  border-bottom: 2px solid transparent; 
  transition: border-color 0.3s;
}

.card:hover .card-img-wrapper { 
  border-bottom-color: var(--riot-gold); 
}

/* --- 图片：宽度铺满，高度自适应，完美贴合 --- */
.card-img {
  width: 100%; 
  height: auto; /* 【核心奥义】：高度自动计算，永远保持图片原始比例 */
  display: block; /* 消除 img 标签底部自带的幽灵空白缝隙 */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- 官方悬浮角标 (放大版) --- */
.card-tag {
  position: absolute;
  top: 12px;        /* 稍微往下挪一点点，离边角更有呼吸感 */
  left: 12px;
  background: rgba(10, 10, 12, 0.85); /* 保持半透明质感 */
  color: var(--riot-gold);
  
  /* --- 关键放大区 --- */
  font-size: 0.85rem;   /* 从 0.75rem 调大 */
  font-weight: 900;     /* 极粗体 */
  padding: 6px 12px;    /* 增加内边距，角标面积变大 */
  
  border-radius: 2px;
  border: 1px solid rgba(200, 155, 60, 0.6);
  z-index: 2;
  backdrop-filter: blur(4px); /* 毛玻璃效果让角标在不同图片上都清晰可见 */
  
  /* 添加轻微的阴影，增加立体感 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

/* 红色战利品角标微调 */
.card-tag.draw { 
  color: #ff6b6b; 
  border-color: rgba(255, 107, 107, 0.6); 
}

/* --- 文字内容区 --- */
.card-content { 
  padding: 16px 20px; 
  display: flex; 
  flex-direction: column; 
  flex: 1;
}

/* 官方的单行省略号标题 */
.card-title {
  font-family: var(--font-sans); /* 列表页通常不用夸张的衬线体 */
  font-size: 1.15rem; 
  color: #333;
  margin-bottom: 8px; 
  font-weight: bold;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; /* 超出显示... */
  transition: color 0.2s;
}

.card:hover .card-title {
  color: var(--riot-gold-dark); /* Hover时文字变色 */
}

/* 官方单行描述 */
.card-desc {
  font-size: 0.9rem; 
  color: #777; 
  margin-bottom: 16px;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

/* 底部日期栏 */
.card-footer {
  font-size: 0.85rem; 
  color: #999; 
  display: flex; 
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* 把底部撑到最下方 */
  padding-top: 14px;
  border-top: 1px solid #f0f0f0; 
}

.remain { color: var(--riot-red); font-weight: bold;}

/* 为了防止空状态切换时也没动画，顺便给空状态加个渐显 */
.empty-state { 
  text-align: center; 
  padding: 60px; 
  font-family: var(--font-serif); 
  font-size: 1.2rem; 
  color: var(--riot-gray); 
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden { display: none !important; }

/* --- 官方风格页脚：增加金边，首尾呼应 --- */
.riot-footer { 
  background: var(--riot-dark); 
  color: var(--riot-gray); 
  text-align: center; 
  padding: 50px 40px; /* 稍微加高了一点点内边距，让排版更舒展 */
  font-size: 0.85rem; 
  
  /* 【核心修复】：加上和顶部导航栏完全相同的海克斯金上边框 */
  border-top: 1px solid rgba(200, 155, 60, 0.4); 
  
  /* 加上一小层暗色阴影，让白色内容区平滑过渡到黑金页脚 */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05); 
}

/* 页脚内部的文字和链接微调（保持和你之前一致） */
.riot-footer p {
  margin-bottom: 10px; 
}

/* --- 页脚链接正常状态 --- */
.riot-footer a {
  color: var(--riot-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* --- 页脚链接悬停状态 (去掉下划线，改为文字发光) --- */
.riot-footer a:hover {
  color: var(--riot-gold-hover);
  text-decoration: none; /* 【核心修改】：强制去除下划线 */
  text-shadow: 0 0 10px rgba(200, 155, 60, 0.5); /* 增加一层微弱的海克斯金光晕 */
}

/* 1. 模态框背景层 */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. 模态框隐藏状态 (修复了无动画的 BUG) */
.modal.hidden { 
  display: flex !important; 
  opacity: 0;
  visibility: hidden;
  pointer-events: none; 
}

/* 3. 模态框内容层动画 */
.modal-content {
  position: relative; background: #111; padding: 30px; 
  border: 1px solid var(--riot-gold);
  width: 90%; max-width: 400px; color: #fff; border-radius: 4px;
  
  transform: scale(1) translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* 4. 内容层隐藏时的状态 */
.modal.hidden .modal-content {
  transform: scale(0.8) translateY(30px);
  opacity: 0;
}
/* --- 1. 模态框输入框升级版 --- */
.modal-content input {
  width: 100%; 
  padding: 14px 16px;       /* 增加内边距，让输入框整体更高、更宽敞 */
  margin: 20px 0;
  background: #222; 
  border: 1px solid #444; 
  color: #fff;
  font-size: 1.1rem;        /* 【核心修改】：字体显著放大 */
  letter-spacing: 1px;      /* 稍微增加字距，字母和数字看起来更清晰 */
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

/* 输入框处于激活（打字）状态时的边框发光效果 */
.modal-content input:focus {
  outline: none;
  border-color: var(--riot-gold);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* 1. 绑定邮箱按钮样式 (现在它是不透明的，与之前的按钮风格一致) */
#bindEmailBtn {
  background-color: #0bc6e3; 
  color: #000; 
  border: none; 
  border-radius: 20px;
  padding: 10px 24px; 
  font-weight: bold; 
  font-size: 0.85rem; 
  cursor: pointer;
  letter-spacing: 1px; 
  transition: background-color 0.2s;
}
#bindEmailBtn:hover { background-color: #00e0ff; }

.gold-btn:disabled,
#bindEmailBtn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: grayscale(0.25);
}

/* --- 2. 模态框关闭按钮 (X) 动画效果 --- */
.modal-close {
  position: absolute; 
  top: 15px; 
  right: 20px;
  font-size: 26px;          /* 稍微将 X 本身调大一点 */
  cursor: pointer; 
  color: #7e7e7e;           /* 初始设置为略暗的灰色，避免抢夺视线 */
  display: inline-block;    /* 必须加这个，动画 transform 才能完美生效 */
  /* 丝滑的动画过渡：颜色变幻和形变同时进行 */
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

/* 鼠标放上去时的炫酷动画 */
.modal-close:hover {
  color: var(--riot-gold);  /* 颜色变成官方金 */
  /* 悬停时：顺时针旋转 90 度，并整体放大 1.2 倍 */
  transform: rotate(90deg) scale(1.2); 
}
.modal-content {
  position: relative; /* 必须加这个，让 close 按钮能相对于它定位 */
  background: #111; padding: 30px; border: 1px solid var(--riot-gold);
  width: 90%; max-width: 400px; color: #fff;
}

/* --- 官方风格悬浮提示条 (Toast) --- */
.riot-toast {
  position: fixed;
  top: -60px; /* 初始状态隐藏在屏幕顶部上方 */
  left: 50%;
  transform: translateX(-50%); /* 保证永远水平居中 */
  background-color: #111;
  color: #fff;
  border-left: 4px solid var(--riot-gold); /* 默认左侧金边 */
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 9999; /* 保证在页面最顶层 */
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  
  /* 贝塞尔曲线：进场时有 Q 弹感，退场时平滑 */
  transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* 提示条出现时的状态 */
.riot-toast.show {
  top: 40px; /* 从顶部向下滑入 */
  opacity: 1;
}

/* 报错状态样式 (红边 + 警告图标) */
.riot-toast.error {
  border-left-color: var(--riot-red);
}
.riot-toast.error::before {
  content: '⚠️';
  font-size: 1.1rem;
}

/* 成功状态样式 (青蓝边 + 确认图标) */
.riot-toast.success {
  border-left-color: #0bc6e3;
}
.riot-toast.success::before {
  content: '✔️';
  color: #0bc6e3;
  font-size: 1.1rem;
}

/* --- 回到顶部按钮 --- */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: rgba(10, 10, 12, 0.85); /* 半透明黑底 */
  border: 1px solid var(--riot-gold);       /* 金色边框 */
  color: var(--riot-gold);                  /* 金色箭头 */
  border-radius: 4px;
  cursor: pointer;
  z-index: 999;                             /* 确保在最上层 */
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  /* 丝滑的出现/消失与悬停动画 */
  transition: all 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 箭头图标大小 */
.back-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* 隐藏状态（默认未滚动时） */
.back-to-top.hidden-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* 隐藏时稍微往下沉 */
}

/* 鼠标悬停时的黑金反转效果 */
.back-to-top:hover {
  background-color: var(--riot-gold);
  color: #000; /* 箭头变黑 */
  box-shadow: 0 0 15px rgba(200, 155, 60, 0.6);
  transform: translateY(-4px); /* 悬停时往上浮 */
}

/* 悬停时箭头小动画 */
.back-to-top:hover svg {
  transform: translateY(-2px);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 900px) {
  .control-bar { flex-direction: column; align-items: flex-start; gap: 20px; }
  .controls-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .nav-links { display: none; }
}
