/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Main Tool Section */
#tool-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

#youtube-url {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#youtube-url:focus {
    border-color: #1e90ff;
    outline: none;
}

.cta-button {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0066cc;
}

/* Loading State */
#loading {
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Video Info Table */
.video-info-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.video-info-table tr {
    border-bottom: 1px solid #eee;
}

.video-info-table tr:last-child {
    border-bottom: none;
}

.video-info-table td {
    padding: 15px;
}

.video-info-table td:first-child {
    font-weight: bold;
    width: 150px;
    background: #f8f9fa;
}

/* Video Thumbnail */
.video-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Download Button */
.download-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 20px auto;
    display: block;
    width: 100%;
    max-width: 300px;
}

.download-button:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
    }
    
    .video-info-table td {
        display: block;
        width: 100%;
    }
    
    .video-info-table td:first-child {
        background: #f8f9fa;
        padding: 10px 15px;
    }
}

/* Features Section */
#features {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

#features h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#features ul {
    list-style: none;
    padding: 0;
}

#features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

#features li:before {
    content: "✓";
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

#features li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer nav a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    footer nav a {
        margin: 0 10px;
    }
}

/* 在现有的CSS中添加以下样式 */

.download-container {
    text-align: center;
    margin: 20px 0;
}

#download-selected {
    background-color: #28a745;
    margin: 10px auto;
}

#download-selected:hover {
    background-color: #218838;
}

.screenshot-item label {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.screenshot-item input[type="checkbox"] {
    margin: 10px 0;
    transform: scale(1.2);
}

.scenes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scene-item {
    position: relative;
    text-align: center;
    transition: transform 0.2s;
}

.scene-item:hover {
    transform: scale(1.05);
}

.scene-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scene-item input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.5);
    cursor: pointer;
}

.scenes-title, .info-title {
    margin: 30px 0 20px;
    color: #333;
    font-size: 1.5em;
    text-align: center;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.download-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    max-width: 300px;
}

.download-button:hover {
    background-color: #218838;
}
 