:root {
    --primary-color: #3182CE;
    --secondary-color: #4A5568;
    --background-color: #F5F7FA;
    --text-color: #2C5282;
    --border-color: #CBD5E0;
    --success-color: #38B2AC;
    --warning-color: #DD6B20;
    --error-color: #E53E3E;
    --heading-color: #1A365D;
    --highlight-bg: #EBF3FF;
    --light-border: #E2E8F0;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #4A5568;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px;
}

.nav-links a {
    color: #2C5282;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #EBF3FF;
}

.nav-links a.active {
    color: #1A365D;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"].form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CBD5E0;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #3182CE;
    border-color: #3182CE;
}

.btn-primary:hover {
    background-color: #2C5282;
    border-color: #2C5282;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Progress Bar */
.progress-section {
    margin-top: 2rem;
}

.progress-container {
    margin: 1.5rem 0;
}

.current-step {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.progress {
    height: 1rem;
    background-color: #EBF3FF;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: #3182CE;
    transition: width 0.6s ease;
}

/* Results Display */
.generation-steps {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background-color: #F5F7FA;
    border: 1px solid #CBD5E0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: #EBF3FF;
}

.tab-btn.active {
    background-color: #3182CE;
    color: white;
    border-color: #3182CE;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1A365D;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}

.language-badge {
    background-color: #3182CE;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timestamp {
    color: #4A5568;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.status-badge.completed {
    background-color: #38B2AC;
    color: white;
}

.status-badge.in_progress {
    background-color: #3182CE;
    color: white;
}

.status-badge.failed {
    background-color: #E53E3E;
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .tabs {
        flex-direction: column;
    }
} 

/* 加载动画 */
.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-right-color: #4a90e2;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* 错误消息 */
.error-message {
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
    color: #721c24;
    margin-bottom: 1rem;
}

/* 内容区域 */
.content-area {
    padding: 1rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: #333;
}

.markdown-content ul, 
.markdown-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.markdown-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow: auto;
    margin-bottom: 1rem;
}

.markdown-content code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
}

.markdown-content blockquote {
    border-left: 4px solid #ced4da;
    padding-left: 1rem;
    color: #6c757d;
    margin-left: 0;
    margin-bottom: 1rem;
}

/* 内容区域调试边框 */
.tab-content {
    border: 1px solid #e9ecef;
    padding: 15px;
    background-color: #fff;
    min-height: 200px;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 样本提案区域 Sample Proposals Section */
.sample-proposals-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e6f2ff;
}

.sample-title {
    text-align: center;
    color: #1A365D;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sample-subtitle {
    text-align: center;
    color: #4A5568;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sample-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f4f8;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sample-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3182CE, #4299E1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sample-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sample-card:hover::before {
    transform: scaleX(1);
}

.sample-image {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.sample-icon {
    font-size: 2.5rem;
    display: inline-block;
    padding: 0.8rem;
    background: linear-gradient(135deg, #EBF3FF, #DBEAFE);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.sample-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.sample-card-title {
    color: #1A365D;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    min-height: 3.2rem;
    display: flex;
    align-items: flex-start;
}

.sample-description {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: left;
}

.sample-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    margin-top: auto;
}

.sample-tag {
    background: #EBF3FF;
    color: #3182CE;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-sample {
    display: inline-block;
    background: linear-gradient(135deg, #3182CE, #4299E1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: auto;
    text-align: center;
    align-self: flex-start;
}

.btn-sample:hover {
    background: linear-gradient(135deg, #2C5282, #3182CE);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    color: white;
    text-decoration: none;
}

.sample-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e6f2ff;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sample-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sample-title {
        font-size: 1.6rem;
    }
    
    .sample-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .sample-card {
        padding: 1.2rem;
    }
} 

/* New Landing Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    margin: -1rem -1rem 3rem -1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta-btn {
    display: inline-block;
    background: #fbbf24;
    color: #0f172a;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Metrics Section */
.metrics-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-item {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 2rem;
    color: #0f766e;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.metric-label {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    color: #1a365d;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tracks Section */
.tracks-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.track-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

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

.track-title {
    color: #0f766e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.track-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-cta-btn {
    display: inline-block;
    background: #0f766e;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.track-cta-btn:hover {
    background: #0d5f5a;
}

/* How It Works Section */
.how-it-works-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: #f8fafc;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
}

.step-title {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: #ecfeff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.feature-title {
    color: #0f766e;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.feature-description {
    color: #2d3748;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: left;
}

/* Testimonials Section */
.testimonials-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: #f8fafc;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
    flex-grow: 1;
}

.testimonial-author {
    color: #0f766e;
    font-weight: 500;
    text-align: right;
    margin-top: auto;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

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

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: white;
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #1a365d;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 1.5rem 1rem 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Input Section Enhancements */
.input-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tracks-grid,
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
} 

/* Free Trial Highlight Section */
.free-trial-highlight {
    background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
    border: 2px solid #0891b2;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.free-trial-desc {
    color: #0f766e;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-free-trial {
    background: linear-gradient(135deg, #0891b2 0%, #0f766e 100%);
    border: none;
    color: white;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-free-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.4);
    background: linear-gradient(135deg, #0e7490 0%, #0d9488 100%);
} 