/* ==========================================================================
   features.css — 功能详情页专属样式
   YXShop 官网功能页
   ========================================================================== */

/* ---------- 页面头部 ---------- */
.page-header {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0E7FF 100%);
    padding: 140px 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 50%;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-md);
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- 功能区块 ---------- */
.feature-section {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.feature-section:nth-child(even) {
    background: var(--color-bg-alt);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.feature-row__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: var(--space-md);
}

.feature-row__icon svg {
    width: 32px;
    height: 32px;
}

.feature-row__icon--blue { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.feature-row__icon--green { background: linear-gradient(135deg, #10B981, #34D399); }
.feature-row__icon--orange { background: linear-gradient(135deg, #F97316, #FB923C); }
.feature-row__icon--purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.feature-row__icon--red { background: linear-gradient(135deg, #EF4444, #F87171); }
.feature-row__icon--cyan { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.feature-row__icon--pink { background: linear-gradient(135deg, #EC4899, #F472B6); }
.feature-row__icon--indigo { background: linear-gradient(135deg, #6366F1, #818CF8); }
.feature-row__icon--teal { background: linear-gradient(135deg, #14B8A6, #2DD4BF); }
.feature-row__icon--amber { background: linear-gradient(135deg, #F59E0B, #FBBF24); }

.feature-row__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.feature-row__desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.feature-row__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.feature-row__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-row__list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--color-success);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* 功能截图占位 */
.feature-screenshot {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.feature-screenshot__mock {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-screenshot__mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.feature-screenshot__mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.feature-screenshot__mock-bar span:nth-child(1) { background: #EF4444; }
.feature-screenshot__mock-bar span:nth-child(2) { background: #F59E0B; }
.feature-screenshot__mock-bar span:nth-child(3) { background: #10B981; }

.feature-screenshot__mock-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
    }

    .feature-row--reverse .feature-row__content {
        order: 2;
    }

    .feature-row__list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .feature-row__list {
        grid-template-columns: 1fr 1fr;
    }
}
