* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
:root {
    --primary: #2e7d32;
    --secondary: #81c784;
    --accent: #ffb74d;
    --dark: #1b5e20;
    --light: #f1f8e9;
    --shadow: 0 4px 16px rgba(0,0,0,0.18);
}
body {
    background: linear-gradient(145deg, #103a14 0%, #275b2c 50%, #143818 100%);
    color:#fff;
    min-height:100vh;
}
.container {
    max-width:1280px;
    margin:0 auto;
    padding:0 16px;
}
header {
    background:rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    padding:14px 0;
    position:sticky;
    top:0;
    z-index:99;
}
.header-wrap {
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.logo {
    font-size:24px;
    font-weight:bold;
    color:var(--secondary);
}
.nav a {
    color:#fff;
    text-decoration:none;
    margin:0 10px;
    opacity:0.9;
}
.nav a:hover {
    color:var(--accent);
}
.header-icons {
    display:flex;
    gap:18px;
    font-size:22px;
}
.icon-btn {
    cursor:pointer;
    transition:0.2s;
}
.icon-btn:hover {
    color:var(--accent);
    transform:scale(1.1);
}

/* 弹窗通用：购物车、心愿单 */
.modal-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    display:none;
    z-index:200;
    align-items:center;
    justify-content:flex-end;
}
.modal-panel {
    width:420px;
    background:#fff;
    color:#222;
    height:100vh;
    overflow-y:auto;
    padding:24px;
}
.modal-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
.modal-close {
    font-size:24px;
    cursor:pointer;
}
.cart-item,.wish-item {
    display:flex;
    gap:12px;
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid #eee;
}
.cart-item img,.wish-item img {
    width:64px;height:64px;
    object-fit:cover;
    border-radius:6px;
}

/* 游戏容器 index */
.game-wrap {
    padding:30px 0;
}
.game-top-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
.game-info > div {
    margin:6px 0;
    font-size:17px;
}
.game-board-container {
    display:flex;
    justify-content:center;
}
#gameBoard {
    display:grid;
    grid-template-columns: repeat(8, 60px);
    gap:4px;
    background:rgba(0,0,0,0.4);
    padding:12px;
    border-radius:12px;
}
.cell {
    width:60px;height:60px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    cursor:pointer;
    background:rgba(255,255,255,0.12);
    transition:0.15s;
    user-select:none;
}
.cell:hover {
    background:rgba(255,255,255,0.25);
}
.cell.selected {
    box-shadow: 0 0 0 3px var(--accent);
}
.cell.match-effect {
    animation: pop 0.35s ease-out forwards;
}
@keyframes pop {
    0% { transform:scale(1); opacity:1;}
    50% { transform:scale(1.3); }
    100% { transform:scale(0); opacity:0;}
}
/* 道具栏 */
.powerup-bar {
    display:flex;
    gap:14px;
    justify-content:center;
    margin:22px 0;
}
.powerup-btn {
    padding:10px 16px;
    background:var(--accent);
    color:#111;
    border:none;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}
.powerup-btn:disabled {
    opacity:0.45;
    cursor:not-allowed;
}

/* 商品卡片，首页下方充值套餐 */
.shop-section {
    margin-top:40px;
}
.shop-section h2 {
    text-align:center;
    margin-bottom:26px;
}
.product-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:24px;
}
.product-card {
    background:rgba(255,255,255,0.08);
    border-radius:12px;
    overflow:hidden;
}
.product-card img {
    width:100%;
    height:200px;
    object-fit:cover;
}
.product-card-body {
    padding:18px;
}
.product-card h3 {
    margin-bottom:8px;
}
.price {
    color:var(--accent);
    font-size:20px;
    font-weight:bold;
    margin:10px 0;
}
.btn {
    display:inline-block;
    padding:10px 20px;
    background:var(--accent);
    color:#111;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    border:none;
    cursor:pointer;
}

/* 页脚 */
footer {
    background:rgba(0,0,0,0.55);
    margin-top:60px;
    padding:40px 0 24px;
}
.footer-wrap {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap:30px;
}
.footer-col h4 {
    margin-bottom:16px;
    color:var(--secondary);
}
.footer-col p,.footer-col a {
    color:#ddd;
    font-size:14px;
    line-height:1.7;
    text-decoration:none;
}
.footer-bottom {
    margin-top:32px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,0.12);
    text-align:center;
    font-size:14px;
    color:#aaa;
}
.payment-icons img {
    max-height:42px;
    margin-top:12px;
}

/* 详情页、普通页面通用 */
.page-content {
    padding:40px 0;
    line-height:1.8;
}
.page-content h1 {
    margin-bottom:24px;
    color:var(--secondary);
}
