* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)), #333844;
    color: #333;
    padding: 24px 16px 48px;
}

/* 背景图独立成固定层并加深模糊：inset 外扩 + scale 防止 blur 边缘出现透明晕边 */
body::before {
    content: '';
    position: fixed;
    inset: -48px;
    z-index: -1;
    background: url('/images/site-bg.jpg') center center / cover no-repeat;
    filter: blur(18px);
    transform: scale(1.06);
    pointer-events: none;
}

.header {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    margin-top: 6px;
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 300;
}

.header-notice {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.list-container {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.item-card:active {
    transform: translateY(-1px);
}

/* 头条：跨整行大卡片，暗色电影感主视觉，呼应 3D 大作本身的橙色信号灯 */
.item-card.headline-card {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 124px;
    padding: 22px 26px;
    overflow: hidden;
    color: #e8e4da;
    background: linear-gradient(112deg, #0d1216 0%, #1a222a 52%, #2b2118 100%);
    border: 1px solid rgba(255, 179, 71, .42);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.item-card.headline-card::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 179, 71, .22), transparent 68%);
    pointer-events: none;
}
.item-card.headline-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffb347;
}
.item-card.headline-card:hover {
    transform: translateY(-4px);
    border-color: #ffc977;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 179, 71, .2);
}
.headline-tag {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 179, 71, .16);
    border: 1px solid rgba(255, 179, 71, .5);
    color: #ffc977;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}
.headline-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.headline-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .02em;
}
.headline-desc {
    font-size: .88rem;
    color: rgba(232, 228, 218, .68);
    line-height: 1.5;
}
.headline-go {
    position: relative;
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffb347;
    color: #10151a;
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .item-card.headline-card { flex-wrap: wrap; gap: 10px; padding: 18px; min-height: 0; }
    .headline-tag { align-self: auto; }
    .headline-body { flex-basis: 100%; order: 3; }
    .headline-title { font-size: 1.25rem; }
    .headline-go { margin-left: auto; padding: 7px 12px; font-size: .8rem; }
}

.item-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.empty-tip {
    text-align: center;
    color: #fff;
    opacity: 0.8;
    margin-top: 40px;
}

/* 搜索框 */
.search-bar {
    max-width: 720px;
    margin: 0 auto 16px;
}
.search-bar input {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.search-bar input::placeholder { color: #a0a0b0; }

/* 分享提示 toast */
.share-toast {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 999;
    pointer-events: none;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

/* 记录区 */
.records-section {
    max-width: 720px;
    margin: 32px auto 0;
}

.records-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.record-name { font-weight: 600; color: #333; }
.record-value { color: #764ba2; font-weight: 700; }
.record-null { color: #999; font-size: 0.88rem; }

/* 玩家需求区 */
.requests-section {
    max-width: 720px;
    margin: 28px auto 0;
    text-align: center;
}

.request-btn {
    background: linear-gradient(135deg, #ff9a3d, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.request-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255, 107, 107, 0.45); }
.request-btn:active { transform: translateY(-1px); }

/* 需求面板 */
.request-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.request-panel {
    background: #fff;
    border-radius: 18px;
    width: min(560px, 100%);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.request-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}
.request-panel-head .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}
.request-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}
.request-close:hover { color: #333; }

.request-input-area {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}
.request-input-area textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    color: #333;
}
.request-input-area textarea:focus { border-color: #764ba2; }
.request-input-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.request-count { font-size: 0.8rem; color: #999; }
.request-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}
.request-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.request-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 18px 18px;
}
.request-list-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 0.9rem;
}
.request-item {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.request-item:hover { background: #faf7ff; }
.request-item-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.request-item-content {
    flex: 1;
    color: #333;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.request-item-content.clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.request-like-btn {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 16px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.15s ease;
}
.request-like-btn:hover { border-color: #ff6b6b; color: #ff6b6b; }
.request-like-btn.liked {
    background: #fff0f0;
    border-color: #ff6b6b;
    color: #ff6b6b;
    font-weight: 700;
}
.request-item-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    gap: 12px;
}

/* 外站资源按钮 */
.requests-section .link-btn {
    margin-left: 10px;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    box-shadow: 0 6px 20px rgba(24, 90, 157, 0.35);
    text-decoration: none;
    display: inline-block;
}
.requests-section .link-btn:hover { box-shadow: 0 10px 28px rgba(24, 90, 157, 0.45); }

/* 无用网站按钮 */
.requests-section .useless-btn {
    margin-left: 10px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #5a3d00;
    box-shadow: 0 6px 20px rgba(247, 151, 30, 0.35);
    text-decoration: none;
    display: inline-block;
}
.requests-section .useless-btn:hover { box-shadow: 0 10px 28px rgba(247, 151, 30, 0.45); }

/* 傻子计数器按钮 */
.requests-section .fool-btn {
    margin-left: 10px;
    background: linear-gradient(135deg, #ff6b9d, #ff2e63);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 46, 99, 0.35);
    text-decoration: none;
    display: inline-block;
}
.requests-section .fool-btn:hover { box-shadow: 0 10px 28px rgba(255, 46, 99, 0.45); }

/* 红白机游戏厅按钮 */
.requests-section .nes-btn {
    margin-left: 10px;
    background: linear-gradient(135deg, #e3494f, #8b1f3a);
    color: #fff;
    box-shadow: 0 6px 20px rgba(227, 73, 79, 0.35);
    text-decoration: none;
    display: inline-block;
}
.requests-section .nes-btn:hover { box-shadow: 0 10px 28px rgba(227, 73, 79, 0.55); }

/* ========================================
   支持开发者弹窗
   ======================================== */
.support-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
}
.support-overlay.show { display: flex; }

.support-panel {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px 24px;
    width: min(420px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.support-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 2px 4px;
}
.support-close:hover { color: #333; }

.support-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.support-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.support-qr-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.support-qr-item {
    flex: 1;
    min-width: 130px;
    max-width: 170px;
}
.support-qr-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #eee;
    display: block;
}
.support-qr-item span {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
}
