/* Base Styles */
:root {
    --primary-color: #3551FF;
    --secondary-color: #4285F4;
    --dark-bg: #151C2E;
    --light-bg: #F0F1F3;
    --text-color: #333;
    --text-light: #FFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 4rem 0;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn.secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    color: var(--text-light);
}

.btn i {
    margin-right: 0.5rem;
}

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

/* Hero Section */
.hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 5rem 0;
    text-align: center;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
}

/* Page Header */
.page-header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Features Section */
.core-features {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    height: 3rem;
    display: flex;
    align-items: center;
}

.feature-card p {
    margin-bottom: 0;
    line-height: 1.5;
    height: 6rem;
}

/* Get Started */
.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.code-block {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    text-align: left;
    overflow-x: auto;
}

.step h3 {
    margin-bottom: 0.8rem;
}

.step p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ */
.faq {
    background-color: var(--light-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    font-weight: 600;
}

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

.tutorial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tutorial-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
}

.tutorial-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    height: 8rem;
    overflow: hidden;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    display: block;
}

.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Tutorial Page Styles */
.tutorials-content {
    padding: 2rem 0;
}

.tutorials-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    align-items: start;
}

.tutorial-nav {
    position: sticky;
    top: 100px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 10;
    width: 100%;
    align-self: flex-start;
}

.tutorial-sections {
    padding-top: 1rem;
}

.tutorial-section {
    scroll-margin-top: 120px;
    margin-bottom: 3rem;
}

.tutorial-nav h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.tutorial-nav ul {
    list-style: none;
    margin-top: 1rem;
}

.tutorial-nav li {
    margin-bottom: 0.5rem;
}

.tutorial-nav a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-color);
    font-weight: 500;
}

.tutorial-nav a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.tutorial-nav a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.tutorial-section h2 {
    text-align: left;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.tutorial-step {
    margin-bottom: 2rem;
}

.tutorial-step h3 {
    color: var(--primary-color);
}

.tutorial-step ol,
.tutorial-step ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta .btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    font-weight: 600;
}

.cta .btn:hover {
    background-color: var(--text-light);
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

/* Logo区域 */
.footer-logo {
    border: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.footer-logo-img {
    height: 50px;
    margin-bottom: 0.5rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* 链接区域 */
.footer-links-container {
    display: flex;
    gap: 2rem;
    border: none;
    padding: 1rem;
}

.footer-nav, .footer-links {
    text-align: left;
}

.footer-nav h3, .footer-links h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-nav ul, .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-nav li, .footer-links li {
    margin-bottom: 0.5rem;
}

.footer-nav a, .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover, .footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 版权信息区域 */
.footer-copyright {
    border: none;
    padding: 0.8rem 1rem;
    text-align: center;
    width: 100%;
}

.footer-copyright p {
    margin-bottom: 0.2rem;
    line-height: 1.2;
    font-size: 0.85rem;
}

/* FAQ Page Styles */
.faq-page .container {
    max-width: 1000px;
}

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-category {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.faq-category h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.faq-page .faq-container {
    max-width: 100%;
}

.ask-question {
    margin-top: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.ask-question h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.ask-question ul {
    list-style: none;
    margin: 1rem 0;
}

.ask-question li {
    margin-bottom: 0.8rem;
}

.ask-question li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.ask-question li a i {
    width: 20px;
    text-align: center;
}

/* Use Cases Page Styles */
.use-cases-page .container {
    max-width: 1000px;
}

.use-case-category {
    margin-bottom: 4rem;
}

.use-case-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.use-case-header .icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    margin-right: 1.5rem;
    color: var(--primary-color);
}

.use-case-header h2 {
    margin: 0;
    text-align: left;
    font-size: 1.8rem;
}

.use-case-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.use-case-example {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.use-case-example h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.example-result {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .features-grid, 
    .steps-container,
    .use-cases-grid, 
    .faq-container, 
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card h3,
    .tutorial-card h3 {
        height: auto;
    }
    
    .feature-card p,
    .tutorial-card p {
        height: auto;
    }
    
    .tutorials-layout {
        grid-template-columns: 1fr;
    }
    
    .tutorial-nav {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .tutorial-section {
        margin-top: 2rem;
    }
    
    .faq-category {
        padding: 1.5rem;
    }
    
    .faq-category h2 {
        font-size: 1.5rem;
    }
    
    .ask-question {
        padding: 1.5rem;
    }
    
    .use-case-header {
        flex-direction: column;
    }
    
    .use-case-header .icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .use-case-example {
        padding: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .footer-nav, .footer-links {
        width: 100%;
        text-align: center;
    }
}

/* Step Circles with Different Colors */
.get-started .step:nth-child(1) .step-number {
    background-color: #4285F4;
}

.get-started .step:nth-child(2) .step-number {
    background-color: #34A853;
}

.get-started .step:nth-child(3) .step-number {
    background-color: #A142F4;
} 