@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏渐变背景 */
.navbar-gradient {
    background: linear-gradient(90deg, #4f46e5, #9333ea);
}

/* 顶部搜索栏样式 */
.navbar-search-form .form-control,
.navbar-search-form .btn {
    height: 30px; /* 统一高度，和导航对齐 */
    padding: 0 10px;
    font-size: 0.9rem; /* 字体稍微小一些 */
    line-height: normal;
}

.navbar-search-form .form-control {
    border-radius: 4px;
}

.navbar-search-form .btn {
    white-space: nowrap;
}

/* 下拉菜单滚动条样式 */
.custom-scroll {
    max-height: 300px;
    overflow-y: auto;
}
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* 平台卡片 */
.platform-card {
    cursor: pointer;
    text-decoration: none;
}
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 图比例 1.5:1，完整显示 */
.platform-img-wrapper {
    width: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 3 / 2; /* 宽:高 = 1.5:1 */
}
.platform-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示图片 */
}

/* 按钮样式 */
.btn-primary {
    background-color: #4f46e5;
    border: none;
}
.btn-primary:hover {
    background-color: #4338ca;
}
.btn-download {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border: none;
    font-weight: bold;
}
.btn-download:hover {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

footer {
    background-color: #1f2937;
    color: #d1d5db;
}

/* 分类页卡片封面比例 1:1.5 （高比宽多一半） */
.catalog-img-wrapper {
    width: 100%;
    background-color: #f0f0f0; /* 防止无图时是空白 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 2 / 3; /* 等于宽:高 = 1:1.5 */
}

.catalog-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示，不裁剪，不变形 */
}

/* 卡片点击样式 */
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-link:hover {
    text-decoration: none;
    color: inherit;
}
/* 游戏详情页图片比例 1:1.4 */
.detail-img-wrapper {
    width: 100%;
    background-color: #f0f0f0; /* 无图片时的背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 5 / 7; /* 宽:高 = 1:1.4 等于 5:7 */
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保证图片完整显示 */
}

.card-catalog {
  font-size: 0.85rem;
  color: #3524cc; /* 灰色文字 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}