* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.spread-selection {
    text-align: center;
    margin-bottom: 40px;
}

.spread-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.spread-btn {
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spread-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spread-btn.active {
    background: #3498db;
    color: white;
}

.spread-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.spread-name {
    font-weight: bold;
    font-size: 18px;
}

.spread-desc {
    font-size: 14px;
    color: #666;
}

.spread-btn.active .spread-desc {
    color: #fff;
}

.start-btn {
    background-color: #2ecc71;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-btn:hover {
    background-color: #27ae60;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    width: 200px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-front {
    background-color: #fff;
    transform: rotateY(180deg);
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: contain;
    border-radius: 8px;
}

.card-back {
    background-image: url('tarot_cards/background.jpg');
    background-size: cover;
    background-position: center;
    transform: rotateY(0deg);
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.card-back:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.flip-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.card-back:hover .flip-button {
    opacity: 1;
}

.flip-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.interpretation {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* 牌阵特定样式 */
.spread-single .cards-container {
    justify-content: center;
}

.spread-three .cards-container {
    justify-content: space-around;
}

.spread-celtic .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.card-interpretation {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-interpretation h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.tag-major {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.tag-fire {
    background: linear-gradient(135deg, #ff7675, #fab1a0);
}

.tag-water {
    background: linear-gradient(135deg, #74b9ff, #81ecec);
}

.tag-air {
    background: linear-gradient(135deg, #a8e6cf, #dcedc1);
}

.tag-earth {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.card-meaning {
    color: #666;
    line-height: 1.6;
}

.card-element {
    margin-top: 8px;
    font-size: 14px;
    color: #888;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.card-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    padding: 8px 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roman-number {
    font-family: 'Times New Roman', serif;
    font-size: 1.1em;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-weight: 500;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-left: 8px;
} 