/* ========================================
   SSL数字证书页面 (ssl-certificate)
   前缀: .ssl-
   ======================================== */

/* ===== 通用工具类 (.xw- 前缀) ===== */
.xw-section-mt { margin-top: 40px; }

/* 骨架屏 */
.xw-skeleton-line {
    height: 16px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}
.xw-skeleton-block {
    height: 30px;
    background: #e2e8f0;
    border-radius: 20px;
    width: 60px;
    animation: pulse 1.5s infinite;
}

/* 错误状态 */
.xw-error-state {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}
.xw-error-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.xw-retry-btn {
    margin-top: 10px;
    padding: 6px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

/* 空状态 */
.xw-empty-state {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

/* 删除线价格 */
.xw-price-strike {
    text-decoration: line-through;
    margin-left: 6px;
}

/* 各色图标背景 */
.xw-icon-blue   { background: #eff6ff; color: #2563eb; }
.xw-icon-green  { background: #ecfdf5; color: #059669; }
.xw-icon-amber  { background: #fef3c7; color: #d97706; }
.xw-icon-red    { background: #fef2f2; color: #dc2626; }
.xw-icon-purple { background: #f5f3ff; color: #7c3aed; }
.xw-icon-orange { background: #fff7ed; color: #ea580c; }

/* ===== 页面专用样式 ===== */
.ssl-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
}

.ssl-banner {
    background: linear-gradient(135deg, #e8f4ff 0%, #d4e9ff 100%);
    border-radius: 0 0 30px 30px;
    padding: 110px 20px 60px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.ssl-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
}

.ssl-banner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.04) 0%, transparent 60%);
}

.ssl-banner>.ssl-container {
    position: relative;
    z-index: 1;
}

.ssl-banner h1 {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(120deg, #0b2b5c, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.ssl-banner p {
    font-size: 1.2rem;
    color: #1e466e;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

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

/* Section Title */
.ssl-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.ssl-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2b4e;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.ssl-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #0066ff;
    border-radius: 3px;
}

.ssl-section-title p {
    color: #4a627a;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Desc */
.ssl-desc {
    text-align: center;
    font-size: 1.05rem;
    color: #2c4b74;
    margin: 0 auto 40px;
    background: #f8fafc;
    padding: 14px 24px;
    border-radius: 60px;
    max-width: 900px;
}

.ssl-desc i {
    margin-right: 8px;
    color: #0066ff;
}

/* Feature Cards - 图标+标题同行 */
.ssl-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ssl-features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ssl-feature-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.ssl-feature-card:hover {
    box-shadow: 0 12px 28px -8px rgba(0, 102, 255, 0.15);
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.15);
}

.ssl-feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ssl-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ssl-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0a2b4e;
    margin: 0;
}

.ssl-feature-card p {
    color: #5a6e8a;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Steps */
.ssl-steps-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0 30px;
    background: #f9fbfd;
    border-radius: 48px;
    padding: 30px 20px;
}

.ssl-step-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.ssl-step-item:hover {
    transform: scale(1.1);
}

.ssl-step-number {
    width: 52px;
    height: 52px;
    background: #0066ff;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 14px rgba(0, 102, 255, 0.2);
}

.ssl-step-item h4 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1f3a5f;
}

.ssl-step-item p {
    font-size: 0.85rem;
    color: #6c7e9e;
}

/* CTA */
.ssl-cta-card {
    background: linear-gradient(115deg, #f0f7ff 0%, #e9f2fa 100%);
    border-radius: 32px;
    padding: 42px 35px;
    text-align: center;
    margin: 40px 0 20px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.ssl-cta-card h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0a2b4e;
    margin-bottom: 16px;
}

.ssl-cta-card p {
    font-size: 1.05rem;
    color: #2c4b74;
    max-width: 650px;
    margin: 0 auto 24px;
}

.ssl-btn-primary {
    display: inline-block;
    background: #0066ff;
    color: white;
    font-weight: 600;
    padding: 14px 38px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 12px rgba(0, 102, 255, 0.3);
}

.ssl-btn-primary:hover {
    background: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -8px rgba(0, 102, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

/* Product Table */
.ssl-products-wrapper {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
    margin-bottom: 40px;
}

.ssl-products-table {
    width: 100%;
    border-collapse: collapse;
}

.ssl-products-table thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.ssl-products-table th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.ssl-products-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #4b5563;
}

.ssl-products-table tbody tr {
    transition: background-color 0.2s ease;
}

.ssl-products-table tbody tr:hover {
    background-color: #eff6ff;
}

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

/* 骨架屏表格列宽度 */
.ssl-products-table .xw-skeleton-body td:nth-child(1) .xw-skeleton-line { width: 70%; }
.ssl-products-table .xw-skeleton-body td:nth-child(2) .xw-skeleton-line { width: 50%; }
.ssl-products-table .xw-skeleton-body td:nth-child(3) .xw-skeleton-line { width: 60%; }

.ssl-product-price {
    font-weight: 700;
    color: #0066ff;
    font-size: 1.05rem;
}

.ssl-product-note {
    font-size: 0.85rem;
    color: #9ca3af;
}

.ssl-buy-btn {
    display: inline-block;
    background: #0066ff;
    color: #fff;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.ssl-buy-btn:hover {
    background: #0052cc;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

@media (max-width: 1100px) {
    .ssl-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ssl-banner {
        padding: 90px 15px 45px;
    }

    .ssl-banner h1 {
        font-size: 1.8rem;
    }

    .ssl-features-grid,
    .ssl-features-grid-3 {
        grid-template-columns: 1fr;
    }

    .ssl-steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ssl-step-item {
        width: 80%;
    }
}
