/* 全局变量与重置 */
:root {
    --bg-main: #13151a;
    --bg-card: #1d2027;
    --primary-color: #e5c884;
    --primary-hover: #f3dca8;
    --text-main: #ffffff;
    --text-sub: #999999;
    --border-color: #333333;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    padding-bottom: 80px;
    background-image: radial-gradient(circle at 50% 0%, #1e222d 0%, #13151a 50%);
}

.container {
    max-width: 800px; /* 控制整体最大宽度 */
    margin: 0 auto;
    padding: 15px;
}

/* 顶部横幅 */
.hero-banner {
    background: linear-gradient(135deg, #1f2228 0%, #14151a 100%);
    border: 1px solid #3a3f4d;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #f3dca8 0%, #c49e4f 100%);
    color: #000;
    font-size: 26px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(229, 200, 132, 0.4);
    font-style: italic;
}

.hero-text h1 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.hero-text p {
    font-size: 12px;
    color: var(--text-sub);
}

.hero-tags {
    display: none; /* 移动端隐藏 */
    gap: 10px;
}

.hero-tags .tag {
    background: rgba(229, 200, 132, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* =========================================
   通知栏 (最新无缝跑马灯效果)
   ========================================= */
.notice-bar {
    position: relative;
    background: #1a1c22;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #2a2d35;
    overflow: hidden;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

/* 滚动轨道 */
.notice-content {
    display: flex;
    white-space: nowrap;
    animation: scrollText 25s linear infinite; /* 调整25s控制滚动速度 */
}

/* 鼠标移上去时暂停滚动 */
.notice-bar:hover .notice-content {
    animation-play-state: paused;
}

/* 每条信息的包裹层 */
.notice-content .item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-sub);
    margin-right: 40px; /* 两条信息之间的间距 */
}

/* 小图标 */
.notice-content .ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
    font-size: 14px;
}

/* 高亮的数字 */
.notice-content b {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 5px;
    font-size: 14px;
}

/* 最左侧和最右侧的渐变消失遮罩 */
.notice-bar::before,
.notice-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* 防止遮挡点击 */
}

.notice-bar::before {
    left: 0;
    background: linear-gradient(to right, #1a1c22 0%, transparent 100%);
}

.notice-bar::after {
    right: 0;
    background: linear-gradient(to left, #1a1c22 0%, transparent 100%);
}

/* 滚动动画 */
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 滚到一半时无缝重置 */
}

/* 分类导航 */
.category-nav {
    display: flex;
    justify-content: space-around;
    background: #181a20;
    border: 1px solid #2a2d35;
    border-radius: 12px;
    padding: 15px 5px;
    margin-bottom: 25px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #4a4133;
    background: radial-gradient(circle, #2a2e38 0%, #1a1c22 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 8px rgba(229, 200, 132, 0.1);
}

.nav-item span {
    font-size: 13px;
    color: #ccc;
}

/* 平台列表标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-title .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3a3f4d, transparent);
}

.section-title h2 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    font-style: italic;
}

.section-title .sub-title {
    font-size: 12px;
    color: var(--text-sub);
}

/* 网格布局 - 默认移动端为 2 列 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border: 1px solid #333842;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 200, 132, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header .no {
    background: #2a2d35;
    color: #aaa;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-style: italic;
}

.card-header .recommend {
    background: linear-gradient(90deg, #d4b05e, #f3dca8);
    color: #000;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Logo 图片区域 */
.logo-box {
    background: #14151a;
    border-radius: 8px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid #2a2d35;
    overflow: hidden;
}

.logo-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* 备用纯 CSS 模拟 Logo 文字 */
.logo-text {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo-text span { font-size: 10px; font-weight: normal; font-style: normal; margin-top: 2px;}
.logo-text.mk { color: #4a80f0; font-family: sans-serif; }
.logo-text.nine { color: #fff; }
.logo-text.nine span { color: #ccc; }
.logo-text.kaiyun { color: #00a8ff; }
.logo-text.leyu { color: #007bff; }
.logo-text.hth { color: #6a5acd; }
.logo-text.ayx { color: #00c3ff; }

/* 评分 */
.rating {
    text-align: center;
    margin-bottom: 10px;
}
.stars {
    color: var(--primary-color);
    font-size: 12px;
}
.stars .score {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

/* 标签 */
.tags {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 10px;
    color: var(--primary-color);
    border: 1px solid rgba(229, 200, 132, 0.3);
    background: rgba(229, 200, 132, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 按钮 */
.actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(180deg, #f3dca8 0%, #d4b05e 100%);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #fff 0%, #e5c884 100%);
}

.btn-secondary {
    background: #2a2d35;
    color: var(--primary-color);
    border: 1px solid #4a4133;
}

.btn-secondary:hover {
    background: #3a3f4d;
}

/* 底部信息 */
.footer-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.8;
}
.footer-info span { color: var(--primary-color); }

/* 底部固定栏 */
.bottom-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333842;
    z-index: 1000;
    padding: 10px 15px;
}

.fixed-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixed-title {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.fixed-desc {
    font-size: 14px;
    font-weight: bold;
}
.fixed-desc span { color: var(--primary-color); }

.btn-fixed {
    background: linear-gradient(180deg, #f3dca8 0%, #d4b05e 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(229, 200, 132, 0.3);
}

/* =========================================
   PC端自适应调整 (屏幕宽度大于 768px 时生效)
   ========================================= */
@media (min-width: 768px) {
    .hero-tags { display: flex; }
    .hero-text h1 { font-size: 22px; }
    .hero-text p { font-size: 14px; }
    
    /* PC端强制为 2 列 */
    .platform-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; /* 稍微加大一点卡片之间的间距，显得更大气 */
    }
    
    /* 稍微调整一下 PC 端卡片内部的尺寸 */
    .logo-box { height: 90px; }
    .logo-text { font-size: 24px; }
    .card { padding: 20px; } /* 加大卡片内边距 */
    .btn { padding: 10px 0; font-size: 14px; } /* 按钮稍微变大 */
}