:root {
    --primary-color: #ff5e00;
    --secondary-color: #ff843d;
    --tertiary-color: #ffaa7b;
    --quaternary-color: #ffd5a5;
    --quinary-color: #fff;
    --quaternary-color-light: #fff;
    --quinary-color-dark: #000;
    --quinary-color-light: #fff;
    --bg-color: #008d23;
    --text-color: #000;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: linear-gradient(135deg, var(--bg-color), var(--primary-color));
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
}

a {
    text-decoration: none;
}

.page-container {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.activity-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.activity-info {
    margin-bottom: 1rem;
    border: 1px dashed var(--tertiary-color);
    border-radius: 0.6rem;
    padding: 0.6rem;
    margin-top: 1rem;
}

.activity-info .identifier {
    margin-top: -1.3rem;
    color: aliceblue;
    background: var(--primary-color);
    width: fit-content;
    padding: 2px 7px;
    border-radius: 50%;
}

.activity-info .info {
    line-height: 1.6rem;
}

.activity-info div:last-child {
    border-bottom: none;
}

.activity-info a {
    color: var(--quinary-color);
    text-decoration: none;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary-color);
}
.activity-location {
    text-align: center;
    margin: 10px;
}

.activity-location a {
    padding: 8px 30px;
}

.signup-card {
    border-radius: 8px;
    margin-bottom: 15px;
}

.signup-info div {
    margin: 5px 0;
}

.verification-section {
    text-align: center;
    border-top: 1px dashed #eee;
}

.verification-section img {
    max-width: 120px;
    margin: 10px auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.verify-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #00CED1;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 206, 209, 0.3);
}

.verify-btn:hover {
    background: #00B4B4;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 206, 209, 0.4);
}

@media (max-width: 480px) {
    .page-container {
        padding: 2px;
        margin: 2px;
        margin-bottom: 4rem;
    }

    .activity-section {
        padding: 15px;
    }

    .activity-title {
        font-size: 1rem;
    }
}

/* 订单状态样式 */
.order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
}

.status-wait {
    background-color: #ff9800;
    color: white;
}

.status-pay {
    background-color: #4caf50;
    color: white;
}

.status-hx {
    background-color: #2196f3;
    color: white;
}

.status-refund {
    background-color: #9e9e9e;
    color: white;
}

.status-cancel {
    background-color: #f44336;
    color: white;
}

.status-unknown {
    background-color: #607d8b;
    color: white;
}

/* 子分类选择样式 */
.cates-select {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10px 0;
}

.cates-select .active {
    color: var(--primary-color);
}

.cates-item {
    width: 32%;
    margin-bottom: 10px;
    text-align: center;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cates-item a {
    color: #000;
    font-weight: bold;
}

@media (max-width: 480px) {
    .cates-item {
        width: 31%;
        padding: 6px 0;
    }
}

/* 核销按钮样式 */
.activity-hx-btn {
    display: block;
    width: 80%;
    margin: 0px auto;
    padding: 6px 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 94, 0, 0.3);
}

.activity-hx-btn:hover {
    background-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 94, 0, 0.4);
}

.activity-hx-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 94, 0, 0.3);
}

/* 顶部个人信息样式 */

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 统计栏样式 */
.stats-container {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-item {
    text-align: center;
    flex: 1;
}

.stats-item div:first-child {
    font-size: 14px;
    color: #666;
}

.stats-item div:last-child {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    color: #00CED1;
}

/* 导航栏样式（一行四个） */
.nav-grid {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 12px 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 去除导航链接的下划线 */
.nav-grid a,
.nav-single {
    text-decoration: none;
    color: inherit;
}

.nav-item {
    text-align: center;
    flex: 1;
    padding: 8px 4px;
    white-space: nowrap;
    font-size: 13px;
}

.nav-item i {
    font-size: 20px;
    color: #00CED1;
    margin-bottom: 4px;
}

/* 单行导航项样式 */
.nav-single {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-single:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-single:active {
    transform: scale(0.98);
}

.nav-single i {
    margin-right: 10px;
    color: #00CED1;
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-single:hover i {
    transform: scale(1.1);
}

/* 导航网格项样式优化 */
.nav-item {
    text-align: center;
    flex: 1;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-3px);
}

.nav-item:active {
    transform: translateY(0);
}

.nav-item i {
    font-size: 24px;
    color: #00CED1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: block;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* 统计项样式优化 */
.stats-item {
    text-align: center;
    flex: 1;
    padding: 5px;
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-2px);
}

/* 用户信息区域优化 */
.user-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    position: relative;
    align-items: flex-start;
}

.user-info:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 左侧头像容器 */
.user-avatar-container {
    flex-shrink: 0;
    margin-right: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 右侧信息容器 */
.user-info-container {
    flex-grow: 1;
    min-width: 0;
    padding-right: 20px;
    /* 为右上角编辑按钮留出空间 */
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.user-info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* 右上角编辑按钮容器 */
.edit-profile-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 编辑资料图标按钮样式 */
.edit-profile {
    color: #00CED1;
    text-decoration: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 206, 209, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile:hover {
    background: rgba(0, 206, 209, 0.2);
    transform: rotate(30deg);
}

.edit-profile:active {
    transform: scale(0.95);
}

.edit-profile i {
    font-size: 16px;
}

.order-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-info {
    display: flex;
    padding: 15px;
}

.order-left {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-right {
    flex-grow: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-right h3 {
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.order-price {
    font-size: 18px;
    color: #ff5e00;
    font-weight: bold;
}

.order-list-status .order-status {
    margin-left: 10px;
}

.order-list-info {
    margin-top: 2px;
    font-size: 0.7rem;
    color: #666;
}

.order-list-info div {
    margin-bottom: 1px;
}

.order-footer {
    padding: 10px 15px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.order-footer p {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.order-footer i {
    margin-right: 5px;
    font-size: 14px;
}

/* cate页面样式 */
.page-container {
    /* padding: 15px;
    background-color: rgba(255, 255, 255, 0.95); */
}

.cate-title h1 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.item-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

.item-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    display: none;
}

.item-price {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.item-price del {
    font-size: 0.8rem;
    color: #999;
    margin-left: 5px;
}

.item-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.item-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: -8px;
    border: 2px solid #fff;
}

.join-btn {
    padding: 8px 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.join-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 94, 0, 0.3);
}

@media (max-width: 480px) {
    .item {
        padding: 12px;
    }
    
    .item-images img {
        width: 100%;
    }
}

/* 轮播图样式 */
.swiper-container {
    width: 100%;
    margin-bottom: 15px;
}

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

.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 详情区域样式 */
.detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 价格信息样式 */
.price-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.signup-count {
    font-size: 12px;
    color: #666;
}

/* 标题样式 */
.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 标签样式 */
.tags {
    display: flex;
    margin-bottom: 15px;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    background: rgba(255, 94, 0, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    margin-right: 8px;
}

/* 活动时间样式 */
.activity-time {
    margin-bottom: 15px;
    border: 1px dashed var(--quaternary-color);
    border-radius: 6px;
}

.activity-time-content {
    margin-top: 10px;
}

.time-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.time-item i {
    font-size: 16px;
    color: var(--primary-color);
    margin-right: 10px;
}

.time-label {
    font-size: 12px;
    color: #999;
}

.time-value {
    font-size: 14px;
    color: #333;
}

/* 活动须知样式 */
.activity-affirm {
    margin-bottom: 15px;
    border: 1px dashed var(--quaternary-color);
    border-radius: 6px;
}

.activity-affirm-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.activity-affirm-title i {
    margin-right: 5px;
    color: var(--primary-color);
}

.activity-affirm-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* 位置信息样式 */
.location-info {
    margin-bottom: 15px;
    border: 1px dashed var(--quaternary-color);
    border-radius: 6px;
    padding: 10px;
}

.merchant-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.address-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-info {
    flex: 1;
}

.distance {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
}

.address-text {
    font-size: 14px;
    color: #666;
}

.navigation-btn {
    font-size: 12px;
    padding: 5px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

/* 内容区域样式 */
.content {
    margin-bottom: 15px;
    border: 1px dashed var(--quaternary-color);
    border-radius: 6px;
}

.content-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
    padding: 2px 30px 2px 10px;
    border-radius: 4px 4px 40px;
    display: inline-block;
    margin: -1px;
}

.content .text {
    padding: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    padding: 2px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 3px;
}

.signup-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin: 0 10px;
    text-decoration: none;
    flex: 2;
    text-align: center;
}

/* 客服弹窗样式 */
.kefu-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.kefu-dialog.active {
    display: flex;
}

.kefu-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.kefu-header {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
}

.kefu-content iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.content img {
    max-width: 100% !important;
}
/* 分类导航样式 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cate-item {
    width: 20%;
    text-align: center;
    margin-bottom: 15px;
}

.cate-img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.cate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cate-name {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
}

.cate-name a {
    color: inherit;
    text-decoration: none;
}

.cate-item:hover .cate-name {
    color: #1a73e8;
}

@media (max-width: 480px) {
    .cate-item {
        width: 20%;
    }
    
    .cate-img {
        width: 35px;
        height: 35px;
    }
}