:root {
    --bg-color: #0b0f19;
    --accent-gold: #ffdf00;
    --accent-green: #00ff87;
    --card-bg: #2b2b2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    /* 背景图片 */
    background-color: #000;
    background-image: url("background.jpg");
    background-size: contain;
    background-position: center bottom 70px;
    background-repeat: no-repeat;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* PC端：背景图与nav条同宽(480px)、居中、顶部对齐，两边黑色 */
@media (min-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: 480px auto;
        background-position: center top;
        padding-bottom: 0;
    }
}

/* 顶部导航条（图片） */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    line-height: 0;
    text-align: center;
    background-color: #5a5a5a;
}

.nav-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.main-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 海报图（图片） */
.hero-section {
    width: 100%;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 卡片按钮列表 */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 单张卡片按钮 —— 背景图 + 60%透明度 + 金色字体 */
.card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 88px;
    padding: 18px 20px;
    border: none;
    border-radius: 14px;
    background-color: var(--card-bg);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition: transform 0.1s ease, filter 0.2s;
}

/* 背景图作为独立图层，透明度 60% */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-img);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

/* 卡片内容置于图层之上 */
.card > * {
    position: relative;
    z-index: 1;
}

.card:hover { filter: brightness(1.08); }
.card:active { transform: scale(0.99); }

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card-sub {
    font-size: 12px;
    margin-top: 3px;
    color: var(--accent-gold);
    opacity: 0.85;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card-enter {
    background: var(--accent-gold);
    color: #7a0000;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gold);
    color: #000;
    font-size: 11px;
    padding: 3px 10px;
    border-bottom-left-radius: 10px;
    font-weight: bold;
    z-index: 2;
}

/* 移动端吸底条 */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 28, 45, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #2d3748;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.sticky-info { font-size: 12px; }
.sticky-info span { color: var(--accent-gold); font-weight: bold; }

.sticky-btn {
    background: var(--accent-gold);
    color: #000;
    padding: 8px 18px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

/* PC端隐藏吸底条 */
@media (min-width: 768px) {
    .sticky-bar { display: none; }
}
