/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8F8F8;
    color: #000;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #FFFFFF;
    min-height: 100vh;
    position: relative;
}

.main-content {
    background-color: #F8F8F8;
    padding-bottom: 99px;
    min-height: calc(100vh - 45px);
    padding-top: 12px;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

/* Header Styles */
.status-bar {
    background-color: #FFFFFF;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    position: relative;
    z-index: 10;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-icon {
    height: 28px;
}

.app-title h1 {
    font-family: 'FZLanTingHeiS-B-GB', 'PingFang SC', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 21.59px;
    letter-spacing: 2.16px;
    color: #000024;
}

.customer-service {
    width: 20px;
    height: 20px;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    border-radius: 8px;
    padding: 0 13px;
}

.hero-bg {
    width: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 24px 0;
}

.hero-text {
    position: relative;
    margin-bottom: 20px;
}

.hero-title-shadow {
    font-family: 'Philosopher', serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 26.88px;
    color: #FF222C;
    position: absolute;
    top: 2px;
    left: 0;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.hero-title {
    font-family: 'Philosopher', serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 26.88px;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.join-button {
    position: relative;
    width: 84px;
    height: 29px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.join-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.join-button span {
    position: relative;
    z-index: 1;
    font-family: 'Philosopher', serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 17.92px;
    color: #FE5745;
    display: block;
    text-align: center;
    line-height: 29px;
}

/* Announcement Styles */
.announcement {
    background-color: #FFFFFF;
    height: 31px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    margin-top: 10px;
}

.announcement-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.announcement-container {
    height: 22px;
    overflow: hidden;
    width: 100%;
}

.announcement-text a {
    flex: 1;
    font-family: 'PingFang SC', sans-serif;
    font-size: 14px;
    line-height: 19.6px;
    color: #000000 !important;
    text-decoration: none;
}

.more-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Menu Grid Styles */
.menu-grid {
    background-color: #FFFFFF;
    margin: 13px 8px 0;
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.menu-icon {
    width: 34px;
    height: 34px;
}

.menu-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 14.52px;
    color: #000024;
    text-align: center;
}

/* Task Hall Styles */
.task-hall {
    margin: 12px 0 0;
    padding: 0 17px;
}

.task-hall-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trophy-icon {
    width: 22px;
    height: 22px;
}

.task-hall-header h3 {
    font-family: 'PingFang SC', sans-serif;
    font-size: 14px;
    line-height: 19.6px;
    color: #000000;
    font-weight: 400;
}

/* Task Sections Styles */
.task-sections {
    margin: 22px 0 0;
    padding: 0 13px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-around;
}

.task-card {
    position: relative;
    height: 164px;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    width: 50%;
}

    .task-card.tmall-card {
        background-image: url('/static/images/pages/index/tmzq.png');
        background-repeat: no-repeat;
        background-size: contain;
        max-width: 200px;
    }

    .task-card.taobao-card {
        background-image: url('/static/images/pages/index/tbzq.png');
        background-repeat: no-repeat;
        background-size: contain;
        max-width: 200px;
    }

.task-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
}

.task-tag {
    display: inline-block;
    padding: 4px 12px;
    font-family: 'PingFang SC', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    border-radius: 0 0 8px 0;
}

.tmall-tag {
    background-color: #FF2C5F;
}

.taobao-tag {
    background-color: #FF6A00;
}

.task-content {
    position: relative;
    z-index: 3;
    height: 100%;
}

.task-platform {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    gap: 12px;
    /* padding-left: 40px; */
}

.platform-icon {
    width: 50px;
    height: 50px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-logo {
    width: 42px;
    height: 42px;
}

.platform-info {
    flex: 1;
}

    .platform-info h4 {
        font-family: 'PingFang SC', sans-serif;
        font-size: 12px;
        line-height: 16.8px;
        color: #000024;
        margin-bottom: 4px;
        width: 89px;
    }

    .platform-info p {
        font-family: 'PingFang SC', sans-serif;
        font-size: 12px;
        line-height: 16.8px;
        color: #000024;
    }

.start-task-btn {
    background: linear-gradient(90deg, #F24C49 0%, #F24B48 100%);
    border-radius: 200px;
    width: 92px;
    height: 24px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 14.52px;
    flex-shrink: 0;
}

.task-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.task-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Records Section Styles */
.records-section {
    margin: 17px 0 0;
    padding: 0 13px;
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.record-card {
    border-radius: 10px;
    padding: 15px 12px;
    position: relative;
    overflow: hidden;
}

.rewards-card {
    background: linear-gradient(180deg, #FCEEE5 0%, #FFD4B7 100%);
    display: flex;
    justify-content: center;
    width: 50%;
}

.reward-info h4 {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 21px;
    color: #000000;
    margin-bottom: 4px;
    text-align: center;
}

.reward-amount {
    font-family: 'PingFang SC', sans-serif;
    font-size: 24px;
    line-height: 33.6px;
    color: #FF2C00;
    margin-bottom: 10px;
    text-align: center;
}

.start-task-small {
    background: linear-gradient(90deg, #F24C49 0%, #F24B48 100%);
    border-radius: 200px;
    width: 74px;
    height: 18px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 14.52px;
    text-align: center;
}

.reward-qr {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

.qr-code {
    width: 96px;
    height: 96px;
    border-radius: 8px;
}

.order-record {
    background: linear-gradient(180deg, #FCECEC 0%, #FDCFC5 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.purchase-record {
    background: linear-gradient(180deg, #FEF3DD 0%, #FDE4AC 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

    .order-record h4,
    .purchase-record h4 {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 600;
        font-size: 15px;
        line-height: 21px;
        color: #000000;
    }

.record-icon {
    width: 33px;
    height: 33px;
}

/* Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 78px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #F0F0F0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-family: 'PingFang SC', sans-serif;
    font-size: 12px;
    line-height: 16.8px;
    color: #3E3E3E;
}

.nav-item.active span {
    color: #FD3D28;
    font-weight: 600;
}

.red-packet {
    position: relative;
}

    .red-packet::after {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        background-color: #FF0000;
        border-radius: 50%;
    }

.task-top-title {
    color: #fff;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* Daily Awards Styles */
.daily-awards-container {
    border-radius: 8px;
    background: linear-gradient(359deg, #FFF -6.86%, #FFF1E7 118.01%);
    margin: 0 13px;
    padding: 20px;
    margin-top: 16px;
    font-size: 13px;
    height: 300px;
    line-height: 300px;
    overflow: hidden;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

    .award-item:last-child {
        margin-bottom: 0;
    }

.award-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.award-content {
    flex: 1;
}

.award-task {
    font-family: 'PingFang SC', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #333333;
    margin-bottom: 4px;
}

.award-reward {
    font-family: 'PingFang SC', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #666666;
}

.highlight-amount {
    color: #FF6B35;
    font-weight: 600;
}

.daily-awards-container .reward-amount {
    color: #FF2C00;
    font-weight: 600;
    margin-left: 5px;
}
