
:root {
    --c-theme-primary: #ff9900;    /* 强调色: 橙色 */
    --c-nav-main: #333333;         /* 导航背景: 深灰 */
    --c-bg-content: #ffffff;       /* 内容背景: 白色 */
    --c-text-light: #ffffff;
    --c-text-dark: #222222;        /* 主要文本: 深黑 */
    --c-footer-bg: #f0f0f0;        /* 底部背景: 浅灰 */
    --c-star-rating: #ffc107;      /* 星星颜色: 黄色 */
    --grid-cols-pc: 10;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--c-theme-primary);
    color: var(--c-text-dark);
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* --- 2. 网页结构 (居中内容区) --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--c-bg-content);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* 阴影更重 */
    min-height: 100vh;
    position: relative;
}

/* --- 3. 顶部导航栏 (Header - 深灰背景) --- */
.top-bar-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: var(--c-nav-main);
    color: var(--c-text-light);
    height: 45px;
}
.brand-nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand-logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--c-theme-primary); /* Logo使用橙色强调 */
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}
.link-menu-desktop { display: flex; gap: 15px; font-size: 14px; font-weight: 500; }
.link-menu-desktop a { color: var(--c-text-light); padding: 5px 0; }
.link-menu-desktop a.is-active { border-bottom: 3px solid var(--c-theme-primary); padding-bottom: 2px; }
.search-input-area { display: flex; align-items: center; height: 30px; }
.search-input-area input { padding: 5px 10px; border: none; border-radius: 4px 0 0 4px; width: 180px; font-size: 13px; color: #333; }
.search-input-area button { background-color: var(--c-theme-primary); color: var(--c-text-dark); border: none; padding: 0 10px; cursor: pointer; border-radius: 0 4px 4px 0; height: 30px; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* PC 端隐藏分类按钮 */
#toggle-mobile-menu {
    display: none;
}

/* --- 4. 游戏网格 (Grid) --- */
.grid-section-wrapper { padding: 10px 0; background-color: var(--c-bg-content); }
.content-grid-area { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 5px; }

/* --- 5. 游戏卡片 (增强版) --- */
.item-card-unit {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    border-radius: 6px;
    margin: 2px;
    background-color: #fcfcfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); /* 稍微强一点的阴影 */
    height: auto;
    padding-bottom: 5px;
    transition: transform 0.2s;
}
.item-card-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.media-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}
.media-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.metadata-section {
    padding: 5px 8px 0;
    color: var(--c-text-dark);
    flex-grow: 1;
    min-height: 70px;
}
.item-name-label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-rating-stars {
    font-size: 10px;
    color: var(--c-star-rating);
    margin-bottom: 3px;
}
.item-summary-text {
    font-size: 9px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-rating-stars .fa-star, .item-rating-stars .fa-star-half-alt, .item-rating-stars .far.fa-star {
    margin-right: -1px;
    color: var(--c-star-rating);
}
.item-rating-stars .far.fa-star {
    color: #ccc;
}

.status-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--c-theme-primary); /* 徽章使用橙色 */
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
}

/* --- 6. 网站描述区域 --- */
.description-info-area {
    background-color: #fcfcfc;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    border-top: 1px solid #eee;
}
.description-info-area h3 {
    font-size: 16px;
    color: var(--c-text-dark);
    margin-bottom: 10px;
}


/* --- 7. 底部 Footer --- */
.page-footer { background-color: var(--c-footer-bg); color: #666; font-size: 12px; padding: 20px 10px; text-align: center; border-top: 1px solid #ddd; }
.footer-navigation-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; }
.footer-navigation-links a { color: var(--c-theme-primary); text-decoration: none; white-space: nowrap; }

/* --- 8. 移动端菜单样式 --- */
.mobile-menu-drawer {
    position: fixed; top: 0; left: 0; width: 75%; max-width: 250px; height: 100%;
    background-color: var(--c-nav-main);
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}
.mobile-menu-drawer.is-open { transform: translateX(0); }
.menu-backdrop-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 190;
    display: none;
}
.mobile-link-entry {
    padding: 15px 20px; border-bottom: 1px solid #444; display: block;
    color: white;
    font-size: 15px;
}
.mobile-menu-close-btn {
    text-align: right; padding: 10px; font-size: 24px; cursor: pointer;
    color: var(--c-theme-primary);
}


/* --- 9. 响应式布局 (Mobile) --- */
@media (max-width: 768px) {
    /* 导航栏调整 */
    .top-bar-view { padding: 10px 5px; height: auto; }

    /* 移动端显示汉堡菜单 */
    #toggle-mobile-menu {
        display: block;
        margin-right: 10px;
        font-size: 20px;
        cursor: pointer;
    }
    .link-menu-desktop { display: none; } /* PC导航链接在手机上隐藏 */
    .brand-nav-group { flex-grow: 1; gap: 10px; }
    .search-input-area input { width: 100px; }
    .search-input-area { height: 30px; }

    /* 移动端紧凑网格: 4 列 */
    .content-grid-area {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 移动端卡片信息调整 */
    .metadata-section {
        min-height: 50px;
        padding: 3px 5px 0;
    }
    .item-name-label {
        font-size: 10px;
    }
    .item-rating-stars {
        font-size: 9px;
    }
}