/* 和之时 视觉升级 v3 — 官方品牌色系（源自详情生成器） */

/* Noto 字体（中国镜像） */
@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* ═══ 官方色彩系统 ═══ */
:root {
    --rose:    #9e6b6b;   /* 品牌玫瑰主色 */
    --rose-2:  #c9a8a8;   /* 品牌玫瑰浅 */
    --rose-d:  #7a4f4f;   /* 品牌玫瑰深 */
    --gold:    #d8a15a;   /* 暖金点缀 */
    --gold-2:  #e8c088;
    --bg:      #f5f0ee;   /* 品牌米白 */
    --bg-2:    #faf5f3;
    --ink:     #2d2320;   /* 品牌暖黑 */
    --ink-dim: #7a6560;
    --serif:   'Noto Serif SC','Songti SC','STSong',serif;
    --sans:    'Noto Sans SC','PingFang SC','Microsoft YaHei',Arial,sans-serif;
}

/* ═══ 背景：换成品牌米白，去掉旧背景图 ═══ */
html {
    background: var(--bg) !important;
    background-image: none !important;
}
body.font-zh-CN {
    background: var(--bg) !important;
    background-image: none !important;
}

html { scroll-behavior: smooth; }

/* ═══ 字体全面升级 ═══ */
body {
    font-family: var(--sans) !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: var(--ink) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.025em;
}

/* ═══ 标题：Noto Serif SC ═══ */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--serif) !important;
    letter-spacing: 0.06em;
    line-height: 1.5;
    font-weight: 400;
    color: var(--ink);
}

/* ═══ 导航：磨砂玻璃 ═══ */
.top.header-v4 {
    background: rgba(245,240,238,.85) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    box-shadow: 0 1px 0 rgba(58,46,43,.08),
                0 4px 24px rgba(45,35,32,.06) !important;
    transition: background .3s, box-shadow .3s !important;
}

/* 导航链接 */
.sf-menu > li > a.first-level {
    color: var(--ink-dim) !important;
    letter-spacing: 0.04em;
    font-size: 13.5px;
    transition: color .22s ease !important;
    position: relative;
}
/* hover 下划线：玫瑰→暖金渐变 */
.sf-menu > li > a.first-level::after {
    content: "";
    position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--gold));
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.sf-menu > li:hover > a.first-level { color: var(--ink) !important; }
.sf-menu > li:hover > a.first-level::after,
.sf-menu > li.current > a.first-level::after { width: 55%; }

/* ═══ 荧光粉 → 品牌玫瑰 #9e6b6b ═══ */
.tab-more a {
    background: var(--rose) !important;
    background-image: none !important;
    border-color: var(--rose) !important;
    border-radius: 4px !important;
    letter-spacing: 0.06em;
    transition: all .28s cubic-bezier(.2,.8,.2,1) !important;
}
.tab-more a:hover {
    background: var(--rose-d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(158,107,107,.40) !important;
}

/* hover 文字 */
.category ul li a:hover,
.list-title a:hover,
.news-title a:hover,
.article-title a:hover { color: var(--rose) !important; }

/* 其余按钮 */
.btn-medium span,.btn-large span,.btn-small span,
input[type="submit"],button[type="submit"] {
    border-radius: 4px !important;
    transition: all .25s cubic-bezier(.2,.8,.2,1) !important;
}

/* ═══ 图片 hover：丝滑放大 ═══ */
.pic,.list-img,.img-box,.module-img { overflow:hidden; border-radius:6px; }
.pic img,.list-img img,.img-box img,.module-img img {
    transition: transform .55s cubic-bezier(.25,.46,.45,.94);
    display:block; width:100%;
}
.pic:hover img,.list-img:hover img,
.img-box:hover img,.module-img:hover img { transform:scale(1.06); }

/* ═══ 卡片悬浮上浮 ═══ */
.module-default {
    transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease;
}
.module-default:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(45,35,32,.10);
}

/* ═══ 链接过渡 ═══ */
a { transition: color .2s ease, opacity .2s ease; }

/* ═══ 输入框 ═══ */
input[type="text"],input[type="email"],
input[type="tel"],textarea,select {
    border-radius: 4px;
    background: var(--bg-2);
    transition: border-color .2s, box-shadow .2s;
}
input:focus,textarea:focus {
    border-color: var(--rose) !important;
    box-shadow: 0 0 0 3px rgba(158,107,107,.12);
    outline: none;
}

/* ═══ 文字选中 ═══ */
::selection { background: rgba(158,107,107,.22); color: var(--ink); }

/* ═══ 卡片进场动画 ═══ */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}
.module-default { animation: fadeUp .65s ease both; }

/* ═══ 移动端 ═══ */
@media (max-width:768px) {
    body { font-size:14px !important; }
    .top.header-v4 {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
}

/* ═══ 覆盖后台设置的荧光色块背景 ═══ */
[style*="#2DAEDF"],
[style*="#2daedf"],
[style*="2DAEDF"],
[style*="#F668A0"],
[style*="#F768A0"] {
    background-color: #f5f0ee !important;
    background: #f5f0ee !important;
    color: #2d2320 !important;
}

/* ═══ 图标颜色统一为品牌玫瑰 ═══ */
[class*="icon-"],
.icon, .qhd-icon,
i[class*="icon"],
span[class*="icon"],
.fonts-icon,
[class*="fonts-icon"] {
    color: #9e6b6b !important;
    border-color: #9e6b6b !important;
}

/* ═══ 文章段落间距收紧 ═══ */
.news-detail p, .news-con p, .content-box p,
.detail-content p, .news-body p, .content-area p,
.qhd-content p, .main-content p {
    margin: 0.5em 0 !important;
    line-height: 1.9 !important;
}
p:empty {
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ═══ 图标颜色修正（真实类名）═══ */
.font-icon {
    color: #9e6b6b !important;
}

/* ═══ 蓝色高亮区块 → 品牌玫瑰 ═══ */
.module-full-screen-hl {
    background-color: #9e6b6b !important;
}

/* ═══ 绿色按钮图片背景 → 纯色品牌玫瑰按钮 ═══ */
.btn-medium-norm,
.btn-medium-norm span,
button.btn-medium-norm em {
    background: #9e6b6b !important;
    border-radius: 4px;
}
.btn-medium-norm:hover,
.btn-medium-norm:hover span {
    background: #7a4f4f !important;
}

/* ═══ 优势图标统一染色为品牌玫瑰色调 ═══ */
.col-3-1 p:first-child img,
.col-3-2 p:first-child img,
.col-3-3 p:first-child img,
.qhd-content .column p:first-child img[style*="60px"] {
    filter: grayscale(1) sepia(1) saturate(3) hue-rotate(310deg) brightness(0.85) !important;
    -webkit-filter: grayscale(1) sepia(1) saturate(3) hue-rotate(310deg) brightness(0.85) !important;
}

.col-3-1 p:first-child img,
.col-3-2 p:first-child img,
.col-3-3 p:first-child img {
    filter: grayscale(1) sepia(1) saturate(3) hue-rotate(310deg) brightness(0.85) !important;
    -webkit-filter: grayscale(1) sepia(1) saturate(3) hue-rotate(310deg) brightness(0.85) !important;
}

/* ═══ 标题装饰线（蓝色圆点）染成品牌玫瑰色 ═══ */
.module-full-screen-title-line {
    filter: grayscale(1) sepia(1) saturate(4) hue-rotate(310deg) brightness(0.9) !important;
    -webkit-filter: grayscale(1) sepia(1) saturate(4) hue-rotate(310deg) brightness(0.9) !important;
}
