/* ===== Blog Styles — Unified with Overseas Index ===== */

/* Use the same design system as the index page */
:root {
    --color-bg-primary: hsl(0, 0%, 98%);
    --color-bg-secondary: hsl(0, 0%, 95%);
    --color-bg-card: hsl(0, 0%, 100%);
    --color-text-primary: hsl(220, 20%, 20%);
    --color-text-secondary: hsl(220, 10%, 45%);
    --color-text-muted: hsl(220, 10%, 60%);
    --color-accent: hsl(220, 80%, 55%);
    --color-accent-hover: hsl(220, 80%, 45%);
    --color-accent-light: hsl(220, 80%, 95%);
    --color-border: hsl(0, 0%, 90%);
    --color-shadow: hsla(220, 20%, 20%, 0.08);
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
        "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR",
        "PingFang SC", "Microsoft YaHei", "Apple Color Emoji", "Segoe UI Emoji";
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    -webkit-text-size-adjust: 100%;
}
a { cursor: pointer; color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* ===== Blog Header Bar ===== */
.blog-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-header-logo {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.blog-header-logo:hover { color: var(--color-accent); }
.blog-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.blog-header-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    color: #fff;
}

/* ===== Breadcrumb Navigation ===== */
.blog-nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.blog-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-nav a:hover { color: var(--color-accent); }
.blog-nav .sep { color: var(--color-border); font-size: 12px; }
.blog-nav .current { color: var(--color-text-primary); font-weight: 500; }

/* ===== Article Container ===== */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ===== Article Hero ===== */
.blog-hero {
    text-align: center;
    padding: 32px 0 40px;
}
.blog-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}
.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ===== Hero Image ===== */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-top: 24px;
    box-shadow: 0 4px 16px var(--color-shadow);
}

/* ===== Article Body (sections) ===== */
.blog-article section {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.9;
}
.blog-article section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-light);
    letter-spacing: -0.3px;
}
.blog-article section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 32px 0 12px;
}
.blog-article section p { margin-bottom: 16px; }
.blog-article section strong { color: var(--color-text-primary); }
.blog-article section a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid hsla(220, 80%, 55%, 0.3);
    transition: border-color 0.2s;
}
.blog-article section a:hover { border-color: var(--color-accent); }
.blog-article section ul,
.blog-article section ol { margin: 12px 0 20px 24px; }
.blog-article section li { margin-bottom: 8px; }
.blog-article section img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid var(--color-border);
}

/* ===== Key Takeaway (pullquote) ===== */
.key-takeaway {
    background: var(--color-accent-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.7;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 48px;
    box-shadow: 0 2px 8px var(--color-shadow);
}
.faq-section h2 {
    border: none;
    padding: 0;
    margin-top: 0;
    text-align: center;
    margin-bottom: 24px;
}
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-of-type { padding-top: 0; }
.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 8px;
}
.faq-item h3::before { content: 'Q. '; color: var(--color-accent); font-weight: 700; }
.faq-item p { margin: 0; color: var(--color-text-secondary); line-height: 1.8; }

/* ===== Related Articles ===== */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.related-articles h2 {
    border: none;
    padding: 0;
    text-align: center;
    margin-bottom: 24px;
}
.related-articles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.related-articles li { margin: 0; }
.related-articles li a {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s;
}
.related-articles li a:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--color-shadow);
    color: var(--color-accent);
}

/* ===== Article Bottom CTA ===== */
.article-cta {
    text-align: center;
    padding: 48px 24px;
    margin-top: 48px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--color-shadow);
}
.article-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}
.article-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}
.cta-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
    border: none;
}
.cta-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(220, 80%, 55%, 0.3);
    color: #fff;
}

/* ===== Blog Footer ===== */
.blog-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}
.blog-footer p { font-size: 13px; color: var(--color-text-muted); margin: 4px 0; }
.blog-footer a { color: var(--color-text-secondary); text-decoration: none; }
.blog-footer a:hover { color: var(--color-accent); }

/* ===== Blog Index Page ===== */
.blog-list { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }
.blog-list-hero { text-align: center; padding: 48px 0 40px; }
.blog-list-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}
.blog-list-hero p { color: var(--color-text-muted); font-size: 15px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--color-shadow);
    border-color: var(--color-accent);
}
.article-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.article-card-body { padding: 20px; }
.article-card-body h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.article-card-body p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}
.article-card-meta { font-size: 12px; color: var(--color-text-muted); }
.back-home { text-align: center; margin-top: 48px; }
.back-home a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.back-home a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .article-grid { grid-template-columns: 1fr; }
    .blog-article { padding: 0 16px 40px; }
    .blog-hero { padding: 24px 0 20px; }
    .blog-article section h2 { font-size: 1.25rem; }
    .faq-section { padding: 20px; }
    .blog-header { padding: 16px; }
}
