* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========【新版全局背景+基础，替换原来浅色背景】 ========== */
body {
    font-family: "Microsoft YaHei", PingFangSC, system-ui, sans-serif;
    background: url(../data/005.jpg) no-repeat center center fixed;
    background-size: 100% 100%;
    background-color:#202020;
    color: #444444;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding:14px 16px;
    margin-bottom:18px;
    background-color:rgba(0,0,0,0.36);
    border-radius:12px;
}

/* ========== 顶部LOGO头部 ========== */
header {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
}
.header-inner {
    max-width:1240px;
    margin:0 auto;
    padding:0 16px;
    height:70px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}
.logo {
    font-size:24px;
    font-weight:bold;
    color:#d85a88;
    text-decoration:none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75);
}
.contact-info {
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}
.contact-item {
    background:rgba(255,255,255,0.18);
    color:#ffb3d1;
    padding:6px 14px;
    border-radius:22px;
    font-size:14px;
    text-decoration:none;
    transition:0.2s;
}
.contact-item:hover {
    background:rgba(216,90,136,0.45);
    color:#fff;
}

/* ==========导航独立外层（解决导航外层多余背景，新增加的类 ========== */
.nav-outer-wrap{
    max-width:1240px;
    margin:0 auto;
    padding:0 16px;
    margin-bottom:12px;
    background:transparent !important;
    text-align:center;
    margin-top:24px;
}

/* ==========胶囊磨砂主导航，重写top‑main‑nav ========== */
.top-main-nav {
    background-color:rgba(0,0,0,0.42);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 9px 14px;
    border: none;
    box-shadow: none;
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}
.top-main-nav a {
    color:#ff9ec7 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    padding: 7px 18px;
    border-radius: 999px;
    font-weight:700;
    font-size:18px;
    text-decoration:none;
}
.top-main-nav a.active {
    background: linear-gradient(135deg, #d85a88, #ec75a2);
    color:#fff !important;
}
.top-main-nav a:hover:not(.active) {
    background: linear-gradient(135deg, rgba(216,90,136,0.45), rgba(236,117,162,0.35));
    color: #ffffff !important;
}

/* ========== Hero搜索区 ========== */
.hero {
    background-color:transparent;
    backdrop-filter: none;
    border-radius:12px;
    margin-top:10px;
    color:#fff;
    padding:50px 20px;
    text-align:center;
}
.hero-title {
    font-size:36px;
    font-weight:bold;
    margin-bottom:10px;
    color:#d85a88;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}
.hero-sub {
    font-size:16px;
    opacity:0.92;
    margin-bottom:28px;
    color:#ec75a2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}
.tip-notice{
    color:#ffb3d1;
}

.hero-search {
    display:flex;
    max-width:620px;
    margin:0 auto;
    background:#fff;
    border-radius:30px;
    overflow:hidden;
}
.hero-search input {
    flex-grow:1;
    border:none;
    outline:none;
    padding:12px 20px;
    font-size:15px;
}
.hero-search button {
    background:#c2185b;
    color:#fff;
    border:none;
    padding:0 24px;
    cursor:pointer;
    font-size:16px;
}

.filter-bar {
    padding:24px 0 10px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}
.filter-bar .label {
    font-size:14px;
    color:#777;
}
.filter-bar a {
    border:1px solid #f8bbd0;
    padding:6px 16px;
    border-radius:20px;
    text-decoration:none;
    color:#555;
    font-size:14px;
    transition:0.2s;
}
.filter-bar a.active {
    background:#d85a88;
    border-color:#d85a88;
    color:#fff;
}
.filter-bar a:hover:not(.active) {
    border-color:#d85a88;
    color:#c2185b;
}

.result-info {
    padding:8px 0;
    color:#888;
    font-size:14px;
}

.section-block {
    margin-top:40px;
}
.section-block-first {
    margin-top:24px;
}
.section-header {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}
.section-header h2 {
    font-size:22px;
    color:#1c1c1c;
}
.deco-dot {
    width:7px;
    height:7px;
    background:#ec407a;
    border-radius:50%;
}
.deco-line {
    flex-grow:1;
    height:1px;
    background:#f8c8dc;
}

.hot-scroll {
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding-bottom:12px;
}
.hot-scroll::-webkit-scrollbar {
    height:6px;
}
.hot-scroll::-webkit-scrollbar-track {
    background:#fce4ec;
}
.hot-scroll::-webkit-scrollbar-thumb {
    background:#f48fb1;
    border-radius:3px;
}

.hot-card {
    flex:0 0 270px;
    background:#fff;
    border:1px solid #f8c8dc;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:0.25s;
}
.hot-card:hover {
    box-shadow:0 8px 22px rgba(216, 90, 136, 0.15);
    transform:translateY(-3px);
}
.hot-card .thumb {
    width:100%;
    height:160px;
    object-fit:cover;
}
.hot-card .info {
    padding:14px;
}
.hot-card .title {
    font-size:16px;
    font-weight:600;
    color:#444;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.hot-card .views {
    font-size:13px;
    color:#888;
    margin-top:6px;
}
.hot-badge {
    position:absolute;
    top:10px;
    left:10px;
    background:#ec407a;
    color:#fff;
    font-size:12px;
    padding:2px 8px;
    border-radius:4px;
}

.grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}
.card {
    background:#ffffff;
    border:1px solid #f8c8dc;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:0.25s;
}
.card:hover {
    box-shadow:0 10px 26px rgba(216, 90, 136,0.16);
    transform:translateY(-4px);
}
.card .thumb {
    width:100%;
    height:180px;
    object-fit:cover;
}
.card .info {
    padding:14px;
}
.card .title {
    font-size:16px;
    font-weight:600;
    color:#444;
    margin-bottom:4px;
}
.card .desc {
    font-size:13px;
    color:#777;
    margin-top:4px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp: 2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.card .meta {
    margin-top:8px;
    font-size:13px;
    color:#888;
}

.empty {
    text-align:center;
    padding:70px 20px;
    color:#999;
    font-size:16px;
}

.pagination {
    display:flex;
    justify-content:center;
    gap:8px;
    padding:40px 0;
}
.pagination a,.pagination span {
    padding:8px 14px;
    border-radius:6px;
    border:1px solid #f8bbd0;
    text-decoration:none;
    font-size:14px;
}
.pagination a {
    color:#555;
}
.pagination a:hover {
    border-color:#d85a88;
    color:#c2185b;
}
.pagination span.current {
    background:#d85a88;
    border-color:#d85a88;
    color:#fff;
}
.pagination span.disabled {
    color:#ccc;
    cursor:not-allowed;
}

.modal-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.70);
    z-index:9999;
}
.modal-close-btn {
    position:absolute;
    top:12px;
    right:12px;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    border:none;
    cursor:pointer;
    font-size:18px;
}
.modal-body {
    width:100%;
    height:100%;
}

/* ==========页脚 重写为磨砂暗色主题 ========== */
.site-footer{
    background-color:rgba(0,0,0,0.52);
    backdrop-filter: blur(8px);
    margin-top:30px;
}
.footer-inner {
    max-width:1240px;
    margin:0 auto;
    padding:0 20px;
    text-align:center;
}
.footer-links{
    color:#ffb3d1;
}
.footer-links a {
    color:#f8c8dc;
    margin:0 8px;
    text-decoration:none;
}
.footer-links a:hover {
    color:#f48fb1;
}
.footer-info {
    margin-top:14px;
    font-size:13px;
    line-height:1.8;
    color:#ffb3d1;
}
.footer-info span {
    margin:0 8px;
}

.nanny-meta-line{
    font-size:13px;
    color:#777;
    margin:4px 0;
}
.price-text{
    color:#c2185b;
    font-weight:bold;
    font-size:15px;
}
.status-tag{
    display:inline-block;padding:2px 7px;border-radius:4px;font-size:12px;margin-left:6px;
}
.status-avail{background:#e8f5e9;color:#2e7d32;}
.status-busy{background:#fff8e1;color:#f57c00;}
.status-rest{background:#f3e5f5;color:#7b1fa2;}
.status-none{background:#f5f5f5;color:#777;}
.service-type-tag{
    display:inline-block;
    background:#fce4ec;
    color:#c2185b;
    font-size:12px;
    padding:1px 6px;
    border-radius:3px;
    margin-left:4px;
}

/* =========响应式 ========== */
@media(max-width:1024px){
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
        gap:14px;
    }
    .hero-title {
        font-size:26px;
    }
    .section-header h2 {
        font-size:19px;
    }
    .header-inner {
        height:auto;
        padding:14px 16px;
    }
    .nav-outer-wrap{
        padding:0 12px;
    }
    .container{
        padding:10px 12px;
    }
    .hot-card {
        flex-basis:220px;
    }
    .top-main-nav {
        gap:10px;
        padding:9px 14px;
    }
    .top-main-nav a {
        padding:8px 14px;
        font-size:16px;
    }
}
@media(max-width:640px){
    .grid{
        grid-template-columns:1fr;
    }
}