/* 创恩网站增强 szcntop 基础样式（可自行覆盖） */

/* 满宽出血区块（如首页案例区）需要：隐藏 100vw 带来的横向滚动条 */
html { overflow-x: hidden; }

/* 顶部联系条 */
.sz-top-bar { background: #1e4fa3; color: #fff; font-size: 13px; }
.sz-top-bar__inner { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.sz-top-bar a { color: #fff; text-decoration: none; }
.sz-top-bar a:hover { color: #f97316; }

/* 底部：备案号 / 友情链接 / 关键词 */
.sz-icp { text-align: center; padding: 8px 0; font-size: 12px; color: #888; }
.sz-friend-links { max-width: 1200px; margin: 0 auto; padding: 10px 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sz-friend-links .sz-fl-label { color: #666; }
.sz-friend-links .sz-fl-item { color: #1e4fa3; text-decoration: none; }
.sz-friend-links .sz-fl-item:hover { color: #f97316; }
.sz-friend-links .sz-fl-item--logo img { height: 24px; vertical-align: middle; border-radius: 3px; }
.sz-seo-keywords { max-width: 1200px; margin: 0 auto; padding: 8px 16px; font-size: 12px; color: #666; }
.sz-seo-keywords__item { color: #1e4fa3; text-decoration: none; margin-right: 8px; }
.sz-seo-keywords__item:hover { color: #f97316; }

/* 案例分类归档页头（标题 + 分类描述） */
.sz-archive-head {
    text-align: center;
    margin: 8px 0 6px;
}
.sz-archive-title {
    font-size: 30px;
    font-weight: 700;
    color: #1e3050;
    margin: 0 0 10px;
    position: relative;
    padding-bottom: 14px;
}
.sz-archive-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: #f97316;
    border-radius: 2px;
    margin: 14px auto 0;
}
.sz-archive-desc {
    max-width: 760px;
    margin: 0 auto;
    color: #667;
    font-size: 15px;
    line-height: 1.7;
}

/* 案例网格（图片 + 描述卡片；列数由后台"显示设置"通过 --sz-cols 控制） */
.sz-cases-loop {
    display: grid;
    grid-template-columns: repeat(var(--sz-cols, 4), 1fr);
    gap: 22px;
    margin: 28px 0;
}
/* —— 卡片：复刻 /blog/ 丝滑观感（大圆角 + 慢速平滑缩放 + 柔和浮起大阴影 + 主题色点缀）—— */
.sz-case-card {
    border: 2px solid rgba(189,189,189,0.28);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform .45s cubic-bezier(.2,.7,.2,1),
                box-shadow .45s cubic-bezier(.2,.7,.2,1),
                border-color .35s ease;
    display: flex;
    flex-direction: column;
}
.sz-case-card:hover,
.sz-case-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 1.2rem 6rem rgba(0,0,0,0.12);   /* 同 blog：大范围柔和浮起 */
    border-color: transparent;
}
/* 图片区（含 hover 蒙层） */
.sz-case-card__img {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f4f6fb;
    aspect-ratio: 4 / 3;
}
.sz-case-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;  /* 慢速丝滑缩放 */
    will-change: transform;
}
.sz-case-card:hover .sz-case-card__img img,
.sz-case-card:focus-within .sz-case-card__img img { transform: scale(1.08); }
.sz-case-card__ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #9fb0cc; font-size: 15px; letter-spacing: 2px;
}
.sz-case-card__mask {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(20,30,50,0.82), rgba(20,30,50,0));
    color: #fff; font-size: 13px; padding: 30px 16px 14px;
    opacity: 0; transform: translateY(10px);
    transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
    letter-spacing: .5px;
}
.sz-case-card:hover .sz-case-card__mask,
.sz-case-card:focus-within .sz-case-card__mask { opacity: 1; transform: translateY(0); }
/* 文字区 */
.sz-case-card__body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.sz-case-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; transition: color .3s ease; }
.sz-case-card__title a { color: #1e2a45; text-decoration: none; transition: color .3s ease; }
.sz-case-card:hover .sz-case-card__title a,
.sz-case-card__title a:hover { color: var(--dt-main-color, #f97316); }
.sz-case-card__desc {
    margin: 0; color: #6a7385; font-size: 13px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 分页 */
.sz-cases-pagination { margin: 24px 0; text-align: center; }
.sz-cases-pagination .sz-page { display: inline-block; min-width: 34px; padding: 7px 11px; margin: 0 4px; border: 1px solid #ddd; border-radius: 5px; color: #1e4fa3; text-decoration: none; }
.sz-cases-pagination .sz-page:hover { border-color: #1e4fa3; }
.sz-cases-pagination .sz-page.is-current { background: #1e4fa3; color: #fff; border-color: #1e4fa3; }
.sz-cases-empty { color: #999; padding: 30px 0; text-align: center; }
/* 详情页：像"页面"一样自由排版（全宽模板下正文居中、块编辑器 宽/全宽 对齐可突破） */
.sz-case-back,
.sz-case-cats { max-width: 1280px; margin-left: auto; margin-right: auto; }
.sz-case-back { margin-top: 16px; margin-bottom: 8px; }
.sz-case-back a { color: #1e4fa3; text-decoration: none; }
.sz-case-back a:hover { color: #f97316; }
.sz-case-cats { color: #f97316; font-size: 14px; margin-bottom: 16px; }
/* 正文容器：自适应全宽，并设最大限度尺寸（超大屏不超此宽，居中阅读舒适） */
.sz-case-body { max-width: 1280px; margin: 0 auto 40px; }
.sz-case-body > * { max-width: 100%; margin-left: auto; margin-right: auto; }
.sz-case-body > .alignwide { max-width: 100%; }
.sz-case-body > .alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* 图片特效：圆角 + 柔和阴影 + 悬停放大（案例详情内上传的每张图） */
.sz-case-body .wp-block-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0.6rem 1.8rem rgba(0,0,0,.10);
    transition: box-shadow .55s cubic-bezier(.2,.7,.2,1);
}
.sz-case-body .wp-block-image img {
    display: block;
    width: 100% !important;   /* 强制撑满容器，覆盖古腾堡手动设宽的内联 style，保证大小图显示尺寸一致规整 */
    height: auto !important;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.sz-case-body .wp-block-image:hover {
    box-shadow: 0 1.4rem 4rem rgba(0,0,0,.18);
}
.sz-case-body .wp-block-image:hover img {
    transform: scale(1.045);
}
.sz-case-body img { width: 100% !important; height: auto !important; max-width: 100%; }
/* 创恩案例展示模板：正文与自动注入的案例网格之间留间距 */
.sz-cases-tplwrap { margin-top: 12px; }

/* 响应式：中屏 2 列、手机 1 列（覆盖 --sz-cols） */
@media (max-width: 900px) { .sz-cases-loop { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .sz-cases-loop { grid-template-columns: 1fr !important; } }

/* ============================ 联系我们页面 [sz_contact] ============================ */
.sz-contact { --sz-blue:#1e4fa3; --sz-blue-d:#16326b; --sz-orange:#f97316; }

/* Hero */
.sz-contact-hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(120deg, #16326b 0%, #1e4fa3 55%, #2a63c4 100%);
    padding: 54px 30px 58px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(22,50,107,0.22);
}
.sz-contact-hero::after {
    content: "";
    position: absolute; right: -60px; top: -60px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle at center, rgba(249,115,22,0.28), rgba(249,115,22,0) 70%);
}
.sz-contact-hero__inner { position: relative; z-index: 1; }
.sz-contact-hero__eyebrow { margin: 0 0 8px; color: #ffd7b8; letter-spacing: 4px; font-size: 13px; font-weight: 600; }
.sz-contact-hero__title { margin: 0 0 14px; color: #fff; font-size: 38px; font-weight: 800; letter-spacing: 2px; }
.sz-contact-hero__title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--sz-orange); border-radius: 3px; margin: 16px auto 0; }
.sz-contact-hero__sub { margin: 18px auto 0; max-width: 640px; color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.8; }

/* 信息卡片 */
.sz-contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 34px 0;
}
.sz-contact-card {
    background: #fff;
    border: 1px solid rgba(30,79,163,0.1);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(20,40,90,0.05);
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
}
.sz-contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(20,40,90,0.13);
    border-color: transparent;
}
.sz-contact-card__icon {
    width: 58px; height: 58px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--sz-blue) 0%, #2a63c4 100%);
    box-shadow: 0 8px 20px rgba(30,79,163,0.3);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.sz-contact-card:hover .sz-contact-card__icon { transform: scale(1.08) rotate(-4deg); }
.sz-contact-card__label { color: #98a2b6; font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.sz-contact-card__value { color: #1e2a45; font-size: 15px; line-height: 1.6; font-weight: 500; word-break: break-all; }
.sz-contact-card__value a { color: #1e2a45; text-decoration: none; transition: color .3s ease; }
.sz-contact-card:hover .sz-contact-card__value a { color: var(--sz-orange); }

/* 地图 */
.sz-contact-map-wrap { margin: 10px 0 8px; }
.sz-contact-map-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sz-contact-map-title { margin: 0; font-size: 24px; font-weight: 700; color: #1e2a45; position: relative; padding-left: 16px; }
.sz-contact-map-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 24px; border-radius: 3px; background: var(--sz-orange); }
.sz-contact-nav-btn {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, var(--sz-orange) 0%, #ff9a3d 100%);
    color: #fff; text-decoration: none;
    padding: 10px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 20px rgba(249,115,22,0.3);
    transition: transform .3s ease, box-shadow .3s ease;
}
.sz-contact-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(249,115,22,0.42); color: #fff; }
.sz-contact-map {
    width: 100%; height: 420px;
    border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(30,79,163,0.12);
    box-shadow: 0 10px 36px rgba(20,40,90,0.1);
    background: #eef2f8;
}
/* 静态降级卡片 */
.sz-contact-map--static { display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; transition: box-shadow .4s ease; background: linear-gradient(135deg,#f4f7fc 0%, #e8eef8 100%); }
.sz-contact-map--static:hover { box-shadow: 0 18px 50px rgba(20,40,90,0.16); }
.sz-contact-map-ph { text-align: center; color: #1e4fa3; padding: 20px; }
.sz-contact-map-ph__title { font-size: 20px; font-weight: 700; color: #1e2a45; margin-top: 14px; }
.sz-contact-map-ph__addr { font-size: 14px; color: #5a6a86; margin-top: 8px; }
.sz-contact-map-ph__hint { display: inline-block; margin-top: 16px; font-size: 13px; color: #fff; background: var(--sz-blue); padding: 7px 18px; border-radius: 20px; }

/* 响应式 */
@media (max-width: 900px) {
    .sz-contact-cards { grid-template-columns: repeat(2, 1fr); }
    .sz-contact-hero__title { font-size: 30px; }
    .sz-contact-map { height: 340px; }
}
@media (max-width: 480px) {
    .sz-contact-cards { grid-template-columns: 1fr; }
    .sz-contact-hero { padding: 40px 20px 44px; }
    .sz-contact-map { height: 280px; }
}

/* ============================ 首页案例分区（Blog & News 下方，按分类分行） ============================ */
.sz-home-cases {
    background: #f6f8fc;
    padding: 54px 0 60px;
    margin-top: 30px;
    /* 满宽出血：无论外层容器多窄，都能撑到视口宽度，内部再居中到 1280 */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.sz-home-cases__inner { max-width: 1800px; margin: 0 auto; padding: 0 24px; }
.sz-home-cases__head { text-align: center; margin-bottom: 32px; }
.sz-home-cases__title {
    font-size: 32px; font-weight: 800; color: #1e2a45; margin: 0; position: relative; padding-bottom: 14px;
}
.sz-home-cases__title::after {
    content: ""; display: block; width: 60px; height: 4px; border-radius: 3px;
    background: #f97316; margin: 14px auto 0;
}
.sz-home-cat { margin-bottom: 44px; }
.sz-home-cat:last-child { margin-bottom: 0; }
.sz-home-cat__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid rgba(30,79,163,0.12);
}
.sz-home-cat__title { margin: 0; font-size: 22px; font-weight: 700; color: #1e2a45; }
.sz-home-cat__title a { color: inherit; text-decoration: none; transition: color .3s ease; }
.sz-home-cat__title a:hover { color: #f97316; }
.sz-home-cat__more { font-size: 14px; color: #1e4fa3; text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.sz-home-cat__more:hover { color: #f97316; }
.sz-home-cat__grid {
    display: grid;
    grid-template-columns: repeat(var(--sz-hcols, 4), 1fr);
    gap: 22px;
}
/* 复用案例卡片丝滑观感（与 .sz-case-card 一致） */
.sz-home-card {
    border: 2px solid rgba(189,189,189,0.28);
    border-radius: 20px; overflow: hidden; background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), border-color .35s ease;
    display: flex; flex-direction: column;
}
.sz-home-card:hover, .sz-home-card:focus-within {
    transform: translateY(-8px); box-shadow: 0 1.2rem 6rem rgba(0,0,0,0.12); border-color: transparent;
}
.sz-home-card__img { display: block; position: relative; overflow: hidden; background: #f4f6fb; aspect-ratio: 4 / 3; }
.sz-home-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; will-change: transform; }
.sz-home-card:hover .sz-home-card__img img, .sz-home-card:focus-within .sz-home-card__img img { transform: scale(1.08); }
.sz-home-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9fb0cc; font-size: 15px; letter-spacing: 2px; }
.sz-home-card__mask {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(20,30,50,0.82), rgba(20,30,50,0));
    color: #fff; font-size: 13px; padding: 30px 16px 14px;
    opacity: 0; transform: translateY(10px);
    transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1); letter-spacing: .5px;
}
.sz-home-card:hover .sz-home-card__mask, .sz-home-card:focus-within .sz-home-card__mask { opacity: 1; transform: translateY(0); }
.sz-home-card__body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.sz-home-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; font-weight: 600; transition: color .3s ease; }
.sz-home-card__title a { color: #1e2a45; text-decoration: none; transition: color .3s ease; }
.sz-home-card:hover .sz-home-card__title a, .sz-home-card__title a:hover { color: #f97316; }
.sz-home-card__desc {
    margin: 0; color: #6a7385; font-size: 13px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) { .sz-home-cat__grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ============================ 文章关键词自动内链 ============================ */
.szcn-kw-link {
    color: #f97316;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color .2s ease;
}
.szcn-kw-link:hover { color: #ea580c; }

/* ============================ 彻底关闭评论 ============================ */
/* 功能已在 modules/disable-comments.php 关闭；此处隐藏主题遗留的空 .comments-area 容器，避免底部留白 */
.comments-area { display: none !important; }
@media (max-width: 480px) {
    .sz-home-cat__grid { grid-template-columns: 1fr !important; }
    .sz-home-cases { padding: 40px 0 48px; }
    .sz-home-cases__title { font-size: 26px; }
}
