/* General Body Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a2e;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #F2C14E; /* Gold accent */
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #11A84E; /* Green accent */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1em;
    line-height: 1.5;
}

.btn-primary {
    background-color: #11A84E; /* Green */
    color: #ffffff;
    border-color: #11A84E;
}

.btn-primary:hover {
    background-color: #0c823a;
    border-color: #0c823a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.btn-secondary {
    background-color: #F2C14E; /* Gold */
    color: #1a1a2e;
    border-color: #F2C14E;
}

.btn-secondary:hover {
    background-color: #d1a843;
    border-color: #d1a843;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #F2C14E;
}

.btn-outline:hover {
    background-color: #F2C14E;
    color: #1a1a2e;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.btn-lg {
    padding: 12px 25px;
    font-size: 1.1em;
}

/* Header Styles */
.main-header {
    background-color: #22223b;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #1a1a2e;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8em;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 20px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    flex-grow: 1; /* Allow menu to take available space */
    justify-content: center; /* Center items when space allows */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #e0e0e0;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #F2C14E;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #11A84E;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.dropdown-toggle::after {
    content: ' \25BC'; /* Unicode for down arrow */
    font-size: 0.8em;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #2a2a4a;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px 0;
    left: 0;
    top: 100%;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #e0e0e0;
    padding: 12px 16px;
    display: block;
    text-align: left;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #3a3a5a;
    color: #F2C14E;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: #444;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.nav-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: url('https://via.placeholder.com/1920x600/1a1a2e/ffffff?text=PUM88+Gaming+Hero') no-repeat center center/cover;
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #c0c0c0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-highlights {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: rgba(34, 34, 59, 0.8);
    padding: 25px;
    border-radius: 8px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
    border-left: 4px solid #11A84E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.feature-item h3 {
    color: #F2C14E;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.feature-item p {
    font-size: 0.95em;
    color: #b0b0b0;
}

/* Promo Banner */
.promo-banner {
    background-color: #11A84E;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.promo-banner .promo-link {
    color: #F2C14E;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 10px;
}

.promo-banner .promo-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Latest News Section */
.latest-news {
    padding: 60px 0;
    background-color: #1a1a2e;
}

.latest-news h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.latest-news .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #c0c0c0;
    font-size: 1.1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #22223b;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #F2C14E;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.news-card h3 {
    color: #F2C14E;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.news-card p {
    color: #c0c0c0;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card .read-more {
    display: inline-block;
    color: #11A84E;
    font-weight: 600;
    margin-top: auto; /* Push to bottom */
}

.news-card .read-more:hover {
    text-decoration: underline;
}

/* Footer Styles */
.main-footer {
    background-color: #22223b;
    color: #e0e0e0;
    padding: 50px 0 20px;
    font-size: 0.95em;
    border-top: 5px solid #1a1a2e;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background-color: #F2C14E;
}

.footer-col p {
    margin-bottom: 15px;
    color: #c0c0c0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #11A84E;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #e0e0e0;
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #33334f;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #11A84E;
    color: #ffffff;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    max-width: 300px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 5px 0 0 5px;
    background-color: #33334f;
    color: #ffffff;
    outline: none;
    font-size: 0.95em;
}

.newsletter-form input[type="email"]::placeholder {
    color: #a0a0a0;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    background-color: #F2C14E;
    color: #1a1a2e;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background-color: #d1a843;
}

.newsletter-consent {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid #33334f;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: #a0a0a0;
    flex-shrink: 0;
}

.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-methods img {
    height: 25px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.payment-methods img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.legal-disclaimer {
    background-color: #1a1a2e;
    padding: 30px 0;
    font-size: 0.85em;
    color: #888;
    text-align: center;
    border-top: 1px solid #2a2a4a;
}

.legal-disclaimer p {
    margin-bottom: 10px;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .navbar {
        padding: 0 10px;
    }
    .logo {
        margin-right: 10px;
    }
    .user-actions {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* Show toggle button */
        order: 2; /* Position toggle button after logo */
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0;
    }

    .logo {
        order: 1;
        margin-right: 0;
    }

    .user-actions {
        order: 3;
        margin-left: auto;
        margin-right: 0;
    }

    .nav-menu {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        background-color: #2a2a4a;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        border-radius: 0 0 8px 8px;
        max-height: 0; /* For smooth transition */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        justify-content: flex-start;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
        max-height: 500px; /* Arbitrary large height to allow content */
        overflow-y: auto;
    }

    .nav-menu .nav-item {
        text-align: center;
        width: 100%;
    }

    .nav-menu .nav-link {
        padding: 12px 15px;
        width: 100%;
    }
    .nav-menu .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: #3a3a5a;
        padding: 0;
        border-top: 1px solid #444;
    }

    .dropdown-item {
        padding-left: 40px;
    }

    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .feature-highlights {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 90%;
        max-width: 400px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        max-width: none;
        width: 100%;
        justify-content: center;
    }
    .newsletter-form input, .newsletter-form button {
        flex-grow: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    .user-actions .btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-buttons .btn {
        width: 90%;
        max-width: 250px;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }
    .newsletter-form button {
        margin-top: 5px;
    }
    .payment-methods img {
        height: 20px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
