/* 安装指南页样式 - 全新现代化设计 */

/* ==================== 页面头部 ==================== */
.install-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    margin-top: 80px;
    overflow: hidden;
}

.install-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.install-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.install-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.install-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.install-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.install-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.install-hero-shape {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-alt);
    transform: skewY(-2deg);
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .install-hero {
        padding: 6rem 0 4rem;
        margin-top: 70px;
    }
    
    .install-hero-title {
        font-size: 2.5rem;
    }
    
    .install-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .install-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==================== 内容区域 ==================== */
.install-content {
    padding: 4rem 0 6rem;
    background: var(--bg-alt);
    position: relative;
}

.install-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 引言卡片 ==================== */
.install-intro-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.install-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.intro-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.intro-highlight {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.intro-highlight i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.intro-highlight strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.intro-highlight p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.intro-highlight code {
    background: var(--gray-lighter);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--primary);
}

@media (max-width: 768px) {
    .install-intro-card {
        padding: 2rem;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
}

/* ==================== 章节样式 ==================== */
.install-section {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.install-section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-header-modern {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.section-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.section-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .install-section {
        padding: 2rem;
    }
    
    .section-header-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ==================== 系统要求网格 ==================== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.requirement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.requirement-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.requirement-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.requirement-description code {
    background: var(--gray-lighter);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--primary);
}

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

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 安装方式卡片 ==================== */
.install-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.install-method-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.install-method-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.method-title-wrapper {
    flex: 1;
}

.method-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.method-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.method-content {
    margin-top: 1rem;
}

.method-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .install-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 代码块样式 ==================== */
.code-block-modern {
    background: #1e1e1e;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.code-block-modern.code-block-small {
    margin: 0.5rem 0;
}

.code-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy-btn:hover {
    background: #3d3d3d;
    color: var(--white);
    border-color: var(--primary);
}

.code-copy-btn:active {
    transform: scale(0.95);
}

.code-content {
    margin: 0;
    padding: 1rem;
    background: #1e1e1e;
    overflow-x: auto;
}

.code-content code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-block-modern.code-block-small .code-content {
    padding: 0.75rem;
}

.code-block-modern.code-block-small .code-content code {
    font-size: 0.85rem;
}

/* ==================== 安装步骤时间线 ==================== */
.steps-timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.step-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number-circle {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.step-content {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.step-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.step-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .steps-timeline {
        padding-left: 2.5rem;
    }
    
    .step-number-circle {
        width: 2.5rem;
        height: 2.5rem;
        left: -2.5rem;
        font-size: 1rem;
    }
}

/* ==================== 平台卡片样式 ==================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.platform-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.platform-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.platform-card:nth-child(1) .platform-icon {
    color: #0078d4; /* Windows blue */
}

.platform-card:nth-child(2) .platform-icon {
    color: #a8a8a8; /* macOS gray */
}

.platform-card:nth-child(3) .platform-icon {
    color: #fcc624; /* Linux yellow */
}

.platform-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.platform-content {
    margin-top: 1rem;
}

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

.platform-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.platform-list-item:last-child {
    margin-bottom: 0;
}

.platform-list-item i {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.platform-list-item code {
    background: var(--gray-lighter);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--primary);
}

@media (max-width: 992px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 验证命令卡片样式 ==================== */
.verify-commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.verify-command-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.verify-command-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.command-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.command-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

@media (max-width: 768px) {
    .verify-commands-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 提示框样式 ==================== */
.alert-modern {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.25rem;
    margin-top: 2rem;
}

.alert-success-modern {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left: 4px solid #10b981;
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-success-modern .alert-icon {
    color: #10b981;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.alert-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== FAQ 样式 ==================== */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-lighter);
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.faq-arrow {
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ==================== 按钮样式 ==================== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    color: var(--white);
}

/* ==================== 下载区域样式 ==================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.download-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.download-card:nth-child(1) .download-icon {
    color: #0078d4; /* Windows blue */
}

.download-card:nth-child(2) .download-icon {
    color: #a8a8a8; /* macOS gray */
}

.download-card:nth-child(3) .download-icon {
    color: #fcc624; /* Linux yellow */
}

.download-title-wrapper {
    flex: 1;
}

.download-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.download-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.download-item i {
    color: var(--primary);
    flex-shrink: 0;
    width: 20px;
}

.download-item span {
    word-break: break-word;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    color: var(--white);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-download-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.download-note {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 1.25rem;
    border-left: 4px solid var(--primary);
    margin-top: 2rem;
}

.note-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.note-content {
    flex: 1;
}

.note-content strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.note-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-card {
        padding: 1.5rem;
    }
    
    .download-header {
        flex-direction: column;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-note {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* ==================== Markdown 渲染样式 ==================== */
.markdown-tabs {
    display: inline-flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-lighter);
    border-radius: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.markdown-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.markdown-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.markdown-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
}

.markdown-tab i {
    font-size: 1.2rem;
}

.markdown-panels {
    position: relative;
}

.markdown-body {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.markdown-body h1 {
    font-size: 2rem;
}

.markdown-body h2 {
    font-size: 1.75rem;
}

.markdown-body h3 {
    font-size: 1.5rem;
}

.markdown-body h4 {
    font-size: 1.25rem;
}

.markdown-body h5,
.markdown-body h6 {
    font-size: 1.1rem;
}

.markdown-body p {
    margin-bottom: 1.25rem;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.75rem;
}

.markdown-body li::marker {
    color: var(--primary);
}

.markdown-body blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 1rem;
    color: var(--text);
}

.markdown-body code {
    background: var(--gray-lighter);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.95em;
    color: var(--primary);
}

.markdown-body pre {
    background: #1e1e1e;
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: #d4d4d4;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--gray-lighter);
}

.markdown-body th,
.markdown-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-lighter);
    text-align: left;
}

.markdown-body th {
    background: var(--gray-lighter);
    color: var(--text);
    font-weight: 600;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.markdown-body .faq-list {
    margin-top: 2rem;
}

.markdown-body .alert-modern {
    margin-top: 2rem;
}

.markdown-loading,
.markdown-error {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--gray-lighter);
    color: var(--text-light);
}

.markdown-loading i,
.markdown-error i {
    font-size: 1.5rem;
    color: var(--primary);
}

.markdown-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

.markdown-body:not(.active) {
    display: none;
}

@media (max-width: 768px) {
    .markdown-tabs {
        width: 100%;
        justify-content: center;
    }

    .markdown-tab {
        flex: 1 1 100px;
        justify-content: center;
    }
}
