/* ===== 塔罗牌插件主样式 ===== */
.tarot-reading {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tarot-reading h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ===== 抽牌按钮容器 ===== */
.tarot-drawer {
    text-align: center;
    margin: 30px 0;
}

/* ===== 抽牌按钮 ===== */
.tarot-draw-button {
    background-color: #cbc2d9; /* 淡紫色背景 */
    color: white !important; /* 白色文字 */
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: inline-block;
}

.tarot-draw-button:hover {
    background-color: #b8aed1; /* 悬停深色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* ===== 加载状态 ===== */
.tarot-cards p {
    color: black !important;
    font-size: 16px;
    font-weight: bold;
    padding: 20px;
    margin: 0;
}

/* ===== 结果标题 ===== */
.tarot-result-title {
    color: white;
    background-color: #cbc2d9; /* 与按钮同色 */
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    margin: 20px 0;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== 卡片容器 ===== */
.tarot-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* ===== 单张卡片样式 ===== */
.tarot-card {
    width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 卡片图片 */
.card-image {
    height: 400px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tarot-card:hover .card-image img {
    transform: scale(1.03);
}

/* 卡片信息 */
.card-info {
    padding: 15px;
}

.tarot-card h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

/* 正逆位标签 */
.reversed-label {
    color: #e74c3c;
    font-weight: bold;
    margin: 0 0 10px;
    font-size: 0.9em;
}

/* 含义区域 */
.card-meaning, .card-keywords {
    margin-bottom: 12px;
}

.card-meaning h5, .card-keywords h5 {
    margin: 0 0 5px;
    color: #6b4e3d;
    font-size: 0.95em;
}

.card-meaning p, .card-keywords p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 逆位卡片样式 */
.tarot-card.reversed .card-image img {
    transform: rotate(180deg);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .tarot-card {
        width: 100%;
        max-width: 350px;
    }
    
    .tarot-draw-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
    }
    
    .card-image {
        height: 350px;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tarot-result-container {
    animation: fadeIn 0.5s ease-out;
}