:root {
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --gold: #ffd700;
    --text-color: #333;
    --border-color: #ddd;
    --layui-red: #d32f2f;  /* 与我们的主题红色保持一致 */
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var(--text-color);
}

.header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.nav {
    background-color: var(--dark-red);
    padding: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calculator-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1.1rem;
}

.date-input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-input-wrapper input:hover {
    border-color: var(--primary-red);
}

.date-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.error {
    color: var(--primary-red);
    display: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.result {
    margin-top: 2rem;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.result.show {
    display: block;
    opacity: 1;
}

.result-item {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background-color: #f8f8f8;
}

.result-item:last-child {
    border-bottom: none;
}

.label {
    color: #666;
    font-weight: bold;
    font-size: 1.1rem;
}

.value {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 500;
}

.zodiac-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 2rem auto;
    padding: 1rem;
    transition: transform 0.3s ease;
    max-width: 200px;
}

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

.zodiac-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    display: block;
}

.zodiac-hint {
    color: var(--primary-red);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .calculator-section {
        padding: 1rem;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Layui 自定义样式 */
:root {
    --layui-red: #d32f2f;  /* 与我们的主题红色保持一致 */
}

.layui-laydate {
    border: 2px solid var(--primary-red) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* 隐藏底部栏 */
.layui-laydate-footer {
    display: none !important;
}

.layui-laydate-header,
.layui-laydate-header * {
    background-color: var(--primary-red) !important;
    color: #fff !important;
}

.layui-laydate-header {
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
    border: none !important;
}

.layui-laydate-content {
    border: none !important;
}

.layui-laydate-content td.layui-this,
.layui-laydate .layui-this,
.layui-laydate-list>li.layui-this {
    background-color: var(--primary-red) !important;
    color: #fff !important;
}

.layui-laydate-footer span:hover {
    color: var(--primary-red) !important;
}

.layui-laydate-footer span[lay-type="date"] {
    color: var(--primary-red) !important;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-red);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
}