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

.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-content h1 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin: 0;
}

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.left-column {
    flex: 2;
    min-width: 0;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.form-card h2,
.tips-card h2,
.joke-card h2 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-bottom: 8px;
}

.tip-item:hover {
    background: #e9ecef;
}

.tip-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.tip-item p {
    margin: 0;
    color: #495057;
}

.joke-content {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ffc107;
}

.joke-content p {
    margin: 0;
    color: #856404;
}

.joke-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #212529;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.joke-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
}

.help-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    font-size: 0.9em;
}

.help-link:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

select,
input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 16px;
}

select {
    appearance: none; /* Remove default select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 8px;
    padding-right: 30px; /* Make space for the custom arrow */
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

h2 {
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 15px;
}

.prompt-box,
.response-box {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Preserve whitespace and wrap text */
    word-wrap: break-word; /* Break long words */
}

.response-box pre {
    margin: 0;
    font-size: 16px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #5a6268;
}

pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .left-column,
    .right-column {
        flex: 1;
        width: 100%;
    }
    
    .banner {
        padding: 40px 15px;
    }
    
    .banner-content h1 {
        font-size: 1.8em;
    }
    
    .banner-content p {
        font-size: 1em;
    }
    
    .card {
        padding: 20px;
    }
    
    .form-card h2,
    .tips-card h2,
    .joke-card h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.5em;
    }
    
    .card {
        padding: 15px;
    }
    
    .tip-item {
        padding: 10px;
    }
    
    .tip-icon {
        font-size: 1.2em;
    }
    
    button,
    .joke-button {
        font-size: 14px;
        padding: 12px;
    }
}