/* 自定义样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* 八字显示样式 */
.bazi-pillar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin: 5px;
}

.tiangan {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
}

.dizhi {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 紫微斗数宫位样式 */
.ziwei-gong {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    min-height: 80px;
    position: relative;
}

.ziwei-gong:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.gong-name {
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
}

.gong-stars {
    color: #007bff;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 星座样式 */
.constellation-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.constellation-card:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

/* 梅花易数样式 */
.gua-display {
    font-family: 'SimSun', monospace;
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center;
    color: #495057;
}

/* 塔罗牌样式 */
.tarot-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.tarot-card:hover {
    transform: rotateY(5deg);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .bazi-pillar {
        margin-bottom: 10px;
    }
    
    .constellation-card {
        margin-bottom: 15px;
    }
}

/* 打印样式 */
@media print {
    .navbar, .modal-footer, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* 特殊效果 */
.mystical-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fortune-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 表单验证样式 */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
}

/* 成功消息样式 */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: none;
    border-radius: 8px;
}

/* 错误消息样式 */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: none;
    border-radius: 8px;
}

.text-brown {
    color: #8B4513 !important;  /* 使用深棕色 */
} 