* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    background-color: #f3f4f6;
    padding-bottom: 80px;
}

/* ===================== 轮播图样式 ===================== */
/* 轮播图容器 */
/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文字层（强制显示）*/
.carousel-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 35px 20px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    box-sizing: border-box;
    z-index: 2;
    /* 水平居中 */
    text-align: center;
}
.carousel-info .title {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #fff !important;
}
.carousel-info .desc {
    font-size: 15px;
    margin: 0 0 20px 0;
    color: #fff !important;
}
/* 轮播按钮默认样式 */
.carousel-info .btn {
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-item:nth-child(1) .btn {
    background: #15b187 !important;
    color: #fff !important;
}
.carousel-item:nth-child(2) .btn {
    background: #ff9500 !important;
    color: #fff !important;
}
.carousel-item:nth-child(3) .btn {
    background: #4a90e2 !important;
    color: #fff !important;
}
.carousel-item:nth-child(4) .btn {
    background: #8546da !important;
    color: #fff !important;
}
.carousel-item:nth-child(5) .btn {
    background: #dfb21c !important;
    color: #fff !important;
}
.carousel-item:nth-child(6) .btn {
    background: #d51592 !important;
    color: #fff !important;
}
.carousel-item:nth-child(7) .btn {
    background: #12c2e1 !important;
    color: #fff !important;
}
.carousel-item:nth-child(8) .btn {
    background: #e10739 !important;
    color: #fff !important;
}

/* 指示器 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 99;
}
.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.carousel-dots span.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* ===================== 通用模块 ===================== */
.section-title {
    font-size: 22px;
    font-weight: bold;
    padding: 20px 20px 10px;
    color: #111;
}

.life-offer {
    background-color: white;
    margin: 0 20px 20px;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
}
.life-offer h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 8px;
}
.life-offer .desc {
    color: #666;
    margin-bottom: 20px;
}
.life-offer .btn-green {
    background-color: #006400;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.points-system {
    background-color: white;
    margin: 0 20px 20px;
    border-radius: 12px;
    padding: 30px 15px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}
.point-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}
/* ✅ 积分体系最终优化：缩小 + 透明边框 + 紧贴底部 */
.point-item .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0; /* 完全贴底 */
}
.point-item .icon::after {
    content: "";
    display: block;
    width: 16px;   /* 缩小 */
    height: 24px;  /* 缩小 */
    border: 2px solid #fff; /* 透明 + 白色边框 */
    background: transparent;
    border-radius: 3px;
}
.point-item .icon.service { background-color: #2e7d32; }
.point-item .icon.gift { background-color: #ff9800; }
.point-item .icon.rights { background-color: #1976d2; }
.point-item .icon.points { background-color: #7b1fa2; }
.point-item .name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}
.point-item .desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    word-break: break-all;
}

/* ===================== 权益知识 ===================== */
.knowledge-section {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 20px;
    gap: 10px;
    flex-wrap: nowrap;
}
.knowledge-card {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.knowledge-card:hover {
    transform: translateY(-2px);
}
.knowledge-card .icon {
    width: 24px;
    height: 34px;
    margin: 0 auto 12px;
    border: 2px solid white;
    border-radius: 3px;
}
.knowledge-card:nth-child(1) {
    background: linear-gradient(180deg, #4caf50 0%, white 100%);
}
.knowledge-card:nth-child(2) {
    background: linear-gradient(180deg, #2196f3 0%, white 100%);
}
.knowledge-card:nth-child(3) {
    background: linear-gradient(180deg, #ff5722 0%, white 100%);
}
.knowledge-card .title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}
.knowledge-card .desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.knowledge-card .btn-detail {
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}
.knowledge-card:nth-child(1) .btn-detail { background-color: #2e7d32; }
.knowledge-card:nth-child(2) .btn-detail { background-color: #1976d2; }
.knowledge-card:nth-child(3) .btn-detail { background-color: #e64a19; }

/* ===================== 优化后 柔和模态框 ===================== */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.modal-close:hover {
    background: #f5f5f5;
}
.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
    color: #222;
}
.modal-body {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

.invite-section {
    background-color: #006400;
    margin: 0 20px 20px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.invite-section .text {
    font-size: 18px;
    font-weight: bold;
}
.invite-section .btn-yellow {
    background-color: #ffd000;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ===================== 底部导航 ===================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
}
.tab-item {
    text-align: center;
    color: #999;
    cursor: pointer;
}
.tab-item.active {
    color: #006400;
}
.tab-item .icon {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-size: 18px;
    position: relative; /* 必须加，让箭头能定位 */
}
.tab-item.active .icon {
    background-color: #006400;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.2);
}

.tab-item.active .icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #006400;
}

.page-container > div {
    display: none;
}
.page-container > div.active-page {
    display: block;
}