/* ============================================
   Sumly.com.cn 公共样式
   GEO 优化平台 - 前台页面通用样式
   ============================================ */

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    margin: 0;
    color: #1e293b;
}

/* ---------- Page Header (pricing/tech/sites 通用) ---------- */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 70px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}
.page-header p {
    opacity: 0.88;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================
   Pricing Page Styles
   ============================================ */
.pricing-section {
    max-width: 1140px;
    margin: -30px auto 0;
    padding: 0 15px 60px;
    position: relative;
    z-index: 2;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.plan-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.02);
}
.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}
.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-bottom-left-radius: 12px;
}
.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.plan-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 18px;
}
.plan-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.plan-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}
.plan-price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.plan-price .period {
    font-size: 0.95rem;
    color: #64748b;
}
.plan-price .plan-save {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
    margin-left: 6px;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i.bi-check-circle-fill { color: #10b981; font-size: 1rem; }
.plan-features li i.bi-x-circle-fill { color: #cbd5e1; font-size: 1rem; }
.plan-features li .limited { color: #94a3b8; text-decoration: line-through; }
.btn-plan {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-plan-default {
    background: #f1f5f9;
    color: #475569;
}
.btn-plan-default:hover { background: #e2e8f0; }
.btn-plan-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.btn-plan-primary:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
    transform: translateY(-1px);
}
.btn-plan-outline {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}
.btn-plan-outline:hover {
    background: #667eea;
    color: #fff;
}

/* ---------- FAQ ---------- */
.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 15px;
}
.faq-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1e293b;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.faq-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Tech Page Styles
   ============================================ */
.tech-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px 60px;
}
.tech-intro {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tech-intro h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}
.tech-intro p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}
.tech-intro p:last-child { margin-bottom: 0; }

.flow-section {
    margin-bottom: 40px;
}
.flow-section > h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.flow-section > p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
}
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.flow-step {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-items: flex-start;
}
.step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.step-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.step-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.principle-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s;
}
.principle-card:hover {
    transform: translateY(-4px);
}
.pc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 1.5rem;
}
.principle-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.principle-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}
.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-section p {
    opacity: 0.88;
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #5a6fd6;
}

/* ============================================
   Footer & Bottom Nav
   ============================================ */
.site-footer {
    text-align: center;
    padding: 32px 20px 90px;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}
.site-footer a {
    color: #64748b;
    text-decoration: none;
}
.site-footer a:hover {
    color: #667eea;
    text-decoration: none;
}
.footer-beian {
    margin-top: 6px;
}
.footer-beian a {
    color: #999;
}

@media (min-width: 768px) {
    .site-footer { padding-bottom: 24px; }
}
