/* SSL 配置页面共享样式 */

body { background: #f8fafc !important; }

.page-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 110px auto 64px;
    padding: 0 2rem;
    gap: 2rem;
    align-items: flex-start;
}

/* 左侧目录导航 */
.sidebar-nav {
    position: sticky;
    top: 120px;
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::before {
    content: "📑";
    font-size: 1.2rem;
}

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

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

.sidebar-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.sidebar-list a:hover {
    background: #f1f5f9;
    color: #3b82f6;
    padding-left: 1.25rem;
}

.sidebar-list a.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.sidebar-list a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #3b82f6;
    border-radius: 0 2px 2px 0;
}

/* 右侧内容区域 */
.content-wrapper {
    flex: 1;
    min-width: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: "🔒";
    font-size: 1.5rem;
}

.version-comparison {
    margin-bottom: 2rem;
}

.version-card {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.version-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
}

.version-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.version-badge.legacy {
    background: #ef4444;
}

.version-badge.current {
    background: #10b981;
}

.version-badge.recommended {
    background: #3b82f6;
}

.version-badge.future {
    background: #8b5cf6;
}

.version-desc {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.config-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
    position: relative;
}

.config-code::before {
    content: attr(data-title);
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-code code {
    color: #e2e8f0;
    white-space: pre;
}

.highlight {
    background: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    color: #92400e;
    font-weight: 600;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.warning-box strong {
    color: #92400e;
}

.info-box {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.info-box strong {
    color: #1e40af;
}

.deprecated {
    text-decoration: line-through;
    color: #ef4444;
    opacity: 0.7;
}

.new-feature {
    background: #d1fae5;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    color: #065f46;
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e3a8a;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.step-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

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

.step-box {
    background: #f8fafc;
    border-left: 4px solid #10b981;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.step-box h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.other-servers {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.other-servers-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.other-servers-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.other-servers-list a:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.other-servers-list a::before {
    content: "🔗";
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
        padding: 0 1rem;
    }

    .sidebar-nav {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        margin: 100px auto 50px;
    }
    .page-title {
        font-size: 2rem;
    }
    .config-code {
        font-size: 0.8rem;
        padding: 1rem;
    }
    .comparison-table {
        font-size: 0.875rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}
