* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Arial, sans-serif; 
}

/* 背景圖設定 */
body {
    background: 
        linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
        url('../images/gamesbj.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    padding-bottom: 80px;
    min-height: 100vh;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #242424;
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo {
    font-size: 18px;
    font-weight: bold;
    color: #ff8c00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-btn {
    padding: 6px 10px;
    border: 1px solid #ff8c00;
    border-radius: 4px;
    color: #ff8c00;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s;
}
.nav-btn:hover {
    background: #ff8c00;
    color: #fff;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}
.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff8c00;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 200px;
}
.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #fff;
    font-size: 16px;
}
.filter-select {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.card-item {
    background: #242424;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255,140,0,0.2);
}

.hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d00;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-image {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f1f;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.card-item:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
    text-align: center;
}
.card-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
    display: block;
}
.card-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff6700;
    display: block;
}
.card-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #242424;
    padding: 15px 0;
    text-align: center;
    border-top: 2px solid #ff8c00;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 998;
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-text {
    color: #ccc;
    font-size: 12px;
}
.footer-text span {
    color: #ff8c00;
    font-weight: bold;
}

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #ff8c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255,140,0,0.5);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #ff6700;
    transform: translateY(-3px);
}