/* 截流任务系统 - 前端样式（完全还原原站） */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #f2f4f8;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
    min-height: 100vh;
}
.card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 32px;
    padding: 28px 24px 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.tag {
    background: #e6f7e6;
    color: #2e7d32;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.main-title {
    text-align: center;
    margin-bottom: 12px;
}
.main-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.tiny-note {
    text-align: center;
    font-size: 0.75rem;
    color: #e65100;
    background: #fff8e7;
    display: inline-block;
    margin: 8px auto 0;
    padding: 6px 16px;
    border-radius: 40px;
}
.note-wrapper {
    text-align: center;
    margin-bottom: 8px;
}
.subtitle {
    text-align: center;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 60px;
    padding: 14px 20px;
    margin: 12px 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: #bf360c;
}
.timer {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-radius: 60px;
    padding: 16px 20px;
    margin: 20px 0;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: #c2410c;
}
.step {
    background: #f9fafc;
    border-radius: 24px;
    padding: 22px 20px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}
.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.step-number,
.sub-step-number {
    width: 34px;
    height: 34px;
    background: #0f172a;
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}
.keywords-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.keyword-btn {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 12px;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #7dd3fc;
    user-select: none;
}
.keyword-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(3,105,161,0.1);
}
.keyword-btn:active {
    transform: scale(0.97);
}
.info-note {
    text-align: center;
    font-size: 0.8rem;
    color: #e65100;
    background: #fff3e0;
    padding: 10px;
    border-radius: 14px;
    margin-top: 14px;
}
.comment-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.comment-text {
    font-size: 0.92rem;
    color: #333;
    word-break: break-all;
    flex: 1;
}
.copy-single-btn {
    background: linear-gradient(135deg, #e6f7e6, #c8e6c9);
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid #a5d6a7;
    white-space: nowrap;
    transition: all 0.2s;
}
.copy-single-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(46,125,50,0.1);
}
.sub-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 700;
}
.sub-step-number {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
}
.mock-img {
    margin-top: 12px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}
.mock-img img {
    max-width: 100%;
    border-radius: 16px;
    display: block;
}
.file-input-area {
    margin-top: 10px;
}
#uploadHint {
    font-size: 0.92rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}
#screenshotInput {
    /* 隐藏原生小按钮，由 label.upload-btn 触发 */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.upload-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 16px;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #4a90d9, #2f54eb);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(47,84,235,0.25);
}
.upload-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(47,84,235,0.2);
}
#fileCount {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}
.submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 16px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.2s;
    border: none;
}
.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(238,90,36,0.3);
}
.submit-btn:active {
    transform: scale(0.98);
}
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}
#tempCopy {
    position: fixed;
    left: -9999px;
    opacity: 0;
}
.tail-image-section {
    margin: 20px 0;
    background: #fff9f0;
    border-radius: 28px;
    padding: 18px 16px;
    border: 1px solid #ffdeae;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.tail-image-title {
    font-size: 1rem;
    font-weight: 800;
    color: #b45309;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff1df;
    padding: 8px 20px;
    border-radius: 60px;
    letter-spacing: 0.5px;
}
.tail-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: #fff9f0;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ffe2b5;
}
.tail-image-container img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    max-height: 180px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.vip-section {
    margin: 20px 0 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, #fff0f0, #ffe0e0);
    padding: 18px 16px;
    border: 1px solid #ffb3b3;
    text-align: center;
}
.vip-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff0f0;
    padding: 8px 20px;
    border-radius: 60px;
    margin: 0 auto;
    width: fit-content;
}
.vip-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    background: #fff5f5;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ffcccc;
}
.vip-image-container img {
    width: 100%;
    border-radius: 20px;
}
.vip-btn {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    margin-top: 16px;
    display: inline-block;
    transition: all 0.2s;
}
.vip-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
hr {
    border: none;
    border-top: 1px solid #edf2f7;
    margin: 20px 0;
}
.footer {
    text-align: center;
    font-size: 0.82rem;
    color: #666;
    padding: 8px;
}

/* 客服悬浮窗样式 */
.kefu-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
}
.kefu-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2f54eb, #1d43d4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(47,84,235,0.4);
    transition: all 0.3s;
    position: relative;
}
.kefu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(47,84,235,0.5);
}
.kefu-btn-icon {
    font-size: 28px;
    color: #fff;
}
.kefu-btn .pulse-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(47,84,235,0.6);
    animation: kefu-pulse 2s ease-out infinite;
}
@keyframes kefu-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
.kefu-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}
.kefu-panel.show {
    display: block;
    animation: kefu-slide 0.3s ease;
}
@keyframes kefu-slide {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.kefu-panel-header {
    background: linear-gradient(135deg, #2f54eb, #1d43d4);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kefu-panel-avatar {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.kefu-panel-name {
    font-weight: 700;
    font-size: 1rem;
}
.kefu-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.kefu-panel-close:hover {
    background: rgba(255,255,255,0.3);
}
.kefu-panel-body {
    padding: 20px 16px;
    text-align: center;
}
.kefu-panel-msg {
    background: #f0f5ff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.5;
}
.kefu-panel-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2f54eb, #1d43d4);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.kefu-panel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(47,84,235,0.3);
}

/* 响应式 */
@media (max-width: 500px) {
    .card { padding: 20px 16px 32px; }
    .keywords-grid { grid-template-columns: 1fr; }
    .kefu-panel { width: 260px; right: -4px; }
    .kefu-btn { width: 48px; height: 48px; }
    .kefu-btn-icon { font-size: 24px; }
    .kefu-btn .pulse-ring { width: 48px; height: 48px; }
}
