/* BelanjaZone - Main Stylesheet */

/* Google Fonts - 多语言支持 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ff8c00;
    --primary-dark: #e67e00;
    --secondary-color: #28a745;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    /* 字体变量 */
    --font-primary: 'Inter', 'Roboto', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Roboto', 'Noto Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #091428;
}

body {
    font-family: var(--font-primary);
    background: #f5f5f5;
    padding-top: 56px;
    padding-bottom: 0;
    min-height: 100vh;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    height: 78px;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
    background: var(--light-bg);
}

.nav-search {
    max-width: 500px;
    min-width: 200px;
}

.nav-search .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
}

.nav-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.nav-search .btn {
    border-radius: 0 25px 25px 0;
    border: none;
    background: #fff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.nav-search .btn:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
}

/* 移动端客服按钮 */
.nav-cs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-cs-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: scale(1.05);
}

/* 客服未读消息徽章 */
.cs-unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 991.98px) {
    .nav-search {
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-search .form-control {
        border-radius: 25px 0 0 25px;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

/* 移动端背景图片 */
.hero-bg-mobile {
    position: relative;
    width: 100%;
    padding: 0 10px;
    min-height: 220px;
}

.hero-bg-mobile .hero-slider {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.hero-bg-mobile .hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-mobile .hero-slider img.active {
    opacity: 1;
    position: relative;
}

/* PC端背景图片 */
.hero-bg-pc {
    position: relative;
    width: 100%;
    padding: 0 20px;
}

.hero-bg-pc .hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.hero-bg-pc .hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    min-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-pc .hero-slider img.active {
    opacity: 1;
    position: relative;
}

/* 文字内容覆盖层 */
.hero-content {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-content {
        margin: 0 20px;
        border-radius: 20px;
    }
}

.hero-content .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 英雄区轮播 */
.hero-carousel {
    position: relative;
    min-height: 120px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 56px;
        margin-top: -56px;
    }
    .hero-content {
        top: 56px;
        align-items: center;
        padding: 15px 10px;
    }
    .hero-title {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.4;
    }
    .hero-carousel {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .hero-content {
        padding: 10px 15px;
        align-items: center;
    }
    .hero-carousel {
        min-height: auto;
    }
    .hero-indicators {
        margin-top: 10px;
    }
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ===== INFO CARDS SECTION ===== */
.info-cards-section {
    background: #f8f9fa;
}

.info-card {
    background: linear-gradient(135deg, #ffe4d6 0%, #ffd4c4 100%);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    min-height: 140px;
}

.info-card-alt {
    background: linear-gradient(135deg, #ffd4c4 0%, #ffcbb8 100%);
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    color: #1a8754;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.info-card-text {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.5;
}

.info-card-logo {
    flex-shrink: 0;
}

.info-card-logo img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .info-card {
        padding: 1rem;
        min-height: 120px;
        gap: 0.8rem;
    }
    
    .info-card-title {
        font-size: 0.85rem;
    }
    
    .info-card-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .info-card-logo img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        padding: 5px;
    }
}

@media (max-width: 400px) {
    .info-card-title {
        font-size: 0.8rem;
    }
    
    .info-card-text {
        font-size: 0.75rem;
    }
    
    .info-card-logo img {
        width: 50px;
        height: 50px;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: #f5f5f5;
}

.feature-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== PLATFORM SECTION ===== */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
}

.platform-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.platform-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.platform-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.platform-card span {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
}

@media (max-width: 575px) {
    .platform-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .platform-section .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem !important;
    }
    .platform-card {
        padding: 0.8rem 0.5rem;
        border-radius: 10px;
    }
    .platform-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.3rem;
    }
    .platform-card span {
        font-size: 0.75rem;
    }
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: #fff;
}

.platform-filter {
    gap: 0.5rem;
}

.platform-filter .btn {
    border-radius: 20px;
}

.platform-filter .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-platform {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-platform img {
    width: 16px;
    height: 16px;
    position: static;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 0.85rem !important;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4 !important;
    word-break: break-word;
    /* 限制最多两行 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    height: 2.4em !important; /* line-height 1.2 * 2行 */
    max-height: 2.4em !important;
}

h6.product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.4em !important;
    max-height: 2.4em !important;
    line-height: 1.2 !important;
}

/* 一排5个商品 */
@media (min-width: 992px) {
    .product-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-commission {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* ===== COMPANY SECTION ===== */
.company-section img {
    filter: none;
}

.company-desc {
    max-width: 700px;
    color: #666;
    line-height: 1.8;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.company-logos img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 575px) {
    .company-logos img {
        height: 40px;
    }
    .company-logos {
        gap: 15px;
    }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s;
}

.mobile-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.mobile-nav .nav-item.active,
.mobile-nav .nav-item:hover {
    color: var(--primary-color);
}

.mobile-nav .nav-task {
    position: relative;
    margin-top: -25px;
}

.mobile-nav .nav-task i {
    font-size: 3rem;
    color: var(--primary-color);
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

/* ===== PHONE INPUT WITH COUNTRY SELECTOR ===== */
.phone-input-group {
    display: flex;
    align-items: stretch;
    position: relative;
}
.phone-country-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 95px;
}
.phone-country-selector:hover {
    background: #e9ecef;
}
.phone-country-selector .country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}
.phone-country-selector .country-code {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}
.phone-country-selector .bi-chevron-down {
    font-size: 0.7rem;
    color: #666;
}
.phone-input-group .phone-input {
    flex: 1;
    border-radius: 0 6px 6px 0 !important;
}
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    min-width: 180px;
    margin-top: 4px;
}
.country-dropdown.show {
    display: block;
}
.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.country-option:first-child {
    border-radius: 8px 8px 0 0;
}
.country-option:last-child {
    border-radius: 0 0 8px 8px;
}
.country-option:hover {
    background: #f8f9fa;
}
.country-option .country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}
.country-option span {
    font-size: 0.9rem;
    color: #333;
}

/* ===== MODAL ===== */
/* 确保模态框在PC端正确居中 */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1055 !important;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem);
}

.modal-lg {
    max-width: 800px !important;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }
    
    .modal-lg {
        max-width: 800px !important;
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto !important;
    }
    
    .modal-lg {
        max-width: 800px !important;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: 15px;
    outline: 0;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-warning {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-warning:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ===== PROFILE PAGE ===== */
.profile-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 0;
    margin-top: -70px;
    padding-top: calc(70px + 2rem);
}

.profile-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    color: #fff;
}

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

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-uid {
    opacity: 0.8;
    font-size: 0.9rem;
}

.vip-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.vip-badge svg {
    width: 36px;
    height: 36px;
}

.vip-badge i {
    font-size: 1.5rem;
    color: white;
}

.commission-rate {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Stats Section */
.stats-section {
    background: #fff;
}

.stat-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Profile Menu */
.profile-menu {
    border-radius: 12px;
    overflow: hidden;
}

.profile-menu .nav-link {
    color: var(--dark-color);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.profile-menu .nav-link:last-child {
    border-bottom: none;
}

.profile-menu .nav-link:hover,
.profile-menu .nav-link.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    padding: 1.5rem;
    color: #fff;
}

.balance-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

.balance-value {
    font-size: 2rem;
    font-weight: 700;
}

.invite-code-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem;
}

.invite-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    color: var(--primary-color);
}

/* Transaction List */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.transaction-icon.income {
    background: rgba(40, 167, 69, 0.1);
    color: var(--secondary-color);
}

.transaction-icon.expense {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.transaction-date {
    font-size: 0.85rem;
    color: #666;
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.income {
    color: var(--secondary-color);
}

.transaction-amount.expense {
    color: #dc3545;
}

/* ===== ORDERS PAGE ===== */
.orders-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 0;
    margin-top: -70px;
    padding-top: calc(70px + 2rem);
    color: #fff;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Order Stats */
.stat-card.stat-pending {
    border-left: 4px solid #ffc107;
}

.stat-card.stat-process {
    border-left: 4px solid #17a2b8;
}

.stat-card.stat-complete {
    border-left: 4px solid var(--secondary-color);
}

.stat-card.stat-total {
    border-left: 4px solid var(--primary-color);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.stat-card .stat-icon svg,
.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-card.stat-pending .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-card.stat-process .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-card.stat-complete .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--secondary-color);
}

.stat-card.stat-total .stat-icon {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
}

.stat-card {
    display: flex;
    align-items: center;
}

.stat-info {
    flex: 1;
}

/* Order Filters */
.order-filters .nav-pills {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-filters .nav-link {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    color: #666;
    background: #fff;
    border: 1px solid var(--border-color);
}

.order-filters .nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Order Card */
.order-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.order-id {
    font-weight: 600;
    color: var(--dark-color);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.order-status.process {
    background: rgba(23, 162, 184, 0.15);
    color: #0c5460;
}

.order-status.complete {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
}

.order-status.cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
}

.order-body {
    padding: 1rem;
}

.order-product {
    display: flex;
    gap: 1rem;
}

.order-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-product-info {
    flex: 1;
}

.some-class {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;
    /* 标准属性，消除警告 */
    overflow: hidden;
}

.order-product-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-product-commission {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.order-date {
    font-size: 0.85rem;
    color: #666;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

/* Task Modal */
.task-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.task-platform img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.task-platform span {
    font-weight: 600;
}

.task-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-product-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.task-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-info {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1rem;
}

.task-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.task-info-row:last-child {
    border-bottom: none;
}

.task-info-label {
    color: #666;
}

.task-info-value {
    font-weight: 600;
}

.task-info-value.price {
    color: var(--primary-color);
}

.task-info-value.commission {
    color: var(--secondary-color);
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Bank Card */
.bank-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.bank-card.bca {
    background: linear-gradient(135deg, #0066b3 0%, #004080 100%);
}

.bank-card.bni {
    background: linear-gradient(135deg, #f15a22 0%, #c04618 100%);
}

.bank-card.bri {
    background: linear-gradient(135deg, #0033a0 0%, #002080 100%);
}

.bank-card.mandiri {
    background: linear-gradient(135deg, #003d79 0%, #002050 100%);
}

.bank-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bank-number {
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.bank-holder {
    opacity: 0.9;
}

/* Toast */
.toast {
    background: #fff;
    border-radius: 10px;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .balance-value {
        font-size: 1.5rem;
    }
    
    .wallet-balance-card .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .order-product {
        flex-direction: column;
    }
    
    .order-product-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 991px) {
    .profile-menu {
        margin-bottom: 1rem;
    }
    
    .profile-menu .nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .profile-menu .nav-link {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
    
    .profile-menu .nav-link:last-child {
        border-right: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card,
.order-card,
.stat-card {
    animation: fadeIn 0.3s ease;
}
/* ===== LOGIN REQUIRED PAGE ===== */
.login-required-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 80px;
    background: #f8f9fa;
}

.login-required-card {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.login-required-icon {
    margin-bottom: 1.5rem;
}

.login-required-icon i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.9;
}

.login-required-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-required-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-required-buttons .btn {
    width: 100%;
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 10px;
}

/* ===== DOMPET PAGE ===== */
.dompet-header-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    padding: 6rem 0 2rem;
    color: #fff;
}

.dompet-balance-card {
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-value-large {
    font-size: 2.2rem;
    font-weight: 700;
}

.balance-frozen {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.balance-actions {
    display: flex;
    gap: 0.75rem;
}

.balance-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.dompet-stats {
    margin-top: -15px;
}

.mini-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mini-stat-icon {
    font-size: 1.5rem;
}

.mini-stat-info {
    flex: 1;
    min-width: 0;
}

.mini-stat-value {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: #666;
}

.dompet-tabs {
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
}

.dompet-tabs .nav-link {
    color: #666;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.dompet-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.dompet-tabs .nav-link:not(.active):hover {
    background: var(--light-bg);
}

/* ===== TASK PAGE ===== */
.task-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 6rem 0 2rem;
    color: #fff;
}

.task-header-section .page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.task-header-section .page-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
}

.task-stats {
    margin-top: -20px;
}

.stat-card.stat-available {
    border-left: 4px solid #17a2b8;
}

.stat-card.stat-available .stat-icon {
    color: #17a2b8;
}

.vip-banner {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: #fff;
}

.vip-info-card {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 15px;
    padding: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.vip-info-card .vip-badge {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.vip-info-card .vip-details {
    flex: 1;
    min-width: 0;
}

.vip-info-card .vip-level {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vip-info-card .vip-stats {
    font-size: 0.85rem;
    opacity: 0.9;
}

.get-task-btn {
    background: linear-gradient(135deg, #FFB347, #FF8C42);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    white-space: nowrap;
}

.get-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.vip-badge-large {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vip-badge-large i {
    font-size: 2rem;
}

.vip-badge-large span {
    font-weight: 700;
    font-size: 1.1rem;
}

.vip-info {
    display: flex;
    gap: 2rem;
}

.vip-info .vip-rate,
.vip-info .vip-limit {
    font-size: 0.95rem;
}

/* Task Instructions */
.instruction-step {
    text-align: center;
    padding: 1rem;
}

/* New Task Guide Styles */
.task-guide-card {
    overflow: hidden;
}

.task-steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
}

.task-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 120px;
    position: relative;
}

.task-step-item .step-number {
    position: absolute;
    top: -5px;
    right: calc(50% - 35px);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    z-index: 2;
}

.step-icon-svg {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.task-step-item:hover .step-icon-svg {
    transform: scale(1.1);
}

.step-icon-svg svg {
    width: 100%;
    height: 100%;
}

.task-step-item .step-text {
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 20px;
    flex-shrink: 0;
}

.step-connector svg {
    width: 20px;
    height: 20px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 0.75rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.9rem;
    color: #666;
}

/* Current Task Card */
.current-task-content {
    padding: 0.5rem 0;
}

.current-task-content .task-product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.current-task-content .task-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-task-content .price {
    font-weight: 700;
    color: var(--primary-color);
}

.current-task-content .commission {
    font-weight: 600;
}

/* Task History */
.task-history-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.task-history-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.task-history-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.task-history-amount {
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.task-history-commission {
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

.task-history-info {
    min-width: 0;
}

.task-history-price {
    min-width: 90px;
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 575px) {
    /* 基础设置 */
    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        padding-top: 50px;
        padding-bottom: 0;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 防止横向滚动 */
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand img {
        height: 42px;
    }
    
    .nav-search {
        margin: 0.5rem 0;
    }
    
    .nav-search .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    /* Page Section - 减少顶部空白 */
    .page-section {
        padding-top: 10px !important;
    }
    
    /* Container padding */
    .container.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* 移动端网格布局优化 */
    .quick-stats-grid,
    .order-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .quick-stat-box,
    .order-stat-box,
    .task-stat-box {
        padding: 15px 10px !important;
    }
    
    .quick-stat-box .stat-icon,
    .order-stat-box .stat-icon,
    .task-stat-box .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        background: transparent !important;
    }
    
    .quick-stat-box .stat-icon svg,
    .order-stat-box .stat-icon svg,
    .task-stat-box .stat-icon svg {
        width: 100% !important;
        height: 100% !important;
    }
    
    .quick-stat-box .stat-value,
    .order-stat-box .stat-value,
    .task-stat-box .stat-value {
        font-size: 1rem !important;
        word-break: break-all;
    }
    
    .quick-stat-box .stat-label,
    .order-stat-box .stat-label,
    .task-stat-box .stat-label {
        font-size: 0.7rem !important;
    }
    
    /* Headers */
    .orders-header-section,
    .profile-header-section,
    .task-header-section,
    .dompet-header-section {
        padding: 3rem 0 1rem;
    }
    
    /* Dompet Page Mobile */
    .dompet-balance-card,
    .balance-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .balance-value-large,
    .balance-card .balance-value {
        font-size: 1.5rem !important;
        word-break: break-all;
    }
    
    .balance-frozen {
        font-size: 0.75rem;
    }
    
    .balance-actions {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .balance-actions .btn,
    .balance-card .balance-actions .btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        width: 100%;
    }
    
    .balance-actions .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .mini-stat-card {
        padding: 0.5rem;
    }
    
    .mini-stat-icon {
        font-size: 1.2rem;
    }
    
    .mini-stat-value {
        font-size: 0.75rem;
    }
    
    .mini-stat-label {
        font-size: 0.6rem;
    }
    
    .dompet-tabs {
        padding: 0.25rem;
    }
    
    .dompet-tabs .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    /* Profile */
    .profile-card {
        padding: 1rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .profile-avatar i {
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .profile-uid {
        font-size: 0.75rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Orders */
    .order-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .order-filters .nav {
        flex-wrap: nowrap;
    }
    
    .order-filters .nav-link {
        white-space: nowrap;
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .order-card {
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
    
    .order-header {
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-id {
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .order-id img {
        width: 18px !important;
    }
    
    .order-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .order-body {
        padding: 0.6rem 0.75rem;
    }
    
    .order-footer {
        padding: 0.6rem 0.75rem;
    }
    
    .order-product {
        gap: 0.75rem;
    }
    
    .order-product-image {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }
    
    .order-product-title {
        font-size: 0.85rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.25rem;
    }
    
    .order-product-price {
        font-size: 0.9rem;
    }
    
    .order-product-commission {
        font-size: 0.7rem;
    }
    
    .order-date {
        font-size: 0.75rem;
    }
    
    .order-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* VIP Banner */
    .vip-banner {
        padding: 1rem;
    }
    
    /* VIP Info Card Mobile */
    .vip-info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .vip-info-card .vip-badge {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }
    
    .vip-info-card .vip-badge svg {
        width: 30px;
        height: 30px;
    }
    
    .vip-info-card .vip-level {
        font-size: 1rem;
    }
    
    .vip-info-card .vip-stats {
        font-size: 0.75rem;
    }
    
    .get-task-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .vip-badge-large {
        padding: 0.5rem 1rem;
    }
    
    .vip-badge-large i {
        font-size: 1.5rem;
    }
    
    .vip-badge-large span {
        font-size: 0.9rem;
    }
    
    .vip-info {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
    }
    
    /* Instructions */
    .instruction-step {
        padding: 0.5rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
    
    .step-icon {
        font-size: 1.8rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    /* New Task Guide Mobile Styles */
    .task-steps-container {
        padding: 1rem 0.5rem;
        gap: 0.25rem;
    }
    
    .task-step-item {
        max-width: 70px;
    }
    
    .task-step-item .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        right: calc(50% - 25px);
    }
    
    .step-icon-svg {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .task-step-item .step-text {
        font-size: 0.65rem;
    }
    
    .step-connector {
        padding-top: 15px;
    }
    
    .step-connector svg {
        width: 14px;
        height: 14px;
    }
    
    /* Task History */
    .task-history-image {
        width: 40px;
        height: 40px;
    }
    
    .task-history-title {
        max-width: 100px;
        font-size: 0.8rem;
    }
    
    .task-history-amount {
        font-size: 0.8rem;
    }
    
    .task-history-commission {
        font-size: 0.7rem;
    }
    
    .task-history-price {
        min-width: 80px;
    }
    
    .task-history-info .badge {
        font-size: 0.6rem;
        padding: 0.2em 0.4em;
    }
    
    /* Profile Menu */
    .profile-menu .nav {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .profile-menu .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem;
    }
    
    .profile-menu .nav-link i {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .card {
        border-radius: 10px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Wallet */
    .wallet-balance-card {
        padding: 1rem;
    }
    
    .balance-label {
        font-size: 0.85rem;
    }
    
    .balance-value {
        font-size: 1.3rem;
    }
    
    .wallet-balance-card .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Transaction List */
    .transaction-item {
        padding: 0.75rem 0;
    }
    
    .transaction-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .transaction-title {
        font-size: 0.85rem;
    }
    
    .transaction-date {
        font-size: 0.7rem;
    }
    
    .transaction-amount {
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 1rem auto;
        max-width: calc(100% - 2rem);
    }
    
    /* 登录/注册弹窗移动端适配 */
    #loginModal .modal-dialog,
    #registerModal .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }
    
    #loginModal .modal-dialog-centered,
    #registerModal .modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    #loginModal .modal-content,
    #registerModal .modal-content {
        max-height: calc(100vh - 2rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    #loginModal .modal-body,
    #registerModal .modal-body {
        overflow-y: auto;
        flex: 1;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    #loginModal .modal-header,
    #registerModal .modal-header {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
    }
    
    /* 验证码输入框移动端样式 */
    #loginModal .input-group,
    #registerModal .input-group {
        flex-wrap: nowrap;
    }
    
    #loginModal .input-group .form-control,
    #registerModal .input-group .form-control {
        min-width: 0;
    }
    
    #loginModal .input-group .btn,
    #registerModal .input-group .btn {
        flex-shrink: 0;
    }
    
    /* 任务弹窗移动端专用样式 */
    #taskModal .modal-dialog {
        max-width: 340px;
        margin: 0.5rem auto;
    }
    
    #taskModal .modal-content {
        border-radius: 12px;
    }
    
    #taskModal .modal-header {
        padding: 0.6rem 0.8rem;
    }
    
    #taskModal .modal-title {
        font-size: 0.95rem;
    }
    
    #taskModal .modal-body {
        padding: 0.75rem;
    }
    
    #taskModal .modal-footer {
        padding: 0.5rem 0.75rem;
    }
    
    #taskModal .modal-footer .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-dialog.modal-sm {
        max-width: 300px;
        margin: 1rem auto;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        padding: 0.6rem 0.5rem;
    }
    
    /* Task Modal */
    .task-product {
        padding: 0.75rem;
    }
    
    .task-product-image {
        width: 80px;
        height: 80px;
    }
    
    .task-product-info h6 {
        font-size: 0.9rem;
    }
    
    .task-info-row {
        padding: 0.5rem 0;
    }
    
    /* Login Required */
    .login-required-card {
        padding: 2rem 1.5rem;
    }
    
    .login-required-icon i {
        font-size: 4rem;
    }
    
    .login-required-card h3 {
        font-size: 1.2rem;
    }
    
    .login-required-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .login-required-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Mobile Bottom Nav */
    .mobile-nav {
        padding: 0.4rem 0;
    }
    
    .mobile-nav .nav-item {
        padding: 0.25rem;
    }
    
    .mobile-nav .nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-nav .nav-item span {
        font-size: 0.65rem;
    }
    
    .mobile-nav .nav-task i {
        font-size: 2rem;
    }
}

/* Medium Mobile */
@media (min-width: 576px) and (max-width: 767px) {
    .navbar-brand img {
        height: 60px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .order-product-image {
        width: 100px;
        height: 100px;
    }
    
    .task-history-title {
        max-width: 180px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .vip-info {
        flex-direction: row;
    }
    
    .profile-menu .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-menu .nav-link {
        border-bottom: none;
        border-right: none;
    }
}

/* ===== PC端聊天对话框组件 ===== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

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

.chat-widget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulse-badge 2s infinite;
}

.chat-widget-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-widget-window.show {
    display: flex;
}

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

.chat-widget-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-widget-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-widget-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-widget-title {
    font-weight: 600;
    font-size: 15px;
}

.chat-widget-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-widget-status .online {
    color: #4ade80;
}

.chat-widget-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-widget-close:hover {
    background: rgba(255,255,255,0.3);
}

.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fa;
}

.chat-widget-date {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin: 10px 0;
    padding: 4px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.chat-widget-msg {
    display: flex;
    margin-bottom: 12px;
    gap: 8px;
}

.chat-widget-msg.sent {
    flex-direction: row-reverse;
}

.chat-widget-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-widget-msg.sent .chat-widget-msg-avatar {
    display: none;
}

.chat-widget-msg-content {
    max-width: 75%;
}

.chat-widget-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-widget-msg.received .chat-widget-msg-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-widget-msg.sent .chat-widget-msg-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-widget-msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-widget-msg.sent .chat-widget-msg-time {
    text-align: right;
}

.chat-widget-quick {
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-widget-quick button {
    background: #f0f2f5;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-widget-quick button:hover {
    background: var(--primary-color);
    color: #fff;
}

.chat-widget-input {
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-widget-img-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-widget-img-btn:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.chat-widget-input textarea {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 13px;
    resize: none;
    max-height: 80px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-widget-input textarea:focus {
    border-color: var(--primary-color);
}

.chat-widget-input button:not(.chat-widget-img-btn) {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-widget-input button:not(.chat-widget-img-btn):hover {
    transform: scale(1.05);
}

/* 新消息提示动画 */
.chat-widget-btn.has-new {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 打字中提示 */
.chat-widget-typing {
    display: none;
    padding: 8px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

.chat-widget-typing.show {
    display: block;
}

.chat-widget-typing i {
    animation: typing 1s infinite;
}

@keyframes typing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* PC端聊天图片样式 */
.chat-widget-msg-image {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-widget-msg-image:hover {
    transform: scale(1.02);
}

/* PC端图片预览模态框 */
.widget-image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.widget-image-preview.show {
    display: flex;
}

.widget-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-preview-close:hover {
    background: rgba(255,255,255,0.3);
}

.widget-preview-img {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 8px;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.widget-preview-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.widget-preview-actions button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.widget-preview-actions button:hover {
    background: rgba(255,255,255,0.3);
}

.widget-preview-hint {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-top: 15px;
}

/* ===== 额外移动端优化 ===== */

/* 金额数字自适应 */
.amount-text,
.balance-value,
.stat-value,
.price-value {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 防止触摸时出现蓝色高亮 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* iOS安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-nav {
        padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .quick-stats-grid,
    .order-stats-grid,
    .task-stats-grid {
        gap: 6px !important;
    }
    
    .quick-stat-box,
    .order-stat-box,
    .task-stat-box {
        padding: 10px 6px !important;
    }
    
    .quick-stat-box .stat-icon,
    .order-stat-box .stat-icon,
    .task-stat-box .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    .quick-stat-box .stat-icon svg,
    .order-stat-box .stat-icon svg,
    .task-stat-box .stat-icon svg {
        width: 100% !important;
        height: 100% !important;
    }
    
    .quick-stat-box .stat-value,
    .order-stat-box .stat-value,
    .task-stat-box .stat-value {
        font-size: 0.75rem !important;
    }
    
    .quick-stat-box .stat-label,
    .order-stat-box .stat-label,
    .task-stat-box .stat-label {
        font-size: 0.6rem !important;
    }
    
    .balance-card .balance-value {
        font-size: 1.3rem !important;
    }
    
    .mobile-nav .nav-item span {
        font-size: 0.6rem;
    }
    
    .mobile-nav .nav-task i {
        font-size: 1.8rem;
    }
    
    /* Super small screen task guide */
    .task-step-item {
        max-width: 60px;
    }
    
    .step-icon-svg {
        width: 40px !important;
        height: 40px !important;
    }
    
    .task-step-item .step-text {
        font-size: 0.6rem !important;
    }
    
    .task-step-item .step-number {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6rem !important;
    }
    
    .step-connector svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* 任务模态框移动端适配 */
@media (max-width: 575px) {
    .task-platform {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .task-platform img {
        width: 24px;
        height: 24px;
    }
    
    .task-platform span {
        font-size: 0.85rem;
    }
    
    .task-product {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .task-product-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        border-radius: 8px;
    }
    
    .task-product-info h6 {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .task-product-info p {
        font-size: 0.75rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .task-info {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .task-info-row {
        padding: 0.4rem 0;
    }
    
    .task-info-label {
        font-size: 0.8rem;
    }
    
    .task-info-value {
        font-size: 0.85rem;
    }
    
    .task-info-label .badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    
    /* Alert in modal */
    .modal-body .alert {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-top: 0.75rem !important;
    }
    
    .modal-body .alert i {
        font-size: 0.85rem;
    }
}

/* ===== 登录/注册弹窗全局移动端适配 ===== */
@media (max-width: 576px) {
    /* 确保弹窗居中但可滚动 */
    #loginModal .modal-dialog-centered,
    #registerModal .modal-dialog-centered {
        align-items: center;
        min-height: 100%;
        padding: 0.5rem;
    }
    
    #loginModal .modal-content,
    #registerModal .modal-content {
        max-height: 90vh;
        margin: auto;
    }
    
    #loginModal .modal-body,
    #registerModal .modal-body {
        max-height: calc(90vh - 60px);
        overflow-y: auto;
    }
    
    /* 表单元素紧凑化 */
    #loginModal .mb-3,
    #registerModal .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    #loginModal .form-label,
    #registerModal .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    #loginModal .form-control,
    #registerModal .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* 验证码显示样式 */
    #loginCaptchaQuestion,
    #regCaptchaQuestion {
        font-size: 16px !important;
        letter-spacing: 2px !important;
    }
}

/* 超小屏幕适配 (小于400px) */
@media (max-width: 400px) {
    #loginModal .modal-dialog,
    #registerModal .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    #loginModal .modal-body,
    #registerModal .modal-body {
        padding: 0.75rem;
    }
    
    #loginModal .form-control,
    #registerModal .form-control,
    #chatLoginModal .form-control,
    #chatRegisterModal .form-control {
        font-size: 14px;
        padding: 0.4rem 0.6rem;
    }
    
    #loginModal .btn,
    #registerModal .btn,
    #chatLoginModal .btn,
    #chatRegisterModal .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Chat页面登录弹窗适配 */
#chatLoginModal .modal-body,
#chatRegisterModal .modal-body {
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

@media (max-width: 576px) {
    #chatLoginModal .modal-dialog,
    #chatRegisterModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #chatLoginModal .modal-dialog-centered,
    #chatRegisterModal .modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: center;
    }
    
    #chatLoginModal .modal-content,
    #chatRegisterModal .modal-content {
        max-height: 90vh;
    }
    
    #chatLoginModal .mb-3,
    #chatRegisterModal .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    flex-wrap: wrap;
    gap: 2px;
}

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.pagination .page-link:hover:not(.disabled) {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
}

/* Mobile Pagination */
@media (max-width: 575px) {
    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0;
    }
    
    .pagination-sm .page-link {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* ===== 多语言支持样式 ===== */

/* 确保按钮文本不换行，自动调整宽度 */
.btn {
    white-space: nowrap;
}

/* 底部导航适应多语言 */
.mobile-nav .nav-item span {
    white-space: nowrap;
    font-size: 0.7rem;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片标题允许换行 */
.feature-card h5,
.info-card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 统计框适应长文本 */
.stat-label,
.task-stat-box span {
    font-size: 0.8rem;
    word-wrap: break-word;
}

/* 表单标签自适应 */
.form-label {
    word-wrap: break-word;
}

/* 模态框按钮组 */
.modal-footer .btn {
    min-width: 80px;
}

/* 确保货币显示正确 */
.product-price,
.balance-amount,
.stat-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* ===== FOOTER ===== */
.site-footer {
    background: #0d1b3e;
    padding: 40px 0 20px;
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .site-footer {
        margin-bottom: 0;
    }
}

.footer-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: justify;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff8c00;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: #ff8c00;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-badges {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-badge {
    height: 50px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
}

.footer-copyright {
    background: #091428;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 15px 0 70px;
    font-size: 0.8rem;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .footer-copyright {
        padding: 15px 0;
        margin-bottom: 0;
    }
}

/* Terms & Privacy Modal */
#termsModal .modal-title,
#privacyModal .modal-title {
    color: #1a1a2e;
    font-weight: 600;
}

#termsModal .modal-body,
#privacyModal .modal-body {
    color: #555;
    line-height: 1.7;
}
