/*
Theme Name: 555 Lottery
Theme URI:  http://example.com/555-lottery
Author:      Your Name
Author URI:  http://example.com
Description: WordPress theme replicating the 555 Lottery login/register page design.
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 555-lottery
Tags:        custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

header .logo img {
    max-height: 60px;
}

.login-buttons a{
    margin-right: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.main-content {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content h1 {
    text-align: center;
    margin-bottom: 20px;
}

.main-content .logo-center {
    text-align: center;
    margin: 20px 0;
}

.main-content .logo-center img {
    max-width: 150px;
}

.main-content h2 {
    text-align: center;
    margin-top: 20px;
}

.main-content p, .main-content li {
    line-height: 1.6;
}

.logo a{
        text-decoration: none;
        color: black;
    }

.footer-text {
    text-align: center;
    margin: 40px 0 20px;
    color: #777;
    font-size: 0.9em;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}


/* 基础样式：默认 PC 端显示原图尺寸，居中 */
.platform_img {
  width: 100%;
  margin: 0 auto; /* 容器居中 */
}
.platform_img img {
  /* 关键：PC 端按原图尺寸显示（height:auto 保证比例） */
  width: auto; 
  height: auto;
  max-width: 100%; /* 兜底：避免原图超宽时溢出 */
  display: block;
  margin: 0 auto; /* 图片居中 */
}

/* 平板/手机端（宽度≤1024px）：100% 显示 */
@media (max-width: 1024px) {
  .platform_img img {
    width: 100%; /* 占满屏幕宽度 */
    height: auto; /* 保持比例不拉伸 */
  }
}

/* 可选：针对小手机（≤768px）微调（比如加内边距） */
@media (max-width: 768px) {

  .platform_img img {
    padding: 0px; /* 左右留边，避免贴边 */
  }
}

/* ========== 移动端侧面导航样式 ========== */

/* 默认隐藏移动菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 6px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动侧面导航默认状态 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 20px 0;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu li {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
    background: #f5f5f5;
    color: #007bff;
}

/* 关闭按钮 */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧面导航打开状态 */
.mobile-menu.active {
    right: 0;
}

/* 半透明遮罩 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* 移动端响应式设置 */


@media (max-width: 768px) {
   .login-buttons{
        display: none;
    }
    /* 显示移动菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 隐藏桌面导航 */
    .desktop-nav {
        display: none;
    }

    header .container {
        padding: 10px 15px;
    }
}

/* 平板端优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-nav nav ul {
        gap: 10px;
    }

    .desktop-nav a {
        font-size: 14px;
    }
}