/*
Theme Name: 易渡海外 Overseas SA
Theme URI: https://www.overseas-sa.com
Author: Overseas SA
Author URI: https://www.overseas-sa.com
Description: 易渡海外官网主题。企业品牌 + 资讯博客 + 14 国落地页的复合形态。配套自定义分类 country、SEO 元信息、移动端适配、DedeCMS 老 URL 301 重定向。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: overseas-sa
Tags: business, blog, custom-colors, custom-menu, custom-logo, translation-ready, responsive-layout
*/

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: #0f172a; margin: 0 0 .6em; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }

:root {
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --accent: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --bg-soft: #f8fafc;
    --border: #e5e7eb;
    --container: 1180px;
}

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.site-header, .site-footer { background: #fff; border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: 60px; padding: 40px 0 20px; color: var(--muted); font-size: .92rem; }
.site-footer a { color: var(--muted); }

/* ===== Header / Nav ===== */
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--brand-dark); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); display: grid; place-items: center; color: #fff; font-weight: 800; }
.brand-logo { height: 40px; width: auto; display: block; border-radius: 6px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.cta-btn { background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.cta-btn:hover { background: var(--brand-dark); }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); color: #fff; padding: 80px 0; }
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 720px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary, .hero-actions .btn-ghost { padding: 12px 22px; border-radius: 6px; font-weight: 600; }
.hero-actions .btn-primary { background: var(--accent); color: #1f2937; }
.hero-actions .btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }

/* ===== Section ===== */
section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.9rem; }
.section-title p { color: var(--muted); }

/* ===== Country grid ===== */
.country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.country-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px;
    text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.country-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.08); border-color: var(--brand); text-decoration: none; }
.country-card .flag { font-size: 2rem; margin-bottom: 6px; }
.country-card .name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.country-card .count { font-size: .85rem; color: var(--muted); }

/* ===== Article list ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.article-card:hover { box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.article-thumb { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); aspect-ratio: 16/9; display: grid; place-items: center; color: var(--brand-dark); font-weight: 700; }
.article-body { padding: 18px 20px; }
.article-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.article-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--brand); }
.article-excerpt { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== Single article ===== */
.article-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.article-page h1 { font-size: 2.2rem; }
.article-page .article-meta { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-content { font-size: 1.05rem; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content blockquote { border-left: 4px solid var(--brand); padding: 8px 16px; background: var(--bg-soft); color: var(--text); margin: 1.2em 0; }

/* ===== Country landing ===== */
.country-hero { padding: 70px 0; color: #fff; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); }
.country-hero h1 { color: #fff; font-size: 2.4rem; }
.country-hero p { opacity: .92; max-width: 720px; }
.country-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.country-meta div { background: rgba(255,255,255,.12); padding: 12px 18px; border-radius: 8px; }
.country-meta strong { display: block; font-size: 1.4rem; }
.country-meta span { font-size: .85rem; opacity: .85; }
.country-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.feature-card h3 { color: var(--brand); }

/* ===== Forms / CTA ===== */
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; max-width: 560px; margin: 40px auto; }
.lead-form h3 { margin-top: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem;
    font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form-submit { background: var(--brand); color: #fff; border: none; padding: 12px 22px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.form-submit:hover { background: var(--brand-dark); }

/* ===== 404 / Search ===== */
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 5rem; color: var(--brand); margin: 0; }
.notfound p { color: var(--muted); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 16px 0; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ===== Sidebar ===== */
.with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.widget-area aside { background: var(--bg-soft); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.widget-area h3 { font-size: 1rem; margin-top: 0; }
.widget-area ul { list-style: none; padding: 0; margin: 0; }
.widget-area li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.widget-area li:last-child { border-bottom: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.9rem; }
    .country-hero { padding: 45px 0; }
    .country-hero h1 { font-size: 1.7rem; }
    .with-sidebar { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .main-nav ul { gap: 14px; flex-wrap: wrap; }
    .main-nav { width: 100%; }
}
@media (max-width: 520px) {
    .hero h1 { font-size: 1.6rem; }
    .country-hero h1 { font-size: 1.4rem; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
}
