/* meta.css - Clash Meta 专属样式 (紫色基调) */

.meta-hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px 40px;
}

.meta-hero .badge {
    display: inline-block;
    background-color: #f5f3ff;
    color: #7c3aed;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #ddd6fe;
    margin-bottom: 22px;
}

.meta-hero h1 {
    font-size: 2.5rem;
    color: #0f0a2e;
    line-height: 1.35;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.meta-hero .hero-desc {
    font-size: 1.06rem;
    color: #475569;
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75;
}

.meta-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 协议矩阵 */
.protocol-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.protocol-group {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.protocol-group h4 {
    font-size: 1.1rem;
    color: #0f0a2e;
    margin-bottom: 14px;
    font-weight: 600;
}

.protocol-group ul {
    list-style: none;
}

.protocol-group li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
}

.protocol-group li:last-child {
    border-bottom: none;
}

/* 对比表格 */
.compare-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.compare-table thead {
    background: #f5f3ff;
}

.compare-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #0f0a2e;
    white-space: nowrap;
}

.compare-table td {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    color: #334155;
}

.compare-table tbody tr:hover {
    background: #faf9ff;
}

/* 全平台卡片 */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.platform-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.platform-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.platform-card strong {
    display: block;
    font-size: 0.95rem;
    color: #0f0a2e;
    margin-bottom: 4px;
}

.platform-card small {
    font-size: 0.8rem;
    color: #64748b;
}

/* 配置步骤 */
.config-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.config-step {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    position: relative;
}

.step-num {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #7c3aed;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.config-step h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #0f0a2e;
    font-size: 1.05rem;
}

.config-step p {
    text-indent: 0;
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 0;
}

/* 更新日志列表 */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.changelog-item {
    background: #fff;
    border-left: 4px solid #7c3aed;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.version-tag {
    font-weight: 700;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 12px;
}

.date {
    color: #64748b;
    font-size: 0.85rem;
}

.changelog-item p {
    margin-top: 10px;
    text-indent: 0;
    font-size: 0.94rem;
    color: #334155;
    margin-bottom: 0;
}

/* 开源徽章 */
.open-source-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.open-source-badges span {
    background: #f5f3ff;
    color: #4c1d95;
    border: 1px solid #ddd6fe;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .meta-hero h1 {
        font-size: 1.8rem;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .platform-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .config-steps {
        grid-template-columns: 1fr;
    }
}