* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    background-color: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 70px;
    color: #1e293b;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.site-logo img {
    height: 40px;
}
.top-badge {
    background: #ff9800;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #eef2f6;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
    transition: 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 500;
}
.nav-item i {
    font-size: 22px;
}
.nav-item.active {
    color: #3b82f6;
}
.page {
    display: none;
    padding: 16px 14px 20px;
    animation: fade 0.25s ease;
}
.page.active-page {
    display: block;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(5px);}
    to { opacity: 1; transform: translateY(0);}
}
.notice-bar {
    background: linear-gradient(135deg, #fef9e6, #fff7e8);
    border-radius: 24px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #b85c00;
    border: 1px solid #ffe0a3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.notice-icon {
    background: #ffc107;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e2e00;
    font-size: 14px;
}
.notice-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    animation: scrollText 12s linear infinite;
}
@keyframes scrollText {
    0% { transform: translateX(0%);}
    100% { transform: translateX(-50%);}
}
.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}
.category-scroll::-webkit-scrollbar {
    height: 3px;
}
.cat-btn {
    display: inline-flex;
    background: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.cat-btn i {
    margin-right: 6px;
    font-size: 13px;
}
.cat-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.task-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    transition: 0.2s;
    cursor: pointer;
}
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.task-title {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-badge {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}
.platform-tag {
    font-size: 12px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 30px;
}
.task-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 12px;
    color: #475569;
}
.info-item i {
    width: 18px;
    margin-right: 4px;
    color: #64748b;
}
.commission {
    font-size: 20px;
    font-weight: 800;
    color: #f97316;
}
.stars {
    color: #facc15;
    letter-spacing: 2px;
}
.limit-info {
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 16px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.modal-mask.active {
    visibility: visible;
    opacity: 1;
}
.modal-container {
    background: white;
    width: 90%;
    max-height: 85%;
    border-radius: 32px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}
.modal-close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    background: white;
    padding: 0 0 0 10px;
    z-index: 10;
}
.detail-label {
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}
.detail-content {
    background: #f8fafc;
    padding: 10px;
    border-radius: 16px;
    font-size: 13px;
    word-break: break-word;
}
.sub-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 16px;
}
.sub-tab {
    padding: 8px 0;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
}
.sub-tab.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}
.sub-panel {
    display: none;
}
.sub-panel.active-panel {
    display: block;
}
.task-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 10px;
}
.badge-status {
    background: #e2e8f0;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 11px;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.small-btn {
    background: #3b82f6;
    border: none;
    padding: 6px 12px;
    border-radius: 40px;
    color: white;
    font-size: 11px;
    cursor: pointer;
}
.balance {
    font-size: 28px;
    font-weight: 800;
    color: #f97316;
}
.toast-msg {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 40px;
    z-index: 10000;
    font-size: 13px;
    opacity: 0;
    transition: 0.2s;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
}
.upload-area {
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    background: #fafcff;
}
button.submit-btn {
    background: #3b82f6;
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}
.copy-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
}
.profile-card {
    background: white;
    border-radius: 32px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar {
    width: 64px;
    height: 64px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}
hr {
    margin: 20px 0;
    border-color: #eef2f6;
}
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.login-modal.active {
    visibility: visible;
    opacity: 1;
}
.login-container {
    background: white;
    width: 85%;
    max-width: 340px;
    border-radius: 32px;
    padding: 24px;
}
.login-container h3 {
    margin-bottom: 20px;
    text-align: center;
}
.login-container input {
    margin-bottom: 15px;
}
.login-container button {
    margin-top: 10px;
}
.switch-form {
    text-align: center;
    margin-top: 15px;
    color: #3b82f6;
    cursor: pointer;
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.image-grid img {
    max-width: 100px;
    border-radius: 12px;
    cursor: pointer;
}
video {
    width: 100%;
    border-radius: 16px;
}
.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.image-item {
    position: relative;
    display: inline-block;
}
.image-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd;
}
.remove-img {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
}
.copy-tip {
    background: #3b82f6;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 30px;
    margin-bottom: 12px;
    font-size: 13px;
}
.material-preview {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}
.red-dot {
    background: #ef4444;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}
.bonus-btn {
    background: #f59e0b;
    margin-top: 8px;
}
.reject-reason {
    background: #fee2e2;
    padding: 6px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 6px;
    color: #b91c1c;
}
.image-preview-item {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.remove-preview-img {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
