/* 二次元Kawaii风格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: transparent;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* 粒子效果 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

/* 背景幻灯片 - 增强存在感 */
.background-slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundBreathing 8s ease-in-out infinite;
    transition: background-image 1.5s ease-in-out;
    opacity: 0.85;
}

@keyframes backgroundBreathing {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* 可爱装饰 */
.cute-decoration {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 容器透明调节 */
:root {
    --container-opacity: 0.3;
    --container-blur: 15px;
    --border-opacity: 0.5;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, var(--container-opacity));
    backdrop-filter: blur(var(--container-blur));
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.25);
    border: 2px solid rgba(255, 182, 193, var(--border-opacity));
}

h1 {
    color: #ff6b95;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 107, 149, 0.2);
}

.intro-box {
    background: rgba(255, 248, 225, var(--container-opacity));
    border: 1px dashed rgba(255, 213, 79, var(--border-opacity));
    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: rgba(255, 255, 255, var(--container-opacity));
    backdrop-filter: blur(var(--container-blur));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.25);
    border: 2px solid rgba(255, 182, 193, var(--border-opacity));
}

.step-title {
    font-size: 18px;
    color: #ff6b95;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* 文案复制容器样式 */
.text-copy-container {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.text-copy-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.copy-text {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.6;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    color: #2c3e50;
    white-space: pre-line;
}

.copy-text::after {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 32px;
    color: #ff9a9e;
    font-family: serif;
    opacity: 0.3;
}

.copy-text::before {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 32px;
    color: #ff9a9e;
    font-family: serif;
    opacity: 0.3;
}

.copy-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 160px;
}

.copy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.6);
}

.copy-button:active {
    transform: translateY(-1px);
}

.refresh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 13px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    min-width: 120px;
}

.refresh-button:hover {
    background: white;
    border-color: #ff9a9e;
    color: #ff9a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.douyin-jump-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF0050 0%, #FF0050 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
    transition: all 0.3s ease;
    width: 60%;
    margin: 25px auto;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.douyin-jump-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.douyin-jump-button:hover::before {
    left: 100%;
}

.douyin-jump-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.6);
}

.douyin-jump-button:active {
    transform: translateY(-1px);
}

.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: 70px;
    height: 70px;
    border-radius: 35px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    display: flex;
    flex-direction: column;
    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;
    animation: serviceIconBreathing 2s ease-in-out infinite;
}

@keyframes serviceIconBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-text {
    font-size: 12px;
    margin-top: 2px;
    font-weight: bold;
}

.chatbot-button i {
    font-size: 24px;
}

.online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border: 2px solid white;
    border-radius: 50%;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    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(135deg, #ff9a9e 0%, #fad0c4 100%);
    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: #ff9a9e;
}

.chat-send {
    background: #ff9a9e;
    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: rgba(240, 247, 255, var(--container-opacity));
    backdrop-filter: blur(var(--container-blur));
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ff9a9e;
}

.guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-icon {
    background: #ff9a9e;
    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: #ff6b95;
    font-weight: bold;
}

.contact-button {
    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;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 20px auto;
}

.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: #ff6b95;
}

/* 更新加载指示器样式 */
.loading-indicator {
    display: none;
    text-align: center;
    margin: 20px 0;
    color: #ff9a9e;
    font-size: 16px;
    font-weight: 500;
}

.loading-indicator i {
    margin-right: 10px;
}

.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;
}

/* 视频播放器样式 */
.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: #ff6b95;
    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: #FF0050;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button-center:hover {
    transform: scale(1.1);
    background: white;
}

/* 客服图标样式 */
.service-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: none;
}

.default-service-icon {
    font-size: 24px;
}

/* 审核动画样式 */
.audit-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.audit-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9a9e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audit-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}