/* 短视频去水印插件样式 - 参考ucks.cn设计 */

/* 容器 */
.zvw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 包装器 */
.zvw-wrapper {
    background: #fafafa;
    min-height: 100vh;
}

/* Hero区域 */
.zvw-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zvw-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.zvw-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.zvw-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.zvw-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* 主输入区域 */
.zvw-main-input {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.zvw-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    transition: all 0.3s;
}

.zvw-input-wrap:focus-within {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.zvw-input-icon {
    color: #999;
    display: flex;
    align-items: center;
}

.zvw-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
}

.zvw-input::placeholder {
    color: #999;
}

/* 解析按钮 */
.zvw-btn-parse {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.zvw-btn-parse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.zvw-btn-parse:active {
    transform: translateY(0);
}

.zvw-btn-parse:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.zvw-spin {
    animation: zvw-spin 1s linear infinite;
}

@keyframes zvw-spin {
    to { transform: rotate(360deg); }
}

/* 状态提示 */
.zvw-status {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-block;
}

.zvw-status.loading {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.zvw-status.success {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.zvw-status.error {
    background: rgba(245, 101, 101, 0.15);
    color: #f56565;
}

/* 解析结果区域 */
.zvw-result-section {
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.zvw-result-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.zvw-result-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zvw-result-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.zvw-result-time {
    color: #999;
    font-size: 13px;
}

.zvw-result-body {
    padding: 24px;
    display: flex;
    gap: 30px;
}

.zvw-result-cover {
    position: relative;
    width: 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.zvw-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.zvw-result-cover:hover img {
    transform: scale(1.05);
}

.zvw-result-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.zvw-result-cover:hover .zvw-result-play {
    opacity: 1;
    background: rgba(102, 126, 234, 0.9);
}

.zvw-result-play svg {
    margin-left: 4px;
}

.zvw-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zvw-video-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.zvw-video-author {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.zvw-result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.zvw-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.zvw-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.zvw-btn-copy,
.zvw-btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    color: #666;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.zvw-btn-copy:hover,
.zvw-btn-preview:hover {
    background: #e5e5e5;
    color: #333;
}

.zvw-video-url {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.zvw-video-url input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    outline: none;
}

.zvw-video-url button {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.zvw-video-url button:hover {
    color: #667eea;
}

/* 预览弹窗 */
.zvw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zvw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.zvw-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.zvw-modal-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
}

.zvw-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.3s;
}

.zvw-modal-close:hover {
    opacity: 0.7;
}

/* 平台区域 */
.zvw-platforms-section {
    padding: 60px 0;
    background: #fff;
}

.zvw-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.zvw-platforms-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.zvw-platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.3s;
}

.zvw-platform-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.zvw-platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

.zvw-platform-icon svg {
    width: 28px;
    height: 28px;
}

.zvw-platform-icon.douyin { background: #fe2c55; color: #fff; }
.zvw-platform-icon.kuaishou { background: #ff4906; color: #fff; }
.zvw-platform-icon.xiaohongshu { background: #fe2c55; color: #fff; }
.zvw-platform-icon.bilibili { background: #00a1d6; color: #fff; }
.zvw-platform-icon.weishi { background: #ff0000; color: #fff; }
.zvw-platform-icon.weibo { background: #e6162d; color: #fff; }
.zvw-platform-icon.pipixia { background: #ff4906; color: #fff; }
.zvw-platform-icon.toutiao { background: #000; color: #fff; }

.zvw-platform-item span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 使用步骤 */
.zvw-steps-section {
    padding: 60px 0;
    background: #fafafa;
}

.zvw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.zvw-step {
    text-align: center;
    padding: 30px;
}

.zvw-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.zvw-step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.zvw-step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 历史记录 */
.zvw-history-section {
    padding: 60px 0;
    background: #fff;
}

.zvw-history-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.zvw-history-item {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.zvw-history-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.zvw-history-cover {
    position: relative;
    height: 120px;
    background: #e5e5e5;
}

.zvw-history-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zvw-history-no-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 100%);
}

.zvw-history-platform {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.zvw-history-info {
    padding: 12px;
}

.zvw-history-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zvw-history-info span {
    font-size: 12px;
    color: #999;
}

.zvw-history-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.zvw-history-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .zvw-hero {
        padding: 40px 16px 60px;
    }
    
    .zvw-hero-title {
        font-size: 28px;
    }
    
    .zvw-hero-desc {
        font-size: 15px;
    }
    
    .zvw-main-input {
        padding: 6px;
    }
    
    .zvw-input-wrap {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .zvw-input {
        width: 100%;
        text-align: center;
    }
    
    .zvw-btn-parse {
        width: 100%;
        justify-content: center;
    }
    
    .zvw-platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .zvw-steps {
        grid-template-columns: 1fr;
    }
    
    .zvw-result-body {
        flex-direction: column;
    }
    
    .zvw-result-cover {
        width: 100%;
        height: 200px;
    }
    
    .zvw-history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .zvw-wrapper {
        background: #1a1a2e;
    }
    
    .zvw-platforms-section,
    .zvw-history-section {
        background: #16213e;
    }
    
    .zvw-section-title,
    .zvw-step-content h3,
    .zvw-video-title,
    .zvw-history-info h4 {
        color: #eee;
    }
    
    .zvw-platform-item,
    .zvw-history-item {
        background: #1f2937;
    }
    
    .zvw-platform-item span,
    .zvw-step-content p,
    .zvw-video-author,
    .zvw-history-info span {
        color: #aaa;
    }
    
    .zvw-result-card {
        background: #1f2937;
    }
    
    .zvw-result-header {
        border-color: #374151;
    }
    
    .zvw-result-time {
        color: #888;
    }
    
    .zvw-input-wrap {
        background: #374151;
    }
    
    .zvw-btn-copy,
    .zvw-btn-preview {
        background: #374151;
        color: #aaa;
    }
    
    .zvw-btn-copy:hover,
    .zvw-btn-preview:hover {
        background: #4b5563;
        color: #fff;
    }
    
    .zvw-video-url {
        background: #374151;
    }
    
    .zvw-video-url input {
        color: #aaa;
    }
}
