/* common.css - 云服务器网站通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(94, 234, 212, 0.2);
}

header h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(to right, #5eead4, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    text-align: center;
    font-size: 1.2em;
    opacity: 0.9;
    color: #cbd5e1;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9);
    transition: width 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* 销售页面 - Banner 样式 */
.banner-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.banner {
    flex: 1;
    min-width: 300px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(94, 234, 212, 0.1);
}

.banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.3);
    border-color: rgba(94, 234, 212, 0.3);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #5eead4);
}

.banner h2 {
    color: #f1f5f9;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.banner p {
    color: #cbd5e1;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
}

.banner .price {
    font-size: 2.5em;
    color: #38bdf8;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* 销售页面 - 栏目更新区域 */
.sections-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-card {
    flex: 1;
    min-width: 350px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(94, 234, 212, 0.1);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.3);
    border-color: rgba(94, 234, 212, 0.3);
}

.section-card h3 {
    color: #f1f5f9;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0ea5e9;
    display: inline-block;
}

.section-card ul {
    list-style: none;
    padding: 0;
}

.section-card li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #e2e8f0;
}

.section-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-size: 1.2em;
}

.section-card a {
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 2px 0;
}

.section-card a:hover {
    color: #5eead4;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.5);
}

.update-time {
    font-size: 0.9em;
    color: #94a3b8;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-style: italic;
}

/* 销售页面 - 特性展示 */
.features {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
    border-radius: 16px;
    border: 1px solid rgba(94, 234, 212, 0.1);
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.3);
}

.features h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #f1f5f9;
    position: relative;
}

.features h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #5eead4);
    margin: 10px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    flex: 0 0 200px;
    padding: 30px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(94, 234, 212, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
    border-color: rgba(94, 234, 212, 0.3);
}

.feature-item i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.feature-item h4 {
    color: #f1f5f9;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-item p {
    color: #cbd5e1;
    font-size: 0.95em;
}

/* 文章页面 - 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    font-size: 0.95em;
    color: #94a3b8;
}

.breadcrumb a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5eead4;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.5);
}

.breadcrumb span {
    margin: 0 8px;
    color: #64748b;
}

/* 文章页面 - 广告Banner */
.ad-banners {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ad-banner {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(2, 8, 20, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.ad-banner h3 {
    color: #f1f5f9;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.ad-banner p {
    color: #cbd5e1;
    font-size: 1em;
    margin-bottom: 15px;
}

/* 文章页面 - 主体容器 */
.article-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* 文章页面 - 内容区域 */
.article-content {
    flex: 1;
    min-width: 700px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    border: 1px solid rgba(94, 234, 212, 0.1);
    color: #e2e8f0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* 文章页面 - 标题区域 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(94, 234, 212, 0.1);
}

.article-title {
    font-size: 2.2em;
    color: #f1f5f9;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95em;
    color: #94a3b8;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    color: #38bdf8;
}

/* 文章页面 - 正文样式 */
.article-body {
    font-size: 1.05em;
    color: #e2e8f0;
}

.article-body h2 {
    color: #f1f5f9;
    font-size: 1.8em;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0ea5e9;
    display: inline-block;
}

.article-body h3 {
    color: #f1f5f9;
    font-size: 1.4em;
    margin: 25px 0 12px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(2, 8, 20, 0.3);
}

.article-body ul, 
.article-body ol {
    margin: 15px 0 25px 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 1px dashed #38bdf8;
}

.article-body a:hover {
    color: #5eead4;
    border-bottom-color: #5eead4;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.5);
}

.article-body blockquote {
    border-left: 4px solid #0ea5e9;
    padding: 15px 20px;
    background: rgba(14, 165, 233, 0.1);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #cbd5e1;
}

/* 文章页面 - 标签 */
.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(94, 234, 212, 0.1);
}

.tags-title {
    font-size: 1.1em;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 6px 15px;
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-item:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

/* 文章页面 - 侧边栏 */
.sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章页面 - 侧边栏卡片通用样式 */
.sidebar-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    border: 1px solid rgba(94, 234, 212, 0.1);
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.sidebar-card h3 {
    color: #f1f5f9;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0ea5e9;
    display: inline-block;
}

/* 文章页面 - 相关文章 */
.related-articles {
    list-style: none;
}

.related-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-link:hover {
    color: #38bdf8;
}

/* 文章页面 - 热门推荐 */
.hot-articles {
    list-style: none;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item:hover {
    transform: translateX(5px);
}

.hot-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.hot-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.hot-link:hover {
    color: #38bdf8;
}

/* 底部版权样式 */
footer {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid rgba(94, 234, 212, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 20px;
    font-size: 0.95em;
    color: #94a3b8;
}

.copyright p {
    margin-bottom: 8px;
}

.copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #5eead4;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.5);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .article-container {
        flex-direction: column;
    }
    
    .article-content {
        min-width: 100%;
    }
    
    .sidebar {
        flex: 1;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .banner-section,
    .sections-container,
    .features-grid,
    .ad-banners {
        flex-direction: column;
    }
    
    .banner h2 {
        font-size: 1.5em;
    }
    
    .banner .price {
        font-size: 2em;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.8em;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    footer {
        padding: 30px 0 15px;
    }

    .copyright {
        font-size: 0.85em;
    }
}
/* 列表页 - 筛选栏 */
.filter-bar {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(2, 8, 20, 0.2);
    border: 1px solid rgba(94, 234, 212, 0.1);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-label {
    color: #f1f5f9;
    font-size: 1em;
    font-weight: 500;
}

.filter-select {
    padding: 8px 15px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 15px 8px 40px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* 列表页 - 文章列表 */
.articles-list {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    border: 1px solid rgba(94, 234, 212, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out forwards;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.3);
    border-color: rgba(94, 234, 212, 0.3);
}

.article-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(94, 234, 212, 0.1);
}

.article-card-content {
    padding: 25px;
}

.article-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 1.4em;
    color: #f1f5f9;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #38bdf8;
}

.article-card-desc {
    color: #94a3b8;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #94a3b8;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.meta-date, .meta-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 列表页 - 分页 */
.pagination {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 15px;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(94, 234, 212, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 水平居中 */
    min-height: 40px; /* 统一最小高度 */
    text-align: center; /* 文本居中 */
}

/* 分页按钮内的链接样式 */
.page-btn a {
    color: inherit;
    text-decoration: none;
    display: flex; /* 使用flex确保链接内容居中 */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.page-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.page-btn.active {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    color: white;
    border-color: transparent;
}

/* 激活状态下的链接样式 */
.page-btn.active a {
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: rgba(30, 41, 59, 0.3);
}

/* 禁用状态下的链接样式 */
.page-btn:disabled a {
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

/* 页码按钮宽度统一 */
.page-btn:not(.page-prev):not(.page-next) {
    width: 40px;   /* 固定宽度 */
    height: 40px;  /* 固定高度 */
    padding: 0;    /* 移除内边距，避免影响居中 */
}

/* 上一页/下一页按钮样式优化 */
.page-prev, .page-next {
    min-width: 100px; /* 给上下页按钮设置最小宽度 */
    padding: 8px 20px;
}