/* ===== theme1277 common.css —— B 骨架 Bootstrap 导航条 + 3 列 footer（轮播首页）===== */
:root {
    --color-primary: #a16207;
    --color-primary-dark: #713f12;
    --color-primary-light: #fefce8;
    --color-accent: #f59e0b;
    --color-text-dark: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #faf7f0;
    --color-bg-card: #ffffff;
    --color-border: #e7e5e4;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(161, 98, 7, 0.06);
    --shadow-md: 0 6px 20px rgba(161, 98, 7, 0.12);
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { height: 100%; }
body.theme1277-page {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1280px; }

/* ===== SEO/A11y 必备 ===== */
.skip-link, .aid-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--color-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0; }
.skip-link:focus, .aid-skip:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.article-summary { margin: 18px 0; padding: 18px 20px; background: var(--color-primary-light); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); }
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.summary-deco { color: var(--color-primary); }
.article-summary-title { font-size: 16px; font-weight: 600; color: var(--color-primary-dark); }
.article-summary-text { margin: 0; color: var(--color-text-muted); }
.article-summary-cite { margin-top: 10px; font-size: 13px; color: var(--color-text-light); }
.article-summary-cite code { background: #f5eed9; padding: 2px 6px; border-radius: 3px; font-size: 12px; word-break: break-all; }

/* ===== 顶部导航条 ===== */
.aid-nav { background: #fff; border-bottom: 2px solid var(--color-primary); min-height: 60px; margin-bottom: 0; }
.aid-nav .container { display: flex; align-items: center; }
.aid-nav .navbar-header { margin-right: 24px; }
.aid-nav .aid-logo { padding: 8px 0; line-height: 1; height: auto; }
.aid-nav .aid-logo-text { color: var(--color-primary); font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.aid-nav .aid-menu > li > a { color: var(--color-text-dark); font-size: 15px; font-weight: 500; padding: 20px 16px; }
.aid-nav .aid-menu > li > a:hover, .aid-nav .aid-menu > li.active > a { color: var(--color-primary); background: transparent; }
.aid-nav .aid-menu > li.active > a { border-bottom: 3px solid var(--color-primary); }
.aid-nav .aid-menu > li.dropdown:hover > .dropdown-menu { display: block; }
.aid-nav .dropdown-menu { border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 6px 0; }
.aid-nav .dropdown-menu li a { padding: 9px 18px; font-size: 14px; color: var(--color-text-muted); }
.aid-nav .dropdown-menu li a:hover { color: var(--color-primary); background: var(--color-primary-light); }
.aid-collapse { display: block; }

/* ===== 主内容区（8-4）===== */
.aid-body { padding: 26px 0 40px; }
.aid-body .row { margin-left: 0; margin-right: 0; }
.aid-main { float: left; width: 66%; padding-right: 22px; }
.aid-aside { float: left; width: 34%; }
.aid-body .row::after { content: ""; display: table; clear: both; }
.aid-crumb { background: #fff; border-bottom: 1px solid var(--color-border); padding: 13px 20px; font-size: 13px; color: var(--color-text-muted); }
.aid-crumb a { color: var(--color-text-muted); }
.aid-crumb a:hover { color: var(--color-primary); }
.aid-crumb i { margin: 0 6px; color: #d6d3d1; }
.aid-crumb span { color: var(--color-primary); }

/* ===== 首页 轮播 ===== */
.aid-banner-wrap { background: #111; }
.aid-banner { height: 380px; }
.aid-banner .swiper-slide a { display: flex; align-items: center; justify-content: center; height: 380px; background: linear-gradient(135deg, #713f12 0%, #a16207 55%, #854d0e 100%); color: #fff; }
.aid-banner-fallback { font-size: 24px; font-weight: 700; padding: 0 40px; text-align: center; line-height: 1.6; }
.aid-banner .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.aid-banner .swiper-pagination-bullet-active { background: var(--color-accent); opacity: 1; }

/* ===== 区块模块 ===== */
.aid-block { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.aid-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary-light); }
.aid-block-head h2 { font-size: 18px; font-weight: 700; padding-left: 10px; border-left: 4px solid var(--color-primary); line-height: 1.2; }
.aid-more { font-size: 13px; color: var(--color-text-muted); }
.aid-more:hover { color: var(--color-primary); }

/* 文章流 */
.aid-feeds { display: flex; flex-direction: column; }
.aid-feed { border-bottom: 1px dashed var(--color-border); }
.aid-feed:last-child { border-bottom: none; }
.aid-feed a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; min-width: 0; }
.aid-feed-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-feed a:hover .aid-feed-title { color: var(--color-primary); }
.aid-feed-meta { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 列表（横卡左图右文）===== */
.aid-hlist { display: flex; flex-direction: column; }
.aid-hrow { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); min-width: 0; }
.aid-hrow:last-child { border-bottom: none; }
.aid-hrow:hover .aid-htitle { color: var(--color-primary); }
.aid-hcover { flex: 0 0 150px; height: 100px; position: relative; background: var(--color-primary-light); border-radius: var(--radius-sm); overflow: hidden; }
.aid-hcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aid-hcover span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.aid-hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aid-htitle { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-hexcerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; color: var(--color-text-muted); font-size: 13px; }
.aid-hmeta { margin-top: auto; display: flex; gap: 10px; font-size: 12px; color: var(--color-text-light); }
.aid-text-cat { padding: 2px 8px; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary); font-size: 12px; }

/* ===== 纯文字列表（默认页）===== */
.aid-textlist { display: flex; flex-direction: column; }
.aid-text-item { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px dashed var(--color-border); }
.aid-text-item:last-child { border-bottom: none; }
.aid-text-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-text-item:hover .aid-text-title { color: var(--color-primary); }
.aid-text-meta { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 详情（居中）===== */
.aid-article { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.aid-article-head { text-align: center; margin-bottom: 20px; }
.aid-article-cat { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary); font-size: 13px; margin-bottom: 12px; }
.aid-article-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.aid-article-meta { margin-top: 10px; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--color-text-muted); }
.aid-article-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 auto 18px; }
.aid-article-content { max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: #374151; word-break: break-word; }
.aid-article-content h2 { font-size: 21px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--color-primary); }
.aid-article-content h3 { font-size: 18px; margin: 20px 0 10px; }
.aid-article-content p { margin: 12px 0; }
.aid-article-content img { display: block; margin: 16px auto; border-radius: var(--radius-sm); }
.aid-article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.aid-nav-item { flex: 1; min-width: 0; display: block; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.aid-nav-item:hover { border-color: var(--color-primary); }
.aid-nav-next { text-align: right; }
.aid-nav-label { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.aid-nav-title { display: block; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-nav-spacer { flex: 1; min-width: 0; }
.aid-related { margin-top: 24px; }
.aid-newlist { display: flex; flex-direction: column; }
.aid-new-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--color-border); }
.aid-new-item:last-child { border-bottom: none; }
.aid-new-title { flex: 1; min-width: 0; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-new-item:hover .aid-new-title { color: var(--color-primary); }
.aid-new-date { flex-shrink: 0; font-size: 12px; color: var(--color-text-light); }

/* ===== 侧边栏 ===== */
.aid-widget { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.aid-widget-head { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.aid-widget-title { font-size: 15px; font-weight: 700; padding-left: 10px; border-left: 3px solid var(--color-primary); line-height: 1.2; }
.aid-widget-title .fa { margin-right: 6px; color: var(--color-primary); }
.aid-widget-body { padding: 10px 16px; }
.aid-navlist li a { display: block; padding: 8px 4px; color: var(--color-text-dark); font-size: 14px; border-bottom: 1px solid #f5f5f4; }
.aid-navlist li a:hover { color: var(--color-primary); }
.aid-navlist li.active a { color: var(--color-primary); font-weight: 600; }
.aid-nav-divider { height: 1px; background: var(--color-border); margin: 6px 0; }
.aid-nav-sub a { padding-left: 20px; font-size: 13px; color: var(--color-text-muted); }
.aid-rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.aid-rank-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--radius-sm); background: #f5f5f4; color: var(--color-text-muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.aid-rank-num.top { background: var(--color-primary); color: #fff; }
.aid-rank-content { flex: 1; min-width: 0; }
.aid-rank-title { display: block; color: var(--color-text-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-rank-item:hover .aid-rank-title { color: var(--color-primary); }

/* ===== 图片列表 ===== */
.aid-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aid-img-card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.aid-img-cover { display: block; position: relative; padding-top: 75%; background: #f5f5f4; overflow: hidden; }
.aid-img-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aid-img-body { padding: 8px 10px; }
.aid-img-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aid-img-view { font-size: 12px; color: var(--color-text-light); }

/* ===== 单页/留言 ===== */
.aid-single-content { font-size: 15px; line-height: 1.9; color: #374151; }
.aid-subnav { margin-bottom: 16px; }
.aid-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.aid-subnav li a { display: inline-block; padding: 6px 14px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 13px; color: var(--color-text-muted); }
.aid-subnav li.active a { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.aid-contact-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.aid-contact-form h3 { font-size: 17px; margin-bottom: 14px; }
.aid-contact-form .form-row { display: flex; gap: 14px; }
.aid-contact-form label { display: flex; flex-direction: column; font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }
.aid-contact-form label span { margin-bottom: 4px; }
.aid-contact-form .inp { width: 100%; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; }
.aid-contact-form textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.aid-contact-form .msgbtn-box { display: flex; gap: 10px; }
.aid-contact-form .btn-contact { padding: 10px 30px; border: none; border-radius: 999px; background: var(--color-primary); color: #fff; cursor: pointer; }
.aid-contact-form .btn-contact-reset { padding: 10px 26px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-text-muted); cursor: pointer; }
.aid-price { color: var(--color-primary-dark); font-weight: 700; }

/* ===== 页脚 ===== */
.aid-foot { background: #1c1204; color: #a8a29e; padding: 34px 0 0; margin-top: 20px; }
.aid-foot-cols { padding-bottom: 20px; }
.aid-col { padding: 0 15px; }
.aid-col .aid-logo-text { color: #fff; font-size: 17px; font-weight: 700; }
.aid-col p { margin: 10px 0 0; font-size: 13px; line-height: 1.8; }
.aid-col h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.aid-foot-nav li a { color: #a8a29e; font-size: 13px; line-height: 2; }
.aid-foot-nav li a:hover { color: #fff; }
.aid-foot-tags a { display: inline-block; margin: 0 12px 8px 0; color: #a8a29e; font-size: 13px; }
.aid-foot-tags a:hover { color: #fff; }
.aid-copy { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; text-align: center; font-size: 13px; }
.aid-copy a { color: #a8a29e; }
.aid-copy a:hover { color: #fff; }

/* ===== 分页 ===== */
.pagination-box { text-align: center; margin-top: 24px; }
.pagination { display: inline-flex; gap: 6px; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text-dark); border-radius: var(--radius-sm); font-size: 14px; }
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active a, .pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== 返回顶部 ===== */
#floatbtn { position: fixed; right: 22px; bottom: 30px; z-index: 900; }
#back-to-top { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; line-height: 1; padding: 0; border: none; border-radius: var(--radius-md); background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
#back-to-top i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
#back-to-top:hover { background: var(--color-primary-dark); }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .aid-main { width: 100%; padding-right: 0; float: none; }
    .aid-aside { width: 100%; float: none; }
    .aid-img-grid { grid-template-columns: repeat(2, 1fr); }
    .aid-banner, .aid-banner .swiper-slide a { height: 260px; }
}
@media (max-width: 767px) {
    body.theme1277-page { font-size: 14px; }
    .aid-nav .container { flex-wrap: wrap; }
    .aid-nav .navbar-header { width: 100%; }
    .aid-collapse { width: 100%; overflow-x: auto; }
    .aid-nav .aid-menu > li > a { padding: 12px 10px; font-size: 14px; }
    .aid-banner, .aid-banner .swiper-slide a { height: 200px; }
    .aid-banner-fallback { font-size: 18px; }
    .aid-body { padding: 18px 12px 30px; }
    .aid-crumb { padding: 12px 14px; }
    .aid-block { padding: 16px 14px; }
    .aid-img-grid { grid-template-columns: 1fr; }
    .aid-hrow { flex-direction: column; gap: 10px; }
    .aid-hcover { flex: none; height: 160px; }
    .aid-hmeta { margin-top: 8px; }
    .aid-article { padding: 18px 16px; }
    .aid-article-title { font-size: 21px; }
    .aid-article-meta { flex-wrap: wrap; gap: 10px; }
    .aid-feed a { align-items: flex-start; flex-direction: column; gap: 2px; }
    .aid-text-item { align-items: flex-start; flex-direction: column; gap: 4px; }
    .aid-text-meta { align-self: flex-end; }
    .aid-contact-form .form-row { flex-direction: column; gap: 0; }
}
