/* ============================================================
   Mirage Cards — 高端卡片版式
   布局性改动：杂志式 Hero 卡 / 分类卡片栅格 / 双列卡片流
   ============================================================ */

:root {
    --mc-navy: #14213d;
    --mc-navy-2: #1d2d50;
    --mc-gold: #ca9a3f;
    --mc-gold-light: #f0e2c8;
    --mc-cream: #f6f4ef;
    --mc-ink: #262626;
    --mc-grey: #6b6b6b;
    --mc-line: #e6e1d8;
}

{
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--mc-cream);
}

/* ---------- 覆盖父主题 .main-container 的 flex 布局 ---------- */
.mc-hero,
.mc-section,
.mc-latest {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
}

/* ---------- 头部：深蓝金条（Mirage 真实头部元素：.header.pc/.header.mobile > .header-nav） ---------- */
.header.pc,
.header.mobile {
    background: var(--mc-navy) !important;
    border-bottom: 2px solid var(--mc-gold);
    box-shadow: 0 2px 10px rgba(20, 33, 61, 0.25);
}
.header .header-nav .logo,
.header .header-nav .logo a,
.header .site-title a {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 1px;
}
.header .header-nav .nav-menu li a,
.header .header-nav .main-menu li a,
.header .header-nav .menu li a,
.header .header-nav .pc-nav li a,
.header .header-nav .pc-nav li span {
    color: #e8e8e8 !important;
    font-weight: 500;
}
.header .header-nav .nav-menu li a:hover,
.header .header-nav .main-menu li a:hover,
.header .header-nav .menu li a:hover,
.header .header-nav .pc-nav li a:hover,
.header .header-nav .pc-nav li.current-menu-item a,
.header .header-nav .pc-nav li a:hover span {
    color: var(--mc-gold) !important;
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--mc-gold);
}

/* ---------- Hero 杂志卡 ---------- */
.mc-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    height: 500px;   /* 固定总高：主图不再被两侧卡撑到 700px（原图仅 600×400，撑大就糊） */
}
.mc-hero-main {
    grid-row: 1 / 3;
    min-height: 0;
}
.mc-hero-link {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(20, 33, 61, 0.18);
    text-decoration: none;
}
.mc-hero-media {
    position: absolute;
    inset: 0;
    background: #ddd;
}
.mc-hero-media img,
.mc-hero-media .mc-noimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.mc-hero-link:hover .mc-hero-media img { transform: scale(1.04); }
.mc-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 26px 28px;
    background: linear-gradient(180deg, rgba(20, 33, 61, 0) 35%, rgba(20, 33, 61, 0.88) 100%);
}
.mc-hero-title {
    margin: 10px 0 10px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 27px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}
.mc-hero-link:hover .mc-hero-title { color: var(--mc-gold-light); }
.mc-hero-excerpt {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-hero-overlay .mc-date { color: rgba(255, 255, 255, 0.6); }

.mc-hero-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 33, 61, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.mc-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(20, 33, 61, 0.14);
}
.mc-hero-card-img {
    display: block;
    flex: 0 0 116px;
    height: 116px;
    overflow: hidden;
    background: #eee;
}
.mc-hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mc-hero-card-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 9px 14px 10px;
}
.mc-hero-card-title {
    margin: 5px 0 4px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-hero-card .mc-date { font-size: 12px; }
.mc-hero-card-title a { color: var(--mc-ink); text-decoration: none; }
.mc-hero-card-title a:hover { color: var(--mc-gold); }

/* ---------- 通用组件 ---------- */
.mc-chip {
    display: inline-block;
    background: var(--mc-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.mc-chip-gold { background: var(--mc-gold); color: var(--mc-navy); }
.mc-date { color: #a9a290; font-size: 12.5px; }

.mc-noimg {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: linear-gradient(135deg, #2c3e50, #4a6079);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-noimg span {
    font-size: 54px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    font-family: Georgia, serif;
}

/* ---------- 分类板块 ---------- */
.mc-section {
    margin-top: 26px;
}
.mc-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mc-line);
}
.mc-sec-title {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--mc-navy);
}
.mc-sec-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--mc-gold);
    margin-top: 7px;
    border-radius: 2px;
}
.mc-more {
    color: var(--mc-grey);
    font-size: 13.5px;
    text-decoration: none;
}
.mc-more:hover { color: var(--mc-gold); }
.mc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.mc-grid-2 { grid-template-columns: repeat(2, 1fr); }

.mc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 33, 61, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.mc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.13);
}
.mc-card-img {
    display: block;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: #eee;
}
.mc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}
.mc-card:hover .mc-card-img img { transform: scale(1.05); }
.mc-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.mc-card-body .mc-chip { margin-bottom: 10px; }
.mc-card-title {
    margin: 0 0 9px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.5;
}
.mc-card-title a { color: var(--mc-ink); text-decoration: none; }
.mc-card-title a:hover { color: var(--mc-gold); }
.mc-card-excerpt {
    margin: 0 0 12px;
    color: var(--mc-grey);
    font-size: 13.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-card-body .mc-date { margin-top: auto; }

/* ---------- 最新发布 ---------- */
.mc-latest { margin-top: 26px; margin-bottom: 10px; }

.mc-empty {
    text-align: center;
    color: #a9a290;
    padding: 50px 0;
    font-size: 15px;
}

/* ---------- 分页 ---------- */
.mc-pagination { margin-top: 20px; text-align: center; }
.mc-pagination .page-numbers {
    display: inline-block;
    min-width: 36px;
    padding: 8px 13px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid var(--mc-line);
    color: var(--mc-ink);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}
.mc-pagination .page-numbers.current,
.mc-pagination .page-numbers:hover {
    background: var(--mc-navy);
    border-color: var(--mc-navy);
    color: var(--mc-gold);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .mc-hero { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .mc-hero-main { grid-row: auto; }
    .mc-hero-link { min-height: 320px; }
    .mc-hero-card-img { flex: 0 0 180px; height: 180px; }
    .mc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .mc-grid, .mc-grid-2 { grid-template-columns: 1fr; }
    .mc-hero-title { font-size: 22px; }
}

/* ============================================================
   高端卡片文章页（single.php）
   ============================================================ */
.mc-article {
    display: block;
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 12px;
    margin-top: 22px;
}
.mc-post {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(20, 33, 61, 0.08);
    padding: 0 0 30px;
}
/* 深蓝封面头版：杂志质感（本主题独有） */
.mc-post-cover {
    background:
        radial-gradient(120% 140% at 88% -10%, rgba(202, 154, 63, 0.30) 0%, rgba(202, 154, 63, 0) 55%),
        linear-gradient(135deg, #14213d 0%, #1d2f52 100%);
    padding: 36px 40px 30px;
    margin-bottom: 26px;
}
.mc-post-cover .mc-chip { margin-bottom: 14px; }
.mc-post-head { margin-bottom: 22px; }
.mc-post-head .mc-chip { margin-bottom: 14px; }
.mc-post-title {
    margin: 0 0 14px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}
.mc-post-cover .mc-post-meta {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
}
.mc-post-cover .mc-meta-sep { color: rgba(255, 255, 255, 0.32); }
.mc-post-thumb,
.mc-post-content,
.mc-post-foot { margin-left: 40px; margin-right: 40px; }
/* 首段首字下沉：杂志排版标识 */
.mc-post-content > p:first-of-type::first-letter {
    float: left;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 46px;
    line-height: 1;
    padding: 4px 10px 0 0;
    color: var(--mc-gold);
    font-weight: 700;
}
.mc-post-title { color: #fff; }
.mc-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a9a290;
    font-size: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mc-line);
    margin-bottom: 24px;
}
.mc-meta-sep { color: #d5d0c5; }
.mc-post-thumb {
    margin: 0 0 26px;
    border-radius: 10px;
    overflow: hidden;
}
.mc-post-thumb img { width: 100%; height: auto; display: block; }
.mc-post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #3a3a3a;
}
.mc-post-content h2 {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--mc-ink);
    margin: 32px 0 13px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--mc-gold-light);
    line-height: 1.4;
}
.mc-post-content h3 { font-size: 17.5px; font-weight: 700; margin: 25px 0 11px; color: var(--mc-ink); }
.mc-post-content p { margin: 0 0 16px; }
.mc-post-content ul, .mc-post-content ol { margin: 0 0 16px; padding-left: 24px; }
.mc-post-content li { margin-bottom: 7px; line-height: 1.8; }
.mc-post-content a { color: var(--mc-gold); }
.mc-post-content a:hover { text-decoration: underline; }
.mc-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.mc-post-content blockquote {
    margin: 18px 0;
    padding: 13px 19px;
    background: var(--mc-cream);
    border-left: 3px solid var(--mc-gold);
    border-radius: 0 10px 10px 0;
    color: #7a6a4f;
}
.mc-post-foot {
    margin-top: 30px;
    padding-top: 17px;
    border-top: 1px solid var(--mc-line);
}
.mc-foot-cat { color: var(--mc-gold); font-size: 14px; text-decoration: none; font-weight: 600; }
.mc-foot-cat:hover { text-decoration: underline; }
.mc-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}
.mc-post-nav span { flex: 1; min-width: 0; }
.mc-post-nav a {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(20, 33, 61, 0.07);
    padding: 14px 17px;
    color: var(--mc-ink);
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-post-nav a:hover { color: var(--mc-gold); box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12); }
.mc-post-nav .mc-nav-next { text-align: right; }
@media (max-width: 640px) {
    .mc-post { padding: 24px 19px; }
    .mc-post-title { font-size: 23px; }
    .mc-post-nav a { white-space: normal; }
}

/* 全局图片安全：用户插入的固定宽度图片不得撑破移动端 */
.na-content img, .kb-post-content img, .mc-post-content img, .wi-entry-content img,
.news-article img, .kb-article img, .mc-article img, .wi-article img {
    max-width: 100%;
    height: auto;
}
