@charset "utf-8";
/* ============================================================
   Enhance.css — 洪思萍律师 网站 UI 美化与动效增强 (PC 端)
   极简现代风格 (Modern Minimalist Style)
   本文件为独立增强层，不修改主样式文件；删除本文件即可整体还原。
   ============================================================ */

/* ---------- 1. 现代极简设计变量 ---------- */
:root {
    --gold: #c1a974;          /* 雅金 */
    --gold-light: #d8c08a;    /* 亮金 */
    --gold-dark: #9e844f;     /* 暗金 */
    --gold-soft: rgba(193, 169, 116, 0.12); /* 浅金透 */
    --ink: #2c3e50;           /* 深蓝灰/深墨色 */
    --ink-dark: #1e272e;
    --grey-light: #f8f9fa;    /* 极浅灰底 */
    --grey-border: #eaeaea;   /* 极细分割线 */
    --font-modern: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --shadow-minimal: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 6px 20px rgba(193, 169, 116, 0.1);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. 全局基础排版优化 ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-modern) !important;
}

/* 现代简约网页滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfdfd;
}
::-webkit-scrollbar-thumb {
    background: #dfdfdf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* 精致文字选中颜色 */
::selection {
    background: var(--gold-soft);
    color: var(--ink-dark);
}
::-moz-selection {
    background: var(--gold-soft);
    color: var(--ink-dark);
}

/* 统一重写标题为现代无衬线 */
.sec-title h2,
.team-section .sec-title h2,
.services-section .sec-title h2,
.case-section .sec-title h2,
.about-section .sec-title h2,
.faq-section .sec-title h2 {
    font-family: var(--font-modern) !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
}

/* 简约小标题金线装饰 */
.sec-title:not(.light) .title {
    color: var(--gold) !important;
    font-family: var(--font-modern) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
}
.sec-title:not(.light) .title:before,
.sec-title:not(.light) .title:after {
    background: var(--gold) !important;
    height: 1px !important;
    opacity: 0.5;
}

/* ---------- 3. 极简卡片与悬停交互 (Flat Card Overrides) ---------- */
.feature-block .inner-box,
.gallery-block-two .inner-box,
.team-block .inner-box,
.team-block-three .inner-box,
.service-block .inner-box,
.service-block-two .inner-box,
.service-block-three .inner-box,
.case-block .inner-box,
.case-block-two .inner-box,
.news-block .inner-box,
.news-block-two .inner-box,
.news-block-three .inner-box,
.news-block-four .inner-box {
    border: 1px solid var(--grey-border) !important;
    box-shadow: var(--shadow-minimal) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    transition: var(--transition-smooth) !important;
}

/* 悬停微浮 + 雅金细边框过渡 + 超细阴影 */
.feature-block .inner-box:hover,
.gallery-block-two .inner-box:hover,
.team-block .inner-box:hover,
.team-block-three .inner-box:hover,
.service-block .inner-box:hover,
.service-block-two .inner-box:hover,
.service-block-three .inner-box:hover,
.case-block .inner-box:hover,
.case-block-two .inner-box:hover,
.news-block .inner-box:hover,
.news-block-two .inner-box:hover,
.news-block-three .inner-box:hover,
.news-block-four .inner-box:hover {
    transform: translateY(-4px) !important;
    border-color: var(--gold) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* 图片慢动效 */
.gallery-block-two .inner-box .image img,
.team-block .inner-box .image img,
.service-block .inner-box .image img,
.case-block .inner-box .image img,
.news-block .inner-box .image img,
.team-block-three .inner-box .image img,
.news-block-three .inner-box .image img,
.news-block-four .inner-box .image img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-block .inner-box:hover .image img,
.gallery-block-two .inner-box:hover .image img,
.team-block .inner-box:hover .image img,
.service-block .inner-box:hover .image img,
.case-block .inner-box:hover .image img,
.news-block .inner-box:hover .image img,
.team-block-three .inner-box:hover .image img,
.news-block-three .inner-box:hover .image img,
.news-block-four .inner-box:hover .image img {
    transform: scale(1.03) !important; /* 极微放大，克制自然 */
}

/* ---------- 4. 头部吸顶：白底 + 雅金 (适配浅底新 Logo) ---------- */
.main-header {
    position: sticky !important;
    top: 0 !important;
    width: 100%;
    z-index: 999;
}
.main-header .header-upper {
    background: #ffffff !important;
    border-bottom: 1px solid var(--grey-border) !important;
    transition: var(--transition-smooth) !important;
}
/* 滚动吸顶后：柔和白底 + 微量高斯模糊 */
.main-header.fixed-header .header-upper {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grey-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
/* 导航项文字：深灰，hover/当前变雅金 */
.main-header .navigation li a {
    font-family: var(--font-modern) !important;
    color: #333333 !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}
.main-header .navigation li:hover a,
.main-header .navigation li.current a {
    color: var(--gold) !important;
}
/* 搜索图标：深灰 + hover 雅金（主题默认白色，白底上不可见） */
.main-header .header-upper .search-box-btn {
    color: #333333 !important;
}
.main-header .header-upper .search-box-btn:hover {
    color: var(--gold) !important;
}
/* 屏蔽主题层 hover/current 的整块金底与 95% 高白块 */
.main-header .main-menu .navigation > li > a::before {
    content: none !important;
}
.main-header .main-menu .navigation > li:hover > a,
.main-header .main-menu .navigation > li.current > a {
    background-color: transparent !important;
}
/* 窄屏 responsive 深灰底一并屏蔽，保持白底极简 */
.main-header.header-style-three .main-menu .navigation > li > a {
    background-color: transparent !important;
}
/* 新下划线：1px 极细短金线，贴近项底、与页头发丝线分层不重复
   注：default-theme.css 对 header-style-three 导航 :after 有更高特异性规则，
   此处须 !important 全覆盖（宽/高/底色/定位），否则渲染出橙色粗块 */
.main-header.header-style-three .main-menu .navigation > li > a::after,
.main-header .navigation > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    width: 0 !important;
    height: 1px !important;
    background: var(--gold) !important;
    transform: translateX(-50%) !important;
    transition: width 0.3s ease !important;
}
.main-header.header-style-three .main-menu .navigation > li:hover > a::after,
.main-header.header-style-three .main-menu .navigation > li.current > a::after,
.main-header .navigation > li:hover > a::after,
.main-header .navigation > li.current > a::after {
    width: 26px !important;
}

/* ---------- 6. 极简表单及输入框重塑 ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: var(--font-modern) !important;
    border: 1px solid var(--grey-border) !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    color: #333333 !important;
    box-shadow: none !important;
    transition: var(--transition-smooth) !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(193, 169, 116, 0.15) !important;
    outline: none !important;
}

/* ---------- 7. 优雅按钮重写 (Ghost & Pure Buttons) ---------- */
.theme-btn {
    font-family: var(--font-modern) !important;
    border-radius: 4px !important;
    font-weight: 400 !important;
    transition: var(--transition-smooth) !important;
}
/* 主按钮：精致暖金背景，无高光，扁平极简 */
.theme-btn.btn-style-one,
.theme-btn.btn-style-four {
    background-color: var(--gold) !important;
    color: #ffffff !important;
    border: 1px solid var(--gold) !important;
    box-shadow: none !important;
}
.theme-btn.btn-style-one:hover,
.theme-btn.btn-style-four:hover {
    background-color: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(193, 169, 116, 0.2) !important;
}
/* 次级/线框按钮 */
.theme-btn.btn-style-two,
.theme-btn.btn-style-three {
    background-color: transparent !important;
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
}
.theme-btn.btn-style-two:hover,
.theme-btn.btn-style-three:hover {
    background-color: var(--gold) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ---------- 8. 优雅滚动到顶部按钮 ---------- */
.scroll-to-top {
    border-radius: 4px !important; /* 迎合整体无衬线极简微圆角 */
    background: #ffffff !important;
    border: 1px solid var(--grey-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    color: #555555 !important;
    line-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    transition: var(--transition-smooth) !important;
}
.scroll-to-top:hover {
    background: var(--gold) !important;
    color: #ffffff !important;
    border-color: var(--gold) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(193, 169, 116, 0.2) !important;
}

/* ---------- 9. 详情页及侧边栏极简微调 ---------- */
.sidebar-page-container {
    background: #ffffff !important;
}
.sidebar .sidebar-widget {
    border: 1px solid var(--grey-border) !important;
    border-radius: 4px !important;
    box-shadow: var(--shadow-minimal) !important;
    padding: 24px 20px !important;
    background: #ffffff !important;
}
.sidebar .sidebar-title h4 {
    font-family: var(--font-modern) !important;
    font-weight: 500 !important;
    color: #222222 !important;
    border-left: 3px solid var(--gold) !important;
    padding-left: 12px !important;
}

/* ---------- 10. 页脚：深墨统一 + 浅灰文字 ---------- */
/* 遮罩层与页头同调墨黑，首尾呼应 */
.main-footer:before {
    background-color: rgba(14, 18, 22, 0.96) !important;
}
.main-footer .footer-widget h4 {
    color: #f0ede6 !important;
}
.main-footer .service-widget .list-link li a,
.main-footer .contact-list li {
    color: #b9c0c7 !important;
}
.main-footer .service-widget .list-link li a:hover {
    color: var(--gold) !important;
}
/* 版权栏：深墨底 + 浅灰字；!important 覆盖模板内联的白色备案链接 */
.main-footer .footer-bottom {
    background-color: #0a0d10 !important;
    border-top: 1px solid rgba(193, 169, 116, 0.2) !important;
}
.main-footer .footer-bottom .copyright,
.main-footer .copyright,
.main-footer .copyright a {
    color: #98a1a9 !important;
}
.main-footer .copyright a:hover {
    color: var(--gold) !important;
}
.main-footer .footer-bottom .social-nav li a {
    color: #98a1a9 !important;
    background-color: transparent !important;
}
.main-footer .footer-bottom .social-nav li a:hover {
    color: var(--gold) !important;
}

/* ---------- 11. 针对低性能和无动效首选 ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Logo 图片使用上传原图时也保持在页头范围内；微圆角浅色徽章 */
.main-header .header-upper .logo img,
.navbar-brand img.logo-sm-height {
    display: block;
    width: auto !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain;
    border-radius: 6px;
}

/* ---------- 12. 专业领域 · 与移动端统一的图标圆托卡（flex 统一高度） ---------- */
.gallery-section-two .area-icon-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -12px !important;
}
.gallery-section-two .area-icon-card {
    float: none;
    display: flex;
    padding: 12px !important;
    box-sizing: border-box;
}
.gallery-section-two .area-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 1px solid var(--grey-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow-minimal) !important;
    padding: 28px 16px 22px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    transition: var(--transition-smooth) !important;
}
.gallery-section-two .area-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold) !important;
    box-shadow: var(--shadow-hover) !important;
}
/* 圆形底托：移动端 60px 圆托的 PC 放大版，插画主体清晰 */
.gallery-section-two .area-card .area-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gold-soft);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-section-two .area-card:hover .area-ico {
    transform: scale(1.06);
}
/* 字体图标字形：雅金、垂直居中于圆托 */
.gallery-section-two .area-card .area-glyph {
    font-size: 40px;
    line-height: 1;
    color: var(--gold);
}
/* 标题与简介 */
.gallery-section-two .area-card h4 {
    color: var(--ink) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    margin: 0 0 8px !important;
    font-family: var(--font-modern) !important;
}
.gallery-section-two .area-card p {
    color: #888888 !important;
    font-size: 13px !important;
    line-height: 1.6;
    margin: auto 0 0 !important; /* 简介沉底，配合统一高度对齐 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 13. 顶部四大优势：仅保留文案（数字已移除） ---------- */
.featured-section .feature-block .inner-box .content .title {
    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 50px !important; /* 与 50px 图标垂直对齐 */
    letter-spacing: 1px;
}
