/* 云浮智慧文旅小程序 - 公共样式文件 */

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00A854;
    --primary-light: #E8F5E9;
    --secondary-color: #FF9800;
    --accent-color: #2196F3;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-color: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul, li {
    list-style: none;
}

/* ==================== 通用容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-container {
    min-height: 100vh;
    background: var(--bg-color);
    padding-bottom: 60px;
}

.page-header {
    background: var(--white);
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.page-content {
    padding: 15px;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-icon {
    color: var(--text-light);
    font-size: 18px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:active {
    background: #009148;
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-more {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 列表项 ==================== */
.list-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.list-item:last-child {
    margin-bottom: 0;
}

/* ==================== 标签 ==================== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary-color);
    margin-right: 5px;
}

.tag-orange {
    background: #FFF3E0;
    color: var(--secondary-color);
}

.tag-blue {
    background: #E3F2FD;
    color: var(--accent-color);
}

.tag-gray {
    background: #F5F5F5;
    color: var(--text-secondary);
}

/* ==================== 标签导航 ==================== */
.tab-nav {
    background: var(--white);
    display: flex;
    overflow-x: auto;
    padding: 12px 15px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-item {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-color);
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-item.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    max-width: 768px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    color: var(--text-secondary);
    font-size: 11px;
    transition: all 0.3s;
    position: relative;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item[data-tab="live"] {
    position: relative;
    margin-top: -25px;
}

.bottom-nav-item[data-tab="live"] .bottom-nav-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E53935 0%, #FF5722 50%, #FF7043 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
    animation: livePulse 2s ease-in-out infinite;
    margin-bottom: 4px;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 4px 20px rgba(229, 57, 53, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.9);
    }
}

.bottom-nav-item[data-tab="live"] .bottom-nav-text {
    font-size: 12px;
    font-weight: 600;
    color: #E53935;
    margin-top: 2px;
}

.bottom-nav-item[data-tab="live"].active .bottom-nav-icon {
    background: linear-gradient(135deg, #C62828 0%, #D32F2F 50%, #E53935 100%);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: all 0.3s;
}

.bottom-nav-text {
    font-size: 11px;
    transition: all 0.3s;
}

/* ==================== 弹窗 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
}

.modal-footer .btn {
    flex: 1;
}

/* ==================== 提示 ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

/* ==================== 加载中 ==================== */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loading-mask.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== 返回按钮 ==================== */
.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-primary);
}

/* ==================== 搜索页样式 ==================== */
.search-page {
    padding: 15px;
}

.search-history {
    margin-top: 20px;
}

.section-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-tag {
    padding: 6px 12px;
    background: var(--white);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.history-tag i {
    margin-left: 4px;
    color: var(--text-light);
}

/* ==================== 搜索结果页样式 ==================== */
.filter-bar {
    background: var(--white);
    padding: 10px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 98;
}

.filter-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-item.active {
    color: var(--primary-color);
}

/* ==================== 景点样式 ==================== */
.spot-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.spot-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.spot-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.spot-rating {
    color: #FFC107;
}

.spot-distance {
    color: var(--text-secondary);
}

.spot-price {
    color: #E53935;
    font-size: 16px;
    font-weight: 600;
}

/* ==================== 酒店样式 ==================== */
.hotel-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.hotel-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hotel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hotel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hotel-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.facility {
    font-size: 10px;
    color: var(--text-light);
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
}

.hotel-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-distance {
    font-size: 11px;
    color: var(--text-light);
}

.hotel-price {
    font-size: 16px;
    color: #E53935;
    font-weight: 600;
}

/* ==================== 美食样式 ==================== */
.food-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.food-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.food-info {
    flex: 1;
}

.food-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.food-shop {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.food-recommend {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.food-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.food-rating {
    color: #FFC107;
}

/* ==================== 特产样式 ==================== */
.product-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    color: #E53935;
    font-weight: 600;
}

.product-original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-rating {
    font-size: 12px;
    color: #FFC107;
}

.product-sales {
    font-size: 12px;
    color: var(--text-light);
}

.add-cart-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
}

/* ==================== 直播样式 ==================== */
.live-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.live-cover-wrapper {
    position: relative;
}

.live-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.live-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--white);
}

.live-tag {
    background: #E53935;
    animation: pulse 2s infinite;
}

.preview-tag {
    background: #2196F3;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--white);
}

.live-info {
    padding: 12px;
}

.live-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.live-streamer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.streamer-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.live-time {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== 保险样式 ==================== */
.insurance-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.insurance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.insurance-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.insurance-price {
    font-size: 20px;
    color: #E53935;
    font-weight: 600;
}

.insurance-coverage {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding: 8px;
    background: var(--bg-color);
    border-radius: 6px;
}

.insurance-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.insurance-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 11px;
}

/* ==================== 用户中心样式 ==================== */
.user-header {
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
    padding: 30px 20px;
    color: var(--white);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
}

.user-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ==================== 订单样式 ==================== */
.order-item {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-id {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-status {
    font-size: 13px;
    font-weight: 600;
}

.order-status.pending {
    color: #FF9800;
}

.order-status.completed {
    color: var(--primary-color);
}

.order-status.cancelled {
    color: var(--text-light);
}

.order-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.order-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-detail {
    flex: 1;
}

.order-product-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-product-spec {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 14px;
    color: var(--text-primary);
}

.order-total span {
    font-size: 18px;
    color: #E53935;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 购物车样式 ==================== */
.cart-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-spec {
    font-size: 12px;
    color: var(--text-light);
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 16px;
    color: #E53935;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    font-size: 14px;
    color: var(--text-primary);
    min-width: 30px;
    text-align: center;
}

.cart-footer {
    background: var(--white);
    padding: 15px;
    margin-top: 20px;
    border-radius: 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total-value {
    font-size: 20px;
    color: #E53935;
    font-weight: 600;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .page-content {
        padding: 10px;
    }

    .hotel-item {
        flex-direction: column;
    }

    .hotel-img {
        width: 100%;
        height: 150px;
    }
}

@media (min-width: 769px) {
    body {
        background: #F0F0F0;
    }

    .page-container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .bottom-nav {
        max-width: 768px;
    }
}

/* ==================== 分享弹窗 ==================== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    z-index: 1000;
}

.share-modal-content {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    animation: slideUp 0.3s ease;
}

.share-modal-header {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.share-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.share-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.share-icon.wechat {
    background: #07C160;
    color: var(--white);
}

.share-icon.moments {
    background: #576B95;
    color: var(--white);
}

.share-icon.link {
    background: #FF9800;
    color: var(--white);
}

.share-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.share-close-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

/* ==================== 轮播图样式 ==================== */
.swiper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.swiper-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.swiper-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.swiper-dot.active {
    width: 16px;
    border-radius: 3px;
    background: var(--white);
}

/* ==================== 六张名片 ==================== */
.six-cards {
    display: grid;
   
    gap: 15px;
    margin-top: 15px;
}

.six-card-item {
    text-align: center;
    padding: 15px 10px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.six-card-item:active {
    transform: scale(0.95);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 10px;
    color: var(--text-light);
}

/* ==================== 实用工具 ==================== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
}

.tool-item {
    text-align: center;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
}

.tool-name {
    font-size: 12px;
    color: var(--text-primary);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 加载更多 ==================== */
.load-more {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 13px;
}

.load-more.loading {
    color: var(--text-light);
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ==================== 我的订单页面样式 ==================== */
.order-tabs {
    display: flex;
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 56px;
    z-index: 99;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.order-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.order-list {
    padding: 15px;
}

.order-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.order-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-time {
    font-size: 12px;
    color: var(--text-light);
}

.order-price {
    text-align: right;
}

.order-price .price {
    font-size: 18px;
    color: #E53935;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.order-actions .action-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--white);
    transition: all 0.3s;
}

.order-actions .action-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.order-actions .action-btn.secondary {
    background: var(--white);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.order-actions .action-btn:hover {
    opacity: 0.8;
}

/* ==================== 我的收藏页面样式 ==================== */
.category-tabs {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 12px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.favorites-list {
    padding: 15px;
}

.favorite-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.favorite-item .checkbox-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.favorite-item .select-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.favorite-thumb {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.favorite-info {
    flex: 1;
    cursor: pointer;
}

.favorite-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.favorite-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.favorite-meta .rating {
    color: #FFC107;
}

.favorite-price {
    font-size: 16px;
    color: #E53935;
    font-weight: 600;
    margin-bottom: 4px;
}

.favorite-address {
    font-size: 12px;
    color: var(--text-light);
}

.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(229, 57, 53, 0.1);
    color: #E53935;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #E53935;
    color: var(--white);
}

/* ==================== 个人资料编辑样式 ==================== */
.avatar-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    margin-bottom: 12px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.avatar-tip {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.profile-form {
    background: var(--white);
    padding: 20px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input:read-only {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.verify-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.radio-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    resize: none;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.address-section {
    background: var(--white);
    padding: 20px;
    margin-top: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
}

.address-list .address-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.address-info .address-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.address-info .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.address-info .phone {
    font-size: 14px;
    color: var(--text-secondary);
}

.default-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.address-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.address-actions .action-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--white);
}

.address-actions .action-btn.delete {
    color: #E53935;
    border-color: #ffebee;
}

/* ==================== 攻略社区样式 ==================== */
.topic-scroll {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 12px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.topic-scroll::-webkit-scrollbar {
    display: none;
}

.topic-item {
    padding: 8px 16px;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.featured-section {
    padding: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.more-link {
    font-size: 13px;
    color: var(--text-secondary);
}

.featured-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.featured-list::-webkit-scrollbar {
    display: none;
}

.featured-card {
    min-width: 280px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.featured-info {
    padding: 12px;
}

.featured-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-stats {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
}

.posts-section {
    padding: 15px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.post-item:hover {
    box-shadow: var(--shadow-lg);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-author .author-avatar {
    width: 36px;
    height: 36px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    margin-bottom: 12px;
}

.post-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.post-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.post-tag {
    color: var(--accent-color);
    font-size: 13px;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.post-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.post-actions .action-btn:hover {
    color: var(--text-primary);
}

/* ==================== 打卡中心样式 ==================== */
.checkin-stats {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    padding: 20px;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

.map-section {
    background: var(--white);
    padding: 15px;
    margin-bottom: 12px;
}

.map-container {
    margin-top: 12px;
}

.map-placeholder {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.map-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
}

.legend-dot.active {
    background: var(--primary-color);
}

.checkin-list-section {
    padding: 15px;
}

.checkin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkin-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checkin-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.checkin-type.type-spot {
    background: #e8f5e9;
    color: #4caf50;
}

.checkin-type.type-food {
    background: #fff3e0;
    color: #ff9800;
}

.checkin-type.type-hotel {
    background: #e3f2fd;
    color: #2196f3;
}

.checkin-date {
    font-size: 12px;
    color: var(--text-light);
}

.checkin-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.checkin-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.checkin-info {
    flex: 1;
}

.checkin-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.checkin-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.checkin-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkin-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.checkin-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--white);
}

/* ==================== 设置页面样式 ==================== */
.settings-list {
    padding: 15px;
}

.settings-group {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.group-title {
    padding: 12px 15px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-color);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: var(--bg-color);
}

.setting-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
}

.setting-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.setting-value {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 4px;
}

.setting-arrow {
    color: var(--text-light);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.logout-btn {
    width: 100%;
    padding: 15px;
    background: var(--white);
    color: #E53935;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    margin-top: 12px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ffebee;
}

/* ==================== 通用按钮样式 ==================== */
.primary-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.primary-btn:hover {
    opacity: 0.9;
}

.publish-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
}

.edit-btn {
    font-size: 14px;
    color: var(--primary-color);
}

.edit-btn.editing {
    color: #E53935;
}

.view-full-btn {
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
}
