/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #7209b7 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 屏幕切换 */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.8s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 主界面样式 */
.game-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
}

.game-title {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ffb347, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #b8b8d4;
    font-style: italic;
    letter-spacing: 1px;
}

.input-section {
    max-width: 600px;
    margin: 0 auto;
}

.question-input-wrapper {
    margin-bottom: 40px;
}

.input-label {
    display: block;
    font-size: 1.1rem;
    color: #e6e6fa;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.question-input {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    resize: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.question-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.question-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #b8b8d4;
}

.start-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #ff6b6b);
    background-size: 200% 200%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.start-btn:hover:not(:disabled) {
    animation: gradientShift 2s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.start-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 洗牌界面样式 */
.oracle-message {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.oracle-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.message-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    flex: 1;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.15);
}

.message-bubble p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #e6e6fa;
}

/* 卡牌容器 */
.card-container {
    position: relative;
    height: 400px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 塔罗牌样式 */
.tarot-card {
    position: absolute;
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e, #2c1810);
    border: 3px solid #ffd700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    overflow: hidden;
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #e6c200);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarot-card:hover::before {
    opacity: 0.3;
}

/* 卡牌正面样式 */
.card-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f1e8, #e8dcc0);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #2c1810;
    font-family: 'Georgia', serif;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.3);
}

.card-header {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header h3 {
    font-size: 8px;
    margin: 0;
    font-weight: bold;
    color: #8b4513;
    line-height: 1.1;
}

.card-suit {
    font-size: 6px;
    margin: 2px 0 0 0;
    color: #d4af37;
    font-style: italic;
}

.card-number {
    font-size: 10px;
    font-weight: bold;
    color: #8b4513;
    position: absolute;
    top: 2px;
    left: 4px;
}

.card-symbol {
    font-size: 14px;
    color: #d4af37;
    position: absolute;
    bottom: 2px;
    right: 4px;
}

/* 选中卡牌的特殊样式 */
.tarot-card.selected {
    transform-style: preserve-3d;
}

.tarot-card.flipped {
    background: transparent;
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.tarot-card::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.tarot-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

/* 洗牌按钮 */
.shuffle-controls {
    text-align: center;
    margin-top: 40px;
}

.shuffle-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.shuffle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6);
}

.shuffle-btn:active {
    transform: translateY(0);
}

/* 摊牌界面样式 */
.spread-container {
    position: relative;
    height: 500px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.selected-card-slot {
    text-align: center;
}

.slot-label {
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-placeholder {
    width: 100px;
    height: 150px;
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.card-placeholder.filled {
    border-style: solid;
    background: rgba(255, 215, 0, 0.2);
}

/* 结果界面样式 */
.result-screen {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(135deg, #1a0f2e, #2d1b69, #4a2c7a);
    min-height: 100vh;
    color: #f4f1e8;
    position: relative;
    overflow-x: hidden;
}

.result-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(75, 0, 130, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.result-screen > * {
    position: relative;
    z-index: 2;
}

#user-question-display {
    font-size: 18px;
    color: #d4af37;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid #d4af37;
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
}

.result-title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.user-question {
    font-size: 1.2rem;
    color: #e6e6fa;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.result-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.15), rgba(212, 175, 55, 0.1));
    border: 2px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: slideInFromLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.result-card:nth-child(2) {
    animation-delay: 0.3s;
}

.result-card:nth-child(3) {
    animation-delay: 0.6s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.result-card-header {
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 10px;
}

.result-card-position {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 5px;
}

.result-card-position-desc {
    font-size: 14px;
    color: #f4f1e8;
    opacity: 0.8;
    font-style: italic;
}

.result-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.result-card-visual {
    min-width: 120px;
    background: linear-gradient(135deg, #f4f1e8, #e8dcc0);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.result-card-visual.reversed {
    transform: rotate(180deg);
}

.result-card-visual.reversed {
    border-color: #8B4513;
    background: linear-gradient(135deg, #e8dcc0, #d4c4a0);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.result-card-visual:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.result-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
    line-height: 1.2;
}

.result-card-suit {
    font-size: 12px;
    color: #d4af37;
    font-style: italic;
    margin-bottom: 10px;
}

.result-card-symbol {
    font-size: 24px;
    color: #d4af37;
    position: absolute;
    bottom: 8px;
    right: 12px;
}

.result-card-meaning {
    flex: 1;
    text-align: left;
}

.result-card-meaning h4 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 16px;
}

.result-card-meaning p {
    color: #f4f1e8;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 逆位含义提示 */
.reversed-meaning {
    margin-top: 15px;
    padding: 12px;
    background: rgba(139, 69, 19, 0.1);
    border-left: 4px solid #8B4513;
    border-radius: 6px;
    font-size: 0.9em;
    color: #D2B48C;
}

.reversed-meaning strong {
    color: #8B4513;
}

/* 逆位指示器 */
.reversed-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #8B4513;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    transform: rotate(180deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 卡牌主要符号 */
.card-symbol-main {
    font-size: 2.5em;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.card-position-title {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-display {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.card-image {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid #ffd700;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffd700;
}

.card-info {
    flex: 1;
}

.card-name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-meaning {
    font-size: 0.95rem;
    color: #b8b8d4;
    line-height: 1.5;
}

/* 综合解读样式 */
.overall-reading {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(139, 69, 19, 0.1));
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 700px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.reading-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
}

.reading-header h3 {
    color: #d4af37;
    font-size: 24px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reading-subtitle {
    color: #f4f1e8;
    font-style: italic;
    opacity: 0.9;
}

.reading-content {
    margin: 25px 0;
    line-height: 1.8;
    color: #E6E6FA;
    font-size: 1.1em;
}

.reading-analysis {
    margin-bottom: 25px;
}

/* 分析区块样式 */
.card-combination-analysis,
.energy-flow-analysis,
.timeline-analysis,
.personalized-advice {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.card-combination-analysis:hover,
.energy-flow-analysis:hover,
.timeline-analysis:hover,
.personalized-advice:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.card-combination-analysis h4,
.energy-flow-analysis h4,
.timeline-analysis h4,
.personalized-advice h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 时间线样式 */
.timeline-content {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 8px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #d4af37, rgba(212, 175, 55, 0.3));
}

.timeline-content-item {
    flex: 1;
}

.timeline-content-item h5 {
    color: #d4af37;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.timeline-content-item p {
    color: #f4f1e8;
    margin: 0;
    line-height: 1.6;
}

.position-analysis {
    background: rgba(139, 69, 19, 0.1);
    border-left: 4px solid #d4af37;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 10px 10px 0;
}

.position-analysis h4 {
    color: #d4af37;
    margin-bottom: 8px;
    font-size: 16px;
}

.position-analysis p {
    color: #f4f1e8;
    line-height: 1.6;
    margin: 0;
}

.overall-advice {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.overall-advice h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 18px;
}

.overall-advice p {
    color: #f4f1e8;
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

.reading-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #d4af37;
}

.reading-note {
    color: #d4af37;
    font-style: italic;
    opacity: 0.9;
    margin: 0;
    font-size: 0.95em;
}

.reading-title {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reading-text {
    font-size: 1.1rem;
    color: #e6e6fa;
    line-height: 1.6;
    text-align: center;
}

/* 动画效果 */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes mysticalGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

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

.result-actions {
    text-align: center;
}

.restart-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.restart-button {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #2c1810;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: mysticalGlow 3s ease-in-out infinite;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .main-screen {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .main-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .question-input {
        font-size: 1rem;
        padding: 12px 15px;
        margin-bottom: 8px;
    }
    
    .start-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .shuffle-screen {
        padding: 20px 15px;
    }
    
    .oracle-message {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .tarot-cards {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .tarot-card {
        width: 70px;
        height: 105px;
    }
    
    .result-screen {
        padding: 20px 15px;
    }
    
    .result-card {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .result-card-visual {
        width: 100px;
        height: 167px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .card-info {
        text-align: center;
    }
    
    .card-name {
        font-size: 1.3rem;
    }
    
    .card-meaning {
        font-size: 0.9rem;
    }
    
    .overall-reading {
        margin-top: 25px;
        padding: 20px 15px;
    }
    
    .reading-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .tarot-cards {
        gap: 10px;
    }
    
    .tarot-card {
        width: 60px;
        height: 90px;
    }
    
    .result-card-visual {
        width: 90px;
        height: 150px;
    }
    
    .card-frame {
        padding: 10px 8px;
    }
    
    .card-symbol-main {
        font-size: 2em;
    }
    
    .restart-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes cardShuffle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(var(--random-x, 0), var(--random-y, 0)) rotate(var(--random-rotation, 0));
    }
    50% {
        transform: translate(calc(var(--random-x, 0) * 1.5), calc(var(--random-y, 0) * 1.5)) rotate(calc(var(--random-rotation, 0) * 1.5));
    }
    75% {
        transform: translate(var(--random-x, 0), var(--random-y, 0)) rotate(var(--random-rotation, 0));
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes cardSpread {
    from {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(var(--spread-x, 0), var(--spread-y, 0)) rotate(var(--spread-rotation, 0));
        opacity: 1;
    }
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

/* 洗牌动画关键帧 */
@keyframes cardShuffle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(var(--random-x), var(--random-y)) rotate(var(--random-rotation));
    }
    50% {
        transform: translate(calc(var(--random-x) * 0.8), calc(var(--random-y) * 0.8)) rotate(calc(var(--random-rotation) * 1.2));
    }
    75% {
        transform: translate(calc(var(--random-x) * 0.6), calc(var(--random-y) * 0.6)) rotate(calc(var(--random-rotation) * 0.8));
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* 卡牌翻转动画 */
@keyframes cardFlip {
    0% {
        transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rotation)) rotateY(0deg);
    }
    50% {
        transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rotation)) rotateY(90deg);
    }
    100% {
        transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rotation)) rotateY(0deg);
    }
}

/* 切牌动画 */
@keyframes cardCutting {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    33% {
        transform: translateX(-100px) rotate(-10deg);
    }
    66% {
        transform: translateX(100px) rotate(10deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* 摊牌动画 */
@keyframes cardSpread {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rotation));
        opacity: 1;
    }
}

/* 卡牌悬停效果 */
.spread-card:hover {
    transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rotation)) scale(1.1) translateY(-10px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
    z-index: 1000 !important;
    transition: all 0.3s ease;
}

/* 选中卡牌效果 */
.spread-card.selected {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

/* 洗牌按钮激活状态 */
.shuffle-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #9932cc, #6a1b9a);
}

/* 卡牌堆叠效果增强 */
.tarot-card {
    transition: all 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .input-group {
        margin: 20px 0;
    }
    
    .question-input {
        font-size: 14px;
        padding: 12px;
    }
    
    .start-btn, .shuffle-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .tarot-card {
        width: 60px;
        height: 90px;
    }
    
    .spread-card {
        width: 50px;
        height: 75px;
    }
    
    /* 结果页面移动端优化 */
    .result-cards {
        gap: 20px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .result-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .result-card-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .result-card-visual {
        min-width: 100px;
        width: 100px;
        padding: 12px;
        align-self: center;
    }
    
    .result-card-name {
        font-size: 14px;
    }
    
    .result-card-suit {
        font-size: 11px;
    }
    
    .result-card-symbol {
        font-size: 20px;
    }
    
    .result-card-meaning {
        text-align: center;
    }
    
    .result-card-meaning h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .result-card-meaning p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .result-card-position {
        font-size: 18px;
        text-align: center;
    }
    
    .result-card-position-desc {
        font-size: 13px;
        text-align: center;
    }
    
    /* 移动端动画优化 */
    @keyframes cardShuffle {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg);
        }
        50% {
            transform: translate(calc(var(--random-x) * 0.5), calc(var(--random-y) * 0.5)) rotate(calc(var(--random-rotation) * 0.5));
        }
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.8rem;
    }
    
    .tarot-card {
        width: 50px;
        height: 75px;
    }
    
    .card-placeholder {
        width: 70px;
        height: 105px;
    }
    
    .selected-cards {
        gap: 10px;
    }
    
    /* 超小屏幕结果页面优化 */
    .result-cards {
        gap: 15px;
        margin: 15px 0;
        padding: 0 5px;
    }
    
    .result-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .result-card-content {
        gap: 12px;
    }
    
    .result-card-visual {
        min-width: 80px;
        width: 80px;
        padding: 10px;
    }
    
    .result-card-name {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .result-card-suit {
        font-size: 10px;
    }
    
    .result-card-symbol {
        font-size: 18px;
        bottom: 6px;
        right: 8px;
    }
    
    .result-card-meaning h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .result-card-meaning p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .result-card-position {
        font-size: 16px;
    }
    
    .result-card-position-desc {
        font-size: 12px;
    }
    
    .result-card-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    /* 综合解读区域优化 */
    .overall-reading {
        padding: 15px;
        margin-top: 20px;
    }
    
    .overall-reading h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .overall-reading p {
        font-size: 13px;
        line-height: 1.5;
    }
}