/* 解梦工具样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#dreamInput {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

#dreamInput:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 10px rgba(75, 108, 183, 0.3);
}

#interpretBtn, #newInterpretationBtn {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

#interpretBtn:hover, #newInterpretationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#interpretBtn:active, #newInterpretationBtn:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 30px;
}

.result-section h2 {
    color: #182848;
    margin-bottom: 20px;
    text-align: center;
}

.interpretation {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #4b6cb7;
    line-height: 1.6;
}

.interpretation h3 {
    color: #4b6cb7;
    margin-bottom: 15px;
}

.interpretation p {
    margin-bottom: 15px;
}

.interpretation ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.interpretation li {
    margin-bottom: 8px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    #dreamInput {
        height: 150px;
    }
}