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

.card, .card-face, .card-face img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
}

/* 电脑端整体布局优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 40px 30px;
    }

    .divination-content {
        max-width: 1400px;
    }

    /* 确保大屏幕上内容居中 */
    .divination-screen {
        padding: 60px 40px;
    }

    /* 三张牌布局优化 - 大屏幕下更大更突出 */
    .cards-grid {
        gap: 60px;
        margin-bottom: 80px;
    }

    .card {
        width: 280px;
        height: 420px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1600px) {
    .container {
        max-width: 1200px;
        padding: 50px 40px;
    }

    .divination-content {
        max-width: 1200px;
    }

    .divination-screen {
        padding: 80px 60px;
    }

    /* 卡牌容器在大屏幕上的优化 */
    .card-fan-container {
        height: 400px;
        margin: 50px 0;
    }

    /* 三张牌布局优化 - 超大屏幕下最大化展示 */
    .cards-grid {
        gap: 80px;
        margin-bottom: 100px;
    }

    .card {
        width: 300px;
        height: 450px;
    }
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #d4af37, #f4e4c1, #d4af37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.artistic-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 25%, #d4af37 50%, #f4e4c1 75%, #d4af37 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 40px rgba(212, 175, 55, 0.4),
        0 0 80px rgba(212, 175, 55, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: 8px;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-transform: uppercase;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
    }
}


.subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    font-style: italic;
}

/* 英文翻译样式 */
.english-title {
    font-size: 0.6em;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 0.2em;
    display: block;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.english-subtitle {
    font-size: 0.8em;
    color: rgba(184, 184, 184, 0.7);
    font-weight: 300;
    margin-top: 0.3em;
    display: block;
    font-family: 'Arial', sans-serif;
}

.english-footer {
    font-size: 0.8em;
    color: rgba(102, 102, 102, 0.7);
    margin-top: 0.2em;
    display: block;
    font-family: 'Arial', sans-serif;
}

/* 按钮英文翻译样式 */
.btn-english-text {
    font-size: 0.6em;
    color: rgba(30, 30, 46, 0.8);
    font-weight: 400;
    margin-top: 0.2em;
    display: block;
    letter-spacing: 1px;
}

.btn-english-description {
    font-size: 0.7em;
    color: rgba(30, 30, 46, 0.7);
    font-weight: 300;
    margin-top: 0.2em;
    display: block;
    letter-spacing: 0.5px;
}

/* 占卜界面英文翻译样式 */
.divination-english-title {
    font-size: 0.5em;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 0.3em;
    display: block;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.divination-english-subtitle {
    font-size: 0.75em;
    color: rgba(184, 184, 184, 0.6);
    font-weight: 300;
    margin-top: 0.3em;
    display: block;
    font-family: 'Arial', sans-serif;
}

/* 问题类型英文翻译样式 */
.question-english-title {
    font-size: 0.6em;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 300;
    margin-top: 0.2em;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.question-english-desc {
    font-size: 0.7em;
    color: rgba(153, 153, 153, 0.7);
    font-weight: 300;
    margin-top: 0.2em;
    display: block;
    font-family: 'Arial', sans-serif;
}

/* 返回按钮英文翻译样式 */
.back-english-text,
.back-english-theme,
.back-home-english-btn {
    font-size: 0.7em;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 300;
    margin-top: 0.1em;
    display: block;
    font-family: 'Arial', sans-serif;
}

/* 抽卡界面英文翻译样式 */
.draw-english-instruction {
    font-size: 0.75em;
    color: rgba(184, 184, 184, 0.6);
    font-weight: 300;
    margin-top: 0.2em;
    display: block;
    font-family: 'Arial', sans-serif;
}

.selected-english-count {
    font-size: 0.7em;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 300;
    margin-top: 0.2em;
    display: block;
    font-family: 'Arial', sans-serif;
}

.interpretation-english-btn,
.new-reading-english-btn {
    font-size: 0.6em;
    color: rgba(30, 30, 46, 0.8);
    font-weight: 400;
    margin-top: 0.1em;
    display: block;
    letter-spacing: 0.5px;
}

/* 移动端英文翻译优化 */
@media (max-width: 768px) {
    .english-title {
        font-size: 0.5em;
        letter-spacing: 1px;
    }

    .english-subtitle,
    .english-footer {
        font-size: 0.7em;
    }

    .btn-english-text,
    .btn-english-description {
        font-size: 0.6em;
    }

    .divination-english-title {
        font-size: 0.45em;
        letter-spacing: 0.8px;
    }

    .divination-english-subtitle,
    .draw-english-instruction {
        font-size: 0.65em;
    }

    .question-english-title {
        font-size: 0.5em;
        letter-spacing: 0.8px;
    }

    .question-english-desc {
        font-size: 0.6em;
    }

    .back-english-text,
    .back-english-theme,
    .back-home-english-btn {
        font-size: 0.6em;
    }

    .selected-english-count {
        font-size: 0.6em;
    }

    .interpretation-english-btn,
    .new-reading-english-btn {
        font-size: 0.55em;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .english-title {
        font-size: 0.45em;
        letter-spacing: 0.8px;
    }

    .english-subtitle,
    .english-footer {
        font-size: 0.65em;
    }

    .btn-english-text,
    .btn-english-description {
        font-size: 0.55em;
    }

    .divination-english-title {
        font-size: 0.4em;
        letter-spacing: 0.6px;
    }

    .divination-english-subtitle,
    .draw-english-instruction {
        font-size: 0.6em;
    }

    .question-english-title {
        font-size: 0.45em;
        letter-spacing: 0.6px;
    }

    .question-english-desc {
        font-size: 0.55em;
    }

    .back-english-text,
    .back-english-theme,
    .back-home-english-btn {
        font-size: 0.55em;
    }

    .selected-english-count {
        font-size: 0.55em;
    }

    .interpretation-english-btn,
    .new-reading-english-btn {
        font-size: 0.5em;
        letter-spacing: 0.2px;
    }
}

.tarot-section {
    margin-bottom: 60px;
}

.tarot-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #d4af37;
}

.description {
    text-align: center;
    margin-bottom: 20px;
    color: #999;
    font-size: 1.1rem;
}


.cards-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.card {
    width: 240px;
    height: 360px;
    position: relative;
    /* 移动端3D支持 - 添加所有前缀 */
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;

    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
    -moz-transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
    transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);

    /* 恢复原始的8秒自动旋转动画 */
    -webkit-animation: autoSpin 8s linear infinite;
    -moz-animation: autoSpin 8s linear infinite;
    animation: autoSpin 8s linear infinite;

    cursor: default;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    perspective: none !important;
    background: transparent !important;
    flex: 0 0 auto;
    will-change: transform;

    /* 移动端backface-visibility支持 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;

    /* 移除固定比例限制，允许内容自适应 */
    min-width: 220px;
    min-height: 330px;
    max-width: 220px;
    max-height: 330px;

    /* 移动端GPU加速 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* 确保内容不被裁切 */
    overflow: visible;

    /* 首页卡牌不需要交互效果 */
}

/* 移动端专用：确保卡牌背面显示 */
@media (max-width: 1200px) {
    .card-back {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;

        /* 强制transform - 所有前缀 */
        -webkit-transform: rotateY(180deg) !important;
        -moz-transform: rotateY(180deg) !important;
        -ms-transform: rotateY(180deg) !important;
        transform: rotateY(180deg) !important;

        /* 强制backface-visibility - 所有前缀 */
        -webkit-backface-visibility: hidden !important;
        -moz-backface-visibility: hidden !important;
        -ms-backface-visibility: hidden !important;
        backface-visibility: hidden !important;

        /* 移动端特殊处理 */
        -webkit-perspective: 1000px !important;
        perspective: 1000px !important;

        /* 强制GPU加速 */
        -webkit-transform: rotateY(180deg) translateZ(0) !important;
        transform: rotateY(180deg) translateZ(0) !important;
    }

    .card-back img {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;

        /* 强制尺寸匹配卡面 */
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;

        /* 圆角匹配 */
        border-radius: inherit !important;

        /* 强制GPU加速 */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }

    /* 移动端动画优化 - 确保动画正常工作
    .card {
        -webkit-animation-fill-mode: both !important;
        animation-fill-mode: both !important;
    }
    */

    /* 确保动画在移动端正常工作 */
    @-webkit-keyframes autoSpin {
        0% {
            -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
        }
        100% {
            -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
        }
    }
}

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

/* 卡牌切换时禁用交互，防止意外点击 */
.card.switching {
    pointer-events: none;
    opacity: 0.95;
}

@keyframes autoSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;

    /* 移动端backface-visibility完整支持 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;

    border-radius: 15px;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    outline: none;
    overflow: visible; /* 改为visible，确保内容不被裁切 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 移动端GPU加速 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.card-front {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    color: #e0e0e0;
}

.card-back {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    color: #e0e0e0;

    /* 移动端transform完整支持 */
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);

    /* 强制显示确保移动端可见 */
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;

    /* 移动端特殊处理 */
    -webkit-perspective: 1000px;
    perspective: 1000px;

    /* 移动端GPU加速 */
    -webkit-transform: rotateY(180deg) translateZ(0);
    transform: rotateY(180deg) translateZ(0);
}

.card-face img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持原比例，完整显示图片 */
    object-position: center; /* 居中显示 */
    border-radius: 15px;
    background: transparent;
    z-index: 1;
    display: block !important;

    /* 确保图片不被任何限制影响 */
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;

    /* 防止图片被裁切 */
    clip: auto !important;
    clip-path: none !important;
}



/* 占卜入口按钮 */
.divination-entrance {
    text-align: center;
    margin: 60px 0;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.divination-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%);
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    color: #1e1e2e;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 280px;
}

.divination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.divination-btn:hover::before {
    left: 100%;
}

.divination-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.divination-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-text {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-description {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
    letter-spacing: 1px;
}

/* 占卜界面容器 */
.divination-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.divination-container.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.divination-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.divination-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
}

.divination-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #d4af37, #f4e4c1, #d4af37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: 3px;
}

.divination-subtitle {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 40px;
    font-style: italic;
}

.hidden {
    display: none !important;
}

/* 问题类型选择 */
.question-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.question-type {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.question-type:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.question-type.selected {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.question-type h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.question-type p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 返回按钮 */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 12px 25px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

/* 卡牌抽取界面 - 增大容器高度以适应更大的卡牌，电脑端大幅提升占屏比 */
.card-fan-container {
    width: 100%;
    height: 350px;
    margin: 40px 0;
    overflow: visible;
    position: relative;
    border: none;
    box-shadow: none;
}

/* 横向滚动容器 - 隐藏滚动条 */
.scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 卡牌轨道 - 无缝循环滚动 */
.card-track {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
    animation: autoScroll 39s linear infinite;
    will-change: transform;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 40px)); /* 100% width + gap */
    }
}

.scroll-card {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1; /* 修改：默认显示，避免移动端看不到 */
    transform: translateY(0); /* 修改：默认位置 */

    /* 3D支持 */
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;

    /* 移动端3D支持 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fan-card {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

.scroll-card:hover:not(.selected) {
    transform: translateY(-10px) scale(1.05);
    filter: brightness(1.1) drop-shadow(0 8px 20px rgba(212, 175, 55, 0.4));
    z-index: 10;
}

.scroll-card.selected {
    transform: translateY(-15px) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 12px 30px rgba(212, 175, 55, 0.5));
    z-index: 20;
    pointer-events: none;
}

.scroll-card.selected .card-face {
    transform: rotateY(180deg);
    transition: transform 0.8s cubic-bezier(0.4, 0.1, 0.2, 1);
}

/* 移除正位逆位标注 - 不显示标识 */

/* 逆位卡牌旋转效果 */
.scroll-card.reversed .card-face img {
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.scroll-card .card-face {
    border-radius: 15px;
    overflow: hidden;

    /* 3D支持 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;

    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* 抽取控制按钮 */
.draw-controls {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.selected-count {
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: bold;
}

.start-interpretation-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    color: #1e1e2e;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.start-interpretation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* 结果解读界面 - 优化为一排显示 */
.result-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(8px, 2vw, 15px);
    margin: 25px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: clamp(8px, 1.5vw, 15px) clamp(5px, 1vw, 10px);
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 电脑端占卜界面布局优化 */
@media (min-width: 1200px) {
    .divination-screen {
        padding: 60px 40px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .divination-content {
        max-width: 1400px;
        width: 100%;
        text-align: center;
        padding: 0 40px;
        margin: 0 auto;
    }

    .divination-title {
        font-size: 3rem;
        margin-bottom: 25px;
    }

    .divination-subtitle {
        font-size: 1.3rem;
        margin-bottom: 50px;
    }

    /* 问题类型选择 - 电脑端优化 */
    .question-types {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
        margin-bottom: 50px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .question-type {
        padding: 35px 25px;
        transition: all 0.3s ease;
    }

    /* 卡牌抽取界面 - 电脑端优化 */
    .card-fan-container {
        height: 400px;
        margin: 50px 0;
    }

    /* 抽卡控制区域 */
    .draw-controls {
        margin: 50px 0;
    }

    .selected-count {
        font-size: 1.4rem;
    }

    /* 结果解读界面 - 电脑端优化 */
    .result-cards {
        gap: clamp(12px, 2.5vw, 20px);
        margin: 25px 0;
        padding: clamp(10px, 1.5vw, 20px) clamp(8px, 1.5vw, 15px);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .interpretation-content {
        max-width: 1000px;
        margin: 40px auto;
        padding: 40px;
    }

    /* 指数分析 - 电脑端优化 */
    .indices-analysis {
        max-width: 800px;
        margin: 40px auto;
        gap: 30px;
    }
}

@media (min-width: 1600px) {
    .divination-content {
        max-width: 1600px;
    }

    .question-types {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }

    .card-fan-container {
        height: 450px;
        margin: 60px 0;
    }
}

.result-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 4px;
    width: clamp(200px, 25vw, 320px);
    min-width: clamp(180px, 22vw, 280px);
    max-width: 320px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    overflow: visible;
    position: relative;
}

.result-card:hover {
    background: rgba(45, 27, 61, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.result-card img {
    width: clamp(140px, 18vw, 220px);
    height: clamp(210px, 27vw, 330px);
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.result-card h4 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.result-card .english-name {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 10px;
}

.result-card .meaning {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.interpretation-content {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 30px);
    margin: clamp(20px, 5vw, 30px) auto;
    backdrop-filter: none;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

/* 移动端解读内容优化 */
@media (max-width: 768px) {
    .interpretation-content {
        padding: clamp(12px, 3.5vw, 25px);
        margin: clamp(15px, 4vw, 25px) auto;
    }

    .interpretation-content h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        margin-bottom: clamp(12px, 3vw, 20px);
    }

    .interpretation-content .interpretation-text {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: clamp(12px, 3vw, 20px);
        text-align: left;
    }

    .interpretation-content .guidance {
        padding: clamp(10px, 2.5vw, 15px);
        margin-top: clamp(12px, 3vw, 20px);
        font-size: clamp(0.9rem, 2.6vw, 1rem);
        text-align: left;
    }
}

.interpretation-content h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.interpretation-content .interpretation-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.interpretation-content .guidance {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    margin-top: 20px;
    font-style: italic;
}

/* 指数分析样式 */
.indices-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.index-card {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.index-card h4 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.index-score {
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.index-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.index-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4e4c1);
    border-radius: 4px;
    transition: width 1s ease;
}

.index-fill.positive {
    background: linear-gradient(90deg, #28a745, #5cb85c);
}

.index-fill.negative {
    background: linear-gradient(90deg, #dc3545, #f86c6b);
}

.index-card p {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0;
}

/* 卡牌详情样式 */
.card-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b8b8b8;
}

/* 结果卡牌正位逆位显示 */
.result-card .orientation {
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 5px 0;
    padding: 2px 8px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: inline-block;
}

.result-card .meaning {
    font-size: 0.8rem;
    color: #e0e0e0;
    line-height: 1.3;
}

.result-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.new-reading-btn, .back-home-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%);
    border: none;
    border-radius: 15px;
    padding: 18px 40px;
    color: #1e1e2e;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.new-reading-btn::before, .back-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.new-reading-btn:hover::before, .back-home-btn:hover::before {
    left: 100%;
}

.back-home-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.new-reading-btn:hover, .back-home-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

/* 智能响应式适配 - 基于视口的动态尺寸 */
@media (max-width: 768px) {
    /* 通用移动端容器优化 */
    .container {
        padding: clamp(10px, 3vw, 20px);
    }

    /* 移动端解读界面优化 */
    .divination-screen {
        padding: clamp(20px, 5vh, 40px) clamp(10px, 3vw, 20px);
        min-height: 100vh;
    }

    .divination-content {
        padding: 0 clamp(10px, 3vw, 20px);
    }

    /* 移动端解读内容字体优化 */
    .divination-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .divination-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    /* 移动端结果卡牌优化 - 防止边框遮挡 */
    .result-cards {
        gap: clamp(2px, 1vw, 5px);
        padding: clamp(3px, 1vw, 6px) clamp(5px, 1.5vw, 8px);
        margin: 8px 0;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
    }

    .result-cards::-webkit-scrollbar {
        height: 6px;
    }

    .result-cards::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .result-cards::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.3);
        border-radius: 3px;
    }

    .result-card {
        width: clamp(100px, 28vw, 140px);
        min-width: clamp(90px, 25vw, 120px);
        padding: clamp(1px, 0.5vw, 2px);
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        flex-shrink: 0;
    }

    .result-card img {
        width: clamp(70px, 22vw, 100px);
        height: clamp(105px, 33vw, 150px);
        margin: 0 auto 5px;
        border-radius: clamp(4px, 1.2vw, 8px);
        object-fit: contain;
        display: block;
    }

    .result-card h4 {
        font-size: clamp(0.75rem, 2.2vw, 0.95rem);
        margin: 4px 0 2px 0;
        line-height: 1.1;
    }

    .result-card .english-name {
        font-size: clamp(0.6rem, 1.8vw, 0.7rem);
        margin: 2px 0;
    }

    .result-card .orientation {
        font-size: clamp(0.5rem, 1.5vw, 0.6rem);
        margin: 1px 0 3px 0;
        padding: 1px 4px;
    }

    .result-card .meaning {
        font-size: clamp(0.55rem, 1.7vw, 0.65rem);
        line-height: 1.1;
        margin: 0;
    }

    .question-types {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .question-type {
        padding: 20px 15px;
    }

    .card-fan-container {
        height: 280px;
        overflow: visible;
    }

    .scroll-card {
        width: 160px;
        height: 240px;
    }

    .card-track {
        gap: 15px;
        padding: 15px;
    }

    .result-cards {
        gap: 10px;
        padding: 6px 0;
    }

    .result-card {
        width: 200px;
        min-width: 200px;
        padding: 4px;
        border: none;
        background: transparent;
    }

    .result-card img {
        width: 140px;
        height: 210px;
    }

    .result-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .new-reading-btn, .back-home-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
    }
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #666;
}

@media (max-width: 1200px) {
    .container {
        padding: 25px;
    }

    .artistic-title {
        font-size: 4rem;
        letter-spacing: 6px;
    }

    .cards-grid {
        gap: 25px;
    }

    .card {
        width: 200px;
        height: 300px;
        min-width: 200px;
        min-height: 300px;
        max-width: 200px;
        max-height: 300px;
    }

    .card-face {
        border-radius: 12px;
    }

    .card-face img {
        border-radius: 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .artistic-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    .cards-grid {
        gap: 22px;
    }

    .card {
        width: 180px;
        height: 270px;
        min-width: 180px;
        min-height: 270px;
        max-width: 180px;
        max-height: 270px;
    }

    .card-face {
        border-radius: 10px;
    }

    .card-face img {
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .artistic-title {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .cards-grid {
        gap: 15px;
        justify-content: center;
    }

    /* 智能卡牌尺寸 - 基于视口宽度和高度 */
    .card {
        width: clamp(120px, 28vw, 180px);
        height: clamp(180px, 42vw, 270px);
        min-width: 120px;
        min-height: 180px;
        max-width: 180px;
        max-height: 270px;
    }

    .card-face {
        border-radius: 8px;
    }

    .card-face img {
        border-radius: 8px;
    }

    /* 移动端卡牌容器优化 */
    .card-fan-container {
        height: clamp(200px, 45vh, 280px);
        margin: 30px 0;
    }

    /* 滚动卡牌移动端优化 */
    .scroll-card {
        width: clamp(100px, 25vw, 160px);
        height: clamp(150px, 37.5vw, 240px);
    }
}

/* 超小屏幕优化 - 480px以下 */
@media (max-width: 480px) {
    /* 滚动卡牌超小屏优化 */
    .scroll-card {
        width: clamp(90px, 22vw, 120px);
        height: clamp(135px, 33vw, 180px);
    }

    .card-fan-container {
        height: clamp(160px, 40vh, 200px);
    }

    .result-cards {
        gap: clamp(3px, 1vw, 6px);
        padding: 2px 0;
        margin: 8px 0;
    }

    .result-card {
        width: clamp(95px, 28vw, 120px);
        min-width: 85px;
        padding: clamp(1px, 0.3vw, 2px);
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .result-card img {
        width: clamp(80px, 25vw, 100px);
        height: clamp(120px, 37.5vw, 150px);
        border-radius: clamp(6px, 1.5vw, 8px);
    }

    .result-card h4 {
        font-size: 0.9rem;
        margin: 8px 0 4px 0;
    }

    .result-card .english-name {
        font-size: 0.7rem;
        margin: 0 0 4px 0;
    }

    .result-card .orientation {
        font-size: 0.65rem;
        margin: 0 0 6px 0;
    }

    .result-card .meaning {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

@media (max-width: 650px) {
    .container {
        padding: 12px;
    }

    .artistic-title {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* 滚动卡牌移动端优化 */
    .scroll-card {
        width: clamp(110px, 26vw, 140px);
        height: clamp(165px, 39vw, 210px);
    }

    .card-fan-container {
        height: clamp(180px, 42vh, 220px);
    }

    /* 结果卡牌移动端优化 */
    .result-cards {
        gap: clamp(3px, 1.2vw, 8px);
        padding: clamp(4px, 1.2vw, 8px) clamp(6px, 1.5vw, 10px);
        margin: 8px 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .result-card {
        width: clamp(110px, 30vw, 150px);
        min-width: clamp(100px, 28vw, 140px);
        padding: clamp(2px, 0.8vw, 4px);
        border: none;
        border-radius: 0;
        background: transparent;
        scroll-snap-align: start;
        overflow: visible;
        flex-shrink: 0;
    }

    .result-card img {
        width: clamp(80px, 24vw, 110px);
        height: clamp(120px, 36vw, 165px);
        border-radius: clamp(6px, 1.5vw, 10px);
    }

    .result-card h4 {
        font-size: 1rem;
    }

    .result-card .english-name {
        font-size: 0.8rem;
    }

    .result-card .orientation {
        font-size: 0.7rem;
    }

    .result-card .meaning {
        font-size: 0.7rem;
    }

    .cards-grid {
        gap: clamp(12px, 3vw, 15px);
        justify-content: center;
    }

    .card {
        width: clamp(130px, 32vw, 140px);
        height: clamp(195px, 48vw, 210px);
        min-width: 130px;
        min-height: 195px;
        max-width: 140px;
        max-height: 210px;
    }

    .card-face {
        border-radius: 6px;
    }

    .card-face img {
        border-radius: 6px;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 12px;
    }

    .artistic-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .cards-grid {
        gap: clamp(10px, 2.5vw, 12px);
        justify-content: center;
    }

    .card {
        width: clamp(110px, 30vw, 120px);
        height: clamp(165px, 45vw, 180px);
        min-width: 110px;
        min-height: 165px;
        max-width: 120px;
        max-height: 180px;
    }

    .card-face {
        border-radius: 5px;
    }

    .card-face img {
        border-radius: 5px;
    }
}

@media (max-width: 450px) {
    .container {
        padding: 10px;
    }

    .artistic-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .cards-grid {
        gap: clamp(8px, 2vw, 10px);
        justify-content: center;
    }

    .card {
        width: clamp(95px, 28vw, 100px);
        height: clamp(142px, 42vw, 150px);
        min-width: 95px;
        min-height: 142px;
        max-width: 100px;
        max-height: 150px;
    }

    .card-face {
        border-radius: 4px;
    }

    .card-face img {
        border-radius: 4px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 8px;
    }

    .artistic-title {
        font-size: 1.6rem;
        letter-spacing: 0px;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .cards-grid {
        gap: 8px;
        justify-content: center;
    }

    .card {
        width: 85px;
        height: 127.5px;
        min-width: 85px;
        min-height: 127.5px;
        max-width: 85px;
        max-height: 127.5px;
    }

    .card-face {
        border-radius: 3px;
    }

    .card-face img {
        border-radius: 3px;
    }
}

/* 故事线解读样式优化 */
.storyline-interpretation {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.storyline-interpretation h4 {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    font-size: 1.4rem;
}

.timeline-reading {
    margin-bottom: 30px;
}

.time-period {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(45, 27, 61, 0.2);
    border-radius: 12px;
    border-left: 3px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.time-period:hover {
    background: rgba(45, 27, 61, 0.3);
    transform: translateX(5px);
}

.time-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.time-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.time-info {
    flex: 1;
}

.time-title {
    margin: 0 0 5px 0;
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-name {
    margin: 0 0 8px 0;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
}

.card-orientation {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 5px;
}

.card-orientation:not(.reversed-orientation) {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.card-orientation.reversed-orientation {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.time-content {
    padding-left: 55px;
}

.time-content p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.overall-trend {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.overall-trend h5 {
    margin: 0 0 15px 0;
    color: #d4af37;
    font-size: 1.1rem;
    text-align: center;
}

.overall-trend p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* 移动端故事线优化 */
@media (max-width: 768px) {
    .storyline-interpretation {
        padding: 20px;
        margin: 25px 0;
    }

    .storyline-interpretation h4 {
        font-size: 1.2rem;
    }

    .time-period {
        padding: 15px;
        margin-bottom: 25px;
    }

    .time-header {
        gap: 12px;
    }

    .time-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .time-title {
        font-size: 1rem;
    }

    .card-name {
        font-size: 0.9rem;
    }

    .card-orientation {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .time-content {
        padding-left: 47px;
    }

    .time-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .storyline-interpretation {
        padding: 15px;
        margin: 20px 0;
    }

    .time-period {
        padding: 12px;
        margin-bottom: 20px;
    }

    .time-header {
        gap: 10px;
    }

    .time-icon {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .time-title {
        font-size: 0.9rem;
    }

    .card-name {
        font-size: 0.85rem;
    }

    .card-orientation {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .time-content {
        padding-left: 40px;
    }

    .time-content p {
        font-size: 0.85rem;
    }
}
}