/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #F5F3FF;
    color: #1F2937;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* ===== 颜色变量 ===== */
:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-page: #F5F3FF;
    --bg-card: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
}

/* ===== 顶部提示条 ===== */
.top-bar {
    background: #1E143A;
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}
.top-bar a { color: #fff; margin-left: 16px; }
.top-bar a:hover { text-decoration: underline; }

/* ===== 主导航 ===== */
.main-nav {
    background: #2A1B57;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav.scrolled {
    background: #2A1B57;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.logo {
    display: inline-block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    width: 182px;
    height: 51px;
}
.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    color: #fff;
    cursor: pointer;
}
.city-selector a:hover { color: #fff; }
.city-selector i { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
}
.nav-links a {
    color: #947FFF;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #947FFF;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    width: 220px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    border-right: none;
}
.search-box input:focus {
    border-color: var(--primary);
}
.search-box button {
    height: 38px;
    padding: 0 16px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    border: none;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
}
.nav-auth a {
    color: #fff;
    font-size: 14px;
    margin-left: 16px;
}
.nav-auth a:hover { color: var(--primary); }
.nav-auth .btn-register {
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
}
.nav-auth .btn-register:hover {
    background: var(--bg-page);
}

/* ===== 通用卡片 ===== */
.card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
.card-body { padding: 16px; }

/* ===== Hero横幅 ===== */
.hero-banner {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #7C3AED 100%);
}
.hero-banner .hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}
.hero-banner .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
.hero-content .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 16px;
}
.hero-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.hero-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
}
.btn-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
    color: #fff;
}

/* ===== 促销卡片 ===== */
.promo-card {
    position: relative;
    height: 162px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.promo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.promo-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30,27,75,0.85), rgba(124,58,237,0.4));
}
.promo-card .promo-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}
.promo-card h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.promo-card p {
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}
.promo-card .promo-desc {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* ===== 分类入口 ===== */
.category-list {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover .cat-name {
    color: var(--primary);
}
.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cat-icon i {
    font-size: 24px;
    color: var(--primary);
    transition: all 0.2s ease;
}
.cat-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

/* ===== 筛选条件 ===== */
.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.filter-label {
    color: var(--text-muted);
    font-size: 12px;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-options .filter-tag {
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: transparent;
    border: none;
}
.filter-options .filter-tag:hover {
    background: var(--bg-page);
    color: var(--primary);
}
.filter-options .filter-tag.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
}

/* ===== 区块标题 ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}
.section-more {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-more:hover { color: var(--primary); }

/* ===== 商家卡片 ===== */
.venue-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 16px;
}
.venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.venue-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.venue-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rebate-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--success);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}
.venue-info { padding: 12px; }
.venue-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.venue-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.stars {
    display: flex;
    gap: 2px;
}
.stars .star {
    color: #E5E7EB;
    font-size: 14px;
}
.stars .star.fill {
    color: var(--warning);
}
.rating-score {
    font-size: 14px;
    color: var(--warning);
    font-weight: 500;
}
.rating-sales {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}
.venue-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.venue-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.venue-hours {
    font-size: 12px;
    color: var(--text-muted);
}
.venue-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.cashback-text {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.btn-book {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

/* ===== 分页器 ===== */
.pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.pagination-custom .page-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}
.pagination-custom .page-item:hover {
    color: var(--primary);
}
.pagination-custom .page-item.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
}
.pagination-custom .page-next {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: 8px;
}
.pagination-custom .page-next:hover { color: var(--primary); }

/* ===== 侧边栏 - 用户面板 ===== */
.user-panel {
    text-align: center;
    padding: 24px;
}
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}
.user-avatar i {
    font-size: 32px;
    color: #D1D5DB;
}
.user-tip {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}
.user-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.btn-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    padding: 8px 28px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.btn-outline {
    background: #fff;
    color: var(--primary);
    padding: 8px 28px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: var(--bg-page);
}

/* ===== 侧边栏通用 ===== */
.sidebar-block { padding: 16px; }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.sidebar-header-title i { font-size: 16px; }
.sidebar-header-tag {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 排行榜 ===== */
.rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #F9FAFB; }
.rank-item:hover .rank-name { color: var(--primary); }
.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}
.rank-num.gold { background: var(--warning); color: #fff; }
.rank-num.silver { background: #9CA3AF; color: #fff; }
.rank-num.bronze { background: #D97706; color: #fff; }
.rank-num.normal { color: var(--text-muted); }
.rank-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.rank-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.rank-rebate {
    font-size: 12px;
    color: var(--success);
}

/* ===== 返利动态 ===== */
.feed-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #F9FAFB; }
.feed-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.feed-text .feed-user {
    color: var(--text-primary);
    font-weight: 500;
}
.feed-text .feed-amount {
    color: var(--warning);
    font-weight: 700;
}

/* ===== 资讯 ===== */
.news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-title { color: var(--primary); }
.news-thumb {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.news-item:hover .news-thumb {
    transform: scale(1.05);
}
.news-body { flex: 1; min-width: 0; }
.news-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
}
.news-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.news-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: #1F2937;
    padding: 40px 0;
    margin-top: 32px;
}
.site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (min-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}
.site-footer p {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0;
}
.site-footer .footer-links {
    display: flex;
    gap: 24px;
}
.site-footer .footer-links a {
    color: #9CA3AF;
    font-size: 14px;
}
.site-footer .footer-links a:hover {
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1199px) {
    .sidebar-col {
        width: 100% !important;
    }
}
@media (max-width: 991px) {
    .nav-links { display: none !important; }
    .hero-banner { height: 220px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content { padding: 24px; }
    .promo-card { height: 110px; }
}
@media (max-width: 767px) {
    .top-bar .top-links { display: none; }
    .search-box { display: none !important; }
    .nav-auth { display: none !important; }
    .hero-banner { height: 180px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content { padding: 16px; }
    .hero-tags { display: none; }
    .promo-card { height: 100px; }
    .promo-card h3 { font-size: 16px; }
    .category-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .filter-options { gap: 4px; }
    .filter-options .filter-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.anim-fade-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}
.anim-fade-left {
    animation: fadeInLeft 0.5s ease forwards;
    opacity: 0;
}
.anim-fade-right {
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== 当前城市 ===== */
.current-city-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}
.current-city-bar i { color: var(--primary); font-size: 18px; }
.current-city-bar strong { color: var(--primary); margin: 0 4px; }

/* ===== 搜索 ===== */
.city-search {
    position: relative;
    margin-bottom: 16px;
}
.city-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}
.city-search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.city-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* ===== 字母索引 ===== */
.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 10px;
}
.letter-nav a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.letter-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 热门城市 ===== */
.hot-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.hot-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.hot-city-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-page); }
.hot-city-tag.hot { background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); color: #fff; border-color: var(--primary); }

/* ===== 城市分组 ===== */
.city-group { margin-bottom: 24px; }
.city-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.city-group-title .letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.city-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.city-item {
    padding: 10px 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: #F9FAFB;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.city-item:hover { background: var(--bg-page); color: var(--primary); border-color: var(--primary-light); }

/* ===== 弹框 ===== */
.city-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.city-modal-overlay.show { display: flex; }
.city-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
    padding: 32px 24px;
    position: relative;
    margin: auto;
}
.city-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.city-modal-close:hover { background: #E5E7EB; }
.city-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FEE2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.city-modal-icon i { font-size: 28px; color: #EF4444; }
.city-modal-icon.success { background: #D1FAE5; }
.city-modal-icon.success i { color: var(--success); }
.city-modal h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.city-modal p { font-size: 14px; color: var(--text-secondary); margin: 0 0 20px; }
.city-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}
.city-modal-btn.secondary { background: #F3F4F6; color: var(--text-secondary); }


/* ===== 登录区域 ===== */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #DDD6FE 100%);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED 0%, #A78BFA 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.login-logo i {
    font-size: 32px;
    color: #fff;
}
.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input-wrapper {
    position: relative;
}
.form-input-wrapper i.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}
.form-input-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.form-input-wrapper .toggle-password:hover { color: var(--primary); }
.form-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 42px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form-input.has-success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border-light);
    transition: all 0.3s ease;
}
.strength-bar.weak { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }
.strength-text {
    font-size: 12px;
    margin-top: 4px;
}
.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }


.success-msg {
    font-size: 12px;
    color: var(--success);
    margin-top: 4px;
    display: none;
}
.success-msg.show { display: block; }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3F4F6;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cancel:hover { background: #E5E7EB; }

.btn-login {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.login-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.login-footer a {
    color: var(--primary);
    font-weight: 600;
}
.login-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    font-size: 12px;
    color: #c20909;
    margin-top: 4px;
    display: none;
}
.error-msg.show { display: block; }

/* ===== 注册区域 ===== */
.register-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #DDD6FE 100%);
}

.register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    padding: 36px 36px;
    position: relative;
    overflow: hidden;
}
.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED 0%, #A78BFA 100%);
}

.register-header {
    text-align: center;
    margin-bottom: 28px;
}
.register-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.register-logo i {
    font-size: 28px;
    color: #fff;
}
.register-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.register-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}
/* ===== 单选按钮组 ===== */
.radio-group {
    display: flex;
    gap: 16px;
}
.radio-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
}
.radio-item:hover {
    border-color: var(--primary-light);
}
.radio-item.active {
    border-color: var(--primary);
    background: var(--bg-page);
    color: var(--primary);
    font-weight: 500;
}
.radio-item input[type="radio"] {
    display: none;
}
.radio-item i {
    font-size: 16px;
}

/* ===== 用户协议 ===== */
.agreement-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}
.agreement-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}
.agreement-section label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}
.agreement-section label a {
    color: var(--primary);
    font-weight: 500;
}
.agreement-section label a:hover {
    text-decoration: underline;
}

.btn-register-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-register-submit:active {
    transform: translateY(0);
}
.btn-register-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.register-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.register-footer a {
    color: var(--primary);
    font-weight: 600;
}
.register-footer a:hover {
    text-decoration: underline;
}

/* ===== 资讯大卡片 ===== */
.news-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-card-img {
    width: 200px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.02);
}
.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}
.news-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.news-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.news-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--primary);
    font-weight: 500;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.news-card-meta span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-card-meta span i { font-size: 12px; }

/* ===== 资讯标签筛选 ===== */
.news-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.news-filter-tag {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
}
.news-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.news-filter-tag.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 用户信息卡片 ===== */
.member-header {
    background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #7C3AED 100%);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.member-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.member-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.member-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    overflow: hidden;
}
.member-avatar i {
    font-size: 40px;
    color: rgba(255,255,255,0.9);
}
.member-info { flex: 1; min-width: 0; }
.member-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}
.member-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 500;
}
.member-meta {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.member-meta span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.member-meta span i {
    margin-right: 4px;
    color: rgba(255,255,255,0.9);
}

/* ===== 统计卡片行 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.stat-icon i { font-size: 22px; }
.stat-icon.points { background: #EDE9FE; color: var(--primary); }
.stat-icon.commission { background: #D1FAE5; color: var(--success); }
.stat-icon.orders { background: #DBEAFE; color: #3B82F6; }
.stat-icon.partners { background: #FEF3C7; color: var(--warning); }
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== 菜单网格 ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.menu-item {
    background: #fff;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.menu-item:hover {
    background: var(--bg-page);
}
.menu-item:hover .menu-icon {
    transform: scale(1.1);
}
.menu-item:hover .menu-name {
    color: var(--primary);
}
.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}
.menu-icon i { font-size: 22px; }
.menu-icon.edit { background: #EDE9FE; color: var(--primary); }
.menu-icon.password { background: #FEE2E2; color: var(--danger); }
.menu-icon.commission { background: #D1FAE5; color: var(--success); }
.menu-icon.points { background: #DBEAFE; color: #3B82F6; }
.menu-icon.partners { background: #FEF3C7; color: var(--warning); }
.menu-icon.orders { background: #E0E7FF; color: #6366F1; }
.menu-icon.logout { background: #F3F4F6; color: var(--text-muted); }
.menu-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

/* ===== 退出登录区域 ===== */
.logout-section {
    margin-top: 16px;
    text-align: center;
}
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--danger);
    font-size: 14px;
    padding: 12px 40px;
    border-radius: 24px;
    border: 1px solid #FECACA;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-logout:hover {
    background: #FEE2E2;
    border-color: var(--danger);
    transform: translateY(-1px);
}

/* ===== 快捷入口 ===== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
    color: #fff;
}
.quick-btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.quick-btn.secondary:hover {
    background: var(--bg-page);
}

/* ===== 右侧边栏 ===== */
.sidebar-block { padding: 16px; }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.sidebar-header-title i { font-size: 16px; }

/* ===== 最近订单 ===== */
.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.order-item:last-child { border-bottom: none; }
.order-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-name {
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.order-meta span {
    font-size: 12px;
    color: var(--text-muted);
}
.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.order-status.completed { background: #D1FAE5; color: var(--success); }
.order-status.pending { background: #FEF3C7; color: #D97706; }

/* ===== 我的伙伴 ===== */
.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.partner-item:last-child { border-bottom: none; }
.partner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.partner-avatar i { font-size: 16px; color: #D1D5DB; }
.partner-info { flex: 1; min-width: 0; }
.partner-name {
    font-size: 13px;
    color: var(--text-primary);
}
.partner-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.partner-earning {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-bar .filter-tag {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
}
.filter-bar .filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-bar .filter-tag.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    border-color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table thead th {
    background: #F9FAFB;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}
.data-table tbody tr:hover { background: #FAFAFF; }
.data-table tbody tr:last-child td { border-bottom: none; }

.commission-income { color: var(--success); font-weight: 600; }
.commission-pending { color: var(--warning); font-weight: 600; }
.commission-withdraw { color: #8b0000; font-weight: 600; }
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.status-tag.completed { background: #D1FAE5; color: var(--success); }
.status-tag.pending { background: #FEF3C7; color: #D97706; }
.status-tag.withdraw { background: #FEE2E2; color: #8b0000; }
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 64px;
    color: #E5E7EB;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

.withdraw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
}
.withdraw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.points-increase {
    color: var(--success);
    font-weight: 600;
}
.points-decrease {
    color: var(--danger);
    font-weight: 600;
}
.points-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--primary);
}

.order-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.order-card:last-child { border-bottom: none; }
.order-card:hover { background: #FAFAFF; }
.order-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.order-body { flex: 1; min-width: 0; }
.order-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.order-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-no { font-size: 12px; color: var(--text-muted); }
.order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.order-meta span { font-size: 13px; color: var(--text-secondary); }
.order-meta span i { margin-right: 4px; color: var(--text-muted); }
.order-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.order-price { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.order-original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.order-cashback { font-size: 12px; color: var(--success); font-weight: 500; }
.order-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.order-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.order-status-tag.completed { background: #D1FAE5; color: var(--success); }
.order-status-tag.pending { background: #FEF3C7; color: #D97706; }
.order-status-tag.cancelled { background: #FEE2E2; color: var(--danger); }
.order-btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.order-btn.primary {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
}
.order-btn.primary:hover { box-shadow: 0 2px 8px rgba(124,58,237,0.3); }
.order-btn.default {
    background: #F3F4F6;
    color: var(--text-secondary);
}

/* ===== 邀请码区域 ===== */
.invite-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.invite-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.invite-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.invite-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.invite-code {
    background: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    border: 1px dashed var(--primary-light);
}
.copy-btn {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copy-btn:hover { box-shadow: 0 2px 8px rgba(124,58,237,0.3); }

.partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-avatar i { font-size: 18px; color: #D1D5DB; }
.partner-name { font-weight: 500; }
.partner-phone { font-size: 12px; color: var(--text-muted); }
.earning-amount { color: var(--success); font-weight: 600; }
.order-count { color: var(--primary); font-weight: 500; }
.level-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--primary);
}

/* ===== 安全提示 ===== */
.security-tips {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tip-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 10px;
}
.tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tip-icon i { font-size: 18px; color: var(--primary); }
.tip-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.tip-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.avatar-section {
    text-align: center;
    margin-bottom: 24px;
}
.avatar-wrapper {
    position: relative;
    display: inline-block;
}
.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
.avatar-img i { font-size: 48px; color: var(--primary-light); }
.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.avatar-upload i { font-size: 14px; color: #fff; }
.avatar-upload input[type="file"] { display: none; }
.avatar-section p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ===== 客服弹框 ===== */
.service-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.service-overlay.show { display: flex; }
.service-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    position: relative;
    margin: auto;
}
.service-modal-header {
    background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #7C3AED 100%);
    color: #fff;
    padding: 20px 24px;
    position: relative;
}
.service-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.service-modal-header h3 i { margin-right: 8px; }
.service-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.service-modal-close:hover { background: rgba(255,255,255,0.35); }
.service-modal-body {
    padding: 28px 24px;
    text-align: center;
}
.service-qr-box {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    margin-bottom: 16px;
}
.service-qr-box img {
    width: 180px;
    height: 180px;
    display: block;
}
.service-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.service-label i {
    color: var(--success);
    margin-right: 6px;
    font-size: 18px;
}
.service-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-page);
    padding: 10px 24px;
    border-radius: 24px;
    margin-top: 4px;
}
.service-phone i { font-size: 16px; }
.service-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== 图片轮播 ===== */
.gallery-section { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.gallery-main { position: relative; height: 400px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.gallery-overlay h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}
.gallery-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}
.gallery-meta .stars { display: flex; gap: 2px; }
.gallery-meta .stars .star { color: #FBBF24; font-size: 16px; }
.gallery-meta .score { font-weight: 600; margin-left: 4px; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--success);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 10;
}
.gallery-fav {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.2s ease;
}
.gallery-fav:hover { background: #fff; transform: scale(1.1); }
.gallery-fav i { font-size: 18px; color: var(--danger); }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: all 0.2s ease;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* ===== 返利信息条 ===== */
.rebate-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}
.rebate-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rebate-bar-left i { font-size: 28px; color: var(--primary); }
.rebate-bar-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
}
.rebate-bar-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.rebate-bar-right {
    text-align: right;
}
.rebate-bar-right .rebate-pct {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.rebate-bar-right .rebate-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 信息区块 ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}
.info-item div h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px;
}
.info-item div p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 套餐列表 ===== */
.package-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.package-item:hover {
    border-color: var(--primary-light);
    background: #FAFAFF;
}
.package-item:last-child { margin-bottom: 0; }
.package-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.package-body { flex: 1; min-width: 0; }
.package-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.package-desc {
    font-size: 13px;
    color: var(--text-secondary);
}
.package-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.pkg-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #FEF3C7;
    color: #D97706;
}
.package-price {
    text-align: right;
    flex-shrink: 0;
}
.package-price .current {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.package-price .original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}
.package-price .cashback {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    margin-top: 2px;
}

/* ===== 评价列表 ===== */
.review-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-avatar i { font-size: 20px; color: #D1D5DB; }
.review-body { flex: 1; min-width: 0; }
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.review-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.review-stars .star { color: #FBBF24; font-size: 12px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.review-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.review-tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-page);
    color: var(--text-secondary);
}

/* ===== 评分汇总 ===== */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}
.rating-big {
    text-align: center;
}
.rating-big .score {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.rating-big .stars { display: flex; gap: 2px; justify-content: center; margin: 6px 0; }
.rating-big .stars .star { color: #FBBF24; font-size: 16px; }
.rating-big .count { font-size: 12px; color: var(--text-muted); }
.rating-bars { flex: 1; }
.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.rating-bar-item:last-child { margin-bottom: 0; }
.rating-bar-label { font-size: 12px; color: var(--text-secondary); width: 30px; flex-shrink: 0; }
.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.rating-bar-pct { font-size: 12px; color: var(--text-muted); width: 36px; text-align: right; }

/* ===== 底部预订栏 ===== */
.booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-light);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.booking-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.booking-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 2px;
}
.booking-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}
.booking-info .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.booking-info .price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 6px;
}
.btn-book-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-book-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

/* ===== 预订弹框 ===== */
.book-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}
.book-modal .modal-header {
    background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #7C3AED 100%);
    color: #fff;
    padding: 20px 24px;
    border-bottom: none;
    position: relative;
}
.book-modal .modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.book-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    font-size: 24px;
    font-weight: 300;
    text-shadow: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.book-modal .modal-header .close:hover { opacity: 1; }
.book-modal .modal-body {
    padding: 32px 24px;
    text-align: center;
}
.qr-code-box {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    margin-bottom: 16px;
}
.qr-code-box img {
    width: 200px;
    height: 200px;
    display: block;
}
.qr-tip {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}
.qr-subtip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.qr-merchant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    background: var(--bg-page);
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .top-bar .top-links { display: none; }
    .search-box, .nav-auth { display: none !important; }
    .gallery-main { height: 220px; }
    .gallery-overlay h1 { font-size: 20px; }
    .gallery-thumbs { overflow-x: auto; }
    .gallery-thumb { width: 60px; height: 45px; }
    .package-item { flex-direction: column; align-items: flex-start; }
    .package-price { text-align: left; }
    .rating-summary { flex-direction: column; gap: 12px; }
    .booking-bar-inner { flex-direction: column; gap: 8px; }
    .btn-book-now { width: 100%; justify-content: center; }
    body { padding-bottom: 130px; }
    .qr-code-box img { width: 160px; height: 160px; }
}

/* ===== 文章头部 ===== */
.article-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}
.article-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.article-meta span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-meta span i { color: var(--text-muted); }

/* ===== 文章内容 ===== */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}
.article-content p { margin-bottom: 16px; }
.article-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.article-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
}
.article-content img {
    border-radius: 10px;
    margin: 20px 0;
    width: 100%;
}
.article-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}
.article-content ul li { margin-bottom: 8px; color: var(--text-secondary); }
.article-content blockquote {
    border-left: 3px solid var(--primary-light);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-page);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}