body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2.5em;
}

header p {
    color: #777;
    font-size: 1.2em;
}

main {
    padding: 20px 0;
}

.user-input h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.result-section h2 {
    color: #667eea;
    margin-top: 0;
    text-align: center;
}

.result-section h3 {
    color: #764ba2;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    margin-top: 20px;
}

.zodiac-section,
.bazi-section,
.gua-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.match-score {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.match-high {
    color: #4CAF50;
}

.match-medium {
    color: #FF9800;
}

.match-low {
    color: #F44336;
}

.hexagram {
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
    line-height: 1.5;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.hexagram-line {
    margin: 2px 0;
}

.hexagram-line.yin {
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    width: 100px;
    margin: 0 auto;
}

.hexagram-line.yang {
    height: 12px;
    background: linear-gradient(to right, #667eea, #764ba2);
    width: 100px;
    margin: 0 auto;
}

.hexagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hexagram-name {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
    color: #667eea;
}

.interpretation {
    line-height: 1.6;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.summary-section {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* 加载指示器 */
.loader {
    font-size: 2em;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误信息 */
.error {
    color: #f44336;
    background-color: #ffebee;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #f44336;
    margin: 10px 0;
}