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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header h1 {
    font-size: 1.8rem;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #667eea;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.generator {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.controls, .results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.control-group input, .control-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.control-group input:focus, .control-group select:focus {
    border-color: #667eea;
    outline: none;
}

.control-group input[type="range"] {
    padding: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.btn-small {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 0.5rem;
}

.btn-small:hover {
    background: #764ba2;
}

.inspiration {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.inspiration h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.inspiration p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.results {
    min-height: 300px;
}

.results h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.result-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.result-item p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.batch-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.placeholder {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    padding: 3rem 0;
}

.error {
    background: #ffe0e0;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.success {
    background: #e0ffe0;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

footer p {
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 内页样式 */
.page-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-content h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.page-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.history-list, .favorites-list {
    list-style: none;
}

.history-item, .favorite-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.history-item .meta, .favorite-item .meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.history-item .actions, .favorite-item .actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.login-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.admin-panel {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-panel h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .generator {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .batch-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }

    .controls, .results, .page-content {
        padding: 1.5rem;
    }

    .hero {
        padding: 1.5rem;
    }
}