/* =========================================================
   全局主题变量维护区
   说明：
   1. 以后要换图片、换颜色，优先改这里
   2. 这样维护最方便，不用到处翻代码
========================================================= */
:root {
  /* 首屏与导航共用背景图 */
  --hero-bg-image: url("images/hero-bg.png");

  /* 顶部黑色栏 */
  --topbar-bg: #ffffff;
  --topbar-text: #000000;
  --topbar-border: #e8edf3;

  /* 导航文字颜色 */
  --nav-text: #ffffff;
  --nav-hover-text: #d9e8ff;

  /* 首屏统一遮罩：改成冷色深蓝灰，而不是暖棕色 */
  --hero-shell-overlay: linear-gradient(
    90deg,
    rgba(20, 32, 52, 0.62),
    rgba(20, 32, 52, 0.34)
  );

  /* Logo 在背景图上的文字颜色 */
  --logo-text-on-image: #ffffff;

  /* 右侧登录卡片颜色：冷色半透明 */
  --hero-card-bg: rgba(20, 32, 52, 0.72);
  --hero-card-border: rgba(255, 255, 255, 0.12);
  --hero-card-shadow: 0 14px 36px rgba(8, 15, 28, 0.28);

  /* 主按钮颜色：统一品牌蓝 */
  --primary-btn-bg: #2f7dff;
  --primary-btn-hover: #1f67db;

  /* 次按钮颜色：半透明白边 */
  --secondary-btn-bg: rgba(255, 255, 255, 0.08);
  --secondary-btn-border: rgba(255, 255, 255, 0.24);

  /* 标签/说明块颜色 */
  --hero-badge-bg: rgba(47, 125, 255, 0.16);
  --hero-badge-border: rgba(255, 255, 255, 0.10);

  /* 文本阴影，增强可读性 */
  --hero-text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}




/* =========================================================
   全局基础样式
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background-color: #f4f6f9;
  color: #333;
  min-width: 1200px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   顶部登录 / 注册栏
   说明：
   1. 改为白底黑字
   2. 颜色统一从 :root 变量区读取，后续更好维护
========================================================= */
.topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 14px;
  border-bottom: 1px solid var(--topbar-border);
}

.topbar-inner {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar a {
  color: var(--topbar-text);
  margin-left: 24px;
}

.topbar a:hover {
  color: #1677ff;
}

/* =========================================================
   下方导航 + 首屏区域的统一背景图外层
   说明：
   1. 这里是本次改动的核心
   2. 让导航栏和首屏共用一张背景图
   3. 用遮罩层保证文字清晰
========================================================= */
.hero-shell {
  position: relative;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-shell-overlay);
  z-index: 0;
}



/* =========================================================
   下方主导航
   说明：
   1. 不再用白底
   2. 改为透明，让背景图透出来
========================================================= */
.navbar {
  position: relative;
  z-index: 1;
  background-color: transparent;
  border-bottom: none;
}

.nav-inner {
  position: relative;
  z-index: 1;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   Logo 图片区域
   说明：
   1. 这里统一控制导航栏 logo 的显示方式
   2. 以后如果更换 logo，只需要替换 images/logo.png
   3. 如果 logo 比例变化，主要改 .logo-image 的高度
========================================================= */
.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 64px;
  width: auto;
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 18px;
  color: var(--nav-text);
}

.nav-menu a:hover {
  color: var(--nav-hover-text);
}


/* =========================================================
   首屏区域
   说明：
   1. 背景图已经交给 hero-shell 统一处理
   2. 这里本身不再单独设置背景
========================================================= */
.hero {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 55px 0 50px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 44px;
}


.hero-text {
  flex: 1;
  color: #fff;
  padding-top: 14px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-text h2 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 1000px;
  text-shadow: var(--hero-text-shadow);
}

.hero-text p {
  font-size: 28px;
  line-height: 2.2;
  max-width: 720px;
  margin-bottom: 30px;
  text-shadow: var(--hero-text-shadow);
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-btn-bg);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-btn-hover);
}

.hero-large-btn {
  height: 70px;
  padding: 0 40px;
  font-size: 24px;
  border-radius: 10px;
}

/* 右侧快速入口卡片 */
/* =========================================================
   右侧快速入口卡片
   说明：
   1. 从暖棕色改成冷色半透明深蓝
   2. 这样能和暖色背景图区分开
========================================================= */
.login-card {
  width: 360px;
  background-color: var(--hero-card-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 14px;
  padding: 28px 26px;
  color: #fff;
  box-shadow: var(--hero-card-shadow);
  backdrop-filter: blur(6px);
}

.login-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.login-title-row h3 {
  font-size: 24px;
  color: #ffffff;
}

.login-title-row span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.action-entry-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.action-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-entry-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 4px;
}

.action-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: 0 14px;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background-color: var(--primary-btn-bg);
  color: #fff;
}

.primary-btn:hover {
  background-color: var(--primary-btn-hover);
}

.secondary-btn {
  background-color: var(--secondary-btn-bg);
  color: #fff;
  border: 1px solid var(--secondary-btn-border);
}

.login-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-top: 8px;
}

.login-extra-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 14px;
}

.login-extra-links a:hover {
  text-decoration: underline;
}

.card-tip-box {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
}

.card-tip-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.card-tip-box p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* 通知条 */
.notice-bar {
  background-color: #f5f0d8;
  border-top: 1px solid #efe7bf;
  border-bottom: 1px solid #efe7bf;
}

.notice-inner {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a5a15;
  font-size: 18px;
}

.notice-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #ffef9b;
  font-weight: bold;
}

.notice-separator {
  color: #b59a50;
}

/* 标题区 */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h3 {
  font-size: 46px;
  color: #1677ff;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: #667085;
}

/* 核心功能入口区 */
.features-section {
  padding: 60px 0 38px;
}

.feature-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.feature-item {
  width: 220px;
  min-height: 140px;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 14px;
  opacity: 0.95;
  text-align: center;
  line-height: 1.6;
  padding: 0 10px;
}

.green {
  background: linear-gradient(135deg, #7ac943, #5fa42f);
}

.red {
  background: linear-gradient(135deg, #ff6d3a, #e4511b);
}

.blue {
  background: linear-gradient(135deg, #1572ff, #1768d1);
}

.cyan {
  background: linear-gradient(135deg, #51cfef, #1daad1);
}

/* 榜单中心专用颜色 */
.purple {
  background: linear-gradient(135deg, #9027f8, #5b3fd1);
}


/* 平台说明 */
.about-section {
  padding: 0 0 60px;
}

.about-inner {
  display: flex;
  gap: 24px;
}

.about-card {
  flex: 1;
  background-color: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.about-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #2f3745;
}

.about-card ul {
  padding-left: 20px;
}

.about-card li {
  font-size: 18px;
  line-height: 2;
  color: #4b5565;
}

/* 页脚 */
.footer {
  background-color: #2f3745;
  color: #fff;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

/* 简单响应式 */
@media (max-width: 1280px) {
  body {
    min-width: 0;
  }

  .container {
    width: calc(100% - 40px);
  }

  .feature-grid,
  .about-inner,
  .hero-inner {
    flex-direction: column;
  }

  .login-card,
  .feature-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-inner,
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .section-title h3 {
    font-size: 28px;
  }

  .feature-title {
    font-size: 24px;
  }
}
