/* 产品经理翻译器 - 产品官网样式 */

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --pm-color: #e74c3c;
    --dev-color: #27ae60;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #7f8c8d;
    --card-bg: #ffffff;
}

* {
    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(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.logo {
    font-size: 5rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

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

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

.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-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.btn-small:hover {
    background: var(--gray);
    color: white;
}

.btn-translate {
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn-translate:hover {
    background: var(--primary-dark);
}

/* Translator Section */
.translator {
    padding: 60px 0;
    background: white;
}

.translate-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.input-side, .output-side {
    background: var(--light);
    border-radius: 16px;
    padding: 25px;
}

.side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pm-badge {
    background: #ffe5e5;
    color: var(--pm-color);
}

.dev-badge {
    background: #e5f5e5;
    color: var(--dev-color);
}

.side-header select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.input-side textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
}

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

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray);
    font-weight: bold;
}

.output-area {
    min-height: 200px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
}

.output-area .placeholder {
    color: var(--gray);
    font-style: italic;
}

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

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

.example-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.example-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.example-pm, .example-dev {
    padding: 20px;
    border-radius: 12px;
}

.example-pm {
    background: #fff5f5;
    border-left: 4px solid var(--pm-color);
}

.example-dev {
    background: #f0fff0;
    border-left: 4px solid var(--dev-color);
}

.label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pm-label {
    background: var(--pm-color);
    color: white;
}

.dev-label {
    background: var(--dev-color);
    color: white;
}

.arrow-down {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gray);
    margin: 10px 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light);
    border-radius: 16px;
    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: var(--light);
}

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

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

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

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

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

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

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.available {
    background: #d4edda;
    color: #155724;
}

.soon {
    background: #fff3cd;
    color: #856404;
}

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

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

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

/* Responsive */
@media (max-width: 900px) {
    .translate-box {
        grid-template-columns: 1fr;
    }
    
    .arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .logo {
        font-size: 3.5rem;
    }
}
