/* =========================================
   article.css — 安心掃雷知識文章
   繼承 base.css 設計語言
   ========================================= */

/* ===== 文章主體佈局 ===== */

.article-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== 文章 header ===== */

.article-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
}

.article-breadcrumb {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.article-breadcrumb a {
    color: var(--accent);
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-header h1 {
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ===== 文章 h2 / h3 ===== */

.article-body h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--bg3);
}

.article-body h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ===== 段落 ===== */

.article-body p {
    line-height: 1.8;
}

/* ===== 清單 ===== */

.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
}

.article-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--dim);
    line-height: 1.75;
}

.article-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
}

ol.article-list {
    counter-reset: article-counter;
}

ol.article-list li {
    counter-increment: article-counter;
    padding-left: 1.75rem;
}

ol.article-list li::before {
    content: counter(article-counter) ".";
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    top: 0.1rem;
}

/* ===== 表格 ===== */

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.article-table thead {
    background: var(--bg3);
}

.article-table th {
    text-align: left;
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.article-table td {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--card-border);
    color: var(--dim);
    vertical-align: top;
}

.article-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.4);
}

/* ===== CTA 區塊 ===== */

.article-cta {
    margin: 1rem 0;
}

.cta-inner {
    text-align: center;
    padding: 2rem 1.5rem;
}

.cta-inner h3 {
    color: var(--text);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.cta-inner p {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* ===== FAQ 區塊 ===== */

.faq-section {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-section > h2 {
    border-bottom: none;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.faq-section h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.faq-section p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--dim);
}

/* ===== footer ===== */

.article-footer {
    text-align: center;
    padding: 2rem 1.25rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.82rem;
    color: var(--muted);
}

.article-footer a {
    color: var(--accent);
}

.article-footer a:hover {
    text-decoration: underline;
}

/* ===== 響應式 ===== */

@media (max-width: 480px) {
    .article-main {
        padding: 1.5rem 1rem 3rem;
    }

    .article-body {
        gap: 1.5rem;
    }

    .cta-inner {
        padding: 1.5rem 1rem;
    }

    .faq-section {
        padding: 1.25rem 1rem;
    }

    .article-table th,
    .article-table td {
        padding: 0.5rem 0.65rem;
        font-size: 0.82rem;
    }
}
