/* YouTube Video Find Styles v1.0.1 */

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

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #ff0000;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff0000;
}

/* Main Content Styles */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    text-align: center;
    padding: 6rem 5%;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.search-container {
    margin-top: 2rem;
}

.search-container input {
    padding: 1rem;
    width: 60%;
    max-width: 500px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    font-size: 1rem;
}

.search-container button {
    padding: 1rem 2rem;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #cc0000;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Benefits Section */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    padding: 4rem 5%;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    .search-container input {
        width: 100%;
        margin-bottom: 1rem;
    }

    .search-container button {
        width: 100%;
    }
}

#advanced-features {
    background-color: #f9f9f9;
    padding: 4rem 5%;
}

#advanced-features .features-grid {
    margin-top: 2.5rem;
}

/* 搜索结果样式 */
#search-results {
    margin-top: 2rem;
    padding: 1rem;
}

.verdict {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.status {
    margin-bottom: 0.5rem;
}

.success {
    color: #28a745;
    font-weight: bold;
}

.error {
    color: #dc3545;
}

.not-found {
    color: #6c757d;
}

.view-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.view-link:hover {
    background-color: #0056b3;
}

.note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

#loading {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.search-tip {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.search-container input {
    padding: 1rem;
    width: 60%;
    max-width: 500px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    font-size: 1rem;
}

.search-container input:focus {
    border-color: #ff0000;
    outline: none;
}

.error {
    padding: 1rem;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #d32f2f;
    margin: 1rem 0;
}

.error-details {
    font-size: 0.9rem;
    color: #d32f2f;
    background: #fff3f3;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    word-break: break-word;
    white-space: pre-line;
    border: 1px solid #ffcdd2;
}

.service-card .error {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #fff3f3;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.status {
    margin-bottom: 0.25rem;
}

.loading-container {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

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

.search-status {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    background: #f8f9fa;
    border-left: 4px solid #ff0000;
}

.progress-container {
    width: 80%;
    max-width: 400px;
    height: 4px;
    background: #f3f3f3;
    border-radius: 4px;
    margin: 15px auto;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #ff0000;
    transition: width 0.3s ease;
}

.current-service {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    min-height: 16px;
}

.loading-text {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.about-features, .use-cases, .archive-sources {
    margin: 2rem 0;
}

.use-cases ul, .archive-sources ul {
    list-style: none;
    padding: 0;
}

.use-cases li, .archive-sources li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-cases li:before, .archive-sources li:before {
    content: "•";
    color: #ff0000;
    position: absolute;
    left: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* About 部分的样式优化 */
#about {
    padding: 4rem 5%;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.about-features {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-features > div {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.about-features > div:hover {
    transform: translateY(-5px);
}

.about-features h3 {
    color: #ff0000;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #f3f3f3;
    padding-bottom: 0.8rem;
}

.about-features p {
    line-height: 1.8;
    color: #666;
}

.use-cases, .archive-sources {
    margin: 4rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.use-cases h3, .archive-sources h3 {
    color: #ff0000;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.use-cases ul, .archive-sources ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.use-cases li, .archive-sources li {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0;
    transition: transform 0.3s ease;
}

.use-cases li:hover, .archive-sources li:hover {
    transform: translateY(-3px);
}

.use-cases li:before, .archive-sources li:before {
    display: none;
}

.use-cases strong, .archive-sources strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .use-cases ul, .archive-sources ul {
        grid-template-columns: 1fr;
    }

    .use-cases, .archive-sources {
        padding: 1.5rem;
    }
}

/* 用户评价区域样式 */
#testimonials {
    padding: 4rem 5%;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 60px;
}

.testimonials-wrapper {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 2rem;
}

.testimonial-card {
    min-width: calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid #ff0000;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: #ff0000;
    font-size: 2rem;
    font-family: Georgia, serif;
}

.user-info {
    margin-top: auto;
}

.user-info strong {
    display: block;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.user-info span {
    color: #666;
    font-size: 0.9rem;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-button:hover {
    background: #cc0000;
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff0000;
    transform: scale(1.3);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
    }
    
    .testimonials-container {
        padding: 0 40px;
    }
}

.error {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

.retry-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #cc0000;
} 