* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    height: 100%;
}
body {
    background-color: #f7f8fa;
    padding-bottom: 80px;
}

/* 顶部黄色导航整体容器 */
.top-yellow-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffcc00;
    z-index: 99;
    padding: 14px 14px 10px;
    border-radius: 0 0 22px 22px;
}
.top-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 26px;
    padding: 8px 14px;
}
.search-input-wrap i {
    color: #999999;
    margin-right: 8px;
    font-size: 16px;
}
.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
}
.search-btn {
    background-color: #ff8822;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 20px;
    font-size: 15px;
}
.add-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 横向分类Tab */
.tab-scroll-wrap {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
}
.tab-scroll-wrap::-webkit-scrollbar {
    height: 0;
}
.tab-item {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}
.tab-item.active {
    position: relative;
    font-weight: 600;
}
.tab-item.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -6px;
    height: 3px;
    background: #222;
    border-radius: 2px;
}

/* 主体内容区域 */
.main {
    margin-top: 145px;
    padding: 12px;
}

/* 双列任务网格布局 */
.task-grid-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.task-grid-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}
.task-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.task-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-price {
    color: #e62828;
    font-size: 18px;
    font-weight: bold;
}
.task-title {
    font-size: 15px;
    margin: 8px 0 5px;
    font-weight: 500;
}
.task-source-row {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 12px;
}
.task-count-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* ===================== 底部导航【最终统一版】 ===================== */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 98;
}
/* 普通导航项 */
.footer-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
/* 激活高亮色（和全站按钮统一 #ff8822） */
.footer-nav a.active {
    color: #ff8822;
}
.footer-nav a i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 中间悬浮圆形按钮 严格匹配你原有样式 */
.footer-center-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffcc00;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #222;
}
/* 中间按钮激活态 */
.footer-center-btn.active {
    background: #ffb800;
}

/* 全局点击按压动效（统一缩放 0.96） */
.task-grid-card,
.tab-item,
.footer-nav a,
.search-btn,
.add-btn {
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.task-grid-card:active,
.tab-item:active,
.footer-nav a:active,
.search-btn:active,
.add-btn:active {
    transform: scale(0.96);
    opacity: 0.92;
}

/* 加载动画、交互提示样式 */
.loader {
    height: 30px;
    aspect-ratio: 3;
    --c:no-repeat linear-gradient(#FF7A2F 0 0);
    background:
        var(--c) calc(0*100%/5) 50%,
        var(--c) calc(1*100%/5) 50%,
        var(--c) calc(2*100%/5) 50%,
        var(--c) calc(3*100%/5) 50%,
        var(--c) calc(4*100%/5) 50%,
        var(--c) calc(5*100%/5) 50%;
    background-size:calc(100%/6 + 1px) 50%;
    animation: l19 1s infinite cubic-bezier(0.5,170,0.5,-170);
    margin: 20px auto;
}
@keyframes l19 {
    14.28% {background-position: calc(0*100%/5) 51%, calc(1*100%/5) 50%, calc(2*100%/5) 50%, calc(3*100%/5) 50%, calc(4*100%/5) 50%, calc(5*100%/5) 50%}
    28.57% {background-position: calc(0*100%/5) 50%, calc(1*100%/5) 51%, calc(2*100%/5) 50%, calc(3*100%/5) 50%, calc(4*100%/5) 50%, calc(5*100%/5) 50%}
    42.85% {background-position: calc(0*100%/5) 50%, calc(1*100%/5) 50%, calc(2*100%/5) 51%, calc(3*100%/5) 50%, calc(4*100%/5) 50%, calc(5*100%/5) 50%}
    57.14% {background-position: calc(0*100%/5) 50%, calc(1*100%/5) 50%, calc(2*100%/5) 50%, calc(3*100%/5) 51%, calc(4*100%/5) 50%, calc(5*100%/5) 50%}
    71.42% {background-position: calc(0*100%/5) 50%, calc(1*100%/5) 50%, calc(2*100%/5) 50%, calc(3*100%/5) 50%, calc(4*100%/5) 51%, calc(5*100%/5) 50%}
    85.71% {background-position: calc(0*100%/5) 50%, calc(1*100%/5) 50%, calc(2*100%/5) 50%, calc(3*100%/5) 50%, calc(4*100%/5) 50%, calc(5*100%/5) 51%}
}
.page-loading {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.page-loading.hide {
    display: none;
}
.mini-loader {
    height: 16px !important;
    margin: 0 auto !important;
}
.global-toast {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.global-toast.show {
    opacity: 1;
}
.task-btn:disabled {
    opacity: 0.65;
    pointer-events: none;
}
.empty-tip {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
}

/* 手机端自适应 */
@media (max-width: 750px) {
    .main {
        padding-left: 10px;
        padding-right: 10px;
    }
}