* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #ffd6e7 0%, #ffebf3 50%, #e6f2ff 100%);
    color: #5a4a6a;
    line-height: 1.6;
    padding: 0 15px;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* 飘落樱花效果 */
.sakura {
    position: absolute;
    top: -50px;
    width: 15px;
    height: 15px;
    background: #ffb6c1;
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear forwards;
    z-index: 0;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 闪烁星星效果 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 浮动小动物装饰 */
.floating-cat, .floating-bunny {
    position: absolute;
    font-size: 24px;
    z-index: 0;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.floating-cat {
    top: 10%;
    left: 5%;
}

.floating-bunny {
    bottom: 15%;
    right: 5%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

header {
    text-align: center;
    padding: 20px 0 15px;
    position: relative;
    z-index: 1;
}

h1 {
    color: #ff6b93;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #ffd1dc, 4px 4px 0px rgba(255, 182, 193, 0.3);
    position: relative;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1px;
}

h1:before, h1:after {
    content: '✦';
    color: #ff9eb5;
    margin: 0 10px;
    font-size: 20px;
}

.intro-box {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 8px 20px rgba(255, 107, 147, 0.15);
    border: 2px solid #ffd1dc;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.intro-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    color: #8a6fa3;
    font-size: 15px;
}

.intro-icon {
    color: #ff6b93;
    margin-right: 12px;
    font-size: 20px;
}

.step {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 147, 0.15);
    border: 2px solid #ffd1dc;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

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

.step-number {
    display: inline-block;
    background: #ff9eb5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 12px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(255, 158, 181, 0.4);
}

.step-content {
    color: #5a4a6a;
    font-size: 15px;
    line-height: 1.6;
}

.step-content p {
    margin-bottom: 10px;
}

.simple-guide {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(255, 107, 147, 0.15);
    border: 2px solid #ffd1dc;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.simple-guide h3 {
    color: #ff6b93;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: rgba(255, 240, 245, 0.7);
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #ffc0cb;
}

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

.guide-icon {
    background: #ff9eb5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(255, 158, 181, 0.4);
}

.guide-text {
    flex: 1;
    color: #5a4a6a;
    font-weight: bold;
}

.image-collage-container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    border: 2px dashed #ffc0cb;
}

.collage-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
    display: block;
    cursor: pointer;
    border: 2px solid #ffd1dc;
}

.refresh-button {
    background: linear-gradient(135deg, #a2d2ff, #6a9eff);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(106, 158, 255, 0.3);
}

.refresh-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 158, 255, 0.4);
}

.kuaishou-jump-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff9eb5, #ff6b93);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 107, 147, 0.3);
    transition: all 0.3s ease;
    width: 60%;
    margin: 20px auto;
    font-size: 16px;
}

.kuaishou-jump-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 147, 0.4);
}

.kuaishou-jump-button img {
    width: 20px;
    height: 20px;
}

.step-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd1dc;
}

.success-box {
    background: rgba(212, 237, 218, 0.8);
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    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(135deg, #ff9eb5, #ff6b93);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    font-size: 12px;
}

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

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

.chatbot-text {
    font-size: 10px;
    font-weight: bold;
}

.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: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #ffd1dc;
    z-index: 1001;
}

.chat-header {
    background: linear-gradient(135deg, #ff9eb5, #ff6b93);
    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: #f9f3f7;
}

.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 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffd1dc;
}

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

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

.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: 8px;
    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 #ffd1dc;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background: #f9f3f7;
}

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

.chat-send {
    background: #ff6b93;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(255, 107, 147, 0.3);
}

.image-upload {
    background: none;
    border: none;
    color: #ff9eb5;
    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(135deg, #ff9eb5, #ff6b93);
    color: white;
    padding: 12px 15px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.resource-button.secondary {
    background: linear-gradient(135deg, #a2d2ff, #6a9eff);
}

.resource-button.tertiary {
    background: linear-gradient(135deg, #cdb4db, #a882c1);
}

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

.contact-button {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffd1dc;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    color: #ff6b93;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 20px auto;
    font-weight: bold;
}

.contact-button:hover {
    background: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #ff6b93;
    transform: translateY(-3px);
}

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

.save-hint {
    font-size: 14px;
    color: #8a6fa3;
    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: #6a9eff;
    margin-top: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

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

.alternative-save-btn {
    background: linear-gradient(135deg, #a2d2ff, #6a9eff);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(106, 158, 255, 0.3);
}

.alternative-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 158, 255, 0.4);
}

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

.audit-status.initial {
    background: rgba(255, 255, 255, 0.7);
    color: #8a6fa3;
}

.audit-status.fail {
    background: rgba(255, 243, 205, 0.8);
    border-color: #ffeaa7;
    color: #856404;
}

.audit-status.success {
    background: rgba(212, 237, 218, 0.8);
    border-color: #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;
    flex-direction: column;
}

.image-viewer img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.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: 16px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd1dc;
}

.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: #ff6b93;
    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;
}

/* 视频播放器封面样式 */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.play-button-center {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #ff6b93;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button-center:hover {
    transform: scale(1.1);
    background: white;
}

/* 响应式调整 */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    .step {
        padding: 15px;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
    }
    
    .kuaishou-jump-button {
        width: 80%;
    }
}

/* 移动端优化 - 修复长按保存问题 */
@media (max-width: 768px) {
    /* 在移动端禁用防右键保护 */
    body {
        -webkit-touch-callout: default !important;
        -webkit-user-select: text !important;
        user-select: text !important;
    }
    
    img {
        -webkit-touch-callout: default !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-user-drag: auto !important;
    }
    
    .collage-image {
        -webkit-touch-callout: default !important;
    }
    
    .image-viewer img {
        -webkit-touch-callout: default !important;
    }
    
    .long-press-hint {
        display: none;
    }
}

/* 针对iOS Safari的特殊优化 */
@supports (-webkit-touch-callout: none) {
    .collage-image {
        -webkit-touch-callout: default !important;
    }
    
    .image-viewer img {
        -webkit-touch-callout: default !important;
    }
}