/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f7fa;
    padding-bottom: 70px;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}
/* 头部 */
.header {
    background-color: #2563eb;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
}
.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    position: absolute;
    left: 0;
}
.logo {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}
.page-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}
.search-box {
    flex: 1;
    display: flex;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
    background-color: rgba(255,255,255,0.2);
}
.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 15px;
    color: #fff;
    outline: none;
    font-size: 14px;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-box button {
    border: none;
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
}
/* 分类导航 */
.category-section {
    padding: 20px 0;
    background-color: #fff;
    margin-bottom: 10px;
}
.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title .more {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 10px;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 6px;
}
.cat-name {
    font-size: 12px;
    color: #333;
}
/* 活动区域 */
.activity-section {
    padding: 15px 0;
    background-color: #fff;
    margin-bottom: 10px;
}
.activity-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}
.activity-card {
    flex-shrink: 0;
    width: 160px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9fafb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.act-cover {
    position: relative;
    width: 160px;
    height: 90px;
    background-color: #e5e7eb;
}
.act-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}
.no-cover.big {
    height: 200px;
    font-size: 18px;
}
.no-cover.small {
    font-size: 12px;
}
.act-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}
.act-info {
    padding: 8px 10px;
}
.act-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.act-shop {
    font-size: 11px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 商家卡片列表 */
.card-section {
    padding: 15px 0;
    background-color: #fff;
}
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
}
.card-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-logo {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eff6ff;
    position: relative;
    flex-shrink: 0;
}
.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-weight: bold;
    font-size: 16px;
}
.no-logo.big {
    width: 80px;
    height: 80px;
    font-size: 24px;
    border-radius: 12px;
}
/* 卡片中间活动标签 替换原来角落badge */
.card-middle-tag {
    background-color: #ef4444;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}
.card-info {
    flex: 1;
    min-width: 0;
}
/* 商家电话行容器 */
.card-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
/* 左侧底层小标签，弱化视觉层级 */
.phone-label {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    /* 底层辅助信息，降低权重 */
    font-weight: normal;
}
/* 电话号码主体，比标签醒目 */
.phone-num {
    font-size: 14px;
    color: #333;
}
.card-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-main {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2563eb;
}
.wechat-icon {
    font-size: 14px;
}
.call-btn {
    flex-shrink: 0;
    width: 60px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: #10b981;
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
    margin-left: 10px;
}
/* 筛选栏 */
.filter-bar {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 50px;
    z-index: 99;
}
.filter-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 0;
    white-space: nowrap;
}
.filter-item {
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}
.filter-item.active {
    color: #2563eb;
    font-weight: 500;
    position: relative;
}
.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #2563eb;
    border-radius: 1px;
}
/* 列表页 */
.list-section {
    padding: 15px 0;
}
.result-tip {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}
.empty-tip {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}
/* 分页 */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}
.page-btn {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    color: #374151;
}
.page-info {
    font-size: 13px;
    color: #6b7280;
}
/* 详情页 */
.detail-header {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 10px;
}
.shop-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
.shop-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eff6ff;
    flex-shrink: 0;
}
.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-base {
    flex: 1;
    min-width: 0;
}
.shop-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}
.shop-main {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}
.shop-views {
    font-size: 12px;
    color: #9ca3af;
}
.contact-bar {
    display: flex;
    gap: 12px;
}
.contact-btn {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 21px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.contact-btn.phone {
    background-color: #10b981;
    color: #fff;
}
.contact-btn.wechat {
    background-color: #eff6ff;
    color: #2563eb;
}
/* 详情区块 */
.detail-section {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 10px;
}
.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}
.detail-content p {
    margin-bottom: 10px;
}
.address-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}
.addr-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
/* 商家活动列表 */
.shop-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 8px;
}
.act-thumb {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e5e7eb;
    flex-shrink: 0;
}
.act-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.act-content {
    flex: 1;
    min-width: 0;
}
.act-content .act-title {
    font-size: 14px;
    margin-bottom: 3px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.act-time {
    font-size: 12px;
    color: #ef4444;
    margin-bottom: 2px;
}
.act-sub {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.arrow {
    color: #9ca3af;
    font-size: 18px;
    flex-shrink: 0;
}
/* 活动详情页 */
.activity-cover {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #e5e7eb;
}
.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.status-tag.success {
    background-color: #10b981;
    color: #fff;
}
.status-tag.default {
    background-color: #9ca3af;
    color: #fff;
}
.activity-info {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 10px;
}
.activity-info .act-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}
.act-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}
.act-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #374151;
}
.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.meta-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.meta-item a {
    color: #2563eb;
}
.activity-content {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 10px;
}
.content-body {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}
.content-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
}
/* 固定拨号栏 */
.fixed-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 100;
}
.fixed-call-btn {
    display: block;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: #10b981;
    color: #fff;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
}
/* 入驻申请 */
.apply-section {
    padding: 20px 0;
}
.apply-tip {
    background-color: #eff6ff;
    color: #2563eb;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}
.apply-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
}
.form-item {
    margin-bottom: 15px;
}
.form-item label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}
.form-item input,
.form-item textarea,
.form-item select {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}
.form-item textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    font-family: inherit;
}
.form-item input:focus,
.form-item textarea:focus,
.form-item select:focus {
    border-color: #2563eb;
}
.btn {
    display: inline-block;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background-color: #2563eb;
    color: #fff;
}
.btn-block {
    display: block;
    width: 100%;
}
.success-box {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
}
.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.success-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
.card-contact-tag {
    background: linear-gradient(90deg, #165DFF, #4080FF);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-right: 8px;
}
.success-box p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}
/* 底部 */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #9ca3af;
}
.footer a {
    color: #6b7280;
    margin: 0 5px;
}