/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;


    border: 0;
    text-decoration: none;
    font-size: 1rem;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    font-weight: normal;

    list-style: none;
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #e5e5e7;
}

.btn-primary:hover {
    background: #e8e8ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #f5f5f7;
    border-color: #a1a1a6;
    transform: translateY(-1px);
}

/* 主横幅区域的次要按钮特殊样式 */
.hero .btn-secondary {
    color: white;
    border-color: white;
}

.hero .btn-secondary:hover {
    background: white;
    color: #1d1d1f;
    border-color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-illustration {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.server-icon {
    font-size: 4rem;
}

/* 功能特色样式 */
.features {
    padding: 100px 0;
    background: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* 价格套餐样式 */
.pricing {
    padding: 100px 0;
    background: white;
}

/* 服务器类型切换标签 */
.server-type-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e5e7;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #86868b;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 价格表格样式 */
.pricing-table {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
    border: 1px solid #e5e5e7;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.price-table th {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 18px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid #e5e5e7;
}

.price-table th:first-child {
    border-top-left-radius: 12px;
    text-align: left;
    padding-left: 24px;
}

.price-table th:last-child {
    border-top-right-radius: 12px;
}

.price-table td {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.price-table td:first-child {
    text-align: left;
    padding-left: 24px;
    font-weight: 500;
}

.price-table tbody tr:hover {
    background: #f5f5f7;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.price-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* 特色行样式 */
.featured-row {
    background: #f5f5f7;
    position: relative;
}




/* 价格单元格样式 */
.price-cell {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 1.1rem;
}

/* 热门标签 */
.popular-badge {
    background: #ff0000;
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

/* 按钮样式 */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* 价格说明 */
.pricing-notes {
    margin-top: 4rem;
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 5px;
    border-left: 4px solid #374151;
}

.pricing-notes h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.pricing-notes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.pricing-notes li {
    color: #4b5563;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.pricing-notes li:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* IP说明样式 */
.ip-explanation {
    padding: 100px 0;
    background: #fafafa;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.explanation-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.explanation-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.explanation-card p {
    color: #4b5563;
    line-height: 1.7;
}

/* 新闻资讯样式 */
.news {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e7;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-date {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    background: #e5e7eb;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600 ;
}

.news-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #374151;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #1f2937;
}

/* 新闻分页样式 */
.news-pagination {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border: 1px solid #e5e5e7;
    background: #f5f5f7;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #e8e8ed;
    border-color: #d2d2d7;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.pagination-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
}

.pagination-dots {
    color: #86868b;
    font-weight: 500;
    padding: 0 0.5rem;
    user-select: none;
}

.pagination-arrow {
    font-size: 1.2rem;
    font-weight: 600;
}

.prev-btn,
.next-btn {
    padding: 8px 16px;
    font-weight: 500;
}

.pagination-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



/* 页脚样式 */
.footer {
    background: #1d1d1f;
    color: #a1a1a6;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* 左侧Logo和简介 */
.footer-brand {
    max-width: 400px;
}

.footer-logo h3 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: #86868b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 右侧四大区域 */
.footer-regions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #424245;
    padding-top: 2rem;
    text-align: center;
    color: #86868b;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .explanation-grid {
        grid-template-columns: 1fr;
    }

    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-regions {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* 功能特色在平板上显示为2列 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* 新闻列表响应式 */
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    /* 新闻分页响应式 */
    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .prev-btn span:last-child,
    .next-btn span:first-child {
        display: none;
    }

    /* 表格移动端适配 */
    .server-type-tabs {
        max-width: 100%;
        margin: 0 0 2rem 0;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .price-table {
        font-size: 0.85rem;
    }

    .price-table th,
    .price-table td {
        padding: 12px 8px;
    }

    .price-table th:first-child,
    .price-table td:first-child {
        padding-left: 12px;
    }

    .pricing-notes {
        padding: 1.5rem;
    }

    .pricing-notes ul {
        grid-template-columns: 1fr;
    }

    /* 在线客服移动端样式 */
    .online-service {
        right: 15px;
        bottom: 15px;
    }

    .telegram-btn {
        min-width: 160px;
        padding: 10px 12px;
    }

    .telegram-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .telegram-title {
        font-size: 13px;
        color: white;
    }

    .telegram-desc {
        font-size: 11px;
        color: white;
    }
}

/* 文章页侧栏 - 热门服务器报价卡片 */
.server-offer-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.server-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.server-offer-card .offer-header {
    background: transparent;
    color: #1f2937;
    padding: 20px 16px 14px 16px;
    text-align: center;
}

.server-offer-card .offer-title {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.server-offer-card .offer-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 20px 0 12px 0;
    color: #1f2937;

}

.server-offer-card .offer-price .currency {
    color: #2563eb;
    font-weight: 700;
}

.server-offer-card .offer-price .amount {
    font-size: 32px;
    font-weight: 800;
    color: #2563eb;
}

.server-offer-card .offer-price .per {
    color: #6b7280;
    font-size: 14px;
}

.server-offer-card .offer-specs {
    padding: 16px 20px 8px 20px;
}

.server-offer-card .spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.server-offer-card .spec-row:last-child {
    border-bottom: none;
}

.server-offer-card .spec-label {
    color: #6b7280;
    font-size: 14px;
}

.server-offer-card .spec-value {
    color: #111827;
    font-weight: 600;
}

.server-offer-card .spec-select {
    width: 170px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    outline: none;
}

.server-offer-card .spec-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.server-offer-card .offer-actions {
    display: block;
    padding: 20px 20px 24px 20px;
}

.btn.btn-block {
    width: 80%;
    text-align: center;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin: 0 auto;
    display: block;
}

/* 移动端显示控制 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 移动端产品卡片样式 */
.mobile-product-cards {
    margin-top: 2rem;
}

.mobile-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #e5e5e7;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.product-card.featured:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
}

.card-header {
    padding: 20px 20px 16px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    color: #2563eb;
    font-size: 2rem;
    font-weight: 700;
}

.price-tag span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.card-specs {
    padding: 20px 20px 16px 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.spec-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.spec-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
}

.card-action {
    padding: 16px 20px 20px 20px;
}

.mobile-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.popular-badge-mobile {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-cards-container {
        gap: 1.2rem;
    }
    
    .product-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .price-tag {
        font-size: 1.8rem;
    }
    
    .spec-item {
        padding: 10px 0;
    }
    
    .spec-label,
    .spec-value {
        font-size: 0.85rem;
    }
    
    .mobile-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

.server-offer-card .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    transition: all 0.3s ease;
}

.server-offer-card .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.server-offer-card .btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.server-offer-card .btn-secondary:hover {
    background: #e5e7eb;
}

/* 文章详情页样式（news.php） */
.article-breadcrumb {
    margin: 90px 0 20px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.article-breadcrumb span {
    color: #9ca3af;
}

.article-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #111827;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.sidebar-list li a {
    text-decoration: none;
    color: #374151;
}

.sidebar-list li a:hover {
    color: #2563eb;
}

.sidebar-list .empty {
    color: #6b7280;
}

.sidebar-actions {
    margin-top: 12px;
}

.article-main {
    flex: 1 1 auto;
    min-width: 0;
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    margin-bottom: 10px;
}

.article-summary {
    color: #4b5563;
    /* 更灰一些 */
    line-height: 1.8;
    font-size: 0.95rem;
    /* 略小 */
}

.article-content {
    background: #ffffff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 12px;
    padding: 24px;
    line-height: 2rem;
    color: #374151;
    /* 正文颜色稍灰 */
    font-size: 0.98rem;
    /* 正文字号稍小 */
}

/* 关键词自动链接样式 */
.kw-link {
    color: #2563eb;
    text-decoration: underline;
}

.kw-link:hover {
    color: #1d4ed8;
}

/* 上一页 / 下一页 */
.article-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 1rem;
}

.pager-btn {
    color: #2563eb;
    text-decoration: none;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 8px;
    display: inline-block;
    transition: all .2s ease;
}

.pager-btn:hover {
    background: #e5e7eb;
}

.pager-btn.disabled {
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        max-width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .explanation-card {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* 手机上功能特色显示为单列 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* 页脚手机端优化 */
    .footer-regions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* 新闻列表小屏幕优化 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card {
        padding: 1.5rem;
    }

    /* 分页小屏幕优化 */
    .news-pagination {
        margin-top: 3rem;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: -1;
    }

    .prev-btn,
    .next-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    /* 小屏幕表格优化 */
    .table-responsive {
        border-radius: 8px;
    }

    .price-table {
        font-size: 0.8rem;
    }

    .price-table th,
    .price-table td {
        padding: 10px 6px;
    }

    .price-table th:first-child,
    .price-table td:first-child {
        padding-left: 8px;
        min-width: 80px;
    }

    .price-cell {
        font-size: 1rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .server-type-tabs {
        padding: 6px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .popular-badge {
        display: block;
        margin: 4px 0 0 0;
        font-size: 0.7rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-description {
    animation-delay: 0.6s;
}

.hero-buttons {
    animation-delay: 0.8s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画与分页UI（从index.php移入） */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.news-grid {
    transition: opacity 0.3s ease;
}

.pagination-btn[data-page] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn[data-page]:hover {
    background-color: #2563eb;
    color: white;
}

/* 在线客服样式 */
.online-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telegram-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.telegram-btn-1 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.telegram-btn-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-btn-2 {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.telegram-btn-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.telegram-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

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

.telegram-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.telegram-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
    color: white;
}

/* 响应式客服按钮样式 */
/* 电脑端显示完整版，隐藏手机版 */
@media (min-width: 769px) {
    .desktop-version {
        display: flex !important;
    }
    .telegram-btn-mobile {
        display: none !important;
    }
}

/* 手机端隐藏完整版，显示简化版 */
@media (max-width: 768px) {
    .desktop-version {
        display: none !important;
    }
    .telegram-btn-mobile {
        display: flex !important;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #0088cc, #229ED9);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
        transition: all 0.3s ease;
        text-decoration: none;
    }
    .telegram-btn-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
    }
    .telegram-btn-mobile .telegram-icon {
        color: white;
        background: transparent;
        width: auto;
        height: auto;
    }
    .telegram-btn-mobile .telegram-icon svg {
        width: 24px;
        height: 24px;
        color: white;
    }
    .telegram-btn-mobile-2 {
        background: linear-gradient(135deg, #10b981, #059669) !important;
    }
}



/* ===== 新闻详情页面样式 ===== */
/* 主题变量 */
:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #2d2d2d;
    --muted: #6b7280;
    --border: #e5e7eb;
    --link: #4b5563;
    --link-hover: #111827;
}

/* 主题样式 */
.theme-minimal {
    background: var(--bg);
    color: var(--text);
}

.theme-minimal a {
    color: var(--link);
    text-decoration: none;
}

.theme-minimal a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.theme-minimal .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 面包屑导航 */
.theme-minimal .article-breadcrumb {
    color: var(--muted);
}

.theme-minimal .article-breadcrumb a {
    color: var(--muted);
}

/* 文章布局 */
.theme-minimal .article-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 960px) {
    .theme-minimal .article-layout {
        grid-template-columns: 1fr;
    }
}

/* 卡片样式 */
.theme-minimal .sidebar-card,
.theme-minimal .article-main,
.theme-minimal .server-offer-card {
    background: var(--surface);
    /* border: 1px solid var(--border); */
    border-radius: 8px;
    box-shadow: none;
}

/* 侧边栏样式 */
.theme-minimal .sidebar-card {
    padding: 16px;
}

.theme-minimal .sidebar-title {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--text);
}

.theme-minimal .sidebar-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

.theme-minimal .sidebar-list li:last-child {
    border-bottom: 0;
}

/* 文章头部 */
.theme-minimal .article-header {
    padding: 20px 24px 0;
    /* border-bottom: 1px solid var(--border); */
}

.theme-minimal .article-title {
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--text);
    font-weight: 600;
}

.theme-minimal .article-summary {
    margin: 0;
    color: var(--muted);
}

/* 文章内容 */
.theme-minimal .article-content {
    padding: 0 24px 20px;
    line-height: 2.2;
}

.theme-minimal .article-content img {
    max-width: 100%;
    border-radius: 6px;
}

/* 表单和选择器 */
.theme-minimal .spec-select,
.theme-minimal select {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

/* 服务器产品卡片 */
.theme-minimal .offer-title {
    color: var(--text);
}

.theme-minimal .offer-price {
    color: var(--text);
}

.theme-minimal .server-offer-card .offer-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 16px;
    color: var(--text) !important;
    box-shadow: none !important;
}

.theme-minimal .offer-actions {
margin: 0 10%;
    width: 80%;
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* 按钮样式 */
.theme-minimal .btn {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: #f3f4f6;
    color: var(--text);
    border-radius: 6px;
    text-align: center;
}

.theme-minimal .btn:hover {
    background: #e5e7eb;
}

.theme-minimal .btn-primary,
.theme-minimal .btn-secondary {
    background: #f3f4f6 !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.theme-minimal .btn-primary:hover,
.theme-minimal .btn-secondary:hover {
    background: #e5e7eb !important;
}

.theme-minimal .btn-block {
    width: 100%;
}

/* 文章分页 */
.theme-minimal .article-pager {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.theme-minimal .pager-btn {
    color: var(--link);
}

.theme-minimal .pager-btn.disabled {
    color: var(--muted);
}

/* 焦点样式 */
.theme-minimal a:focus,
.theme-minimal button:focus,
.theme-minimal .btn:focus,
.theme-minimal select:focus {
    outline: 2px solid #d1d5db;
    outline-offset: 2px;
}

/* ===== 新闻详情页面样式结束 ===== */