/*
Theme Name: 321-group
Theme URI: https://example.com/321-group
Author: Your Name
Author URI: https://example.com
Description: 321-group WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 321-group
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options
*/

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #333;
}

header {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

header .logo{
    width:150px;
}
header .logo a{
    text-decoration: none;
    color: #fff;
}

header .logo a img{
    width: 100%;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 80px 20px;
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.main_title{
    max-width: 1200px;
    margin: 0 auto;
}
.platform_img{
    max-width: 600px;
}
.features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}
.feature-box {
    flex: 1 1 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.feature-box img {
    width: 40px;
    margin-bottom: 10px;
}

.platform-info,
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}


.platform_img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.platform_img img {
  width: 100%;
  height: auto;
  max-width: 800px;
  text-align: center;
}

.partners {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
.partners img {
    max-height: 40px;
    margin: 0 15px;
}

.footer {
    background: #f2f2f2;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer a {
    color: #333;
    text-decoration: none;
}

/* 响应式设计 */

.login-buttons a{
    margin-right: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 移动菜单遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* 导航菜单 */
.nav-menu {
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

nav a:hover {
    opacity: 0.8;
}

.title_content{
    text-align: center;
    margin: 0 auto;
}

/* 平板设备 (768px及以上) */
@media (max-width: 768px) {
    header .container {
        padding: 10px 15px;
    }
    .login-buttons{
        display: none;
    }
    header .logo {
        width: 120px;
    }

    .menu-toggle {
        display: flex;
    }

    /* 移动菜单从右侧打开 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
        z-index: 999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 70px;
        padding-left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .features-row {
        flex-direction: column;
    }

    .feature-box {
        flex: 1 1 100%;
    }
}

/* 手机设备 (576px及以下) */
@media (max-width: 576px) {
    header .container {
        padding: 8px 10px;
    }

    header .logo {
        width: 100px;
    }

    .nav-menu {
        max-width: 280px;
        padding-top: 60px;
    }

    .nav-menu a {
        padding: 12px 15px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .features-row {
        gap: 15px;
        padding: 20px 15px;
    }

    .feature-box {
        padding: 15px;
    }

    .platform-info,
    .faq-section {
        padding: 0 15px;
    }

    .partners img {
        max-height: 30px;
        margin: 0 10px;
    }

    .footer {
        font-size: 0.8em;
        padding: 15px 10px;
    }
}
