/* ==========================================
   同城群收录 H5 - 主样式表
   浅色蓝色主题 v2.0
   ========================================== */

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f8ff;
    --border-color: #eeeeee;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #2196f3;
    --accent-light: #42a5f5;
    --accent-gradient: linear-gradient(135deg, #42a5f5, #2196f3);
    --gold: #f0c040;
    --gold-light: #fce38a;
    --red: #e53935;
    --green: #2ecc71;
    --blue: #2196f3;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(33, 150, 243, 0.15);
    --transition: all 0.3s ease;
}

* {
    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: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* ====== 顶部导航 ====== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-back {
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 4px;
    color: var(--text-secondary);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 22px;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    gap: 12px;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.header-btn:hover {
    background: #e3f2fd;
}

/* ====== 底部导航 ====== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -1px 4px rgba(0,0,0,0.04);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active .nav-icon {
    color: var(--accent);
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-item:active .nav-icon {
    transform: scale(0.85);
}

/* ====== 主内容区 ====== */
.app-main {
    padding: 16px;
    min-height: calc(100vh - 120px);
}

/* ====== 首页 - 搜索栏 ====== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

/* ====== 城市选择网格 ====== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.city-item {
    padding: 16px 8px;
    text-align: center;
    background: #e53935;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.city-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.city-item:active {
    transform: scale(0.97);
}

/* ====== 轮播/Banner ====== */
.banner-section {
    margin-bottom: 20px;
    position: relative;
}

.banner-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    min-width: 300px;
    height: 140px;
    border-radius: var(--radius-lg);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
    cursor: pointer;
}

.banner-item.b1 { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.banner-item.b2 { background: linear-gradient(135deg, #e17055, #fdcb6e); }
.banner-item.b3 { background: linear-gradient(135deg, #00b894, #55efc4); }
.banner-item.b4 { background: linear-gradient(135deg, #0984e3, #74b9ff); }

.banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-subtitle {
    font-size: 13px;
    opacity: 0.85;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    transition: var(--transition);
}

.banner-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

/* ====== 分类区 ====== */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-more {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.category-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 28px;
}

.category-name {
    font-size: 12px;
    text-align: center;
}

/* ====== 群卡片列表（横向） ====== */
.group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-row {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.group-row:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.group-row-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
    background: #e3f2fd;
}

.group-row-avatar-cell {
    background: #bbdefb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.group-row-avatar-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-row-info {
    flex: 1;
    min-width: 0;
}

.group-row-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-row-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-row-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(33,150,243,0.25);
}

.group-row-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(33,150,243,0.35);
}

/* ====== 群网格卡片 ====== */
.group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.group-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.group-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.group-cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-info {
    padding: 10px 12px;
}

.group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.group-city {
    display: flex;
    align-items: center;
    gap: 4px;
}

.group-price {
    color: var(--accent);
    font-weight: 600;
}

.group-price.free {
    color: var(--green);
}

.group-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-paid {
    background: rgba(33, 150, 243, 0.1);
    color: var(--accent);
}

.badge-free {
    background: rgba(46, 204, 113, 0.1);
    color: var(--green);
}

.badge-vip {
    background: rgba(33, 150, 243, 0.1);
    color: var(--accent);
}

/* ====== 群详情页 ====== */
.detail-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin-bottom: 16px;
}

.detail-header {
    margin-bottom: 16px;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-tag {
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.detail-images img {
    width: 100%;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    object-fit: cover;
}

.detail-action {
    position: sticky;
    bottom: 70px;
    padding: 12px 0;
    display: flex;
    gap: 12px;
}

.btn-join {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.btn-join:hover {
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

/* ====== 公告栏 ====== */
.announcement-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.announcement-icon {
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    font-size: 14px;
    color: #1565c0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ====== 扩列圈 ====== */
.moment-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.moment-card:hover {
    border-color: #b3e0ff;
}

.moment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.moment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.moment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moment-user-info {
    flex: 1;
}

.moment-nickname {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.moment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.moment-delete {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.moment-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.moment-images {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.moment-images.img1 { grid-template-columns: 1fr; }
.moment-images.img2 { grid-template-columns: 1fr 1fr; }
.moment-images.img3 { grid-template-columns: 1fr 1fr 1fr; }
.moment-images.img4 { grid-template-columns: 1fr 1fr; }
.moment-images.img5 { grid-template-columns: 1fr 1fr 1fr; }
.moment-images.img6 { grid-template-columns: 1fr 1fr 1fr; }

.moment-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.moment-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.moment-actions {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.moment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.moment-action:hover {
    color: var(--accent);
}

.moment-action.liked {
    color: #e53935;
}

/* ====== 悬浮发布按钮 ====== */
.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
    transition: var(--transition);
    border: none;
}

.fab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.5);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* ====== 名片卡片 ====== */
.card-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.card-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-bg {
    height: 100px;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.card-avatar-area {
    display: flex;
    justify-content: center;
    margin-top: -36px;
    margin-bottom: 10px;
}

.card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 0 14px 14px;
    text-align: center;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.card-tag {
    padding: 2px 10px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50px;
    font-size: 11px;
    color: var(--accent);
}

/* ====== 个人中心 ====== */
.profile-header {
    text-align: center;
    padding: 24px 0 16px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-nickname {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-points {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ====== VIP卡片 ====== */
.vip-card {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.vip-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-card-icon {
    font-size: 28px;
}

.vip-card-text {
    font-size: 14px;
    font-weight: 500;
}

.vip-card-btn {
    padding: 8px 18px;
    background: #fff;
    border: none;
    border-radius: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.vip-card-btn:hover {
    transform: scale(1.03);
}

/* ====== 余额卡片 ====== */
.balance-card {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
}

.balance-tips {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 8px;
}

/* ====== 菜单列表 ====== */
.menu-list {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.menu-group-title {
    padding: 12px 16px 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f0f8ff;
}

.menu-item:active {
    background: #e3f2fd;
}

.menu-item-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.menu-item-text {
    flex: 1;
    font-size: 15px;
}

.menu-item-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.menu-item-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: rgba(229, 57, 53, 0.1);
    color: var(--red);
    margin-right: 8px;
}

/* ====== 按钮 ====== */
.btn-primary {
    padding: 12px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====== 微信登录按钮 ====== */
.btn-wx-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}
.btn-wx-login:hover {
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
    transform: translateY(-1px);
}
.btn-wx-login .wx-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* ====== 登录分隔线 ====== */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.login-divider span {
    padding: 0 16px;
}

.btn-outline {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 24px;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* ====== 弹窗 ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.modal-body {
    padding: 20px;
}

.input-group {
    margin-bottom: 14px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ====== 标签 ====== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-option {
    padding: 6px 14px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tag-option.active {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ====== 热门标签/搜索历史 ====== */
.hot-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.hot-tag:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ====== 城市选择器 ====== */
.city-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.city-option {
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.city-option.active {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ====== Toast ====== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: rgba(51, 51, 51, 0.9);
    color: white;
    border-radius: 24px;
    font-size: 14px;
    z-index: 2000;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ====== 加载动画 ====== */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== 骨架屏 ====== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    height: 180px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.skeleton-title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-text {
    height: 12px;
    width: 50%;
    margin-bottom: 6px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

/* ====== 卡片入场动画 ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-scale-in {
    animation: fadeInScale 0.3s ease forwards;
}

/* 交错动画 */
.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.05s; }
.stagger-item:nth-child(3) { animation-delay: 0.1s; }
.stagger-item:nth-child(4) { animation-delay: 0.15s; }
.stagger-item:nth-child(5) { animation-delay: 0.2s; }
.stagger-item:nth-child(6) { animation-delay: 0.25s; }
.stagger-item:nth-child(7) { animation-delay: 0.3s; }
.stagger-item:nth-child(8) { animation-delay: 0.35s; }

/* ====== 脉冲动画 ====== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ====== 浮动动画 ====== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ====== 空状态 ====== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
}

/* ====== Tab切换 ====== */
.tab-bar {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.tab-item.active {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(33,150,243,0.3);
}

/* ====== 响应式 ====== */
@media (min-width: 768px) {
    .app-main {
        max-width: 600px;
        margin: 0 auto;
    }

    .group-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 350px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 文本对齐 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* 间距 */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-16 { padding: 16px; }

/* ====== 滚动条美化 ====== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ====== 下拉刷新指示器 ====== */
.pull-indicator {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 13px;
    display: none;
}

.pull-indicator.show {
    display: block;
}

/* ====== Toast增强 ====== */
.toast-success {
    background: rgba(46, 204, 113, 0.9);
}

.toast-error {
    background: rgba(229, 57, 53, 0.9);
}

.toast-warning {
    background: rgba(240, 192, 64, 0.9);
}

/* ====== 页面过渡 ====== */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.page-enter {
    animation: slideInRight 0.3s ease;
}

.page-back {
    animation: slideInLeft 0.3s ease;
}

/* ====== 标签输入 ====== */
.tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-height: 44px;
    align-items: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent);
}

.tag-chip-remove {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.tag-chip-remove:hover {
    opacity: 1;
}

/* ====== 进度条 ====== */
.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ====== 开关按钮 ====== */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

/* ====== 复制提示 ====== */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    z-index: 3000;
    animation: copyToastAnim 0.3s ease;
    pointer-events: none;
}

@keyframes copyToastAnim {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ====== 通知红点 ====== */
.notify-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* ====== 消息通知数字 ====== */
.msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* ====== 积分动画 ====== */
@keyframes pointsFly {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1.5); }
}

.points-fly {
    animation: pointsFly 1s ease-out forwards;
    position: fixed;
    z-index: 3000;
    pointer-events: none;
    font-weight: 700;
    color: var(--gold);
    font-size: 20px;
}

/* ====== 签到日历 ====== */
.sign-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.sign-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sign-day.signed {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: var(--green);
}

.sign-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);
}

.sign-day.future {
    opacity: 0.4;
}

.sign-day small {
    font-size: 10px;
}

/* ====== 评分系统 ====== */
.rating-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rating-score-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
}

.rating-score-max {
    font-size: 16px;
    color: var(--text-secondary);
}

.rating-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.rating-stars {
    display: flex;
    gap: 6px;
}

.star-btn {
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0 2px;
}

.star-btn:hover,
.star-btn.active {
    color: #FFD700;
    transform: scale(1.15);
}

.star-btn.active {
    color: #FFD700;
}

.rating-list {
    margin-top: 12px;
}

.rating-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.rating-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rating-user-info {
    flex: 1;
    min-width: 0;
}

.rating-user-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.rating-star-display {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.rating-star-display .star {
    font-size: 14px;
    color: var(--border-color);
}

.rating-star-display .star.filled {
    color: #FFD700;
}

.rating-content-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.rating-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ====== 评论系统 ====== */
.comment-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.comment-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.comment-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-user {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.comment-input {
    flex: 1;
    padding: 10px 14px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.comment-input:focus {
    border-color: var(--accent);
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.comment-submit {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
}

.comment-submit:hover {
    opacity: 0.85;
}

.comment-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.no-data-hint {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ====== 注册弹窗增强 ====== */
.code-group {
    display: flex;
    gap: 10px;
}
.code-group input {
    flex: 1;
}
.btn-code {
    padding: 12px 14px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 96px;
}
.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(33, 150, 243, 0.3);
}
.btn-code:not(:disabled):hover {
    background: rgba(33, 150, 243, 0.2);
}
.agree-row {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.agree-row label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    line-height: 1.5;
}
.agree-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.agree-row a {
    color: var(--accent);
    text-decoration: none;
}

/* ====== 渐变文字工具类 ====== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #f0c040, #fce38a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== 发光效果 ====== */
.glow-blue {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}
.glow-gold {
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

/* ====== 选择文字颜色 ====== */
::selection {
    background: rgba(33, 150, 243, 0.3);
    color: var(--text-primary);
}

/* ====== 焦点可见性 ====== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ====== 底部Footer ====== */
.app-footer {
    text-align: center;
    padding: 20px 0 30px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
}
.app-footer a {
    color: var(--text-muted);
    margin: 0 8px;
    text-decoration: none;
}

/* ====== 响应式增强 ====== */
@media (min-width: 768px) {
    .app-main {
        padding: 24px;
    }
    .banner-item {
        min-width: 350px;
        height: 160px;
    }
    .group-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}
