/* TAG页面专用样式 */

/* 主内容区域 */
main {
    background-color: #fff;
}

/* 标签列表样式 */
.tag-list-section {
    padding: 0.2rem 0;
    background-color: #fff;
}

.tag-list {
    width: 100%;
}

.section-title {
    font-size: 0.36rem;
    font-weight: bold;
    color: #262626;
    margin-bottom: 0.3rem;
    padding: 0 0.2rem;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    gap: 0.2rem;
    padding: 0 0.2rem;
}

.tag-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0.1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.05);
}

.tag-card:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.1);
}

.tag-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tag-card-content {
    display: flex;
    flex-direction: column;
    padding: 0.15rem;
    width: 100%;
}

.tag-card-image {
    width: 100%;
    height: 2rem;
    margin-bottom: 0.15rem;
}

.tag-card-image img {
    width: 100%;
    height: 100%;
    border-radius: 0.05rem;
    object-fit: cover;
}

.tag-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag-card-name {
    font-size: 0.24rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.08rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-card-desc {
    font-size: 0.2rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    height: 0.56rem;
}

.tag-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tag-card-count {
    font-size: 0.18rem;
    color: #999;
    font-weight: normal;
}

/* 分页样式 */
.pagination {
    margin-top: 0.3rem;
    padding: 0 0.2rem;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.1rem 0.2rem;
    margin: 0 0.05rem;
    font-size: 0.24rem;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 0.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #1e90ff;
    color: #fff;
}

.pagination .current {
    background-color: #1e90ff;
    color: #fff;
    font-weight: bold;
}

/* 顶部背景图 */
.tag-header {
    width: 100%;
    max-width: 7.5rem;
    height: 4rem;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 0;
}

.tag-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* TAG信息区域 */
.tag-info-section {
    margin-bottom: 0.2rem;
    padding: 0;
    margin: 0 auto 0.2rem;
}

.tag-info {
    background-color: #fff;
    border-radius: 0;
    padding: 0.2rem;
    margin-bottom: 0.2rem;
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.1);
    position: relative;
}

.tag-name {
    font-size: .36rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 .2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-time {
    font-size: .24rem;
    color: #999;
    font-weight: normal;
}

.tag-description {
    font-size: .28rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    transition: all .3s ease;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 6;
    -moz-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    max-height: calc(1.6 * 0.28rem * 6);
}

.tag-description.expanded {
    max-height: none;
}

.expand-btn {
    color: #1e90ff;
    background: white;
    border: none;
    padding: 0;
    font-size: .28rem;
    cursor: pointer;
    margin-top: .2rem;
    display: inline-block;
    position: absolute;
    bottom: 0.2rem;
    right: 0.2rem;
}

/* 游戏列表区域 */
.tag-games-section {
    padding: 0.2rem 0;
    margin-bottom: 0.2rem;
    background-color: #fff;
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.game-item {
    background-color: #fff;
    border-radius: .12rem;
    overflow: hidden;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.game-item:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
}

.game-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    height: 100%;
}

.game-cover {
    width: 1.3rem;
    height: 1.3rem;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 0.2rem;
}

.game-info {
    padding: 0.05rem 0.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.game-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem;
    flex-shrink: 0;
    min-width: 1.2rem;
}

.game-title {
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.30rem;
}

.game-meta {
    display: flex;
    align-items: center;
    color: #8c8c8c;
    margin-bottom: 0.08rem;
    gap: 0.08rem;
    white-space: nowrap;
    overflow: hidden;
}

.game-meta span {
    font-size: 0.22rem;
    line-height: 1.2;
}

.game-score {
    font-weight: bold;
    color: red;
}

.game-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.06rem;
    margin-top: 0.06rem;
    white-space: nowrap;
    overflow: hidden;
}

.game-tag {
    color: #8c8c8c;
    padding: 0.02rem 0.1rem;
    background-color: #f5f5f5;
    border-radius: 0.1rem;
    font-size: 0.22rem;
    line-height: 1.2;
}

.game-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem;
}

.view-btn {
    background-color: #1e90ff;
    color: white;
    padding: 0.05rem 0.3rem;
    border-radius: 0.15rem;
    font-weight: 500;
    font-size: 0.28rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .3s ease;
}

.view-btn:hover {
    background-color: #0066cc;
}

/* 无内容提示 */
.no-content {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    font-size: .3rem;
    background-color: #fff;
    border-radius: .2rem;
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.1);
}

/* 内容切换栏样式 */
.list_titles {
    padding: .26rem .3rem .2rem .3rem;
    margin: 0 auto 0;
}

.list_titles ul {
    border: .01rem solid #667eea;
    border-radius: .08rem;
    overflow: hidden;
    display: flex;
}

.list_titles ul li {
    flex: 1;
    height: 0.64rem;
    line-height: 0.64rem;
    text-align: center;
    border: none;
    background-color: #ffffff;
}

.list_titles ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #667eea;
    background-color: transparent;
    border: none;
    margin: 0;
    box-sizing: border-box;
    line-height: normal;
    text-align: center;
    text-decoration: none;
}

.list_titles .current {
    background-color: #667eea;
    border: none;
}

.list_titles .current a {
    color: #ffffff;
}

.list_titles .current a:hover {
    background-color: transparent;
    text-decoration: none;
}

.list_titles .current span {
    background-color: transparent;
}

/* 标题文字样式 */
.list_titles ul li a h3 {
    font-size: 0.28rem;
    color: #667eea;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.list_titles .current a h3 {
    color: #ffffff;
}

/* 资讯列表样式 */
.tag-news-section {
    padding: 0;
    margin-bottom: 0.2rem;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.news-item {
    background-color: #fff;
    border-radius: .12rem;
    overflow: hidden;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.news-item:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
}

.news-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    height: 100%;
}

.news-cover {
    width: 1.3rem;
    height: 1.3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 0.05rem 0.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-title {
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.30rem;
}

.news-meta {
    display: flex;
    align-items: center;
    color: #8c8c8c;
    margin-bottom: 0.08rem;
    gap: 0.08rem;
    white-space: nowrap;
    overflow: hidden;
}

.news-meta span {
    font-size: 0.22rem;
    line-height: 1.2;
}

.news-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.06rem;
    margin-top: 0.06rem;
    white-space: nowrap;
    overflow: hidden;
}

.news-tag {
    color: #8c8c8c;
    padding: 0.02rem 0.1rem;
    background-color: #f5f5f5;
    border-radius: 0.1rem;
    font-size: 0.22rem;
    line-height: 1.2;
}


