:root {
    --primary-color: #FF0050;
    --secondary-color: #00F2EA;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 60px 0;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
}

.input-container {
    padding: 30px;
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* 确保输入框有足够的右边距 */
#tiktok-url {
    width: 100%;
    padding: 12px 40px 12px 20px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 44px;
    line-height: normal;
}

input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 20px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), #ff4081);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.2);
}

.secondary-btn {
    background: white;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.3);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.frames-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.frame-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.frame-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.frame-item img {
    width: 100%;
    height: auto;
    display: block;
}

.download-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background: var(--primary-color);
    color: white;
}

.features, .how-to {
    padding: 40px;
    margin: 40px 0;
}

.features h2, .how-to h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step-item {
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    margin-bottom: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .features, .how-to {
        padding: 30px 20px;
    }
    
    .feature-item, .step-item {
        padding: 15px;
    }
}

#progress-bar {
    display: none;
    width: 100%;
    height: 4px;
    border: none;
    border-radius: 2px;
    margin: 20px 0;
    background: rgba(225, 225, 225, 0.3);
    overflow: hidden;
}

#progress-bar::-webkit-progress-bar {
    background: transparent;
}

#progress-bar::-webkit-progress-value {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

#progress-bar::-moz-progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

#progress-text {
    display: none;
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.footer {
    margin-top: 60px;
    padding: 40px 20px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-link {
        justify-content: center;
    }
}

.supported-links {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.supported-links .hint-text {
    color: #888;
    margin-bottom: 5px;
}

.supported-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.supported-links li {
    color: #666;
    margin: 3px 0;
    display: flex;
    align-items: center;
}

.supported-links li:before {
    content: "•";
    margin-right: 5px;
    color: #888;
}

@media (max-width: 768px) {
    .supported-links {
        font-size: 0.8rem;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 添加新的清除链接样式 */
.clear-link {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px;
    transition: color 0.2s ease;
}

.clear-link:hover {
    color: #ff0050;
}

/* 确保输入框容器是相对定位 */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
} 