* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    overflow-x: hidden;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主页部分样式 */
.hero {
    min-height: 100vh;
    background: #FAFAFA;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
    margin-bottom: 30px;
    width: 100%;
}

.hero-title {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 2rem;
}

/* 生肖计算器样式 */
.calculator-section {
    width: 100%;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-input-group label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111827;
}

.date-input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.date-input-group button {
    padding: 12px;
    background: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input-group button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.result-container h3 {
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
}

.result-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.result-label {
    font-weight: bold;
    min-width: 100px;
    color: #111827;
}

#zodiac-sign {
    font-weight: bold;
    color: #b21f1f;
    font-size: 1rem;
}

.zodiac-details {
    margin-top: 20px;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 35px;
    background-color: #fff8dc;
    border-radius: 8px;
    position: relative;
}

.zodiac-details::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, rgb(255, 215, 0), rgb(255, 140, 0));
    border-radius: 0 0 8px 8px;
}

.zodiac-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #b21f1f;
}

.zodiac-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #b21f1f;
    text-align: center;
}

.zodiac-card p {
    color: #111827;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.zodiac-card strong {
    color: #111827;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    animation: fallDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fallDown {
    0% {
        transform: translateY(-100vh) rotate(-5deg);
        opacity: 0;
    }
    70% {
        transform: translateY(20px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-body {
    margin-top: 30px;
}

.modal-body .zodiac-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #b21f1f;
}

.modal-body h3 {
    font-size: 2rem;
    text-align: center;
    color: #b21f1f;
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #111827;
}

.modal-body p strong {
    color: rgb(26, 42, 108);
}

.modal-cultural-meaning {
    background-color: #fff8dc;
    border-radius: 8px;
    margin-top: 10px;
}

/* 页脚 */
.footer {
    background: #FAFAFA;
    color: #111827;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-label {
        min-width: auto;
        margin-bottom: 5px;
    }
}