/**
 * 资讯教程页面样式
 * 延续蓝域下载站蓝色系设计风格
 */

/* ==================== 顶部焦点区域 ==================== */
.hero-section {
    padding: 0px 20px 15px;
    background: var(--gray-100);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 20px;
}

/* ==================== 左侧轮播图 ==================== */
.hero-carousel {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.carousel-main {
    position: relative;
    height: 467px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.carousel-caption h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 90px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* 底部小图预览 */
.carousel-thumbs {
    display: flex;
    height: 80px;
    border-top: 1px solid var(--gray-200);
}

.thumb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid var(--gray-200);
    background: white;
}

.thumb-item:last-child {
    border-right: none;
}

.thumb-item:hover {
    background: var(--gray-100);
}

.thumb-item.active {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(33, 150, 243, 0.1));
    position: relative;
}

.thumb-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #2196f3);
}

.thumb-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.thumb-item span {
    font-size: 12px;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.thumb-item.active span {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== 右侧资讯列表 ==================== */
.hero-news {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

/* 头条新闻 */
.news-headlines {
    padding: 16px 20px 8px;
    border-bottom: 1px solid var(--gray-100);
}

.headline-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px dashed var(--gray-200);
}

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

.headline-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.headline-item:hover h4 {
    color: var(--primary-color);
}

.headline-tags {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 普通资讯列表 */
.news-list-simple {
    flex: 1;
    padding: 8px 0;
}

.news-simple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.news-simple-item:hover {
    background: var(--gray-50);
}

.news-text {
    flex: 1;
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.news-simple-item:hover .news-text {
    color: var(--primary-color);
}

.news-date {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}
.category-tabs {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.tabs-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gray-100);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border: 2px solid transparent;
}

.category-tab:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.category-tab svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==================== 内容布局 ==================== */
.article-content {
    padding: 30px 0 60px;
    background: var(--gray-100);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* ==================== 左侧教程区域 ==================== */
.tutorial-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

.section-title .title-bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #ff6b6b, #ee5a5a);
    border-radius: 2px;
}

.section-title .title-icon {
    width: 30px;
    height: 30px;
    color: #343a40;
    flex-shrink: 0;
}

.section-title .title-text {
    color: var(--gray-800);
}

.more-link {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 教程内容区 - 左大右小布局 */
.tutorial-content {
    display: grid;
    grid-template-columns: 1fr 540px;
    grid-template-rows: auto 1fr;
    gap: 20px 30px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* 区块标题放在卡片顶部，横跨两列 */
.tutorial-content .section-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* 左侧大图区域 */
.tutorial-featured {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 18/10;
}

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

.hot-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.featured-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.featured-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

/* 下方推荐卡片 */
.featured-bottom-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-bottom-card:hover .bottom-card-info h4 {
    color: var(--primary-color);
}

.bottom-card-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 18/10;
}

.bottom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-card-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.bottom-card-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bottom-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

/* 右侧小图列表 */
.tutorial-side-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.side-item:hover .side-info h4 {
    color: var(--primary-color);
}

.side-image {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.side-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 2px 0;
}

.side-info h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.side-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-400);
}

/* 教程区块 */
.tutorial-block {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* 教程卡片 - 包含多个区块 */
.tutorial-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tutorial-card .tutorial-block {
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
}

.tutorial-card .tutorial-block:last-child {
    border-bottom: none;
}

/* 教程主图 */
.tutorial-main {
    position: relative;
}

.tutorial-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

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

.tutorial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.tutorial-overlay h3 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.tutorial-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 教程列表 */
.tutorial-list {
    padding: 16px 20px 16px 0;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.tutorial-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-items li a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.tutorial-items li a:hover {
    color: var(--primary-color);
}

.tutorial-items .arrow {
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

/* ==================== 右侧软件推荐 ==================== */
.software-recommend {
    display: flex;
    flex-direction: column;
}

.software-recommend .sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.software-recommend .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.software-recommend .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1976d2, #2196f3);
}

/* 软件列表 - 简洁版（参考图片样式） */
.software-list-simple {
    display: flex;
    flex-direction: column;
}

.software-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.software-item-simple:hover {
    background: var(--gray-50);
    margin: 0 -12px;
    padding: 12px;
    border-radius: var(--radius-md);
}

.software-icon-simple {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.software-icon-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-info-simple {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.software-name-simple {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    transition: color 0.3s ease;
}

.software-item-simple:hover .software-name-simple {
    color: var(--primary-color);
}

.software-desc-simple {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
}

/* 软件列表 - 紧凑版 */
.software-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.software-item-compact:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.software-icon-small {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.software-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.software-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.software-rating-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.software-rating-compact .stars-compact {
    color: #ffa726;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.software-rating-compact .score-compact {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.download-icon {
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.software-item-compact:hover .download-icon {
    color: var(--primary-color);
}

/* 软件列表 - 旧版样式保留 */
.software-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.software-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.software-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.software-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.software-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.software-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.software-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.software-rating .stars {
    color: #ffa726;
    font-size: 13px;
    letter-spacing: 1px;
}

.software-rating .score {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: 15px;
    margin-top: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* ==================== 侧边栏 ==================== */
.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1976d2, #2196f3);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: var(--gray-100);
    border-radius: 15px;
    font-size: 13px;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    transform: translateY(-2px);
}

/* 推荐作者 */
.author-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.author-item:hover {
    background: var(--gray-100);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #2196f3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.author-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* 热门专题 */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(33, 150, 243, 0.1));
    transform: translateX(4px);
}

.topic-name {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.topic-count {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(25, 118, 210, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 最新资讯 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

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

.news-item:hover {
    padding-left: 8px;
}

.news-date {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(25, 118, 210, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-title {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

/* 热门文章 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

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

.hot-rank {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: white;
}

.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: white;
}

.hot-title {
    flex: 1;
    font-size: 13px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-views {
    font-size: 12px;
    color: var(--gray-500);
}

.hot-item:hover .hot-title {
    color: var(--primary-color);
}

/* 相关推荐 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.recommend-item:hover {
    background: var(--gray-100);
}

.recommend-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.recommend-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.recommend-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.recommend-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== 中间内容区 ==================== */
.main-article-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 筛选栏 */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.filter-label {
    font-size: 14px;
    color: var(--gray-600);
}

.sort-options {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.sort-btn.active {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-md);
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-500);
}

.view-btn:hover {
    color: var(--primary-color);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== 文章列表 ==================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    gap: 0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 280px;
    height: 180px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.article-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--gray-800);
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-summary {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================== 加载更多 ==================== */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.btn-load-more {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-load-more svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-load-more:hover svg {
    transform: translateY(2px);
}

/* ==================== 资讯排行 ==================== */
.news-rank-list {
    display: flex;
    flex-direction: column;
}

.news-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.news-rank-item:hover {
    background: var(--gray-50);
    margin: 0 -12px;
    padding: 12px;
    border-radius: var(--radius-md);
}

.rank-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: white;
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: white;
}

.rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-rank-item:hover .rank-info h4 {
    color: var(--primary-color);
}

.rank-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.rank-date {
    margin-right: 8px;
    color: var(--gray-400);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .tutorial-block {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .software-recommend {
        display: none;
    }

    .tutorial-content {
        grid-template-columns: 1fr 280px;
    }

    .side-image {
        width: 90px;
        height: 65px;
    }

    .side-info h4 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-news {
        display: none;
    }

    .tutorial-content {
        grid-template-columns: 1fr;
    }

    .tutorial-side-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-item {
        width: calc(50% - 8px);
    }

    .section-title {
        font-size: 18px;
    }

    .featured-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .page-title-icon {
        width: 56px;
        height: 56px;
    }

    .page-title-icon svg {
        width: 28px;
        height: 28px;
    }

    .page-title-text h1 {
        font-size: 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .tutorial-items li a {
        font-size: 13px;
    }

    .software-icon {
        width: 48px;
        height: 48px;
    }

    .software-name {
        font-size: 14px;
    }

    .software-desc {
        font-size: 11px;
    }
        font-size: 13px;
    }
}
