/* 主色调 */
:root {
    --primary-color: #4285f4;
    --secondary-color: #09bb07; /* 微信绿 */
    --accent-color: #ea4335;
    --light-bg: #f9f9f9;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: var(--light-bg);
    color: #333;
}
/* 导航LOGO */
.navbar-brand {
    padding: 5px 15px;
    height: 50px;
}
.navbar-brand img {
    height: 40px;
    display: inline-block;
}
/* 紧凑英雄区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(66,133,244,0.85), rgba(52,168,83,0.85)),
    url('../../public/images/bg-community.svg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 60px 6px 40px;
    text-align: center;
    /*margin-bottom: 20px;*/
}
.hero-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-title strong {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}
/* 浮动发布按钮 */
.quick-post-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
/* 动态登录按钮 */
.dynamic-login-btn {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1040;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    background-color: var(--primary-color);
    border: none;
}
/* 热点服务展示 */
.service-card {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}
.service-card * {
    white-space: nowrap;overflow: hidden;text-overflow: ellipsis;
}
.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border-radius: 3px;
}

.price-tag {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

.wechat-share {
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 10px;
}
/*热门分类*/
.category-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /*height: 100%;*/
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 36px;
    color: #337ab7;
    margin-bottom: 15px;
}

.subcategory-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.subcategory-list li {
    margin-bottom: 5px;
}

.subcategory-list a {
    color: #666;
}

.subcategory-list a:hover {
    color: #337ab7;
    text-decoration: none;
}
/*热门标签*/
.hot-tag {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
}

.hot-tag:hover {
    background: #337ab7;
    color: white;
    text-decoration: none;
}
/* 紧凑底部区域 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0 20px;
    font-size: 13px;
}

.footer-links a {
    color: #ecf0f1;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}
/* 微信生态优势展示 */
.feature-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
/* 城市选择器样式 */
.city-selector-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    z-index: 1000;
    padding: 6px;
}

.current-city {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 100px;
}

.current-city:hover {
    background: #eaeaea;
}

.city-name {
    margin-right: 8px;
    white-space: nowrap;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.city-search {
    margin-bottom: 10px;
}

.city-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.city-list-container h3 {
    font-size: 14px;
    color: #666;
    margin: 10px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.city-list-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list-container li {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.city-list-container li:hover {
    background: #f0f7ff;
    color: #1890ff;
}

.recent-cities li {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .city-selector-container {
        margin-left: 10px;
    }

    .current-city {
        padding: 6px 8px;
        min-width: auto;
    }

    .city-dropdown {
        width: 260px;
        right: 0;
        left: auto;
    }
}
/* 响应式调整 */
@media (max-width: 767px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
    .quick-post-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .dynamic-login-btn {
        top: 10px;
        right: 60px; /* 避免与菜单按钮重叠 */
        padding: 5px 10px;
        font-size: 12px;
    }
    .category-card {
        margin-bottom: 15px;
    }
}
/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 8px 15px;
    margin-bottom: 20px;
}
/* 分页样式 */
.pagination>li>a, .pagination>li>span {
    color: var(--primary-color);
}
.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
/* 增加我的城市菜单后新加的，城市卡片样式 */
.city-card {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.city-icon {
    font-size: 36px;
    color: #4285f4;
    margin-bottom: 10px;
}

/* 筛选按钮组样式 */
.btn-group .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .btn-group .btn {
        margin-right: 3px;
        margin-bottom: 3px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .city-card {
        padding: 10px;
    }

    .city-icon {
        font-size: 24px;
    }
}
/* 用户中心样式 */
.user-dashboard {
    /*padding: 20px 15px;*/
    margin-top: 60px;
}

.dashboard-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.upgrade-banner {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.upgrade-banner h3 {
    margin-top: 0;
    font-weight: bold;
}

.upgrade-banner p {
    margin-bottom: 15px;
}

.user-profile .form-group {
    margin-bottom: 20px;
}

.user-profile .help-block {
    font-size: 12px;
    color: #999;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 150px;
    padding: 10px 0;
}

.user-dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: #333;
}

.user-dropdown-menu a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}
/* 响应式调整 */
@media (max-width: 767px) {
    .dashboard-card {
        padding: 0;
        margin-bottom: 0;
    }
}
/* 导航栏Logo增强样式 */
.navbar-brand {
    padding: 5px 15px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    margin-right: 15px; /* 增加与右侧元素的间距 */
}

.navbar-brand svg {
    height: 40px; /* 增大高度 */
    width: auto;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .navbar-brand {
        padding: 5px 10px !important;
        margin-right: 10px;
    }
    .navbar-brand svg {
        height: 36px; /* 移动端仍保持较大尺寸 */
    }
}

/* 调整城市选择器位置避免重叠 */
.city-selector-container {
    margin-left: 20px; /* 增加间距 */
}