/* ==================== 页面切换 ==================== */
.page-content {
    animation: fadeIn 0.5s ease;
}

.page-content.hidden {
    display: none;
}

/* ==================== 首页 ==================== */
.intro-subtitle {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.link-to-guided {
    color: #ffd89b;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(255, 215, 155, 0.5);
}

.link-to-guided:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.intro {
    text-align: center;
    animation: fadeIn 1s ease;
    padding: 20px;
}

.intro h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffd89b;
    text-shadow: 0 3px 15px rgba(255, 215, 155, 0.4);
    letter-spacing: 2px;
}

.shuffle-area h2,
.cut-area h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.spread-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 洗牌区域 */
.shuffle-area {
    text-align: center;
    animation: fadeIn 0.5s ease;
    padding: 40px 20px;
}

.shuffle-tip {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 20px;
}

/* 切牌区域 */
.cut-area {
    text-align: center;
    animation: fadeIn 0.5s ease;
    padding: 40px 20px;
}

.cut-tip {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 60px;
}

/* 占卜区域 */
.reading-area {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.reading-area h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.instruction {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0;
    min-height: 300px;
    padding: 20px;
}

/* ==================== 问题输入区域 ==================== */
/* 引导占卜页面 */
.guided-question-section {
    text-align: center;
    padding: 40px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guided-spread-section {
    padding: 40px 20px;
}

.question-input-area {
    max-width: 650px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.question-input-area h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffd89b;
    text-shadow: 0 2px 10px rgba(255, 215, 155, 0.3);
}

.question-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-style: italic;
}

.question-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.question-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.question-textarea:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(255, 255, 255, 0.1);
}

.question-tip {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.btn-confirm-question {
    width: 100%;
    margin-top: 25px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-confirm-question:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-confirm-question:active {
    transform: translateY(-2px);
}

.btn-back-to-question {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-to-question:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

.user-question-display {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 20px 30px;
    background: rgba(255, 215, 155, 0.15);
    border-left: 4px solid #ffd89b;
    border-radius: 10px;
}

.user-question-display h3 {
    font-size: 1.1rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.user-question-display p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    font-style: italic;
}

/* 紧凑版问题输入区域 */
.question-input-area-compact {
    max-width: 600px;
    margin: 30px auto 40px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.question-input-area-compact h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #ffd89b;
    text-align: center;
}

.question-textarea-compact {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.question-textarea-compact::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.question-textarea-compact:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(255, 255, 255, 0.1);
}

.question-tip-compact {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.question-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.question-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.question-textarea:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm-question {
    width: 100%;
    margin-top: 25px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-confirm-question:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-confirm-question:active {
    transform: translateY(-2px);
}

.question-tip {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* ==================== 塔罗牌图鉴 ==================== */
.gallery-section {
    padding: 20px;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 216, 155, 0.3);
    border-color: #ffd89b;
    color: #ffd89b;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

/* 组别标题 */
.gallery-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd89b;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 216, 155, 0.2), rgba(132, 94, 194, 0.2));
    border-radius: 12px;
    border-left: 5px solid #ffd89b;
    margin-top: 20px;
}

.gallery-group-header:first-child {
    margin-top: 0;
}

.group-icon {
    font-size: 2rem;
}

.group-name {
    flex: 1;
}

.group-count {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
}

/* 组别容器 */
.gallery-group-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 216, 155, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-card-image {
    position: relative;
    width: 120px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-symbol-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

/* 保留旧的symbol样式以兼容其他页面 */
.gallery-card-symbol {
    font-size: 4rem;
    margin-bottom: 15px;
}

.gallery-card-name {
    font-size: 1.5rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.gallery-card-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 15px;
}

.gallery-card-meanings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.meaning-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

.meaning-title {
    font-weight: bold;
    color: #ffd89b;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.meaning-text {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ==================== 历史记录 ==================== */
/* ==================== 历史记录详情弹窗 ==================== */
.history-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.history-detail-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease;
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.history-detail-content h2 {
    color: #ffd89b;
    margin-bottom: 10px;
}

.detail-date {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.detail-question {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail-question h3 {
    color: #ffd89b;
    margin-bottom: 10px;
}

.detail-question p {
    color: white;
    line-height: 1.6;
}

.detail-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ffd89b;
}

.detail-card-item h3 {
    color: #ffd89b;
    margin-bottom: 10px;
}

.detail-position {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    margin-bottom: 10px;
}

.detail-description {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid rgba(255, 215, 155, 0.3);
}

.detail-meanings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-meaning {
    color: white;
    line-height: 1.6;
}

.detail-meaning strong {
    color: #ffd89b;
}

.btn-view-detail {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: bold;
}

.btn-view-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== 历史记录页面 ==================== */
.history-section {
    padding: 20px;
}

.history-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.history-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.history-actions {
    text-align: center;
    margin-bottom: 30px;
}

.btn-clear-history {
    padding: 10px 30px;
    background: rgba(255, 99, 99, 0.3);
    border: 2px solid rgba(255, 99, 99, 0.5);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-clear-history:hover {
    background: rgba(255, 99, 99, 0.5);
    transform: translateY(-2px);
}

.history-list {
    max-width: 800px;
    margin: 0 auto;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.6;
}

.empty-history p {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-tip {
    font-size: 1rem;
    font-style: italic;
}

.history-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.history-type {
    font-size: 1.2rem;
    color: #ffd89b;
    font-weight: bold;
}

.history-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

.history-question {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-style: italic;
}

.history-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
}

.history-card-name {
    font-weight: bold;
    color: #ffd89b;
    margin-bottom: 5px;
}

/* ==================== 是/否占卜 ==================== */
.yesno-section {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.yesno-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.yesno-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.yesno-input-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.btn-yesno-draw {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yesno-draw:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.yesno-result {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.yesno-card {
    font-size: 6rem;
    margin: 30px 0;
    animation: bounceIn 0.8s ease;
}

.yesno-answer {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    animation: fadeIn 1s ease;
}

.yesno-answer.yes {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.yesno-answer.no {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.yesno-answer.maybe {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.yesno-explanation {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    line-height: 1.8;
}

/* ==================== 每日一牌 ==================== */
.daily-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.daily-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.daily-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.daily-card-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.daily-date {
    font-size: 1.3rem;
    color: #ffd89b;
    margin-bottom: 30px;
    font-weight: bold;
}

.daily-card-display {
    margin: 30px 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.daily-card-back {
    width: 200px;
    height: 320px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.daily-card-back:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-back-content {
    text-align: center;
    font-size: 1.2rem;
}

.card-back-content p:first-child {
    font-size: 3rem;
    margin-bottom: 10px;
}

.btn-daily-draw {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-daily-draw:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-daily-draw:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.daily-result {
    animation: fadeIn 0.8s ease;
}

.daily-card-info {
    margin-bottom: 30px;
}

.daily-card-symbol {
    position: relative;
    width: 200px;
    height: 333px;
    margin: 0 auto 15px;
    animation: bounceIn 0.8s ease;
}

.daily-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.daily-card-symbol-fallback {
    font-size: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.daily-card-info h3 {
    font-size: 2rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.daily-card-orientation {
    font-size: 1.2rem;
    opacity: 0.9;
}

.daily-card-description {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-style: italic;
}

.daily-meanings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.daily-meaning-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.daily-meaning-item h4 {
    color: #ffd89b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.daily-meaning-item p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.daily-advice {
    background: linear-gradient(135deg, rgba(255, 216, 155, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 216, 155, 0.3);
}

.daily-advice h4 {
    color: #ffd89b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.daily-advice p {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    /* 历史记录详情弹窗 */
    .history-detail-content {
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .btn-close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .detail-card-item {
        padding: 20px 15px;
    }
    
    /* 结果按钮 */
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-actions button {
        width: 100%;
    }
    
    .spread-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-container {
        gap: 10px;
        padding: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .question-input-area {
        padding: 15px;
    }
    
    .daily-meanings {
        grid-template-columns: 1fr;
    }
    
    .daily-card-area {
        padding: 20px;
    }
}

/* ==================== 学习中心 ==================== */
.learn-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.learn-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.learn-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 学习模块卡片 */
.learn-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.learn-module-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.learn-module-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 216, 155, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.module-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.learn-module-card h3 {
    font-size: 1.8rem;
    color: #ffd89b;
    margin-bottom: 15px;
}

.module-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-module {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.btn-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 返回学习中心按钮 */
.btn-back-to-modules {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-to-modules:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

/* ==================== 牌义百科 ==================== */
.encyclopedia-content {
    animation: fadeIn 0.5s ease;
}

.encyclopedia-header {
    text-align: center;
    margin-bottom: 30px;
}

.encyclopedia-header h3 {
    font-size: 2rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.encyclopedia-search {
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(255, 255, 255, 0.15);
}

.encyclopedia-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.encyclopedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.encyclopedia-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.encyclopedia-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 216, 155, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-image-container {
    position: relative;
    width: 120px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.encyclopedia-card:hover .card-image {
    transform: scale(1.05);
}

.card-symbol-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.encyclopedia-card h4 {
    font-size: 1.3rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.card-brief {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-view-card {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 牌详情弹窗 */
.card-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.card-detail-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease;
}

.card-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-image-huge {
    position: relative;
    width: 200px;
    height: 333px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-symbol-huge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.card-detail-header h2 {
    font-size: 2.5rem;
    color: #ffd89b;
}

.card-detail-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.card-detail-description h3 {
    color: #ffd89b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-detail-description p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.card-detail-meanings {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.meaning-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
}

.meaning-section h3 {
    color: #ffd89b;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.meaning-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.meaning-item strong {
    color: #ffd89b;
    display: block;
    margin-bottom: 8px;
}

.meaning-item p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== 互动练习 ==================== */
.practice-content {
    animation: fadeIn 0.5s ease;
}

.practice-header {
    text-align: center;
    margin-bottom: 30px;
}

.practice-header h3 {
    font-size: 2rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.practice-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.practice-mode-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.practice-mode-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 216, 155, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.practice-mode-card h4 {
    font-size: 1.5rem;
    color: #ffd89b;
    margin-bottom: 15px;
}

.practice-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd89b;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.btn-start-practice {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.btn-start-practice:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 练习游戏界面 */
.practice-game {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.game-progress {
    font-size: 1.2rem;
    color: #ffd89b;
}

.game-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd89b;
}

.btn-quit-game {
    padding: 8px 20px;
    background: rgba(255, 99, 99, 0.3);
    border: 1px solid rgba(255, 99, 99, 0.5);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quit-game:hover {
    background: rgba(255, 99, 99, 0.5);
}

.game-question-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.game-question-area p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.question-symbol {
    font-size: 8rem;
    margin: 30px 0;
}

.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.game-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.game-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-option:disabled {
    cursor: not-allowed;
}

.game-option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
}

.game-option.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

.game-feedback {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.feedback-correct {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.feedback-wrong {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.feedback-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.btn-next-question {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-next-question:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 练习结果 */
.practice-result {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.result-summary h3 {
    font-size: 2rem;
    color: #ffd89b;
    margin-bottom: 30px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.result-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd89b;
    display: block;
    margin-bottom: 10px;
}

.result-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-restart-practice,
.btn-back-to-practice {
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.btn-restart-practice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-back-to-practice {
    background: rgba(255, 255, 255, 0.1);
}

.btn-restart-practice:hover,
.btn-back-to-practice:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==================== 塔罗课程 ==================== */
.course-content {
    animation: fadeIn 0.5s ease;
}

.course-header {
    text-align: center;
    margin-bottom: 30px;
}

.course-header h3 {
    font-size: 2rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.course-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.course-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.course-category h4 {
    font-size: 1.8rem;
    color: #ffd89b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 216, 155, 0.3);
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.course-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 216, 155, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-item h5 {
    font-size: 1.3rem;
    color: #ffd89b;
    margin-bottom: 10px;
}

.course-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-view-course {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 课程详情弹窗 */
.course-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.course-detail-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease;
}

.course-detail-content h2 {
    color: #ffd89b;
    margin-bottom: 30px;
    font-size: 2rem;
}

.course-detail-content h4 {
    color: #ffd89b;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.course-detail-content h5 {
    color: rgba(255, 216, 155, 0.9);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.course-detail-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.course-detail-content ul,
.course-detail-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.course-detail-content li {
    margin-bottom: 10px;
}

/* ==================== 响应式设计 - 学习中心 ==================== */
@media (max-width: 768px) {
    .learn-modules {
        grid-template-columns: 1fr;
    }
    
    .encyclopedia-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .card-detail-content,
    .course-detail-content {
        padding: 30px 20px;
    }
    
    .card-symbol-huge {
        font-size: 4rem;
    }
    
    .meaning-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-modes {
        grid-template-columns: 1fr;
    }
    
    .game-options {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions button {
        width: 100%;
    }
    
    .course-list {
        grid-template-columns: 1fr;
    }
    
    .question-symbol {
        font-size: 5rem;
    }
}

/* ==================== 自定义牌阵配置 ==================== */
.custom-config {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.custom-config h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.config-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffd89b;
    font-weight: bold;
}

.form-group input[type="number"] {
    width: 100px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(0, 0, 0, 0.5);
}

.form-hint {
    margin-left: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.custom-positions {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.position-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.position-input label {
    min-width: 80px;
    margin: 0;
    font-size: 1rem;
    color: white;
}

.position-input input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.position-input input:focus {
    outline: none;
    border-color: #ffd89b;
    background: rgba(0, 0, 0, 0.5);
}

.config-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.config-actions button {
    flex: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
