:root {
    --nj-gold: #C5A059;
    --nj-dark: #1a1a1a;
}

/* 固定导航栏（及移动端底部操作栏）不遮挡锚点和键盘焦点 */
html {
    scroll-padding-top: 96px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

h1,
h2,
h3 {
    text-wrap: balance;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    margin: 0;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* 导航栏基础样式 */
.navbar {
    transition: padding 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
    padding: 20px 0;
}

.home-page .navbar:not(.scrolled) {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* 导航栏滚动后的状态（通用，但背景会被具体类覆盖） */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 首页导航栏初始样式：透明背景 */
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    letter-spacing: 1px;
}

/* 非首页导航栏初始样式：半透明白色背景，深色文字 */
.navbar-light {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-light .nav-link {
    color: #333 !important;
    font-size: 13px;
    letter-spacing: 1px;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-brand span {
    color: var(--nj-dark) !important;
}

/* 非首页导航栏滚动后：保持半透明背景，仅加深阴影 */
.navbar-light.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* 动画 */
.js .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 首页专属交互样式 --- */

/* 定制金色按钮 */
.btn-gold {
    background-color: var(--nj-gold);
    color: #fff;
    border: 1px solid var(--nj-gold);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    padding: 12px 30px;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--nj-gold);
}

.btn-outline-light {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    padding: 12px 30px;
}

.home-hero {
    padding-top: 42px;
    padding-bottom: 70px;
}

.hero-kicker {
    color: var(--nj-gold);
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-page .hero-title {
    position: relative;
    display: inline-block;
    isolation: isolate;
    --hero-parallax-x: 0px;
    --hero-parallax-y: 0px;
    max-width: 900px;
    line-height: 1.08;
    text-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(197, 160, 89, 0.18),
        0 0 32px rgba(197, 160, 89, 0.12);
    animation: heroGoldGlow 4.8s ease-in-out infinite;
}

.home-page .hero-title::before {
    content: '';
    position: absolute;
    inset: -0.08em -0.3em;
    z-index: -1;
    pointer-events: none;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 28%, rgba(197, 160, 89, 0.55) 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 26% 74%, rgba(255, 228, 170, 0.46) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 43% 18%, rgba(197, 160, 89, 0.42) 0 1.5px, transparent 2.1px),
        radial-gradient(circle at 58% 68%, rgba(255, 221, 150, 0.4) 0 1.2px, transparent 2px),
        radial-gradient(circle at 76% 32%, rgba(197, 160, 89, 0.5) 0 1.45px, transparent 2.2px),
        radial-gradient(circle at 92% 72%, rgba(255, 232, 175, 0.44) 0 1.2px, transparent 2px),
        radial-gradient(ellipse at center, rgba(197, 160, 89, 0.2) 0%, rgba(197, 160, 89, 0) 70%);
    filter: blur(0.5px) saturate(112%);
    transform: translate(var(--hero-parallax-x), var(--hero-parallax-y));
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
    animation: heroGoldParticles 6.2s linear infinite;
}

@keyframes heroGoldGlow {
    0% {
        text-shadow:
            0 10px 35px rgba(0, 0, 0, 0.45),
            0 0 14px rgba(197, 160, 89, 0.14),
            0 0 24px rgba(197, 160, 89, 0.09);
    }

    50% {
        text-shadow:
            0 10px 35px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(197, 160, 89, 0.27),
            0 0 44px rgba(197, 160, 89, 0.17);
    }

    100% {
        text-shadow:
            0 10px 35px rgba(0, 0, 0, 0.45),
            0 0 14px rgba(197, 160, 89, 0.14),
            0 0 24px rgba(197, 160, 89, 0.09);
    }
}

@keyframes heroGoldParticles {
    0% {
        opacity: 0.65;
    }

    50% {
        opacity: 0.95;
    }

    100% {
        opacity: 0.65;
    }
}

.hero-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    line-height: 1.7;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.95rem 0.9rem;
    backdrop-filter: blur(4px);
}

.hero-metric .hero-metric-value {
    margin: 0;
    font-size: 1.55rem;
    color: #fff;
    font-weight: 700;
}

.hero-metric p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.84);
    text-transform: uppercase;
}

.home-hero-panel {
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.62) 0%, rgba(18, 18, 18, 0.82) 100%);
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.home-hero-panel p {
    color: var(--nj-gold);
    letter-spacing: 1px;
    font-size: 0.74rem;
    font-weight: 600;
}

.home-hero-panel li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.65rem;
}

.home-hero-panel li i {
    color: var(--nj-gold);
    margin-top: 0.1rem;
}

.home-hero-panel li:last-child {
    margin-bottom: 0;
}

.section-kicker {
    color: var(--nj-gold);
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-intro .card-highlight {
    padding: 1.6rem 1.2rem;
}

.value-point {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.07) 0%, rgba(197, 160, 89, 0.02) 100%);
    height: 100%;
}

/* 交互式服务卡片 */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: block;
    aspect-ratio: 4/5;
    background: #000;
    transition: box-shadow 0.4s ease;
    /* 新增阴影过渡 */
}

/* 住宅服务一行 3 张（共 6 张）时改成横向比例，避免两行卡片太高 */
@media (min-width: 992px) {
    .service-card {
        aspect-ratio: 4 / 3;
    }
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0.8;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
    transition: padding-bottom 0.6s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* 增强阴影 */
}

.service-card:hover img {
    transform: scale(1.15);
    /* 放大比例稍增 */
    opacity: 0.4;
}

.service-card:hover .service-overlay {
    padding-bottom: 50px;
}

.service-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-overlay p {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(30px);
    /* 初始下移更多 */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover .service-overlay p,
.service-card:focus-within .service-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* 触屏没有悬停效果，卡片说明直接显示 */
@media (hover: none) {
    .service-overlay p {
        opacity: 1;
        transform: none;
    }
}

/* 增强卡片边框效果 */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.service-card:hover::before {
    border-color: var(--nj-gold);
}

/* 减少大区块上下间距，使页面更紧凑 */
section.py-5.my-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* 容器内部间距微调 */
.container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1025;
}

body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open .navbar {
    z-index: 1035;
}

.service-cta {
    background: #161616;
    color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.service-cta p {
    color: rgba(255, 255, 255, 0.75);
}

.service-cta .btn-outline-light {
    background: #fff;
    color: #111 !important;
    border-color: #fff !important;
}

.service-cta .btn-outline-light:hover {
    background: var(--nj-gold);
    color: #111 !important;
    border-color: var(--nj-gold) !important;
}

/* ========== 导航栏悬停美化与修复 ========== */

/* 菜单项悬停下划线动画 */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nj-gold);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: calc(100% - 2rem);
}

.navbar-nav .nav-link:hover {
    color: var(--nj-gold) !important;
}

/* 首页导航栏（navbar-dark）下，悬停时文字保持白色但下划线金色 */
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    background: var(--nj-gold);
}

/* 移除鼠标点击时的蓝色边框（保留键盘焦点样式） */
.navbar-nav .nav-link:focus:not(:focus-visible),
.navbar-nav .nav-link:active,
.dropdown-toggle:focus:not(:focus-visible),
.dropdown-toggle:active,
.dropdown-item:focus:not(:focus-visible),
.dropdown-item:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* 下拉菜单容器优化 */
.dropdown-menu {
    overflow: hidden;
    border-radius: 4px;
    padding: 0;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* 下拉菜单项样式 */
.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.5rem;
    margin: 0;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 0;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--nj-gold);
    color: #000 !important;
    transform: none;
}

/* 移除默认的蓝色背景（确保active状态也是金色） */
.dropdown-menu .dropdown-item:active {
    background-color: var(--nj-gold);
    color: #000;
}

/* 移动端适配：下划线宽度调整 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        display: none;
    }

    .navbar-nav .nav-link:hover {
        color: var(--nj-gold) !important;
    }

    .navbar-dark .navbar-collapse {
        background: rgba(12, 12, 12, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        margin-top: 0.6rem;
        padding: 0.45rem 0.4rem;
    }

    .navbar-dark .navbar-collapse .dropdown-menu {
        background: rgba(20, 20, 20, 0.88);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .navbar-dark .navbar-collapse .dropdown-item {
        color: rgba(255, 255, 255, 0.92);
    }

    .navbar-dark .navbar-collapse .dropdown-item:hover {
        color: #111 !important;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

.media-direction-ripple {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.media-direction-ripple::after {
    content: '';
    position: absolute;
    inset: -30%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.15);
    background:
        radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.24) 24%,
            rgba(255, 255, 255, 0) 62%);
    z-index: 3;
}

.media-direction-ripple.ripple-enter::after {
    animation: mediaDirectionalRipple 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mediaDirectionalRipple {
    0% {
        opacity: 0.9;
        transform: scale(0.15);
    }

    70% {
        opacity: 0.22;
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

/* ===== 各服务页面及联系页专属背景（增强版，更明显） ===== */

/* 房屋加建与翻新 - 木质/混凝土质感 */
body.page-additions {
    background-color: #f7f5f2;
    background-image:
        linear-gradient(45deg, rgba(120, 80, 50, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(120, 80, 50, 0.08) 25%, transparent 25%);
    background-size: 60px 60px;
    background-attachment: fixed;
}

/* 厨房与浴室 - 水磨石/微水泥质感 */
body.page-kitchen {
    background-color: #f8f6f2;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(200, 180, 150, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(150, 180, 200, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(197, 160, 89, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(180, 180, 180, 0.15) 0%, transparent 30%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, transparent 50%, rgba(0, 0, 0, 0.02) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    background-attachment: fixed;
}

/* 商业装修 - 都市网格/现代线条 */
body.page-commercial {
    background-color: #f8f8f8;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* 地下室 - 几何纹理 */
body.page-basement {
    background-color: #f6f8f8;
    background-image:
        repeating-linear-gradient(45deg, rgba(50, 80, 100, 0.08) 0px, rgba(50, 80, 100, 0.08) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(135deg, rgba(197, 160, 89, 0.08) 0px, rgba(197, 160, 89, 0.08) 2px, transparent 2px, transparent 8px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* 联系页 - 金色点阵/优雅纹理 */
body.page-contact {
    background-color: #fafafa;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(197, 160, 89, 0.12) 0%, transparent 4%),
        radial-gradient(circle at 70% 60%, rgba(197, 160, 89, 0.12) 0%, transparent 4%),
        radial-gradient(circle at 40% 80%, rgba(197, 160, 89, 0.12) 0%, transparent 4%),
        radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.12) 0%, transparent 4%);
    background-size: 80px 80px;
    background-attachment: fixed;
}

/* ===== 卡片、标题、图标等通用样式（服务页面使用） ===== */

/* 卡片高亮 */
.card-highlight {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 区块标题（带金色下划线） */
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--nj-gold);
}

/* 特性图标（用于列表项前的对勾等） */
.feature-icon {
    font-size: 2rem;
    color: var(--nj-gold);
    margin-right: 1rem;
}

/* 流程步骤 */
.step-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--nj-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* 统计数字（用于三列卡片） */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nj-gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* ========== 新增微交互样式 ========== */

/* 回到顶部按钮 */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--nj-gold);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: scale(1.1);
    background-color: #b3894c;
    /* 稍深色 */
}

/* ========== 统一圆角效果 ========== */

/* 首页服务卡片圆角 */
.service-card {
    border-radius: 12px;
}

/* 保持悬停边框效果与圆角一致 */
.service-card::before {
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .home-hero {
        padding-top: 36px;
        padding-bottom: 60px;
    }

    .home-page .hero-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-panel {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-page .hero-title {
        font-size: 2.05rem;
    }

    .hero-metric .hero-metric-value {
        font-size: 1.35rem;
    }

    .hero-metric p {
        font-size: 0.72rem;
    }

}
/* ==================== 第一阶段新增：通用工具与可访问性 ==================== */

.text-gold {
    color: var(--nj-gold) !important;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--nj-dark);
    color: #fff;
    padding: 0.6rem 1rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* 键盘焦点可见（覆盖上方对导航 outline 的移除） */
a:focus-visible,
button:focus-visible,
.dropdown-item:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--nj-gold) !important;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.gold-rule {
    width: 50px;
    height: 2px;
    background: var(--nj-gold);
}

.link-gold {
    color: #8a6a2c;
    font-weight: 600;
    text-decoration: none;
}

.link-gold:hover {
    color: var(--nj-dark);
    text-decoration: underline;
}

/* 固定导航下的页面顶部留白 */
main {
    padding-top: 84px;
}

.home-page main {
    padding-top: 0;
}

/* ==================== 导航栏 ==================== */

.navbar-brand {
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.brand-accent {
    color: var(--nj-gold) !important;
}

.navbar-light .navbar-brand .brand-accent {
    color: #a8843f !important;
}

.nav-cta {
    font-size: 12px;
    padding: 8px 16px;
    letter-spacing: 1px;
    border-radius: 0;
}

.nav-phone {
    white-space: nowrap;
}

.dropdown-menu .dropdown-item[aria-current="page"] {
    color: #8a6a2c;
    font-weight: 600;
}

/* ==================== 首页 ==================== */

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.48);
}

.hero-overlay {
    top: 0;
    left: 0;
    background: linear-gradient(110deg, rgba(12, 12, 12, 0.88) 8%, rgba(20, 20, 20, 0.62) 48%, rgba(20, 20, 20, 0.3) 100%);
}

.home-hero {
    padding-top: 110px;
}

.hero-paths {
    display: grid;
    gap: 0.6rem;
}

.hero-path {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-path strong {
    grid-column: 1;
    font-size: 1rem;
}

.hero-path span {
    grid-column: 1;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-path i {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--nj-gold);
}

.hero-path:hover {
    border-color: var(--nj-gold);
    background: rgba(197, 160, 89, 0.12);
    color: #fff;
}

.about-text {
    font-size: 1.08rem;
    line-height: 1.75;
}

.commercial-feature {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.commercial-feature-media {
    min-height: 320px;
    position: relative;
}

.commercial-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commercial-feature-body {
    padding: 2.5rem;
}

.commercial-feature-body li i {
    color: var(--nj-gold);
}

.cta-lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.75);
}

/* ==================== 服务页 ==================== */

.breadcrumb-wrap {
    padding-top: 1rem;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--nj-dark);
    text-decoration: underline;
}

.service-hero-media {
    aspect-ratio: 4 / 5;
    max-height: 560px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-icon-sm {
    font-size: 1.2rem;
}

.range-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--nj-gold);
    padding: 1.25rem;
    background: #fcfbf8;
}

.range-label {
    display: inline-block;
    min-width: 4.5em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

/* 价格卡和服务总览卡片：标签单独一行，数值在下，「总预算（含材料）」这类长标签也能对齐 */
.range-card .range-label,
.hub-card .range-label {
    display: block;
    min-width: 0;
}

.range-card p + p {
    margin-top: 0.5rem;
}

.area-chip {
    background: #f6f3ec;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.hub-intro {
    max-width: 780px;
}

.hub-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.hub-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hub-card:hover .hub-card-media img {
    transform: scale(1.05);
}

.hub-card-body {
    padding: 1.5rem;
}

.hub-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 992px) {
    .hub-card-wide {
        flex-direction: row;
    }

    .hub-card-wide .hub-card-media {
        flex: 0 0 50%;
        aspect-ratio: 16 / 9;
    }

    .hub-card-wide .hub-card-body {
        align-self: center;
        padding: 2.5rem;
    }
}

.prose-narrow {
    max-width: 760px;
}

/* ==================== 画廊与灯箱 ==================== */

/* 服务页项目画廊：1 张大图 + 4 张小图，第 4 张小图显示「+N」，其余条目只在灯箱里浏览。
   没有 JS 时（html 无 .js）所有条目照常排成网格。 */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 1.5rem 0 0;
}

.pg-item {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #ece9e3;
    aspect-ratio: 1;
}

.pg-lead {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
}

.js .pg-extra {
    display: none;
}

@media (min-width: 768px) {
    .project-gallery {
        grid-template-rows: repeat(2, clamp(150px, 19vw, 230px));
        grid-auto-rows: clamp(150px, 19vw, 230px);
    }

    .pg-item {
        aspect-ratio: auto;
    }

    .pg-lead {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
}

.gallery-link {
    display: block;
    position: relative;
    height: 100%;
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .gallery-link:hover img {
        transform: scale(1.04);
    }
}

/* 格子有 overflow: hidden，外描边会被裁掉，所以焦点框画在图片和遮罩之上的 ::before 层（::after 已用于悬停波动效果） */
.gallery-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.gallery-link:focus-visible {
    outline: none !important;
}

.gallery-link:focus-visible::before {
    box-shadow: inset 0 0 0 3px var(--nj-gold), inset 0 0 0 5px rgba(26, 26, 26, 0.6);
}

/* 第 5 个条目上的「+N」遮罩：点开灯箱继续浏览 */
.pg-count {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(26, 26, 26, 0.62);
    color: #fff;
    text-align: center;
    z-index: 5;
    transition: background 0.2s ease;
}

.pg-count strong {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    line-height: 1;
}

.pg-count span {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.gallery-link:hover .pg-count {
    background: rgba(26, 26, 26, 0.75);
}

@media (max-width: 767.98px) {
    .pg-count span {
        display: none;
    }

    .project-gallery .media-play {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .project-gallery .pg-lead .media-play {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-link img {
        transition: none;
    }

    .gallery-link:hover img {
        transform: none;
    }
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 4;
    transition: background 0.2s ease;
}

.gallery-link:hover .media-play {
    background: var(--nj-gold);
}

.lightbox {
    overscroll-behavior: contain;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(8, 8, 8, 0.92);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage {
    margin: 0;
    max-width: min(92vw, 1100px);
    text-align: center;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 82vh;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.lightbox-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-btn {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
}

.lightbox-btn:hover {
    background: var(--nj-gold);
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

/* ==================== 估价表单 ==================== */

.req {
    color: #b3261e;
}

.form-progress {
    gap: 0.5rem;
    display: none !important;
}

.estimate-form.is-stepped .form-progress {
    display: flex !important;
}

.form-progress-item {
    flex: 1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    border-top: 3px solid #e5e5e5;
    padding-top: 0.5rem;
}

.form-progress-item span {
    font-weight: 700;
    margin-right: 0.4rem;
}

.form-progress-item.is-active,
.form-progress-item.is-done {
    color: var(--nj-dark);
    border-top-color: var(--nj-gold);
}

/* 无 JS 时所有步骤依次显示 */
.estimate-form:not(.is-stepped) .form-step + .form-step {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.6rem;
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
}

.choice-card span {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid #d9d9d9;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.choice-card input:checked + span {
    border-color: var(--nj-gold);
    background: rgba(197, 160, 89, 0.12);
    font-weight: 600;
}

.choice-card input:focus-visible + span {
    outline: 2px solid var(--nj-gold);
    outline-offset: 2px;
}

.estimate-form .form-control,
.estimate-form .form-select {
    border-radius: 0;
    padding: 0.7rem 0.9rem;
}

.estimate-form .form-control:focus,
.estimate-form .form-select:focus {
    border-color: var(--nj-gold);
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.2);
}

.next-steps {
    padding-left: 1.2rem;
    max-width: 520px;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* ==================== 页脚 ==================== */

.footer-heading {
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--nj-gold);
}

.footer-indent {
    display: inline-block;
    width: 1.5rem;
}

.footer address {
    line-height: 1.9;
}

/* ==================== 移动端底部操作栏 & 提示 ==================== */

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
}

.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 0.9rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.mobile-cta-call {
    color: var(--nj-dark);
    background: #fff;
}

.mobile-cta-estimate {
    color: #fff;
    background: var(--nj-gold);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 56px;
    }

    .btn-back-to-top {
        bottom: 76px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .home-hero {
        padding-top: 96px;
    }

    .commercial-feature-body {
        padding: 1.75rem;
    }
}

.toast-note {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    background: var(--nj-dark);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

.toast-note.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 575.98px) {
    .hero-metric {
        padding: 0.7rem 0.5rem;
    }

    .hero-metric .hero-metric-value {
        font-size: 1.1rem;
    }

    .service-hero-media {
        aspect-ratio: 4 / 3;
    }
}

.choice-card span {
    height: 100%;
}
