/* ============================================================
   首助WORD文档批量处理 - 门户页专用样式
   配合主样式 style.css 使用，仅作用于 index.php 门户页
   ============================================================ */

/* ---------- 通用区块 ---------- */
.section {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---------- Hero 主视觉区 ---------- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px 60px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6a50c8 0%, #8a6ae0 30%, #a080f0 60%, #7090e8 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
}
.btn-icon {
    font-size: 18px;
}
.btn-primary-hero {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: #f8f4ff;
}
.btn-secondary-hero {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}
.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}
.hero-sub-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.link-accent {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.link-accent:hover {
    color: #fff;
}
.link-muted {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color .2s;
}
.link-muted:hover {
    color: rgba(255,255,255,0.85);
}
.hero-divider {
    color: rgba(255,255,255,0.3);
}

/* ---------- 核心功能卡片 ---------- */
.features-section {
    background: #faf8fc;
    max-width: 100%;
    padding: 60px 20px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: 0 2px 12px rgba(80,60,120,0.06);
    border: 1px solid var(--card-border);
    transition: all .3s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}
.feature-card h3 {
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- 产品特性亮点 ---------- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    transition: all .25s;
}
.highlight-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.highlight-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 42px;
    text-align: center;
}
.highlight-text h4 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 6px;
}
.highlight-text p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-section {
    background: #faf8fc;
    max-width: 100%;
    padding: 60px 20px;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover {
    box-shadow: 0 2px 10px rgba(80,60,120,0.08);
}
.faq-q {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
    transition: transform .25s;
}
.faq-item.open .faq-q::after {
    content: '−';
}
.faq-a {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-a {
    display: block;
}
.faq-a code {
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--primary);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #1a1028;
    color: #ccc;
    padding: 40px 20px;
    margin-top: 0;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    font-size: 15px;
    margin-bottom: 16px;
    color: #eee;
}
.footer-brand strong {
    color: #fff;
}
.footer-sep {
    margin: 0 8px;
    color: #555;
}
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}
.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-copy {
    font-size: 12px;
    color: #777;
}

/* ---------- 门户页去掉 container 的内边距干扰 ---------- */
/* 因为 portal 页不用 .container，而是用 .section 自带 max-width */
/* 让 navbar 下面的 main 不产生多余间距 */

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        width: 80%;
        justify-content: center;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 40px 16px;
    }
    .section-title {
        font-size: 22px;
    }
}
@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 60px 16px 40px;
        min-height: 320px;
    }
    .hero-title {
        font-size: 22px;
    }
}
