/* 页面内容样式 - 首页和分类页面通用 */

/* ==========================================================================
   首页英雄区域样式 - 恢复原始样式
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: clamp(80px, 15vw, 120px) clamp(12px, 3vw, 24px) clamp(60px, 12vw, 80px);
    text-align: center;
    margin-top: clamp(48px, 8vw, 64px);
}

.hero-container {
    max-width: clamp(400px, 90vw, 800px);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(28px, 8vw, 48px);
    font-weight: 700;
    margin-bottom: clamp(12px, 3vw, 16px);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 3.5vw, 20px);
    opacity: 0.9;
    margin-bottom: clamp(24px, 5vw, 32px);
    line-height: 1.5;
}

.search-box {
    background: white;
    border-radius: clamp(4px, 1vw, 6px);
    padding: clamp(6px, 1.5vw, 8px);
    display: flex;
    max-width: clamp(300px, 80vw, 500px);
    margin: 0 auto clamp(24px, 5vw, 32px);
}

.search-box input {
    flex: 1;
    border: none;
    padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px);
    font-size: clamp(14px, 3vw, 16px);
    border-radius: clamp(3px, 1vw, 5px);
    outline: none;
}

.search-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
/* ==========================================================================
   分类页面头部样式 - 恢复原始样式
   ========================================================================== */

.category-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 40px 0 32px;
    margin-top: 64px;
}



.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* 统一的页面头部信息区域 - 回归简洁设计 */
.page-info {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.page-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007cba 0%, #0073aa 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.page-details {
    flex: 1;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.page-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.page-stat svg {
    color: #007cba;
    flex-shrink: 0;
}

/* 搜索页面的统计信息样式 */
.search .page-stat {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.search .page-stat svg {
    color: rgba(255, 255, 255, 0.8);
}

/* 不同页面类型的图标样式 */
.search .page-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.tag-archive .page-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.category .page-icon {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.archive .page-icon {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

/* 特殊关键词样式 */
.tag-name {
    color: #28a745;
    font-weight: 600;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-details {
    flex: 1;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.category-description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 搜索关键词样式 */
.search-keyword {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-underline-offset: 2px;
}

/* 搜索无结果页面样式 */
.no-search-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    margin-bottom: 24px;
    color: #6c757d;
}

.no-search-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.no-search-results > p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.search-suggestions,
.popular-searches,
.new-search {
    text-align: left;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.search-suggestions h4,
.popular-searches h4,
.new-search h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggestions h4::before {
    content: '💡';
    font-size: 18px;
}

.popular-searches h4::before {
    content: '🔥';
    font-size: 18px;
}

.new-search h4::before {
    content: '🔍';
    font-size: 18px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li::before {
    content: '•';
    color: #007cba;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    color: white;
    text-decoration: none;
}

.new-search .search-form {
    margin-top: 16px;
}

/* 标签页面样式 */
.tag-header-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tag-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007cba 0%, #0073aa 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.tag-details {
    flex: 1;
}

.tag-name {
    color: #007cba;
    font-weight: 700;
}

.tag-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.tag-count-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.tag-count-info svg {
    color: #007cba;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.related-tags-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-right: 4px;
}

.related-tag-item {
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-tag-item:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(-1px);
    text-decoration: none;
}

.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag-item {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

/* ==========================================================================
   主内容区域布局 - 共用
   ========================================================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 24px) 24px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    /* 确保内容不被固定导航栏遮挡 */
    scroll-margin-top: 80px;
}

/* 为分页页面添加上边距，避免被导航栏遮挡 */
.paged .main-content {
    margin-top: 80px;
}

/* 确保有英雄区域或分类头部的页面不受影响 */
.paged .hero + .main-content,
.paged .category-header + .main-content {
    margin-top: 0;
}

.content-area {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   基础卡片样式 - 共用
   ========================================================================== */

.article-card {
    background: white;
    border-radius: clamp(6px, 1.5vw, 8px);
    overflow: hidden;
}

/* ==========================================================================
   VPS卡片样式 - 共用
   ========================================================================== */

.vps-card {
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.vps-card .card-header {
    padding: 16px 20px 12px;
}

.vps-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

.vps-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.vps-card .card-title a {
    text-decoration: none;
    color: inherit;
}

.vps-card .card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.vps-card .card-content {
    padding: 0 20px 20px;
    width: 100%;
    box-sizing: border-box;
}

.vps-card .features {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.vps-card .feature-tag {
    background: #f0f8ff;
    color: #4a90e2;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.vps-card .feature-tag.cn2 {
    background: #f0f8f0;
    color: #5cb85c;
}

.vps-card .feature-tag.hot {
    background: #fff8f0;
    color: #f39c12;
}

/* ==========================================================================
   VPS价格表样式 - 共用
   ========================================================================== */

.vps-card .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: clamp(12px, 2.5vw, 16px);
    border-radius: clamp(4px, 1vw, 6px);
    background: white;
    display: block;
    max-height: calc(3 * 42px); /* 假设每行约42px，可根据实际调整 */
    overflow: hidden;
}

.vps-card .pricing-table {
    width: 100%;
    min-width: clamp(320px, 85vw, 600px);
    border-collapse: collapse;
    font-size: clamp(12px, 2.5vw, 14px);
    background: white;
}

.vps-card .pricing-table thead {
    background: #fafbfc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.vps-card .pricing-table th {
    padding: clamp(8px, 2vw, 12px) clamp(8px, 2vw, 12px);
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: clamp(12px, 2.5vw, 13px);
    white-space: nowrap;
}

.vps-card .pricing-table td {
    padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px);
    text-align: left;
    font-size: clamp(11px, 2.2vw, 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vps-card .pricing-table .price {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
}

.vps-card .plan-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.vps-card .plan-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.vps-card .original-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.vps-card .current-price {
    font-weight: 700;
    color: #e74c3c;
}

/* ==========================================================================
   推荐套餐单卡片样式 - 共用
   ========================================================================== */

.vps-card .single-plan-card {
    background: white;
    border-radius: 5px;
    padding: 16px;
    margin: 0;
    border: 1px solid #f0f0f0;
}

.vps-card .plan-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.vps-card .plan-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vps-card .plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.vps-card .plan-badge {
    background: #4a90e2;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 500;
}

.vps-card .plan-price-section {
    text-align: right;
}

.vps-card .plan-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
}

.vps-card .plan-price-unit {
    font-size: 10px;
    color: #666;
    font-weight: 400;
}

.vps-card .plan-original-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.vps-card .plan-compact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.vps-card .plan-specs-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vps-card .spec-compact {
    font-size: 12px;
    color: #495057;
}

.vps-card .plan-features-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vps-card .feature-item {
    font-size: 11px;
    color: #28a745;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 2px;
}

.vps-card .plan-actions-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
}

.vps-card .plan-buy-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* ==========================================================================
   常规文章卡片样式 - 共用
   ========================================================================== */

.regular-card {
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0;
}

.regular-card .card-title {
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: clamp(8px, 2vw, 12px);
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.regular-card .card-title a {
    text-decoration: none;
    color: inherit;
}

.regular-card .card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: clamp(8px, 2vw, 12px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.regular-card .card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    border-top: none;
    padding: 0;
}

.regular-card .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
    min-height: 24px; /* 确保有足够高度进行计算 */
    width: 100%;
}

.regular-card .card-tags .more-tags {
    background: #e9ecef;
    color: #6c757d;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: none; /* 避免动画影响计算 */
}

/* 标签自适应计算时的辅助样式 */
.card-tags[data-auto-fit="true"] .feature-tag {
    transition: none; /* 计算时禁用动画 */
}

.card-tags[data-auto-fit="true"] .feature-tag[style*="display: none"] {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

/* ==========================================================================
   通用卡片组件样式 - 共用
   ========================================================================== */

.card-header {
    padding: 16px 20px 12px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-footer {
    padding: 10px 12px 12px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   热门VPS推荐区域 - 分类页面特有
   ========================================================================== */

.hot-vps-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.hot-vps-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
}

.hot-vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.hot-vps-card {
    background: white;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    min-width: 180px;
}

.vps-provider {
    font-size: 14px;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 8px;
}

.vps-plan-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.vps-specs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vps-spec {
    background: #e9ecef;
    color: #495057;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 500;
}

.vps-bandwidth {
    font-size: 10px;
    color: #28a745;
    margin-bottom: 10px;
    font-weight: 500;
}

.vps-price {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.vps-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* ==========================================================================
   推荐卡片 - 分类页面特有
   ========================================================================== */

.recommendation-card {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 24px;
}

.recommendation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.recommendation-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.recommendation-text {
    text-align: left;
}

.recommendation-provider {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.recommendation-plan {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.recommendation-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recommendation-spec {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
}

.recommendation-action {
    text-align: center;
}

.recommendation-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.recommendation-btn {
    width: 100%;
    padding: 6px 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

/* ===================== 套餐价格对比表格样式（与article-detail.html一致） ===================== */
.config-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}
.config-table th,
.config-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    line-height: 1.4;
}
.config-table th {
    background: #fafbfc;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
}
.config-table tr:hover {
    background: #f8f9fa;
}
.config-table tr:last-child td {
    border-bottom: none;
}
.config-table .price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 13px;
    white-space: nowrap;
}
.buy-btn {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.buy-btn:hover {
    background: #4cae4c;
    color: white;
}
@media (max-width: 768px) {
    .config-table {
        font-size: 12px;
        margin: 16px 0;
    }
    .config-table th,
    .config-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    .config-table th {
        font-size: 10px;
    }
    .config-table .price {
        font-size: 11px;
    }
    .buy-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ==========================================================================
   响应式设计 - 全站通用
   ========================================================================== */

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .category-header {
        padding: 32px 0 24px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .category-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: clamp(60px, 12vw, 80px) clamp(12px, 3vw, 16px) clamp(40px, 8vw, 60px);
        margin-top: 0;
    }

    .search-box input {
        padding: 10px;
        font-size: 16px;
    }

    .search-btn {
        padding: 10px;
        font-size: 16px;
    }

    .hero-tags {
        gap: 8px;
        margin-top: 16px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .category-header {
        padding: 24px 0;
        margin-top: 0;
    }

    .header-container {
        padding: 0 16px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 0;
    }

    .category-description {
        font-size: 14px;
    }

    /* 搜索结果页面响应式 */
    .no-search-results {
        padding: 40px 16px;
    }

    .no-search-results h3 {
        font-size: 20px;
    }

    .search-suggestions,
    .popular-searches,
    .new-search {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .search-tags {
        gap: 6px;
    }

    .search-tag {
        padding: 5px 10px;
        font-size: 13px;
    }

    /* 标签页面响应式 */
    .tag-header-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .tag-icon {
        width: 56px;
        height: 56px;
        align-self: center;
    }

    .tag-meta {
        gap: 10px;
    }

    .related-tags {
        justify-content: center;
    }

    .related-tag-item {
        font-size: 11px;
        padding: 3px 6px;
    }

    /* 统一页面信息响应式 */
    .page-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .page-icon {
        width: 56px;
        height: 56px;
        align-self: center;
    }

    .page-meta {
        justify-content: center;
        gap: 12px;
    }

    .page-stat {
        font-size: 13px;
    }



    .main-content {
        padding: 16px;
        gap: 16px;
    }
    .paged .main-content {
        margin-top: 0px;
    }
    .content-area {
        gap: 16px;
    }

    .articles-list {
        gap: 16px;
    }

    .article-card {
        border-radius: 5px;
    }

    /* VPS卡片移动端样式 */
    .vps-card .card-header {
        padding: 10px 12px 8px;
    }

    .vps-card .card-content {
        padding: 12px;
    }

    .vps-card .card-meta {
        gap: 6px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .vps-card .card-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .vps-card .card-description {
        font-size: 13px;
        line-height: 1.4;
        /* 移动端显示2行 */
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .vps-card .features {
        gap: 6px;
        margin-bottom: 12px;
    }

    .vps-card .feature-tag {
        padding: 3px 6px;
        font-size: 10px;
    }

    .vps-card .table-wrapper {
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .vps-card .pricing-table {
        font-size: 11px;
        min-width: 280px;
    }

    .vps-card .pricing-table th {
        padding: 6px 8px;
        font-size: 11px;
    }

    .vps-card .pricing-table td {
        padding: 4px 6px;
        font-size: 10px;
    }

    .vps-card .pricing-table .price {
        font-size: 11px;
    }

    /* 推荐套餐移动端样式 */
    .vps-card .single-plan-card {
        padding: 12px;
        border-radius: 4px;
    }

    .vps-card .plan-compact-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .vps-card .plan-name {
        font-size: 14px;
    }

    .vps-card .plan-badge {
        padding: 1px 4px;
        font-size: 8px;
        border-radius: 3px;
    }

    .vps-card .plan-price {
        font-size: 16px;
    }

    .vps-card .plan-price-unit {
        font-size: 9px;
    }

    .vps-card .plan-original-price {
        font-size: 9px;
    }

    .vps-card .plan-compact-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vps-card .plan-specs-compact {
        gap: 8px;
    }

    .vps-card .spec-compact {
        font-size: 11px;
    }

    .vps-card .plan-features-compact {
        gap: 6px;
        margin-top: 6px;
    }

    .vps-card .feature-item {
        font-size: 10px;
        padding: 1px 4px;
    }

    .vps-card .plan-actions-compact {
        gap: 4px;
        min-width: auto;
    }

    .vps-card .plan-buy-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 3px;
    }

    /* 常规文章卡片移动端样式 */
    .regular-card {
        padding: 12px;
    }

    .regular-card .card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .regular-card .card-description {
        font-size: 13px;
        margin-bottom: 10px;
        /* 移动端显示2行 */
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .regular-card .card-tags {
        gap: 6px;
        min-height: 20px; /* 移动端减小最小高度 */
    }

    .regular-card .card-tags .more-tags {
        font-size: 9px;
        padding: 2px 4px;
    }

    /* 热门VPS移动端样式 */
    .hot-vps-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .hot-vps-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .hot-vps-card {
        padding: 12px;
        min-width: 140px;
    }

    /* 推荐卡片移动端样式 */
    .recommendation-card {
        padding: 16px;
        margin-bottom: 20px;
    }

    .recommendation-content {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .recommendation-text {
        text-align: center;
    }

    /* 通用组件移动端样式 */
    .card-header {
        padding: 10px 12px 8px;
    }

    .card-meta {
        gap: 6px;
        font-size: 12px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .card-footer {
        padding: 8px 10px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: clamp(40px, 10vw, 60px) clamp(12px, 3vw, 16px) clamp(32px, 8vw, 48px);
    }

    .hero-container {
        padding: 0 12px;
    }

    .search-box {
        padding: 8px;
    }

    .search-box input {
        padding: 8px;
        font-size: 14px;
    }

    .search-btn {
        padding: 8px;
        font-size: 14px;
    }

    .hero-tags {
        gap: 6px;
    }

    .tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    .category-header {
        padding: 20px 0;
        margin-top: 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-description {
        font-size: 13px;
    }

    /* 搜索结果页面超小屏幕优化 */
    .no-search-results {
        padding: 32px 12px;
    }

    .no-search-results h3 {
        font-size: 18px;
    }

    .search-suggestions,
    .popular-searches,
    .new-search {
        padding: 16px 12px;
        margin-bottom: 20px;
    }

    .search-suggestions h4,
    .popular-searches h4,
    .new-search h4 {
        font-size: 15px;
    }

    .search-tag {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* 标签页面超小屏幕优化 */
    .tag-header-info {
        gap: 12px;
    }

    .tag-icon {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }

    .tag-icon svg {
        width: 24px;
        height: 24px;
    }

    .tag-meta {
        gap: 8px;
    }

    .tag-count-info {
        font-size: 13px;
    }

    .related-tags-label {
        font-size: 13px;
    }

    .related-tag-item {
        font-size: 10px;
        padding: 2px 5px;
    }

    /* 统一页面信息超小屏幕优化 */
    .page-info {
        gap: 12px;
    }

    .page-icon {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }

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

    .page-meta {
        gap: 10px;
    }

    .page-stat {
        font-size: 12px;
    }



    .main-content {
        padding: 12px;
    }

    .vps-card .pricing-table {
        min-width: 260px;
        font-size: 10px;
    }

    .vps-card .pricing-table th,
    .vps-card .pricing-table td {
        padding: 3px 4px;
        font-size: 9px;
    }

    .vps-card .plan-compact-content {
        gap: 8px;
    }

    .regular-card {
        padding: 10px;
    }

    .regular-card .card-description {
        /* 超小屏幕显示2行 */
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .vps-card .card-description {
        /* 超小屏幕显示1行 */
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .hot-vps-grid {
        gap: 8px;
    }

    .hot-vps-card {
        min-width: 120px;
        padding: 10px;
    }

    .vps-provider {
        font-size: 12px;
    }

    .vps-plan-name {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .vps-specs {
        gap: 2px;
        margin-bottom: 6px;
    }

    .vps-spec {
        font-size: 8px;
        padding: 1px 3px;
    }

    .vps-bandwidth {
        font-size: 8px;
        margin-bottom: 8px;
    }

    .vps-price {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .vps-btn {
        font-size: 9px;
        padding: 4px 6px;
    }

    .recommendation-card {
        padding: 12px;
    }
}
