:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #4CAF50;
    --background-color: #f0f2f5;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 550px;
    text-align: center;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.title-icon {
    width: 40px;
    height: 40px;
}

.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #f0f0f0;
    border-radius: 50px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

.evaluate-btn {
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    margin-bottom: 20px;
}

.evaluate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.evaluate-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    text-align: left;
    border: 1px solid #eee;
    animation: fadeIn 0.5s;
}

.result-item {
    margin: 15px 0;
    font-size: 16px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin-right: 15px;
}

.result-item span {
    text-align: right;
    line-height: 1.6;
}

#fortune-text {
    line-height: 1.8;
    white-space: pre-wrap;
}
