

@import "./css.css";

/* ========== 基础重置 ========== */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    background-color: #faf8f2;
    color: #333;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
    box-sizing: border-box;
}

/* ========== 主容器 ========== */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    position: relative;
    transform: translate3d(0, 0, 0);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========== 页眉 ========== */
header.main {
    background: linear-gradient(135deg, #c4ad39 0%, #b89830 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
header.main .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

header.main .logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin-left: 10px;
    text-transform: uppercase;
}

/* 菜单按钮 */
header.main .menuHolder {
    position: relative;
}

header.main .menuHolder label[for="navigationTrigger"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

header.main .menuHolder label[for="navigationTrigger"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

header.main .menuHolder label[for="navigationTrigger"] svg {
    height: 20px;
    fill: #fff;
}

header.main .menuHolder nav.main {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    left: auto;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 100;
}

header.main .menuHolder nav.main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header.main .menuHolder nav.main ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

header.main .menuHolder nav.main ul li a:hover {
    background: rgba(196, 173, 57, 0.15);
    color: #b89830;
}

header.main .menuHolder nav.main ul li a img {
    width: 20px;
    height: 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;
}

/* 语言选择 */
.language-select {
    position: relative;
    height: 35px;
    width: 70px;
    overflow: hidden;
    border-radius: 8px;
}

.language-select .value {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-select .value:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
}

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

/* ========== 主内容区 ========== */
.content {
    flex: 1;
    background: #faf8f2;
}

.content .main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 页面标题 */
.content h1, .content h2 {
    color: #1a1a2e;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c4ad39;
}

.content h1 {
    font-size: 28px;
}

.content h2 {
    font-size: 22px;
}

/* ========== 游戏区块 ========== */
.game-section {
    padding: 30px 0;
}

/* ========== 广告容器 ========== */
.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== 游戏列表 ========== */
ul.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.games li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

ul.games li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

ul.games li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

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

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

ul.games li .name-container {
    padding: 12px;
    text-align: center;
}

ul.games li .name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.games li:hover .name {
    color: #c4ad39;
}

/* ========== 按钮 ========== */
.btn-container {
    margin: 30px 0;
    text-align: center;
}

.btn, .btn-primary, .btn-highlight {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #c4ad39, #b89830);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(196, 173, 57, 0.3);
}

.btn:hover, .btn-primary:hover, .btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 173, 57, 0.4);
}

/* ========== 侧边导航 ========== */
nav.main {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav.main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.main ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

nav.main ul li:last-child a {
    border-bottom: none;
}

nav.main ul li a:hover {
    background: #f8f8f8;
    color: #c4ad39;
    padding-left: 20px;
}

nav.main ul li a img {
    width: 24px;
    height: 24px;
}

/* ========== 页脚 ========== */
footer.main {
    background: linear-gradient(135deg, #c4ad39 0%, #b89830 100%);
    color: #fff;
    padding: 40px 20px;
    margin-top: auto;
}

footer.main .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer.main .footer-content section.tags nav.main {
    background: none;
    box-shadow: none;
    padding: 0;
}

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

footer.main .footer-content section.tags nav.main ul li a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

footer.main .footer-content section.tags nav.main ul li a:hover {
    background: #b89830;
    border-color: #b89830;
}

footer.main .copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

footer.main .copyright a {
    text-decoration: none;
}

footer.main .copyright a:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media only screen and (max-width: 768px) {
    header.main .logo-text {
        display: none;
    }
    
    ul.games {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .content .main-section {
        padding: 20px 15px;
    }
    
    h1, h2 {
        font-size: 20px !important;
    }
}

@media only screen and (max-width: 480px) {
    ul.games {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    ul.games li .name {
        font-size: 13px;
    }
}

/* ========== 隐藏加载动画 ========== */
.dgmlwU, .AFSJx {
    display: none !important;
}
