/* ==========================================================================
   AMZTG · 跨境运营内容站
   --------------------------------------------------------------------------
   1. 基础变量与重置
   2. 通用组件（按钮、容器、标题）
   3. 头部导航
   4. 首页首屏与分类
   5. 文章列表卡片
   6. 分页
   7. 侧边栏
   8. 文章详情
   9. 归档 / 搜索 / 404
   10. 评论
   11. 页脚
   12. 响应式
   ========================================================================== */

/* 1. 基础 */
:root {
    --navy: #0b1f3a;
    --navy-2: #12294a;
    --navy-3: #1b3760;
    --ink: #16202c;
    --ink-2: #33445c;
    --muted: #66788f;
    --line: #e5ebf3;
    --bg: #f5f8fc;
    --card: #ffffff;
    --accent: #ff8a00;
    --accent-2: #ffb340;
    --accent-soft: #fff4e5;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(11, 31, 58, .08);
    --shadow-sm: 0 4px 14px rgba(11, 31, 58, .06);
    --wrap: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 2. 通用组件 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 138, 0, .28); }
.btn-primary:hover { background: #f07d00; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 138, 0, .34); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin: 0 0 22px;
}
.section-head h2 { font-size: 24px; letter-spacing: -0.2px; }
.section-head h2::before {
    content: ""; display: inline-block; width: 4px; height: 20px; border-radius: 2px;
    background: var(--accent); margin-right: 10px; vertical-align: -3px;
}
.section-head .more { font-size: 14px; color: var(--muted); }
.section-head .more:hover { color: var(--accent); }

/* 3. 头部 */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 31, 58, .08); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #ff9f1a, #ff6a00);
    color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -1px;
    box-shadow: 0 6px 16px rgba(255, 122, 0, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
    display: block; padding: 9px 14px; border-radius: 8px;
    font-size: 15px; color: var(--ink-2); font-weight: 500;
}
.nav-list a:hover { background: var(--accent-soft); color: #c96a00; }

.header-cta {
    padding: 9px 20px; border-radius: 999px; background: var(--navy); color: #fff;
    font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.header-cta:hover { background: var(--navy-3); color: #fff; }

.nav-toggle {
    display: none; width: 40px; height: 40px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; position: relative;
}
.nav-toggle span {
    position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px;
    background: var(--navy); transition: .25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* 4. 首屏 */
.hero {
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(255, 138, 0, .22), transparent 60%),
        radial-gradient(700px 380px at 88% 0%, rgba(46, 120, 255, .22), transparent 62%),
        linear-gradient(160deg, var(--navy) 0%, #0d2547 55%, #102c55 100%);
    color: #fff;
    padding: 72px 0 84px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: 3px; font-weight: 600;
    color: var(--accent-2); margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(30px, 4.2vw, 46px); line-height: 1.22; color: #fff;
    letter-spacing: -0.5px; margin-bottom: 20px;
}
.hero-desc { color: rgba(255, 255, 255, .78); font-size: 16.5px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li {
    font-size: 14px; color: rgba(255, 255, 255, .72); position: relative; padding-left: 18px;
}
.hero-points li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
    border-radius: 50%; background: var(--accent);
}

.hero-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px; padding: 26px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.panel-title {
    font-size: 13px; letter-spacing: 2px; color: rgba(255, 255, 255, .55);
    text-transform: uppercase; margin-bottom: 18px;
}
.panel-item {
    display: flex; gap: 14px; padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .13);
}
.panel-idx {
    font-size: 12px; font-weight: 700; color: var(--accent);
    background: rgba(255, 138, 0, .12); border-radius: 6px;
    width: 28px; height: 24px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.panel-item b { display: block; font-size: 15px; color: #fff; font-weight: 600; }
.panel-item small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); line-height: 1.6; }
.panel-cta {
    display: block; margin-top: 18px; text-align: center; padding: 11px;
    border-radius: 10px; background: rgba(255, 255, 255, .1);
    color: #fff; font-size: 14px; font-weight: 600;
}
.panel-cta:hover { background: var(--accent); color: #fff; }

/* 分类带 */
.cat-band { background: #fff; border-bottom: 1px solid var(--line); padding: 54px 0; }
.cat-band-head { margin-bottom: 26px; }
.cat-band-head h2 { font-size: 24px; margin-bottom: 8px; }
.cat-band-head p { color: var(--muted); font-size: 15px; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
    display: flex; align-items: center; gap: 12px; padding: 20px 22px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    transition: all .22s ease;
}
.cat-card:hover {
    background: #fff; border-color: rgba(255, 138, 0, .45);
    box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink);
}
.cat-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.cat-count { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.cat-arrow { color: var(--accent); font-weight: 700; }

/* 5. 主体布局与文章卡片 */
.layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px; padding: 52px 20px 72px; align-items: start;
}
.primary { min-width: 0; }

.post-list { display: grid; gap: 18px; }
.post-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: all .24s ease; overflow: hidden;
}
.post-card:hover { border-color: rgba(255, 138, 0, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-link { display: block; padding: 26px 28px; }
.post-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.post-cat {
    display: inline-block; font-size: 12px; font-weight: 600; color: #c96a00;
    background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; letter-spacing: .3px;
}
.post-date { font-size: 13px; color: var(--muted); }
.post-title { font-size: 20px; line-height: 1.45; margin-bottom: 10px; color: var(--ink); }
.post-card:hover .post-title { color: #c96a00; }
.post-excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.post-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--line);
}
.post-more { color: var(--accent); font-weight: 600; }

.empty {
    background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 56px 24px; text-align: center; color: var(--muted);
}
.empty p { margin: 0 0 6px; }
.empty-tip { font-size: 14px; }

/* 6. 分页 */
.pagebar { margin-top: 30px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager-num {
    min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; color: var(--ink-2); font-weight: 600;
}
.pager-num:hover { border-color: var(--accent); color: var(--accent); }
.pager-num.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 7. 侧边栏 */
.sidebar { position: sticky; top: 88px; display: grid; gap: 18px; }
.widget {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 22px 24px;
}
.widget-title {
    font-size: 16px; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line); position: relative;
}
.widget-title::after {
    content: ""; position: absolute; left: 0; bottom: -1px; width: 38px; height: 2px; background: var(--accent);
}
.widget-brand { background: linear-gradient(150deg, var(--navy), var(--navy-3)); border: 0; color: #fff; }
.wb-mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #ff9f1a, #ff6a00); font-weight: 800; font-size: 21px;
    margin-bottom: 14px;
}
.wb-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wb-desc { font-size: 13.5px; color: rgba(255, 255, 255, .68); line-height: 1.8; margin-bottom: 16px; }
.widget-brand .btn { width: 100%; }

.widget-cats li + li { border-top: 1px dashed var(--line); }
.widget-cats a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; font-size: 14.5px; color: var(--ink-2);
}
.widget-cats a:hover { color: var(--accent); padding-left: 4px; }
.widget-cats em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 6px; }

.widget-posts li + li { border-top: 1px dashed var(--line); }
.widget-posts a { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; padding: 11px 0; font-size: 14px; }
.wp-title {
    color: var(--ink-2); line-height: 1.6;
    flex: 1 1 auto; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.widget-posts a:hover .wp-title { color: var(--accent); }
.wp-date { color: #9aa8ba; font-size: 12px; flex-shrink: 0; }

.widget-contact p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.wc-list { margin: 14px 0 16px; display: grid; gap: 8px; }
.wc-list li { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 12px; background: var(--bg); border-radius: 8px; }
.wc-list span { color: var(--muted); }
.wc-list b { color: var(--navy); }
.widget-contact .btn { width: 100%; background: #fff; color: var(--navy); border-color: var(--line); }
.widget-contact .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 8. 文章详情 */
.breadcrumb {
    font-size: 13px; color: var(--muted); padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px;
    max-width: var(--wrap); margin: 0 auto;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c3cddb; }
.breadcrumb .current { color: var(--ink-2); }

.layout--single { padding-top: 18px; }
.single-post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.post-header { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.post-heading { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.4; margin: 14px 0 14px; letter-spacing: -0.3px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.post-meta .dot { color: #c3cddb; }

.toc {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 20px; margin-bottom: 26px;
}
.toc-title { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.toc-list { padding-left: 0; }
.toc-list li { font-size: 14px; padding: 4px 0 4px 14px; position: relative; }
.toc-list li::before {
    content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--accent);
}
.toc-list li.toc-h3 { padding-left: 30px; font-size: 13.5px; }
.toc-list a { color: var(--ink-2); }
.toc-list a:hover { color: var(--accent); }

.post-content { font-size: 16.5px; line-height: 1.95; color: #253244; }
.post-content > *:first-child { margin-top: 0; }
.post-content h2 {
    font-size: 23px; margin: 42px 0 16px; padding-left: 14px; position: relative; scroll-margin-top: 90px;
}
.post-content h2::before {
    content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
    border-radius: 2px; background: linear-gradient(180deg, var(--accent), #ffc46b);
}
.post-content h3 { font-size: 19px; margin: 30px 0 12px; scroll-margin-top: 90px; }
.post-content h4 { font-size: 17px; margin: 24px 0 10px; }
.post-content p { margin: 0 0 18px; }
.post-content a { color: #0b66d0; border-bottom: 1px solid rgba(11, 102, 208, .25); }
.post-content a:hover { color: var(--accent); border-color: var(--accent); }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    margin: 24px 0; padding: 16px 22px; background: var(--accent-soft);
    border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #7a4a00; font-size: 15.5px;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content img { border-radius: var(--radius-sm); margin: 22px auto; box-shadow: var(--shadow-sm); }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.post-content th { background: var(--bg); font-weight: 600; }
.post-content tr:nth-child(even) td { background: #fafcfe; }
.post-content code { background: #f1f5fa; padding: 2px 6px; border-radius: 5px; font-size: 14px; color: #b1370c; }
.post-content pre { background: var(--navy); color: #e8eef7; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-tags a {
    font-size: 13px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line);
    padding: 5px 12px; border-radius: 999px;
}
.post-tags a:hover { background: var(--accent-soft); border-color: rgba(255, 138, 0, .4); color: #c96a00; }

.post-share {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 26px; padding: 16px 20px; background: var(--bg); border-radius: var(--radius-sm);
    font-size: 14px; color: var(--muted);
}
.post-share a { color: var(--navy); font-weight: 600; border-bottom: 1px dashed #b9c6d8; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav-item {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.post-nav-item:hover { border-color: rgba(255, 138, 0, .45); transform: translateY(-1px); }
.post-nav-item small { font-size: 12px; color: var(--muted); }
.post-nav-item span { font-size: 14.5px; color: var(--ink-2); font-weight: 500; line-height: 1.55; }
.post-nav-item.next { text-align: right; }

.related { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.related-title { font-size: 18px; margin-bottom: 16px; }
.related-grid { display: grid; gap: 10px; }
.related-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    background: var(--bg); border-radius: var(--radius-sm); transition: all .2s ease;
}
.related-item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.related-cat { font-size: 11.5px; color: #c96a00; background: var(--accent-soft); padding: 2px 8px; border-radius: 5px; flex-shrink: 0; }
.related-name { font-size: 14.5px; color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-date { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* 9. 归档 / 搜索 / 404 */
.archive-head { padding: 34px 0 6px; max-width: var(--wrap); margin: 0 auto; }
.archive-title { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 10px; }
.archive-desc { color: var(--muted); font-size: 15px; max-width: 720px; }
.archive-count { display: inline-block; font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }

.search-form { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.search-form input {
    flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 0, .14); }
.search-form button {
    padding: 0 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff;
    font-size: 15px; font-weight: 600;
}
.search-form button:hover { background: var(--navy-3); }

.notfound { text-align: center; padding: 90px 20px 110px; }
.nf-code {
    font-size: 96px; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--navy), #2e78ff 60%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -4px; margin-bottom: 10px;
}
.notfound h1 { font-size: 24px; margin-bottom: 10px; }
.notfound p { color: var(--muted); }
.nf-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.nf-actions .btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }

/* 10. 评论（沿用系统默认结构，这里做视觉统一） */
.comments-wrap { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.comments-wrap h3, .comments-wrap .comment-title { font-size: 18px; margin-bottom: 18px; }
.comments-wrap ul.msg { list-style: none; padding: 0; margin: 0 0 18px; border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.comments-wrap .msgname { display: flex; align-items: center; font-size: 14px; }
.comments-wrap .msgname img.avatar { border-radius: 50%; }
.comments-wrap .commentname a { font-weight: 600; color: var(--ink); }
.comments-wrap .msgarticle { font-size: 15px; color: var(--ink-2); padding: 8px 0 0 42px; }
.comments-wrap input[type="text"], .comments-wrap input[type="email"], .comments-wrap input[type="url"],
.comments-wrap textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 15px; margin-bottom: 10px; background: #fff; color: var(--ink);
}
.comments-wrap textarea { min-height: 120px; resize: vertical; }
.comments-wrap input[type="submit"], .comments-wrap button[type="submit"] {
    padding: 11px 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 15px; font-weight: 600;
}
.comments-wrap input[type="submit"]:hover { background: #f07d00; }

/* 11. 页脚 */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 20px; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px;
    padding-top: 56px; padding-bottom: 44px;
}
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text em { color: rgba(255, 255, 255, .5); }
.footer-slogan { color: #fff; font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.footer-desc { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .55); max-width: 320px; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, .62); }
.footer-col a:hover { color: var(--accent-2); }
.footer-contact li { display: flex; gap: 8px; font-size: 14px; }
.fc-label { color: rgba(255, 255, 255, .42); flex-shrink: 0; width: 34px; }
.fc-value { color: rgba(255, 255, 255, .8); word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 22px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .5); text-align: center; }
.footer-legal a { color: rgba(255, 255, 255, .5); }
.footer-legal a:hover { color: var(--accent-2); }
.footer-legal .sep { color: rgba(255, 255, 255, .2); margin: 0 4px; }
.footer-disclaimer {
    margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .38); text-align: center;
}
.footer-disclaimer .disclaimer-powered { display: block; margin-top: 6px; }
.footer-disclaimer a { color: rgba(255, 255, 255, .45); }
.footer-disclaimer a:hover { color: var(--accent-2); }

.back-top {
    position: fixed; right: 24px; bottom: 28px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--navy); color: #fff;
    font-size: 18px; box-shadow: 0 10px 24px rgba(11, 31, 58, .25);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease; z-index: 50;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); }

/* 12. 响应式 */
@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; }
    .hero-inner { gap: 36px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-contact ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; margin-left: auto; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: 68px 0 auto 0; background: #fff;
        border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
        box-shadow: 0 20px 40px rgba(11, 31, 58, .12);
        display: none; margin: 0; z-index: 55; max-height: calc(100vh - 68px); overflow-y: auto;
    }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-list a { padding: 12px 10px; font-size: 16px; border-radius: 8px; }

    .hero { padding: 52px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }

    .layout { grid-template-columns: 1fr; padding-top: 34px; }
    .sidebar { position: static; grid-row: 2; }
    .single-post { padding: 28px 22px; }
    .post-card-link { padding: 22px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    body { font-size: 15.5px; }
    .cat-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero h1 { font-size: 28px; }
    .post-title { font-size: 18px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }
    .archive-head { padding-top: 24px; }
    .nf-code { font-size: 72px; }
    .footer-bottom-inner { flex-direction: column; }
    .related-name { white-space: normal; }
    .layout, .archive-head { padding-left: 16px; padding-right: 16px; }
    .wrap { padding: 0 16px; }
}

.pager-nav {
    height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; color: var(--ink-2);
}
.pager-nav:hover { border-color: var(--accent); color: var(--accent); }
.pager-dot { min-width: 24px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.footer-links { border-top: 1px solid rgba(255, 255, 255, .07); padding: 16px 0 4px; }
.footer-links-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; }
.footer-links-label { color: rgba(255, 255, 255, .38); position: relative; padding-right: 14px; }
.footer-links-label::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -7px; height: 14px; width: 1px; background: rgba(255, 255, 255, .15); }
.footer-links-inner a { color: rgba(255, 255, 255, .55); }
.footer-links-inner a:hover { color: var(--accent-2); }
.footer-bottom.no-border { border-top: 0; padding-top: 6px; }
