/* =========================================================
   品牌芝士 - 自定义样式表 custom.css
   前缀：m-
   颜色严格对照设计图
   ========================================================= */

* { box-sizing: border-box; }
body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; margin: 0; color: #333; background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #00A8E8; text-decoration: none; }
img { max-width: 100%; display: block; }

.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================================
   Header - 黑色导航
   ========================================================= */
.m-header { background: #000; color: #fff; }
.m-header-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.m-logo { display: inline-flex; align-items: center; color: #fff; font-weight: 600; }
.m-logo:hover { color: #fff; }
.m-logo-icon {
    display: inline-block; width: 28px; height: 22px;
    background: #FFD400; border-radius: 3px;
    position: relative; margin-right: 8px;
}
.m-logo-icon::before {
    content: ""; position: absolute; left: 5px; top: 4px;
    width: 10px; height: 6px; border-top: 2px solid #000; border-right: 2px solid #000;
    border-radius: 0 50% 0 0;
}
.m-logo-icon::after {
    content: ""; position: absolute; left: 5px; bottom: 4px;
    width: 10px; height: 6px; border-bottom: 2px solid #000; border-left: 2px solid #000;
    border-radius: 50% 0 0 0;
}
.m-logo-text { font-size: 16px; }

.m-nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.m-nav li { margin-left: 28px; }
.m-nav li:first-child { margin-left: 0; }
.m-nav a { color: #fff; font-size: 14px; position: relative; padding-bottom: 2px; }
.m-nav li.active a { color: #fff; border-bottom: 1px solid #FFD400; }
.m-nav a:hover { color: #FFD400; }
.m-nav-search a { font-size: 14px; }
.m-nav-search a i { color: #fff; font-size: 13px; }

/* =========================================================
   Feature - 特色文章（1大+2小）
   ========================================================= */
.m-feature { padding: 25px 0 0 0; }
.m-feature .row { margin-left: -6px; margin-right: -6px; }
.m-feature .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.m-feature-main { position: relative; height: 420px; border-radius: 2px; overflow: hidden; }
.m-feature-sub { position: relative; height: 205px; border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.m-feature-sub-bottom { margin-bottom: 0; margin-top: 10px; }
.m-feature-link { display: block; position: relative; width: 100%; height: 100%; color: #fff; }
.m-feature-img {
    width: 100%; height: 100%;
    background-size: cover; background-position: center; background-color: #222;
    transition: transform .5s ease;
}
.m-feature-link:hover .m-feature-img { transform: scale(1.03); }

.m-feature-overlay { position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.75) 100%);
}

.m-feature-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px; }
.m-feature-caption h3 { color: #fff; font-size: 20px; font-weight: 500; margin: 0; line-height: 1.4; max-width: 92%; }

.m-feature-caption-sm { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.65) 100%);
}
.m-feature-caption-sm p { color: #fff; font-size: 12px; margin: 0; line-height: 1.4; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================
   文章卡片网格 - 最新文章 / 深度
   ========================================================= */
.m-grid { padding: 40px 0 50px 0; background: #fff; }
.m-grid .row { margin-left: -10px; margin-right: -10px; }
.m-grid .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
.m-grid .m-card { margin-bottom: 20px; }
.m-grid-white { background: #fff; }
.m-grid-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 25px;
}
.m-grid-title { font-size: 16px; font-weight: 600; color: #222; }
.m-grid-more { font-size: 12px; color: #888; }
.m-grid-more:hover { color: #00A8E8; }
.m-grid-more i { font-size: 10px; margin-left: 3px; }

.m-grid-header-dark { border-bottom-color: #2a2a2a; }
.m-grid-header-dark .m-grid-title { color: #fff; }
.m-grid-header-dark .m-grid-more { color: #ccc; }
.m-grid-header-dark .m-grid-more:hover { color: #FFD400; }

/* 卡片 */
.m-card { display: block; margin-bottom: 30px; }
.m-card-img {
    width: 100%; height: 190px;
    background-size: cover; background-position: center;
    background-color: #eee; border-radius: 2px; overflow: hidden;
    transition: opacity .2s;
}
.m-card:hover .m-card-img { opacity: .9; }
.m-card-body { padding: 12px 0 8px 0; }
.m-card-body h4 {
    font-size: 16px; font-weight: 600; color: #222; line-height: 1.5;
    margin: 0; min-height: 48px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.m-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.m-card-cat { color: #00A8E8; font-weight: 500; }
.m-card-date { color: #999; }
.m-card:hover .m-card-body h4 { color: #00A8E8; }

/* 更多按钮 */
.m-grid-more-wrap { margin-top: 10px; padding-top: 10px; }
.m-btn-more {
    display: inline-block; padding: 8px 30px; font-size: 13px; color: #444;
    border: 1px solid #ddd; border-radius: 2px; background: #fff;
}
.m-btn-more:hover { border-color: #00A8E8; color: #00A8E8; }

/* =========================================================
   案例 - 黑色背景轮播
   ========================================================= */
.m-case {
    background: #000; color: #fff; padding: 50px 0 50px 0; position: relative; overflow: hidden;
}
.m-case::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(120deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(60deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
    opacity: .6;
}
.m-case > .container { position: relative; z-index: 1; }

.m-case-slider-wrap { position: relative; padding: 0 50px; }
.m-case-arrow {
    position: absolute; top: 42%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all .2s; z-index: 2;
}
.m-case-arrow:hover { background: rgba(255,212,0,0.15); color: #FFD400; }
.m-case-arrow-prev { left: 0; }
.m-case-arrow-next { right: 0; }

.m-case-item { display: block; color: #fff; }
.m-case-img {
    width: 100%; height: 300px;
    background-size: cover; background-position: center;
    background-color: #222; border-radius: 2px; overflow: hidden;
    transition: opacity .2s;
}
.m-case-item:hover .m-case-img { opacity: .88; }
.m-case-caption { padding: 14px 0 10px 0; }
.m-case-caption h5 {
    font-size: 14px; font-weight: 500; color: #fff; line-height: 1.55;
    margin: 0; min-height: 44px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.m-case-item:hover .m-case-caption h5 { color: #FFD400; }

.m-card-meta-dark .m-card-cat { color: #fff; }
.m-card-meta-dark .m-card-date { color: #999; }

.m-case-dots {
    display: flex; justify-content: center; align-items: center;
    margin-top: 30px; gap: 8px;
}
.m-case-dots span {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #333; cursor: pointer; transition: all .2s;
}
.m-case-dots span.active {
    background: #FFD400; width: 24px; border-radius: 4px;
}

/* =========================================================
   Footer - 页脚
   ========================================================= */
.m-footer { background: #000; color: #fff; padding-top: 30px; }
.m-footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 0 20px 0; flex-wrap: wrap; }
.m-footer-links { display: flex; align-items: center; font-size: 13px; }
.m-footer-links a { color: #ccc; margin: 0 12px; }
.m-footer-links a:hover { color: #FFD400; }
.m-footer-social { display: flex; align-items: center; }
.m-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #1a1a1a; color: #ccc; margin-left: 6px; font-size: 14px;
    transition: all .2s;
}
.m-footer-social a:hover { background: #FFD400; color: #000; }

.m-footer-copy {
    border-top: 1px solid #1a1a1a; padding: 15px 0;
    text-align: center; font-size: 12px; color: #666;
}
.m-footer-copy p { margin: 0; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 992px) {
    .m-feature-main { height: 340px; }
    .m-feature-sub { height: 165px; }
    .m-feature-caption h3 { font-size: 18px; }
    .m-case-img { height: 220px; }
    .m-card-img { height: 170px; }
}

@media (max-width: 768px) {
    .m-header-inner { height: 48px; }
    .m-logo-text { font-size: 15px; }
    .m-nav li { margin-left: 14px; }
    .m-nav a { font-size: 13px; }
    .m-feature-main { height: 280px; }
    .m-feature-sub { height: 135px; }
    .m-feature-caption { padding: 14px 16px; }
    .m-feature-caption h3 { font-size: 15px; }
    .m-feature-caption-sm p { font-size: 12px; }
    .m-grid { padding: 25px 0 30px 0; }
    .m-grid-title { font-size: 16px; }
    .m-card-img { height: 160px; }
    .m-card-body h4 { font-size: 13px; }
    .m-case { padding: 35px 0 35px 0; }
    .m-case-img { height: 180px; }
    .m-case-caption h5 { font-size: 13px; }
    .m-case-slider-wrap { padding: 0 20px; }
    .m-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .m-footer-links { flex-wrap: wrap; }
    .m-footer-links a { margin: 0 12px 6px 0; }
}