/**
 * 会员订阅系统 - 前端样式
 * Version: 1.0.0
 */

/* 容器 */
.ms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero 区域 */
.ms-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #eff6ff, #ffffff);
    border-radius: 8px;
    margin-bottom: 40px;
}

.ms-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.ms-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.ms-hero p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* 计费切换 */
.ms-billing-toggle {
    display: inline-flex;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ms-billing-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ms-billing-btn:hover {
    background: #f3f4f6;
}

.ms-billing-btn.active {
    background: #2563eb;
    color: #ffffff;
}

.ms-billing-btn .ms-save-badge {
    background: #fed7aa;
    color: #c2410c;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.ms-billing-btn.active .ms-save-badge {
    background: #ffffff;
    color: #2563eb;
}

/* 价格卡片容器 */
.ms-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .ms-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

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

/* 价格卡片 */
.ms-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ms-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.ms-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.ms-card.popular:hover {
    transform: translateY(-4px);
}

/* 最受欢迎标签 */
.ms-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* 卡片图标 */
.ms-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-card-icon svg {
    width: 32px;
    height: 32px;
}

.ms-card:not(.popular) .ms-card-icon {
    background: #f3f4f6;
}

.ms-card:not(.popular) .ms-card-icon svg {
    color: #6b7280;
}

.ms-card.popular .ms-card-icon {
    background: #2563eb;
}

.ms-card.popular .ms-card-icon svg {
    color: #ffffff;
}

/* 卡片标题 */
.ms-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px 0;
    color: #111827;
}

.ms-card .ms-description {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* 价格 */
.ms-price {
    text-align: center;
    margin-bottom: 20px;
}

.ms-price .ms-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
}

.ms-price .ms-period {
    color: #6b7280;
    font-size: 14px;
}

/* 功能列表 */
.ms-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.ms-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
}

.ms-features li svg {
    width: 20px;
    height: 20px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 订阅按钮 */
.ms-subscribe-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ms-card:not(.popular) .ms-subscribe-btn {
    background: #111827;
    color: #ffffff;
}

.ms-card:not(.popular) .ms-subscribe-btn:hover {
    background: #1f2937;
}

.ms-card.popular .ms-subscribe-btn {
    background: #2563eb;
    color: #ffffff;
}

.ms-card.popular .ms-subscribe-btn:hover {
    background: #1d4ed8;
}

/* 权益区域 */
.ms-features-section {
    background: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #e5e7eb;
    margin: 0 -20px;
}

.ms-features-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 48px 0;
}

.ms-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.ms-feature-item {
    text-align: center;
}

.ms-feature-icon {
    width: 56px;
    height: 56px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ms-feature-icon svg {
    width: 28px;
    height: 28px;
    color: #2563eb;
}

.ms-feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.ms-feature-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* FAQ 区域 */
.ms-faq-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ms-faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 48px 0;
}

.ms-faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ms-faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ms-faq-item p {
    padding: 20px 24px;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* CTA 区域 */
.ms-cta-section {
    background: #2563eb;
    padding: 60px 20px;
    text-align: center;
    margin: 0 -20px;
}

.ms-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.ms-cta-section p {
    font-size: 18px;
    color: #bfdbfe;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ms-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #2563eb;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.ms-cta-btn:hover {
    background: #f3f4f6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ms-hero h1 {
        font-size: 2rem;
    }
    
    .ms-hero p {
        font-size: 16px;
    }
    
    .ms-card.popular {
        transform: none;
    }
    
    .ms-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .ms-price .ms-amount {
        font-size: 2.5rem;
    }
}
