* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

        /* 为锚点添加偏移量，避免被固定导航栏遮挡 */
section[id] {
    scroll-margin-top: 100px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4f46e5;
    text-decoration: none;
}

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

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

.nav-links a:hover {
    color: #4f46e5;
}

.login-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
    padding: 4rem 0;
}

.hero {
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* 产品展示 */
.product-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-nav-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.product-nav-btn:hover,
.product-nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

/* SSL证书专用布局 - 响应式显示 */
.product-region.ssl-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card .price {
    color: #4f46e5;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.product-card li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.buy-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
}

/* 售罄产品样式 */
.product-card.sold-out {
    opacity: 0.7;
    position: relative;
}

.product-card.sold-out::before {
    content: "售罄";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.product-card.sold-out .buy-btn {
    background: #9ca3af;
    cursor: not-allowed;
}

.product-card.sold-out .buy-btn:hover {
    transform: none;
}

/* CN2高亮样式 */
.highlight {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0.1rem;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* 备案警告样式 */
.warning-notice {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #374151;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

/* SSL证书专用样式 */
.ssl-cert-card {
    position: relative;
}

.ssl-cert-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ssl-cert-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.ssl-cert-info h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.ssl-cert-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.ssl-cert-card .price {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* 云服务器信息页面样式 */
.cloud-info-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.cloud-hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cloud-icon {
    margin-bottom: 2rem;
}

.cloud-hero-card h2 {
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloud-subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.cloud-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cloud-feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.cloud-feature-item:hover {
    transform: translateY(-5px);
}

.cloud-feature-icon {
    font-size: 2.2rem;
    margin-right: 1rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-text p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.cloud-specs {
    margin-bottom: 3rem;
}

.cloud-specs h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: rgba(248, 250, 252, 0.8);
    padding: 1rem;
    border-radius: 10px;
    color: #374151;
    text-align: left;
}

.spec-item strong {
    color: #4f46e5;
}

.cloud-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.console-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    min-width: 180px;
}

.console-btn.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.console-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.console-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cloud-hero-card {
        padding: 2rem 1rem;
    }

    .cloud-hero-card h2 {
        font-size: 2rem;
    }

    .cloud-features {
        grid-template-columns: 1fr;
    }

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

    .cloud-actions {
        flex-direction: column;
    }

    .console-btn {
        width: 100%;
    }
}

/* 特性介绍 */
.features {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

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

.feature-item {
    text-align: center;
    color: white;
}

.feature-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* 特定图标样式 */
.icon-crypto::before {
    content: "💰";
}

.icon-freedom::before {
    content: "🌐";
}

.icon-performance::before {
    content: "🚀";
}

.icon-security::before {
    content: "🛡️";
}

.icon-deploy::before {
    content: "⚡";
}

.icon-datacenter::before {
    content: "🏢";
}

/* 底部footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}		.footer-section h3 {
    margin-bottom: 1rem;
    color: #4f46e5;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

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

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

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

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

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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


/* 大屏幕显示4列 */
@media (min-width: 1200px) {
    .product-region.ssl-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    .ssl-cert-info h3{
        color: #5680bb;
        font-size: 0.98rem;
    }
}

/* ================================
   文档页面样式
   ================================ */

/* 文档布局 */
.docs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 6rem;
    min-height: calc(100vh - 200px);
}

/* 左侧边栏 */
.docs-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 120px;
}

/* 自定义滚动条 */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    margin: 0;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-title::after {
    content: '▼';
    font-size: 0.8rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.sidebar-title:hover {
    color: #4f46e5;
}

.sidebar-title:hover::after {
    color: #4f46e5;
}

.sidebar-title.active {
    color: #4f46e5;
    font-weight: 700;
}

.sidebar-title.active::after {
    color: #4f46e5;
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0.8rem;
}

.sidebar-submenu.active {
    max-height: 2000px;
}

.submenu-group {
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 1.5rem;
    border: none;
}

.submenu-title {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.8rem 0;
    text-transform: none;
    letter-spacing: 0.2px;
    padding: 0.6rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid #f3f4f6;
}

.submenu-title:hover {
    color: #4f46e5;
}

.submenu-title.active {
    color: #1f2937;
    font-weight: 600;
}

.collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.submenu-title:not(.active) .collapse-icon {
    transform: rotate(180deg);
}

.submenu-title.active .collapse-icon {
    transform: rotate(0deg);
    color: #1f2937;
    opacity: 1;
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 1000px;
    overflow: visible;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.submenu-list.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.submenu-list li {
    margin-bottom: 0.5rem;
}

.submenu-link {
    display: block;
    color: #6b7280;
    text-decoration: none;
    padding: 0.6rem 0;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    margin-bottom: 0.2rem;
}

.submenu-link:hover {
    color: #4f46e5;
}

.submenu-link.active {
    color: #4f46e5;
    font-weight: 600;
}

/* 右侧内容区域 */
.docs-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.doc-article {
    display: none;
}

.doc-article.active {
    display: block;
}

.doc-article h1 {
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.doc-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.doc-category {
    background: #4f46e5;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.doc-content-body h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.doc-content-body h3 {
    color: #374151;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
}

.doc-content-body p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.doc-content-body ul {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.doc-content-body a {
    color: #4f46e5;
    text-decoration: none;
}

.doc-content-body a:hover {
    text-decoration: underline;
}

.doc-content-body code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e11d48;
}

/* 步骤容器 */
.step-container {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background: #4f46e5;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-content p {
    margin: 0;
    color: #4b5563;
}

/* 警告框 */
.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box h3 {
    color: #92400e;
    margin: 0 0 1rem 0;
}

.warning-box ul {
    color: #92400e;
    margin: 0;
}

/* 信息框 */
.info-box {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box h3 {
    color: #1e40af;
    margin: 0 0 1rem 0;
}

.info-box p {
    color: #1e40af;
    margin: 0;
}

/* 表格样式 */
.info-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-table th {
    background: #f8fafc;
    color: #374151;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.info-table tbody tr:hover {
    background: #f9fafb;
}

/* 支付网格 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.payment-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.payment-item h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.payment-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-item li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 4rem;
    }

    .docs-sidebar {
        position: static;
        order: 2;
    }

    .docs-content {
        padding: 2rem;
        order: 1;
    }

    .doc-article h1 {
        font-size: 2rem;
    }

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

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 0 1rem 0;
    }
}
