/* 所有CSS样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 80px;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
}

.intro-box {
    background: #fff8e1;
    border: 1px dashed #ffd54f;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.intro-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.intro-icon {
    color: #e60023;
    margin-right: 10px;
    font-size: 18px;
}

.step {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.step-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-number {
    display: inline-block;
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

.image-collage-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.collage-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
    display: block;
    background: white;
    -webkit-touch-callout: default;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    cursor: pointer;
}

.refresh-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px auto;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background: #e9ecef;
}

.kuaishou-jump-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, #FF5000, #FF2C00);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    margin: 20px 0;
}

.kuaishou-jump-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.step-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    color: #155724;
}

.success-icon {
    font-size: 40px;
    color: #28a745;
    margin-bottom: 10px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to right, #12B7F5, #1E90FF);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-button i {
    font-size: 24px;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border: 2px solid white;
    border-radius: 50%;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.chat-header {
    background: linear-gradient(to right, #12B7F5, #1E90FF);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    font-size: 16px;
}

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

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-action {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f5f5f5;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.bot-message {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: #95ec69;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.image-message {
    padding: 5px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
}

.image-message img {
    width: 100%;
    border-radius: 5px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
    display: flex;
    flex-direction: column;
}

.screenshot-notice {
    background: #fff8e1;
    border: 1px dashed #ffd54f;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #ff6f00;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-notice i {
    margin-right: 5px;
}

.input-row {
    display: flex;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input:focus {
    border-color: #12B7F5;
}

.chat-send {
    background: #12B7F5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-upload {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

.resource-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.resource-button {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.resource-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.resource-button.secondary {
    background: linear-gradient(to right, #42e695, #3bb2b8);
}

.resource-button.tertiary {
    background: linear-gradient(to right, #5b86e5, #36d1dc);
}

.simple-guide {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-icon {
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.guide-text {
    flex: 1;
}

.highlight {
    color: #e60023;
    font-weight: bold;
}

.contact-button {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #333;
}

.download-prompt {
    display: none;
    margin-top: 10px;
    text-align: center;
    color: #e60023;
}

.save-hint {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.long-press-hint {
    font-size: 14px;
    color: #3498db;
    margin-top: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.loading-indicator {
    display: none;
    text-align: center;
    margin: 10px 0;
    color: #3498db;
}

.alternative-save-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px auto;
    transition: all 0.2s ease;
}

.alternative-save-btn:hover {
    background: #2980b9;
}

.audit-status {
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.audit-status.initial {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
}

.audit-status.fail {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.audit-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* 全屏图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
}

.save-instruction {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 视频播放器样式 */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: #e60023;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-display {
    color: white;
    font-size: 14px;
    font-family: monospace;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 80%;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.play-pause-btn:hover {
    background: rgba(255,255,255,0.3);
}

.video-title {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
}