/* 抖音去水印工具专用样式 */

/* 内容区域 */
.content-area {
    flex: 1;
    padding: 0 0.75rem;
    margin: 1rem 0;
}

/* SEO内容区域 */
.seo-content {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    border-radius: 24px;
    color: var(--gray-800);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%236b7280" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%236b7280" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%236b7280" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%236b7280" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%236b7280" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.seo-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.seo-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.seo-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* 功能特点区域 */
.features-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.features-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
    justify-content: center;
}

.features-section h3::before {
    content: "✨";
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.features-section h3:not(:first-child) {
    margin-top: 3rem;
}

.features-list,
.usage-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.features-list li,
.usage-list li {
    position: relative;
    padding: 1rem 1.5rem 1rem 3rem;
    color: var(--gray-700);
    line-height: 1.6;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features-list li:hover,
.usage-list li:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.features-list li::before,
.usage-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.features-list li:hover::before,
.usage-list li:hover::before {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.notice-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 16px;
    border-left: 5px solid var(--primary);
    position: relative;
    z-index: 1;
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* 输入区域 */
.input-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-label::before {
    content: "🔗";
    font-size: 1.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.url-input {
    flex: 1;
    padding: 1rem 1.25rem;
    padding-right: 9rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.url-input::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.input-actions {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.375rem;
}

.action-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.2s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
}

/* 结果区域 */
.result-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    position: relative;
}

.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, var(--primary) 100%);
}

.result-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-header h3::before {
    content: "🎉";
    font-size: 1.5rem;
}

.result-content {
    padding: 2rem;
}

/* 封面区域 */
.cover-section {
    margin-bottom: 2.5rem;
}

.cover-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cover-section h4::before {
    content: "🖼️";
    font-size: 1.25rem;
}

.cover-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cover-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
}

.cover-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cover-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.cover-actions .btn {
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cover-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cover-actions .btn:hover::before {
    left: 100%;
}

.cover-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* 用户指引 */
.user-guide {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.guide-text {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.guide-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* 视频区域 */
.video-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-section h4::before {
    content: "🎬";
    font-size: 1.25rem;
}

.images-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.images-section h4::before {
    content: "🖼️";
    font-size: 1.25rem;
}

.video-player {
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-player video {
    max-width: 100%;
    max-height: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
    transition: all 0.3s ease;
}

.video-player video:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.video-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.video-actions .btn {
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.video-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.video-actions .btn:hover::before {
    left: 100%;
}

.video-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* 加载状态 */
.loading-section {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 错误状态 */
.error-section {
    text-align: center;
    padding: 2rem 1rem;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #dc2626;
}

.error-content svg {
    width: 3rem;
    height: 3rem;
    color: #dc2626;
}

.error-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #dc2626;
}

/* 按钮样式增强 */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-area {
        padding: 0 0.5rem;
    }
    
    .seo-content {
        padding: 2rem 1rem;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .seo-content h1 {
        font-size: 1.75rem;
    }
    
    .seo-content h2 {
        font-size: 1.25rem;
    }
    
    .seo-content h3 {
        font-size: 1rem;
    }
    
    .seo-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .input-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .url-input {
        padding: 0.875rem 1rem;
        padding-right: 7rem;
        font-size: 0.95rem;
    }
    
    .input-actions {
        right: 0.25rem;
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .action-btn svg {
        width: 1rem;
        height: 1rem;
    }
    
    .features-section {
        padding: 2rem 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .features-section h3 {
        font-size: 1.5rem;
    }
    
    .features-list,
    .usage-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .features-list li,
    .usage-list li {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
    }
    
    .features-list li::before,
    .usage-list li::before {
        left: 0.75rem;
        top: 0.875rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1rem;
    }
    
    .notice-text {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
    
    .result-content {
        padding: 1.5rem;
    }
    
    .video-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .video-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cover-image img {
        max-height: 250px;
    }
    
    .video-player video {
        max-height: 300px;
    }
    
    .loading-section {
        padding: 3rem 1rem;
    }
    
    .loading-spinner {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .content-area {
        padding: 0 0.25rem;
    }
    
    .input-section {
        padding: 1rem;
    }
    
    .url-input {
        padding: 0.75rem 0.875rem;
        padding-right: 6.5rem;
        font-size: 0.9rem;
    }
    
    .input-actions {
        right: 0.125rem;
        gap: 0.125rem;
    }
    
    .action-btn {
        width: 1.875rem;
        height: 1.875rem;
    }
    
    .action-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .seo-content {
        padding: 1.5rem 0.75rem;
    }
    
    .features-section {
        padding: 1.5rem 1rem;
    }
    
    .result-content {
        padding: 1rem;
    }
}

/* 无障碍支持 */
.url-input:focus,
.paste-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .url-input {
        border-width: 3px;
    }
    
    .result-section {
        border: 2px solid var(--gray-300);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .url-input,
    .paste-btn {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .seo-content {
        background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 50%, var(--gray-950) 100%);
        border-color: var(--gray-700);
        color: var(--gray-100);
    }
    
    .seo-content h1 {
        color: var(--gray-100);
        background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .seo-content h2 {
        color: var(--primary);
    }
    
    .seo-content h3 {
        color: var(--gray-300);
    }
    
    .seo-description {
        color: var(--gray-400);
    }
    
    .features-section {
        background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 50%, var(--gray-950) 100%);
        border-color: var(--gray-700);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .features-section h3 {
        color: var(--gray-100);
    }
    
    .features-list li,
    .usage-list li {
        background: var(--gray-800);
        border-color: var(--gray-700);
        color: var(--gray-300);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .features-list li:hover,
    .usage-list li:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
        border-color: var(--primary);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    }
    
    .notice-text {
        color: var(--gray-400);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }
    
    .result-section {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
    
    .result-header {
        background: var(--gray-900);
        border-color: var(--gray-700);
    }
    
    .url-input {
        background: var(--gray-800);
        border-color: var(--gray-600);
        color: var(--gray-100);
    }
    
    .url-input:focus {
        border-color: var(--primary);
    }
    
    .paste-btn {
        background: var(--gray-700);
        color: var(--gray-300);
    }
    
    .paste-btn:hover {
        background: var(--primary);
        color: white;
    }
    
    .user-guide {
        background: var(--gray-900);
        border-color: var(--primary);
    }
    
    .guide-text {
        color: var(--gray-300);
    }
} 