/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo i {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主内容区 */
.main-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 输入区域 */
.input-section {
    margin-bottom: 30px;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.url-input {
    flex: 1;
    padding: 18px 50px 18px 25px;
    border: 3px solid #e1e8ed;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.url-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), inset 0 2px 10px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.clear-btn {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.clear-btn.show {
    opacity: 1;
    visibility: visible;
}

.clear-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.parse-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.parse-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.6s;
}

.parse-btn:hover::before {
    left: 100%;
}

.parse-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
}

.parse-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.parse-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.input-tips {
    color: #666;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.loading-animation {
    position: relative;
    margin-bottom: 30px;
}

.magic-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.circle-outer, .circle-middle, .circle-inner {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-outer {
    width: 120px;
    height: 120px;
    border-top-color: #667eea;
    border-right-color: #667eea;
    animation: magicRotate 2s linear infinite;
}

.circle-middle {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-bottom-color: #764ba2;
    border-left-color: #764ba2;
    animation: magicRotate 1.5s linear infinite reverse;
}

.circle-inner {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    border-top-color: #ffd700;
    border-bottom-color: #ffd700;
    animation: magicRotate 1s linear infinite;
}

.magic-wand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ffd700;
    animation: magicPulse 2s ease-in-out infinite;
}

@keyframes magicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes magicPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #ffd700);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.6s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1.2s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.8s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2.4s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
}

.loading-text {
    margin-bottom: 25px;
}

.loading-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.loading-progress {
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

.progress-text {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* 视频信息区 */
.video-info {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频预览 */
.video-preview {
    position: relative;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-preview:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
}

/* 视频详情 */
.video-details {
    margin-bottom: 30px;
}

.video-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
}

.video-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.stat-item i {
    color: #667eea;
}

/* Prompt 区域 */
.prompt-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.prompt-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-title i {
    color: #667eea;
}

.prompt-content {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    border: 1px solid #e1e8ed;
}

.copy-prompt-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-prompt-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* 下载区域 */
.download-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.download-title i {
    color: #667eea;
    font-size: 1.4rem;
}

.download-options {
    display: grid;
    gap: 18px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.download-item:hover::before {
    left: 100%;
}

.download-item:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.download-item.featured {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
}

.download-item.featured::after {
    content: '🔥 热门';
    position: absolute;
    top: -8px;
    left: 20px;
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.download-item.featured:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.download-info {
    flex: 1;
}

.download-type {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.download-type i {
    font-size: 1.2rem;
}

.download-desc {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.4;
}

.download-btn {
    padding: 16px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.download-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.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.download-btn.primary {
    background: linear-gradient(135deg, #ffd700, #ffb347, #ff8c00);
    color: #2d3436;
    font-size: 16px;
    padding: 18px 32px;
    font-weight: 700;
    border: 3px solid #ffd700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: premiumPulse 3s ease-in-out infinite;
    position: relative;
}

.download-btn.primary::after {
    content: '⭐ 推荐';
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.download-btn.primary:hover {
    background: linear-gradient(135deg, #ffed4e, #ffc048, #ff9500);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
    transform: translateY(-4px) scale(1.05);
}

@keyframes premiumPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    }
}

.featured .download-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.featured .download-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* 分享区域 */
.share-section {
    margin-bottom: 20px;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title i {
    color: #667eea;
}

.share-item {
    display: flex;
    gap: 10px;
}

.share-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
}

.copy-btn {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* 错误提示 */
.error-msg {
    text-align: center;
    padding: 20px;
    background: #ffe6e6;
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    color: #d63031;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 底部 */
.footer {
    margin-top: 30px;
    text-align: center;
    color: white;
    opacity: 0.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer-text i {
    color: #ffd700;
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    color: #ffd700;
    font-size: 16px;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
}

.contact-item:first-child i {
    color: #07c160; /* 微信绿色 */
}

.contact-item:first-child:hover {
    background: rgba(7, 193, 96, 0.2);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 提示弹窗 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 剪贴板提示框 */
.clipboard-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    z-index: 1001;
    max-width: 350px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clipboard-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.clipboard-toast-content {
    padding: 20px;
}

.clipboard-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
}

.clipboard-toast-header i {
    font-size: 18px;
    color: #ffd700;
}

.clipboard-toast-text {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clipboard-toast-actions {
    display: flex;
    gap: 10px;
}

.clipboard-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.clipboard-btn.accept {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.clipboard-btn.accept:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.clipboard-btn.dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.clipboard-btn.dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 缓存状态样式 */
.cache-status {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cache-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cache-info:hover {
    opacity: 1;
}

.cache-info i {
    color: #ffd700;
    font-size: 14px;
}

.cache-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 15px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cache-clear-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.cache-clear-btn i {
    color: #ff6b6b;
    font-size: 11px;
}

/* 缓存提示样式 */
.cache-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #667eea;
    animation: cacheHintSlide 0.3s ease;
    backdrop-filter: blur(10px);
}

.cache-hint i {
    color: #ffd700;
    font-size: 14px;
    animation: clockTick 2s ease-in-out infinite;
}

@keyframes cacheHintSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clockTick {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 缓存相关的Toast样式增强 */
.toast.cache-toast {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.toast.cache-toast .toast-content {
    position: relative;
}

.toast.cache-toast .toast-content::before {
    content: '⚡';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
        border-radius: 20px;
        margin: 10px 0;
    }
    
    .input-container {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    
    .url-input {
        padding: 20px 25px;
        font-size: 16px;
        border-radius: 25px;
    }
    
    .clear-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }
    
    .parse-btn {
        width: 100%;
        padding: 20px;
        font-size: 18px;
        border-radius: 25px;
    }
    
    .logo {
        font-size: 2.2rem;
        gap: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .video-stats {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .contact-item {
        justify-content: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .download-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .download-btn {
        width: 100%;
        padding: 18px;
        font-size: 16px;
    }
    
    .loading {
        padding: 40px 15px;
    }
    
    .magic-circle {
        width: 100px;
        height: 100px;
    }
    
    .circle-outer {
        width: 100px;
        height: 100px;
    }
    
    .circle-middle {
        width: 70px;
        height: 70px;
        top: 15px;
        left: 15px;
    }
    
    .circle-inner {
        width: 35px;
        height: 35px;
        top: 32.5px;
        left: 32.5px;
    }
    
    .loading-title {
        font-size: 18px;
    }
    
    .clipboard-toast {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .main-content {
        padding: 15px;
        border-radius: 15px;
    }
    
    .header {
        margin-bottom: 25px;
    }
    
    .logo {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .url-input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .parse-btn {
        padding: 18px;
        font-size: 16px;
    }
    
    .video-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .video-stats {
        gap: 10px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-title {
        font-size: 1.1rem;
    }
    
    .download-item {
        padding: 15px;
    }
    
    .download-type {
        font-size: 1rem;
    }
    
    .download-desc {
        font-size: 13px;
    }
    
    .loading {
        padding: 30px 10px;
    }
    
    .magic-circle {
        width: 80px;
        height: 80px;
    }
    
    .circle-outer {
        width: 80px;
        height: 80px;
    }
    
    .circle-middle {
        width: 55px;
        height: 55px;
        top: 12.5px;
        left: 12.5px;
    }
    
    .circle-inner {
        width: 30px;
        height: 30px;
        top: 25px;
        left: 25px;
    }
    
    .magic-wand {
        font-size: 18px;
    }
    
    .loading-title {
        font-size: 16px;
    }
    
    .loading-subtitle {
        font-size: 13px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .url-input {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .parse-btn {
        padding: 15px;
        font-size: 14px;
    }
    
    .download-item {
        padding: 12px;
    }
    
    .download-btn {
        padding: 15px;
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .download-btn:hover,
    .parse-btn:hover,
    .clear-btn:hover {
        transform: none;
    }
    
    .download-btn:active,
    .parse-btn:active {
        transform: scale(0.95);
    }
    
    .url-input {
        font-size: 16px; /* 防止 iOS 缩放 */
    }
}