/* ===== COMPLETELY NEW LAYOUT: Modern Cards & Spacious Design ===== */

@import "./css.css";

/* === CSS Reset & Base === */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

html {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption, th, td {
    text-align: left;
    font-weight: 400;
    vertical-align: middle;
}

q, blockquote {
    quotes: none;
}

q:before, q:after, blockquote:before, blockquote:after {
    content: "";
    content: none;
}

a img {
    border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #67c439;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5ab32f;
}

/* === Base Typography === */
html {
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    color: #333333;
    font-weight: 400;
    min-height: 100vh;
    line-height: 1.6;
}

/* === Headers === */
h1, .h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5em;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #67c439;
    display: inline-block;
}

h3, .h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    color: #333333;
}

h4, .h4 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: #666666;
}

p {
    margin-top: 0.5em;
    color: #666666;
}

p a {
    color: #67c439;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

p a:hover {
    color: #5ab32f;
}

/* === Header - Completely New Design === */
header.main {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

header.main .main-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Menu Holder - Side drawer style */
header.main .menuHolder {
    position: relative;
    display: flex;
    align-items: center;
}

header.main .menuHolder label[for="navigationTrigger"] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    border-radius: 12px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 1002;
}

header.main .menuHolder label[for="navigationTrigger"]:hover {
    background: #67c439;
    border-color: #67c439;
}

header.main .menuHolder label[for="navigationTrigger"]:hover svg path {
    fill: #ffffff;
}

header.main .menuHolder label[for="navigationTrigger"] svg {
    height: 24px;
    width: 24px;
}

header.main .menuHolder label[for="navigationTrigger"] svg path {
    fill: #333333;
    transition: fill 0.3s ease;
}

/* 菜单打开时隐藏汉堡图标，显示关闭图标 */
header.main .menuHolder label[for="navigationTrigger"] .menu-icon {
    display: block;
}

header.main .menuHolder label[for="navigationTrigger"] .close-icon {
    display: none;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] .menu-icon {
    display: none;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] .close-icon {
    display: block;
}

header.main .menuHolder nav.main {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    z-index: 1001;
    margin: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding-top: 20px;
}

header.main .menuHolder #navigationTrigger {
    position: absolute;
    top: 0;
    right: 0;
    clip: rect(0, 0, 0, 0);
}

header.main .menuHolder #navigationTrigger:checked ~ nav.main {
    display: block;
}

header.main .menuHolder nav.main ul {
    padding: 20px;
}

header.main .menuHolder nav.main ul > li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

header.main .menuHolder nav.main ul > li a:hover {
    background: #f0f9eb;
    color: #67c439;
    padding-left: 24px;
}

header.main .menuHolder nav.main ul > li a img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* Logo - New text-based design */
header.main .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    gap: 12px;
}

header.main .logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

header.main .logo .logo-icon svg {
    width: 36px;
    height: 36px;
    color: #67c439;
}

header.main .logo .logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

header.main .logo .logo-text span {
    color: #67c439;
}

header.main .logo svg {
    height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu icon switching */
header.main .menuHolder label[for="navigationTrigger"] .menu-icon {
    display: block;
}

header.main .menuHolder label[for="navigationTrigger"] .close-icon {
    display: none;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] .menu-icon {
    display: none;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] .close-icon {
    display: block;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] {
    background: #67c439;
}

header.main .menuHolder #navigationTrigger:checked ~ label[for="navigationTrigger"] svg line {
    stroke: #ffffff;
}

@media only screen and (max-width: 750px) {
    header.main .main-section {
        padding: 0 20px;
        height: 70px;
    }
    
    header.main .logo svg {
        height: 36px;
    }
}

/* Language Select - Pill style */
.language-select {
    position: relative;
    height: 42px;
    width: 80px;
    overflow: hidden;
    border-radius: 21px;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #67c439;
}

.language-select .value {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333333;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.language-select select {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* === Navigation - Sidebar style === */
nav.main {
    display: none; /* Hidden by default on main content */
}

/* === Footer - Clean & Minimal === */
footer.main {
    margin-top: 80px;
    padding: 60px 0 40px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

footer.main a {
    color: #67c439;
    transition: color 0.2s ease;
}

footer.main a:hover {
    color: #5ab32f;
}

footer.main .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

footer.main .footer-content section.tags nav.main {
    background: none;
    float: none;
    width: 100%;
    min-height: auto;
    margin-top: 0;
    padding: 0;
}

footer.main .footer-content section.tags nav.main ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

footer.main .footer-content section.tags nav.main ul li {
    padding: 0;
}

footer.main .footer-content section.tags nav.main ul li a {
    display: block;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 30px;
    font-weight: 600;
    color: #333333;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

footer.main .footer-content section.tags nav.main ul li a:hover {
    background: #67c439;
    border-color: #67c439;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(103, 196, 57, 0.3);
}

footer.main .footer-content nav.meta {
    padding: 30px 0 0;
    text-align: center;
}

footer.main .footer-content nav.meta a {
    font-size: 0.875rem;
}

footer.main .copyright {
    margin: 40px 0 0;
    text-align: center;
    color: #999999;
    font-size: 0.875rem;
}

/* === Games List - Large Card Design === */
ul.games {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

ul.games:before, ul.games:after {
    content: none;
}

ul.games li {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul.games li a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

ul.games li a:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(103, 196, 57, 0.2);
    border-color: #67c439;
}

ul.games li .icon {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
}

ul.games li .icon .clamp {
    position: absolute;
    height: 0;
    width: 100%;
    margin-bottom: 0;
}

ul.games li .icon img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

ul.games li a:hover .icon img {
    transform: scale(1.1);
}

ul.games li .name-container {
    padding: 20px 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

ul.games li .name {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media only screen and (max-width: 750px) {
    ul.games {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    ul.games li .name-container {
        padding: 14px 16px;
        min-height: 60px;
    }
    
    ul.games li .name {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 480px) {
    ul.games {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === App Container & Layout === */
.app-container {
    width: 100%;
    overflow-x: hidden;
}

#app {
    position: relative;
    min-height: 100vh;
}

.main-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.content {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.content .main-section {
    margin-top: 0;
    margin-bottom: 0;
}

.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.ad-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: center;
    min-height: 100px;
    background: #f5f5f5;
    border-radius: 12px;
}

/* === Buttons - Modern Style === */
.btn, .btn-highlight, .btn-primary, .btn-neutral, .btn-transparent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #67c439;
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, .btn-highlight:hover, .btn-primary:hover {
    background: #5ab32f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 196, 57, 0.35);
}

.btn-highlight {
    background: #ff6b6b;
}

.btn-highlight:hover {
    background: #ff5252;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.35);
}

.btn-primary {
    background: #67c439;
}

.btn-neutral {
    background: #f5f5f5;
    color: #333333;
    border: 2px solid #e5e5e5;
}

.btn-neutral:hover {
    background: #ffffff;
    border-color: #67c439;
    color: #67c439;
}

.btn-transparent {
    background: transparent;
    color: #67c439;
    border: 2px solid #67c439;
}

.btn-transparent:hover {
    background: #67c439;
    color: #ffffff;
}

.btn-container {
    margin: 50px 0 80px;
    text-align: center;
}

.btn-container .btn {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* === Tile Components === */
.tile {
    display: block;
    padding: 30px;
    background: #ffffff;
    margin-bottom: 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.tile-highlight {
    background: #ff6b6b;
}

.tile-primary {
    background: #67c439;
}

.tile-info {
    background: #2196f3;
}

.tile-neutral {
    background: #f5f5f5;
    color: #333333;
}

/* === Tile List === */
.tile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tile-list li {
    box-sizing: border-box;
    padding: 0;
    float: none;
    width: 100%;
}

.tile-list li .tile-neutral {
    margin-bottom: 0;
}

/* === Input & Textarea === */
input, textarea {
    box-sizing: border-box;
    margin-top: 20px;
    border: 0;
    outline: none;
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 16px;
    resize: none;
    line-height: 1.6;
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    color: #333333;
    font-family: inherit;
}

textarea:focus {
    border-color: #67c439;
    background: #ffffff;
}

/* === Back To Top Button === */
.backToTop {
    background: #67c439;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(103, 196, 57, 0.4);
    transition: all 0.3s ease;
}

.backToTop:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(103, 196, 57, 0.5);
}

.backToTop img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* === Responsive === */
@media only screen and (max-width: 750px) {
    .main-section {
        width: 100%;
        padding: 0 20px;
    }
    
    .content {
        padding: 30px 0;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.4rem;
    }
    
    header.main .main-section {
        padding: 0 16px;
    }
    
    footer.main {
        padding: 40px 0 30px;
    }
    
    footer.main .footer-content {
        padding: 0 20px;
    }
}

/* === Additional Utilities === */
* {
    -webkit-tap-highlight-color: rgba(103, 196, 57, 0.1) !important;
    outline: none !important;
}

.static .content ul {
    list-style: circle;
    padding-left: 20px;
}

.static .content a {
    color: #67c439;
}

/* === Consent Box (kept for compatibility) === */
.consent-box-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

.consent-box {
    background: #ffffff;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin: 20px;
    font-size: 1rem;
    text-align: center;
}

.consent-box-logo {
    display: inline-block;
    width: 120px;
    height: 50px;
    background-size: auto 100%;
    border: none;
    margin-bottom: 20px;
}

.consent-box-message {
    text-align: left;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 24px;
}

.consent-box-button {
    display: inline-block;
    text-decoration: none;
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    background: #67c439;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consent-box-button:hover {
    background: #5ab32f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 196, 57, 0.35);
}

.consent-box-links {
    margin-top: 24px;
    color: #999999;
    font-size: 0.875rem;
}

.consent-box-links a {
    color: #67c439;
}

/* === Loading Animation === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: fadeIn 0.3s ease both;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
}

.loading-overlay div {
    width: 16px;
    height: 16px;
    margin: 0 4px;
    border-radius: 50%;
    background: #67c439;
    animation: pulse 1.4s ease-in-out infinite both;
}

.loading-overlay div:nth-child(2) {
    animation-delay: -0.32s;
}

.loading-overlay div:nth-child(3) {
    animation-delay: -0.16s;
}
