/* 方案五：混合式布局 CSS */

/* ========== 1. 精选推荐区（顶部3个大卡片） ========== */
.featured-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 150px;
    margin-top: 20px;
    justify-content: space-between;
}

.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: block !important;
    width: 300px;
    line-height: 0 !important;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.3);
}

.featured-card a {
    display: block !important;
    text-decoration: none;
    line-height: 0 !important;
}

.featured-card img {
    max-width: 300px !important;
    max-height: 470px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    border: none !important;
    vertical-align: top !important;
    margin: 0 auto !important;
}

.featured-card .card-info {
    padding: 15px;
    display: block;
    line-height: normal;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.featured-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-card .card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.featured-card .card-type,
.featured-card .card-size {
    font-size: 12px;
    padding: 3px 10px;
    background: #E8FFF5;
    color: #06D6A0;
    border-radius: 4px;
}

.featured-card .card-btn {
    width: 100%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}

.featured-card:hover .card-btn {
    background: linear-gradient(135deg, #05B589 0%, #0F7A9D 100%);
}

/* ========== 2. 网格区（15列布局） ========== */
.grid-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.grid-box {
    margin-top: 20px;
}

.grid-15col {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 8px;
    list-style: none;
}

.grid-15col li {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.grid-15col li:hover {
    background: #E8FFF5;
    transform: translateY(-2px);
}

.grid-15col li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.grid-15col li img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-15col li p {
    font-size: 12px;
    color: #333;
    line-height: 16px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
}

.grid-15col li:hover p {
    color: #06D6A0;
    font-weight: 600;
}

/* ========== 3. 排行榜区（三列布局） ========== */
.rank-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.rank-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.rank-column {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.rank-header {
    background: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);
    padding: 12px 20px;
}

.rank-header h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.rank-list {
    list-style: none;
    padding: 10px;
}

.rank-list li {
    margin-bottom: 8px;
}

.rank-list li a {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.rank-list li a:hover {
    background: #E8FFF5;
    transform: translateX(5px);
}

.rank-num {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 10px;
}

.rank-num-1 {
    background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%);
}

.rank-num-2 {
    background: linear-gradient(135deg, #ff8c42 0%, #ffd93d 100%);
}

.rank-num-3 {
    background: linear-gradient(135deg, #ffb830 0%, #ffe066 100%);
}

.rank-list li img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-list li a:hover .rank-title {
    color: #06D6A0;
}

.rank-type {
    font-size: 12px;
    color: #999;
}

/* ========== 4. 专题推荐区（4个大卡片） ========== */
.topic-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.topic-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.topic-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.3);
}

.topic-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.topic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
}

.topic-overlay h3 {
    font-size: 16px;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 5. Tab切换功能 ========== */
.xztit ul {
    position: absolute;
    top: 4px;
    right: 100px;
    display: flex;
    gap: 10px;
}

.xztit ul li {
    list-style: none;
}

.xztit ul li span {
    display: block;
    padding: 5px 20px;
    background: #f0f0f0;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.xztit ul li.current span,
.xztit ul li span:hover {
    background: #06D6A0;
    color: #fff;
}

/* ========== 6. 通用样式 ========== */
.xztit {
    position: relative;
    margin-bottom: 10px;
}

.xztit p {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    line-height: 18px;
    padding: 8px 0;
    border-bottom: 1px dashed #e6e6e6;
}

.xztit p em {
    width: 4px;
    display: inline-block;
    margin-right: 8px;
    background: #06D6A0;
    height: 18px;
    vertical-align: bottom;
}

.xztit > a {
    position: absolute;
    right: 0;
    top: 8px;
    color: #06D6A0;
    font-weight: 600;
    font-size: 14px;
}

.xztit > a:hover {
    color: #05B589;
}

.hide {
    display: none !important;
}


/* ========== 分类更新区 ========== */
.update-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.update-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* 左侧更新列表 */
.update-left {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.update-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.update-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #e5e5e5;
}

.update-tab:last-child {
    border-right: none;
}

.update-tab.active,
.update-tab:hover {
    background: #06D6A0;
    color: #fff;
}

.update-list {
    padding: 10px;
}

.update-content {
    display: none;
}

.update-content.active {
    display: grid;
}

.update-list-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 15px;
    max-height: 320px;
    overflow: hidden;
}

.update-item {
    padding: 6px 8px;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
}

.update-item a:hover {
    color: #06D6A0;
}

.update-tag {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
    flex-shrink: 0;
}

.update-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-item a:hover .update-title {
    color: #06D6A0;
}



.update-more {
    text-align: right;
    padding: 10px 15px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.update-more a {
    color: #06D6A0;
    font-size: 14px;
    text-decoration: none;
}

.update-more a:hover {
    color: #05B589;
}

/* 右侧推荐软件 */
.update-right {
    width: 280px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-header {
    background: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);
    padding: 12px 15px;
}

.recommend-header h3 {
    font-size: 16px;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.recommend-list {
    padding: 10px;
}

.recommend-item {
    margin-bottom: 10px;
}

.recommend-item a {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.recommend-item a:hover {
    background: #E8FFF5;
    transform: translateX(3px);
}

.recommend-num {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.recommend-item:nth-child(1) .recommend-num {
    background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%);
}

.recommend-item:nth-child(2) .recommend-num {
    background: linear-gradient(135deg, #ff8c42 0%, #ffd93d 100%);
}

.recommend-item:nth-child(3) .recommend-num {
    background: linear-gradient(135deg, #ffb830 0%, #ffe066 100%);
}

.recommend-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    flex-shrink: 0;
}

.recommend-info {
    flex: 1;
    min-width: 0;
}

.recommend-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-item a:hover .recommend-title {
    color: #06D6A0;
}

.recommend-meta {
    font-size: 12px;
    color: #999;
}

.recommend-btn {
    padding: 4px 12px;
    background: #06D6A0;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.recommend-item a:hover .recommend-btn {
    background: #05B589;
}
