* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    max-width: 430px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

/* 顶部导航栏 */
.top-nav {
    background: linear-gradient(135deg, #2d8a4e 0%, #1b5e20 100%);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.nav-right {
    font-size: 13px;
    cursor: pointer;
    opacity: 0.9;
}

.nav-right:active {
    opacity: 0.7;
}

/* 商家信息卡片 */
.merchant-card {
    background: linear-gradient(135deg, #2d8a4e 0%, #1b5e20 100%);
    color: #fff;
    padding: 16px;
    border-radius: 0 0 12px 12px;
}

.merchant-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.merchant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    object-fit: cover;
}

.merchant-name {
    margin-left: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.merchant-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.action-btn:active {
    background: rgba(255,255,255,0.25);
}

.action-btn .icon {
    font-size: 14px;
}

/* 公告栏 */
.notice-bar {
    background: linear-gradient(90deg, #fff4e6 0%, #fff8f0 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
}

.notice-bar:active {
    background: #c8e6c9;
}

.notice-label {
    background: #2d8a4e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.notice-text {
    color: #2e7d32;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 44px;
    z-index: 99;
}

.filter-left {
    display: flex;
    gap: 16px;
}

.filter-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.filter-item.active {
    color: #2d8a4e;
    font-weight: 500;
}

.filter-item:active {
    opacity: 0.7;
}

.arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.arrow.rotate {
    transform: rotate(180deg);
}

.search-icon {
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.search-icon:active {
    opacity: 0.7;
}

/* 筛选下拉菜单 */
.filter-dropdown {
    display: none;
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
}

.filter-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:active,
.dropdown-item:hover {
    background: #f5f5f5;
    color: #2d8a4e;
}

/* 内容列表 */
.content-list {
    background: #fff;
}

.list-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.list-item:active {
    background: #f9f9f9;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-all;
}

.list-item-time {
    font-size: 12px;
    color: #999;
}

.list-item-price {
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

.price-tag {
    border: 1px solid #ff4d4f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 16px;
    transition: all 0.2s;
}

.nav-item:active {
    opacity: 0.7;
}

.nav-item.active .nav-icon,
.nav-item.active .nav-text {
    color: #2d8a4e;
}

.nav-icon {
    font-size: 22px;
    color: #999;
}

.nav-text {
    font-size: 11px;
    color: #999;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 280px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.modal-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wechat-label {
    color: #999;
}

.wechat-id {
    color: #2d8a4e;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    background: #e8f5e9;
    border-radius: 4px;
    transition: all 0.2s;
}

.wechat-id:active {
    background: #c8e6c9;
    transform: scale(0.98);
}

.wechat-id.copied {
    background: #52c41a;
    color: #fff;
}

.copy-hint {
    font-size: 11px;
    color: #fff;
    background: #ff4d4f;
    padding: 2px 6px;
    border-radius: 4px;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2d8a4e;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 8px;
}

.modal-btn.close {
    background: #f5f5f5;
    color: #666;
}

.modal-btn:active {
    opacity: 0.8;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.load-more:active {
    color: #2d8a4e;
}
