/* ====== 顶部白色栏 ====== */
.v5-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 9999;
}


/* 左侧 */
.v5-games-link {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

/* 中间 Logo */
.v5-logo {
    height: 30px;
}

/* 右侧 */
.v5-top-right a {
    margin-left: 15px;
    text-decoration: none;
    font-weight: 600;
}

/* 登录按钮 */
.v5-login {
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 6px;
    color: #333;
}

/* 注册按钮 */
.v5-register {
    color: #18b981;
}

/* ====== 移动端优化 ====== */
@media (max-width: 768px) {

    .v5-topbar {
        padding: 0 15px;
    }

    .v5-logo {
        height: 22px;
    }

    .v5-games-link {
        font-size: 14px;
    }

    .v5-login {
        padding: 4px 10px;
        font-size: 13px;
    }

    .v5-register {
        font-size: 13px;
    }
}


/* ====== 顶部横幅 ====== */
.custom-hero {
    background: linear-gradient(90deg,#4ac1ff,#7ce3ff);
    background-image: url('/assets/head2.png');
    background-size: cover; /* 或者 contain，根据需要调整 */
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.hero-title h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-title p {
    font-size: 20px;
}

/* ====== 搜索条 ====== */
.custom-search-bar {
    background: #0fa678;
    padding: 15px;
    text-align: center;
}

.search-wrapper {
    max-width: 600px;
    margin: auto;
    display: flex;
}

.search-wrapper input {
    flex: 1;
    padding: 12px;
    border-radius: 8px 0 0 8px;
    border: none;
    font-size: 16px;
}

.search-wrapper button {
    padding: 12px 25px;
    border: none;
    background: #14c38e;
    color: white;
    font-weight: bold;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* ====== 欢迎区 ====== */
.custom-welcome {
    text-align: center;
    padding: 60px 20px;
}

.cta-box {
    background: #ff3e8e;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    margin: 30px auto;
    max-width: 800px;
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    background: #14c38e;
    padding: 12px 25px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* ====== 圆形按钮 ====== */
.category-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.circle-item {
    width: 140px;
    height: 140px;
    background: #18b981;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.circle-item span {
    font-size: 14px;
    margin-top: 8px;
}

.circle-item:hover {
    transform: scale(1.1);
    background: #14c38e;
}

/* ====== 页脚 ====== */
.custom-footer {
    background: #222;
    color: #ccc;
    padding: 50px 20px 20px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-block h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-block a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 5px 0;
}

.footer-block a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

/* ====== 首页容器 ====== */
.v5-home {
    padding: 40px 20px;
}

/* ====== 欢迎 ====== */
.v5-welcome {
    text-align: center;
}

.v5-cta {
    background: #ff3e8e;
    padding: 30px;
    border-radius: 15px;
    color: #fff;
    margin: 30px auto;
    max-width: 800px;
}

/* ====== 按钮 ====== */
.v5-btn {
    display: inline-block;
    background: #00c896;
    padding: 12px 30px;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
    margin-top: 15px;
}

/* ====== 分类 ====== */
.v5-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    gap: 20px;
    margin-top: 50px;
    text-align: center;
}

.v5-circle {
    background: #18b981;
    border-radius: 50%;
    height: 120px;
    width: 120px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #fff;
    transition: 0.3s;
}

.v5-circle span {
    font-size: 14px;
    margin-top: 5px;
}

.v5-circle:hover {
    transform: scale(1.1);
}

/* ====== 排行榜 ====== */
.v5-ranking {
    margin-top: 60px;
    text-align: center;
}

.rank-item {
    background: #fff;
    padding: 10px;
    margin: 8px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ====== 移动端优化 ====== */
@media (max-width: 768px) {

    .v5-cta {
        padding: 20px;
    }

    .v5-circle {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }

    .rank-item {
        font-size: 14px;
    }
}
.App-header1 {
    display: none;
}
.Hero.WelcomeHero {
    display: none;
}

/* ===== 顶部整体背景 ===== */
.App-header {
    background: #f3f1ed;
    border-bottom: 1px solid #e5e2dc;
    height: 64px;
    display: flex;
    align-items: center;
}

/* ===== 容器改为三栏布局 ===== */
.App-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
}

/* ===== 左侧导航 ===== */
.Header-navigation {
    position: absolute;
    left: 40px;
    font-size: 16px;
    font-weight: 500;
}

.Header-navigation a {
    color: #222;
    text-decoration: none;
}

/* ===== 中间 Logo ===== */
.Header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.Header-title a {
    font-size: 26px;
    color: #f5a623;
    font-weight: 800;
    text-decoration: none;
}

/* ===== 右侧控制区 ===== */
.Header-secondary {
    position: absolute;
    right: 40px;
}

.Header-secondary .Button {
    font-size: 14px;
}

/* ===== 登录按钮 ===== */
.item-logIn .Button {
    border: 1px solid #000;
    padding: 6px 18px;
    border-radius: 6px;
    background: white;
    font-weight: 500;
}

/* ===== 注册按钮 ===== */
.item-signUp .Button {
    color: #1bb65e;
    font-weight: 600;
}

/* ===== 搜索框样式优化 ===== */
.Search-input input {
    border-radius: 20px;
    border: 1px solid #ddd;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .Header-navigation {
        left: 15px;
    }

    .Header-secondary {
        right: 15px;
    }

    .Header-title a {
        font-size: 20px;
    }
    .App-header {
        background: #ffffff00;
        border-bottom: 0px solid #e5e2dc;
        height: 200px;
        display: flex;
        align-items: center;
    }
    .Header-title {
        display: none;
    }
    button[aria-label="Toggle navigation dropdown menu"]{
      display: flex;
      align-items: center;
  }

  button[aria-label="Toggle navigation dropdown menu"]::before{
      content:"";
      width:22px;
      height:22px;
      margin-right:6px;
      background:url("/assets/icon.png") no-repeat center;
      background-size:contain;
      flex-shrink:0;
  }
  .custom-hero {
      background: linear-gradient(90deg,#4ac1ff,#7ce3ff);
      background-image: url('/assets/head_m.png');
      background-size: cover; /* 或者 contain，根据需要调整 */
      background-position: center;
      background-repeat: no-repeat;
      padding: 80px 20px;
      text-align: center;
      color: #fff;
  }
}

@media (min-width: 768px) {
    .App-header {
        position: fixed;
    }
}
#translate{
    display:none;
}

/* 中间居中 */
.Header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Logo 图片大小 */
.custom-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* 移动端缩小 */
@media (max-width: 768px) {
    .custom-logo {
        height: 26px;
    }
}




/* ===== 语言按钮整体 ===== */
.custom-lang {
    position: relative;
    display: flex;
    align-items: center;
}

/* 按钮样式 */
.custom-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

/* hover 效果 */
.custom-lang-btn:hover {
    background: rgba(0, 182, 125, 0.08);
}

/* 小箭头 */
.lang-arrow {
    font-size: 12px;
}

/* 下拉菜单 */
.custom-lang-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    background: #f7f4ef;
    border: 1px solid #d7d5d3;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 140px;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 999;
}

/* 展开状态 */
.custom-lang-dropdown.show {
    display: block;
}

/* 下拉项 */
.custom-lang-dropdown a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #555a62;
    font-size: 14px;
    transition: background 0.2s ease;
}

/* hover */
.custom-lang-dropdown a:hover {
    background: rgba(0, 182, 125, 0.15);
}

.custom-lang-dropdown a.active {
    color: #aaa;
    background: #f0f0f0;
    cursor: default;
}