/* V7 Common CSS - Green Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F5F7FA;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    padding-bottom: 80px;
}

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

img {
    max-width: 100%;
    height: auto;
}
.v7_product_intro {
    margin: 15px 10px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(45, 183, 105, 0.1) 0%, rgba(45, 183, 105, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

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

.v7_product_intro .intro_desc {
    font-size: 13px;
    color: var(--primary);
    opacity: 0.8;
    line-height: 1.5;
}
/* Welfare Activity Center Card */
.welfare_card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

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

.welfare_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.welfare_icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Activity Item */
.activity_item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity_icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.activity_icon .layui-icon {
    font-size: 24px;
    color: #fff;
}

.activity_icon_img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.lottery_icon {
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
}

.signin_icon {
    background: linear-gradient(135deg, #F5B041 0%, #F39C12 100%);
}

.activity_info {
    flex: 1;
}

.activity_name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.activity_btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.btn_orange {
    background: linear-gradient(90deg, #FF8C42 0%, #FF6B35 100%);
    color: #fff;
}

/* Invite Section */
.invite_section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}
/* Utility Classes */
.hide { display: none; }
.show { display: block; }
.flex { display: flex; }
.flex_center { display: flex; justify-content: center; align-items: center; }
.flex_space { display: flex; justify-content: space-between; align-items: center; }
.flex_left { display: flex; align-items: center; }
.flex_column { display: flex; flex-direction: column; }
.flex_wrap { flex-wrap: wrap; }
.text_center { text-align: center; }
.text_right { text-align: right; }
.position { position: relative; }

/* Spacing */
.mt_5 { margin-top: 5px; }
.mt_10 { margin-top: 10px; }
.mt_15 { margin-top: 15px; }
.mt_20 { margin-top: 20px; }
.mb_5 { margin-bottom: 5px; }
.mb_10 { margin-bottom: 10px; }
.mb_15 { margin-bottom: 15px; }
.mb_20 { margin-bottom: 20px; }
.ml_5 { margin-left: 5px; }
.ml_10 { margin-left: 10px; }
.mr_5 { margin-right: 5px; }
.mr_10 { margin-right: 10px; }
.p_10 { padding: 10px; }
.p_15 { padding: 15px; }
.p_20 { padding: 20px; }

/* Colors - Green Theme */
:root {
    --primary: #2DB769;
    --primary-light: #E8F8EF;
    --primary-dark: #239B56;
    --secondary: #FFB800;
    --success: #2DB769;
    --danger: #EF4444;
    --warning: #F59E0B;
    --orange: #FF6B00;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --background: #F5F7FA;
    --white: #FFFFFF;
}

/* ============================================
   Header/Banner Section
   ============================================ */
.v7_banner_section {
    background: url('/public/v7/img/index/banner.png') no-repeat center top;
    background-size: cover;
    padding: 15px;
    padding-top: 10px;
    padding-bottom: 25px;
    position: relative;
    min-height: 220px;
}

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

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

.v7_user_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.v7_user_greeting {
    color: #fff;
}

.v7_user_greeting .hello {
    font-size: 12px;
    opacity: 0.9;
}

.v7_user_greeting .username {
    font-size: 14px;
    font-weight: 600;
}

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

.v7_settings_btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v7_settings_btn img {
    width: 36px;
    height: 36px;
}

/* Banner Content */
.v7_banner_content {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 120px;
    padding-bottom: 15px;
}

.v7_banner_text {
    color: #fff;
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.v7_banner_title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.v7_invite_btn {
    display: inline-block;
}

.v7_invite_btn img {
    height: 40px;
}

.v7_banner_image {
    display: none;
}

/* ============================================
   Quick Menu Section
   ============================================ */
.v7_quick_menu {
    background: var(--white);
    margin: 10px;
    padding: 20px 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.v7_quick_menu .menu_item .icon_wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v7_quick_menu .menu_item .icon_wrap img {
    width: 50px;
    height: 50px;
}

.v7_quick_menu .menu_item span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   Section Title
   ============================================ */
.v7_section {
    margin: 10px;
}

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

.v7_section_title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.v7_section_title .hot_icon {
    width: 20px;
    height: 20px;
}

.v7_section_more {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Games Section
   ============================================ */
.v7_games_swiper {
    position: relative;
}

.v7_games_list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.v7_games_list::-webkit-scrollbar {
    display: none;
}

.v7_game_card {
    flex: 0 0 auto;
    width: 110px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.v7_game_card .game_image {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.v7_game_card .game_name {
    padding: 8px;
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Swiper Pagination */
.v7_games_pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.v7_games_pagination .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E5E7EB;
}

.v7_games_pagination .dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--primary);
}

/* ============================================
   Investment Tabs
   ============================================ */
.v7_invest_tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.v7_invest_tab {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
}

.v7_invest_tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   Product Card
   ============================================ */
.v7_product_card_wrap {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.v7_product_card {
    display: flex;
    gap: 15px;
}

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

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

.v7_product_info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.v7_product_vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(90deg, #FFE5B4 0%, #FFD89C 100%);
    border-radius: 10px;
    font-size: 10px;
    color: #B8860B;
}

.v7_product_days {
    display: inline-block;
    padding: 2px 8px;
    background: #F0F0F0;
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-secondary);
}

.v7_product_details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 15px;
    margin-top: auto;
}

.v7_product_row {
    display: flex;
    flex-direction: column;
}

.v7_product_label {
    font-size: 11px;
    color: var(--text-muted);
}

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

.v7_product_value.highlight {
    color: var(--primary);
    font-weight: 600;
}

.v7_product_value.orange {
    color: var(--orange);
    font-weight: 600;
}

/* Product Buy Button */
.v7_product_btn {
    margin-top: 12px;
}

.v7_btn_invest {
    display: block;
    width: 100%;
    padding: 8px;
    background: linear-gradient(90deg, #2DB769 0%, #34C775 100%);
    color: var(--white);
    text-align: center;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 0 5px #E1F9E4;
}

/* ============================================
   Footer Menu
   ============================================ */
.v7_footer_menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-image: url('/public/v7/img/footer/menu_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: transparent;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.v7_footer_menu::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    z-index: -1;
}

.v7_footer_menu .menu_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    flex: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.v7_footer_menu .menu_item .menu_icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.v7_footer_menu .menu_item:active .menu_icon {
    transform: scale(0.9);
}

.v7_footer_menu .menu_item span {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}

.v7_footer_menu .menu_item.active span {
    color: var(--primary);
    font-weight: 600;
}

/* Center Prize Button */
.v7_footer_menu .menu_center {
    position: relative;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.v7_footer_menu .menu_center .center_btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.v7_footer_menu .menu_center:active .center_btn {
    transform: translateX(-50%) scale(0.95);
}

.v7_footer_menu .menu_center .center_btn img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.v7_footer_menu .menu_center span {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}

.v7_footer_menu .menu_center.active span {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */
.v7_btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.v7_btn_primary:active {
    background: var(--primary-dark);
}

.v7_btn_outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.v7_btn_block {
    display: block;
    width: 100%;
}

/* ============================================
   Dialog/Popup
   ============================================ */
.layui-layer-page {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.v7_dialog {
    padding: 20px;
}

.v7_dialog_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}

/* ============================================
   Form Elements
   ============================================ */
.v7_input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.v7_input:focus {
    border-color: var(--primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
    }

    .v7_footer_menu {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ============================================
   Empty State
   ============================================ */
.v7_empty {
    text-align: center;
    padding: 40px 20px;
}

.v7_empty img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 15px;
}

.v7_empty p {
    color: var(--text-muted);
    font-size: 14px;
}
