/* 代码处刑台 - 产品官网样式 */

:root {
    --primary: #ff6b6b;
    --primary-dark: #ee5a5a;
    --secondary: #4ecdc4;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gray: #636e72;
    --card-bg: #ffffff;
    --gradient-1: #ff6b6b;
    --gradient-2: #ee5a5a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-roast {
    background: var(--primary);
    color: white;
    padding: 16px 48px;
    font-size: 1.2rem;
}

.btn-roast:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 20px 48px;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: white;
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.demo-box {
    max-width: 800px;
    margin: 0 auto;
}

.input-section {
    background: var(--light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.input-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.options {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Result Section */
.result-section {
    margin-top: 30px;
}

.roast-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #ffe0e0;
}

.roast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.roast-level {
    font-weight: 600;
    color: var(--primary);
}

.roast-content {
    line-height: 1.8;
}

.roast-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.roast-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
}

/* Download Section */
.download {
    padding: 80px 0;
    background: white;
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--light);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.download-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Examples Section */
.examples {
    padding: 80px 0;
    background: var(--light);
}

.examples h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.example-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.code-block {
    background: #2d3436;
    color: #dfe6e9;
    padding: 20px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

.roast-quote {
    padding: 20px;
    background: #fff5f5;
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--dark);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--dark);
    color: white;
    text-align: center;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-note {
    margin-top: 10px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .features h2,
    .demo h2,
    .download h2,
    .examples h2,
    .cta h2 {
        font-size: 2rem;
    }
}
