/* 全局變量 */
:root {
    --main-bg-color: #0a0a1a;
    --accent-color: #9b59b6;
    --gold-color: #e6c200;
    --text-color: #f8f8ff;
    --card-bg: rgba(30, 30, 60, 0.7);
    --border-glow: 0 0 10px rgba(155, 89, 182, 0.7);
}

/* 基本樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', '微軟正黑體', sans-serif;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23404' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23505'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 頁頭樣式 */
header {
    position: relative;
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(to right, rgba(10, 10, 26, 0.9), rgba(155, 89, 182, 0.3), rgba(10, 10, 26, 0.9));
    border-bottom: 1px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: padding 0.3s ease;
}

.logo {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* .site-title mirrors the old .logo h1 so the H1 can belong to page content instead */
.logo h1,
.logo .site-title {
    display: block;
    margin: 0.67em 0;
    text-decoration: none;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--gold-color);
    letter-spacing: 4px;
    transition: font-size 0.3s ease;
}

.logo span {
    display: block;
    font-size: 1rem;
    color: var(--gold-color);
    letter-spacing: 3px;
    margin-top: 5px;
    transition: font-size 0.3s ease, opacity 0.3s ease;
}

/* 導航樣式 */
nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--gold-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--gold-color);
}

nav a.active::after {
    width: 100%;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 頁面標題樣式 */
.page-title {
    text-align: center;
    margin-bottom: 50px;
}

/* h1 and h2 share these styles: page templates use h1, legacy markup uses h2 */
.page-title h1,
.page-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin: 0.83em 0 15px;
}

.page-title p {
    font-size: 1.1rem;
    color: #d3c9e0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 按鈕樣式 */
.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-color), #8e44ad, var(--accent-color));
    background-size: 200% 200%;
    color: white;
    border: 2px solid var(--gold-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.8);
}

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

/* 選擇按鈕 */
.select-btn, .learn-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, var(--accent-color), #8e44ad);
    color: white;
    border: 1px solid var(--gold-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.select-btn:hover, .learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
}

/* 牌陣卡片按鈕對齊修正 */
.spread-card {
    text-align: center;
}

.spread-card .learn-more-btn {
    display: inline-block;
    margin: 0 auto;
}

/* 頁腳樣式 */
footer {
    background: rgba(10, 10, 26, 0.95);
    border-top: 1px solid var(--gold-color);
    padding: 50px 0 20px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer-logo p {
    color: #d3c9e0;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-social {
    flex: 2;
    min-width: 200px;
}

.footer-links h4, .footer-social h4 {
    color: var(--gold-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d3c9e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    flex: 1 1 200px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.social-icons img {
    width: 100%;
    height: auto;
    max-width: 240px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    transition: transform .2s;
}

.social-icons img:hover {
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(155, 89, 182, 0.3);
    color: #7a7a8c;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-links ul {
        padding: 0;
    }
}

/* 神秘氛圍效果 */
.mystic-orb {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.2) 0%, rgba(10, 10, 26, 0) 70%);
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
}

.mystic-orb:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: floatAnimation 15s infinite ease-in-out;
}

.mystic-orb:nth-child(2) {
    top: 40%;
    right: 15%;
    width: 300px;
    height: 300px;
    animation: floatAnimation 20s infinite ease-in-out reverse;
}

.mystic-orb:nth-child(3) {
    bottom: 20%;
    left: 30%;
    width: 200px;
    height: 200px;
    animation: floatAnimation 18s infinite ease-in-out 2s;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, 15px);
    }
    50% {
        transform: translate(15px, 30px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 首頁英雄區域 */
.hero-section {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0.83em 0 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #d3c9e0;
}

/* 塔羅牌展示 */
.tarot-cards-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 80px;
    perspective: 1000px;
}

.tarot-card {
    width: 150px;
    height: 260px;
    margin: 0 -25px;
    background: var(--card-bg);
    border: 2px solid var(--gold-color);
    border-radius: 10px;
    box-shadow: var(--border-glow);
    transition: all 0.5s ease;
    transform: rotateY(20deg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tarot-card:hover {
    transform: translateY(-20px) rotateY(0deg) scale(1.1);
    z-index: 10;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
}

/* 讀牌選項 */
.reading-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 70px;
}

.reading-option {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.reading-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.7);
}

.reading-option h3 {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.card-count {
    display: inline-block;
    background: rgba(155, 89, 182, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border: 1px solid var(--accent-color);
}

.reading-option p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d3c9e0;
}

/* 使用者心得 */
.testimonials {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--accent-color);
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #d3c9e0;
    font-style: italic;
}

.testimonial-author {
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.testimonial-date {
    font-size: 0.9rem;
    color: #a8a8bd;
}

/* 牌陣網格樣式 */
.spread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.spread-card {
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--border-glow);
    text-align: center;
}

.spread-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
}

.spread-card h3 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.spread-image {
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.spread-image img {
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: var(--border-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spread-image:hover {
    transform: translateY(-5px);
}

.spread-image:hover img {
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
}

/* 教學頁面的標籤頁 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    margin: 0 10px 10px;
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(155, 89, 182, 0.3);
}

.tab.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
}

.content-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--gold-color);
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: var(--border-glow);
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #d3c9e0;
}

.content-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #d3c9e0;
    line-height: 1.6;
}

/* 說明文字框 */
.reading-tip {
    background: rgba(155, 89, 182, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
}

.reading-tip h4 {
    color: var(--gold-color);
    margin-bottom: 10px;
}

/* 塔羅卡牌示例 */
.tarot-example {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.card-example {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--gold-color);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-example:hover {
    transform: translateY(-10px);
    box-shadow: var(--border-glow);
}

.card-image {
    margin-bottom: 25px;
    padding: 10px;
    position: relative;
    width: 100%;
    max-width: 220px;
}

.card-example h4 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--gold-color);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.card-keywords {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.tarot-card {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
    border: 2px solid var(--gold-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 300px;
    display: block;
    margin: 0 auto;
}

.tarot-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.8);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .tarot-example {
        flex-direction: column;
        align-items: center;
    }
    
    .card-example {
        max-width: 100%;
    }
}

/* 占卜頁面樣式 */
.reading-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
}

.reading-steps::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin: 0 10px;
    flex: 1;
    min-width: 100px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--accent-color);
    color: var(--bg-color);
}

.step-name {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

.step-content {
    display: none;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--gold-color);
    box-shadow: var(--border-glow);
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

.spread-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.spread-option {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.spread-option:hover, .spread-option.selected {
    transform: translateY(-10px);
    box-shadow: var(--border-glow);
    border-color: var(--gold-color);
}

.spread-image {
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spread-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.difficulty {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(155, 89, 182, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
}

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

.prev-btn, .next-btn, .action-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.next-btn, .action-btn {
    background: var(--accent-color);
    color: var(--bg-color);
}

.prev-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

.next-btn:hover:not([disabled]), .action-btn:hover:not([disabled]) {
    background: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.prev-btn:hover {
    background: rgba(155, 89, 182, 0.2);
    transform: translateY(-3px);
}

/* 移動設備響應式設計優化 */
@media (max-width: 768px) {
    .reading-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reading-steps::after {
        display: none;
    }
    
    .step {
        flex-direction: row;
        width: 100%;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .spread-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .spread-option {
        max-width: 100%;
    }
    
    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .prev-btn, .next-btn, .action-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 實用輔助類 */
.hidden {
    display: none;
}

/* 塔羅牌結果樣式增強 */
.result-card {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(30, 30, 60, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.result-card-position {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4a3b9e, #8064e9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.result-card-image {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.result-card-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

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

.card-orientation {
    display: inline-block;
    margin: 10px 0;
    padding: 3px 10px;
    border-radius: 15px;
    background-color: #2d2d6e;
    color: #fff;
    font-size: 0.85em;
}

.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.card-detail-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.card-detail-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.card-detail-item h5 {
    margin-top: 0;
    color: #b3a5ff;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.card-detail-item p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.card-readings {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-reading-tab {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.card-reading-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.card-reading-tab.active {
    background-color: rgba(128, 100, 233, 0.5);
    color: white;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
}

.card-reading-content {
    padding: 15px 0;
}

.reading-panel {
    display: none;
}

.reading-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.card-action {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(138, 43, 226, 0.2);
    border-left: 3px solid #8a2be2;
    border-radius: 5px;
}

.card-action h5 {
    margin-top: 0;
    color: #d4b3ff;
    margin-bottom: 8px;
}

.card-action p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.card-description-toggle {
    margin-top: 20px;
}

.toggle-description-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.toggle-description-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-full-description {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
}

.card-full-description.hidden {
    display: none;
}

/* 牌間關係分析樣式 */
.reading-relationship-analysis {
    margin: 40px 0;
    padding: 25px;
    background-color: rgba(30, 30, 60, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reading-relationship-analysis h3 {
    margin-top: 0;
    color: #9f86ff;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.relationship-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.analysis-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.analysis-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.analysis-section h4 {
    margin-top: 0;
    color: #b3a5ff;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px dashed rgba(179, 165, 255, 0.3);
    padding-bottom: 8px;
}

.analysis-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.analysis-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.analysis-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 閱讀總結樣式增強 */
#reading-summary {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(74, 59, 158, 0.8), rgba(128, 100, 233, 0.8));
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#reading-summary h3 {
    margin-top: 0;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

#reading-summary-text {
    font-size: 1.05em;
    line-height: 1.8;
    white-space: pre-line;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .card-details {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .reading-relationship-analysis,
    #reading-summary {
        padding: 15px;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 塔羅占卜頁面樣式優化 */
.step-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
    letter-spacing: 1px;
}

.instruction-box {
    background: rgba(155, 89, 182, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.instruction-icon {
    font-style: normal;
    margin-right: 8px;
    font-size: 1.2em;
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.question-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
    background: rgba(30, 30, 60, 0.4);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.question-categories h4,
.question-input h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.category-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-option {
    background: rgba(155, 89, 182, 0.2);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-option:hover {
    background: rgba(155, 89, 182, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.category-option.active {
    background: rgba(155, 89, 182, 0.4);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.category-name {
    font-size: 1.1rem;
}

#question-text {
    width: 100%;
    min-height: 120px;
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
    resize: vertical;
    margin-bottom: 15px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

#question-text:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.question-suggestions {
    background: rgba(30, 30, 60, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
}

.question-suggestions p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--gold-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .question-setup {
        grid-template-columns: 1fr;
    }
    
    .category-options {
        grid-template-columns: 1fr;
    }
}

/* 問題選擇樣式 */
.question-selection {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-list {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.question-item {
    background: rgba(40, 40, 80, 0.7);
    border: 1px solid rgba(230, 194, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-item:hover {
    background: rgba(60, 60, 100, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.question-item.selected {
    background: rgba(80, 60, 120, 0.9);
    border: 1px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(230, 194, 0, 0.3);
}

.question-text {
    flex: 1;
    font-size: 0.95rem;
    color: #fff;
}

.question-select-icon {
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-item:hover .question-select-icon,
.question-item.selected .question-select-icon {
    opacity: 1;
}

.custom-question {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.helper-text {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 8px;
    font-style: italic;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .question-options {
        max-height: 250px;
    }
    
    .question-item {
        padding: 10px 12px;
    }
    
    .question-text {
        font-size: 0.9rem;
    }
}

/* 抽到的牌的顯示區域樣式 */
.drawn-cards-display {
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(30, 30, 60, 0.7);
    border-radius: 10px;
    border: 1px solid #9b59b6;
}

.drawn-cards-display h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #e6c200;
}

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

.drawn-card-item {
    text-align: center;
    width: 120px;
    margin-bottom: 15px;
}

.drawn-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e6c200;
    box-shadow: 0 0 10px rgba(230, 194, 0, 0.3);
    margin-bottom: 8px;
}

.drawn-card-name {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.drawn-card-orientation {
    font-size: 12px;
    color: #9b59b6;
}

/* 洗牌與抽牌動畫效果樣式 */
.shuffle-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    position: relative;
    min-height: 600px; /* 確保有足夠的空間 */
}

.deck-container {
    position: relative;
    width: 600px;  
    height: 500px; 
    margin: 0 auto 120px; /* 增加底部間距，為shuffle-controls留出空間 */
    perspective: 1000px;
    overflow: visible; 
    z-index: 1; /* 設定較低的z-index */
}

.tarot-deck {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.shuffle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 2; /* 設定較高的z-index，確保控制項顯示在上層 */
    background: rgba(10, 10, 26, 0.7); /* 添加半透明背景，使控制項更容易辨識 */
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .deck-container {
        width: 100%;
        height: 400px;
        margin-bottom: 150px; /* 在移動設備上增加更多間距 */
    }
    
    .shuffle-area {
        min-height: 700px; /* 在移動設備上增加更多空間 */
    }
}

.action-btn {
    background: linear-gradient(135deg, var(--accent-color), #7d3c98);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#shuffle-status {
    font-size: 1rem;
    color: var(--gold-color);
    margin-top: 10px;
    text-align: center;
}

/* 洗牌動畫關鍵幀 */
@keyframes shuffleCard {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-100px) rotate(-5deg);
    }
    50% {
        transform: translateY(-50px) rotate(5deg);
    }
    75% {
        transform: translateY(-75px) rotate(-3deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
}

@keyframes deckShuffle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.shuffling {
    animation: deckShuffle 0.5s ease-in-out infinite;
}

.card-draw {
    animation: drawCard 1s ease-out forwards;
}

@keyframes drawCard {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100px) rotate(5deg);
    }
    100% {
        transform: translateY(0) translateX(200px) rotate(0deg);
    }
}

/* 洗牌動畫優化 */
.card-stack {
    position: absolute;
    width: 180px;
    height: 300px;
    transition: transform 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.stack-card {
    position: absolute;
    width: 180px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a3a, #3a1a5a);
    border: 2px solid var(--gold-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%239b59b6' fill-opacity='0.2'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 260px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23e6c200' fill-opacity='0.3'%3E%3Cpath d='M20 0L0 20h20V0zm0 40V20h20L20 40z'/%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid rgba(230, 194, 0, 0.3);
    border-radius: 5px;
}

.stack-card::after {
    content: '✧';
    position: absolute;
    font-size: 2rem;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(230, 194, 0, 0.7);
}

.left-stack, .right-stack {
    transition: transform 0.5s ease, left 0.5s ease;
}

.left-stack:hover, .right-stack:hover {
    transform: translateY(-5px) !important;
}

.shuffle-card {
    position: absolute;
    width: 180px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a3a, #3a1a5a);
    border: 2px solid var(--gold-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%239b59b6' fill-opacity='0.2'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
    transition: transform 0.5s ease, top 0.5s ease, left 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.shuffle-card::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 260px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23e6c200' fill-opacity='0.3'%3E%3Cpath d='M20 0L0 20h20V0zm0 40V20h20L20 40z'/%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid rgba(230, 194, 0, 0.3);
    border-radius: 5px;
}

.shuffle-card::after {
    content: '✧';
    position: absolute;
    font-size: 2rem;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(230, 194, 0, 0.7);
}

.left-to-right, .right-to-left {
    transition: transform 0.5s ease, left 0.5s ease;
}

/* 交錯洗牌動畫 */
@keyframes interleave {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 響應式設計優化 */
@media (max-width: 768px) {
    .deck-container {
        width: 250px;
        height: 350px;
    }
    
    .tarot-card-back, .stack-card, .shuffle-card {
        width: 150px;
        height: 250px;
    }
    
    .tarot-card-back::before, .stack-card::before, .shuffle-card::before {
        width: 120px;
        height: 220px;
    }
}

/* Loading 畫面樣式 */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#loading-overlay .loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #6c63ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loading-overlay .loading-text {
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #000;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: linear-gradient(to right, rgba(10, 10, 26, 0.95), rgba(155, 89, 182, 0.5), rgba(10, 10, 26, 0.95));
    }
    
    header.scrolled {
        padding: 5px 0;
    }
    
    .logo {
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    .logo h1,
    .logo .site-title {
        font-size: 2.5rem;
        transition: font-size 0.3s ease;
    }
    
    .logo span {
        font-size: 0.8rem;
        transition: opacity 0.3s ease;
    }
    
    .logo.scrolled h1,
    .logo.scrolled .site-title {
        font-size: 1.8rem;
    }
    
    .logo.scrolled span {
        opacity: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .menu-toggle {
        display: flex !important;
        top: 15px;
        right: 20px;
        width: 30px;
        height: 21px;
    }
    
    header.scrolled .menu-toggle {
        top: 10px;
    }
    
    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(to right, rgba(10, 10, 26, 0.95), rgba(60, 20, 80, 0.95));
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 90;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    nav#main-nav.active {
        right: 0;
    }
    
    nav#main-nav a {
        margin: 15px 0;
        font-size: 1.2rem;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid rgba(155, 89, 182, 0.3);
        width: 100%;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* 當選單打開時的背景遮罩 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        top: 25px;
        right: 20px;
    }
}

/* 漢堡選單樣式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-color);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #000;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
}

/* 命理顧問頁面特定樣式 */
.consultant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.consultant-card {
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
    transition: transform 0.3s ease;
}

.consultant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.8);
}

.consultant-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-color);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(230, 194, 0, 0.6);
}

.consultant-card h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.consultant-title {
    font-size: 1rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-style: italic;
}

.consultant-desc {
    font-size: 0.95rem;
    color: #d3c9e0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.consultant-specialties {
    margin-bottom: 25px;
}

.consultant-specialties span {
    display: inline-block;
    background: rgba(155, 89, 182, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 5px;
}

.book-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--gold-color), #ffd700);
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(230, 194, 0, 0.7);
}

/* 預約流程樣式 */
.booking-process {
    background: rgba(30, 30, 60, 0.5);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
    text-align: center;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.booking-process h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.7);
}

.step h4 {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: #d3c9e0;
}

/* 服務價格樣式 */
.pricing {
    text-align: center;
    margin-bottom: 50px;
}

.pricing h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.7);
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.price-card h4 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.duration {
    font-size: 1rem;
    color: #d3c9e0;
    margin-bottom: 20px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.price-card li {
    color: #d3c9e0;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.price-card li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--gold-color);
}

.select-btn {
    display: inline-block;
    padding: 12px 35px;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.7);
}

/* 顧客評價樣式 */
.testimonials {
    text-align: center;
}

.testimonials h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.testimonial-text {
    font-style: italic;
    color: #e0d8ec;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--gold-color);
}

.testimonial-author {
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 5px;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #a99fc0;
}

.footer-social .social-icons img {
    max-width: 240px;  /* Apply max-width */
    max-height: 200px; /* Apply max-height */
    height: auto;      /* Maintain aspect ratio */
    width: auto;       /* Let max-width/max-height control size */
    border-radius: 5px; /* Optional rounding */
    transition: transform 0.3s ease;
    vertical-align: middle; /* Align images properly if needed */
}

.footer-social .social-icons img:hover {
    transform: scale(1.05);
}

/* 會員中心特定樣式 */
.member-dashboard {
    display: flex;
    gap: 30px;
    background: rgba(30, 30, 60, 0.5);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: rgba(10, 10, 26, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

.user-avatar {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    /* 這裡可以替換成圖片 */
    /* background-image: url('path/to/avatar.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    border: 3px solid var(--gold-color);
}

.user-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.membership-level {
    font-size: 0.9rem;
    color: var(--gold-color);
    font-weight: bold;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-nav li {
    padding: 15px 10px;
    color: #d3c9e0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.sidebar-nav li .icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-nav li:hover {
    background-color: rgba(155, 89, 182, 0.2);
    color: white;
}

.sidebar-nav li.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
}

.logout-btn {
    margin-top: 20px;
}

.logout-btn button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.logout-btn button:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.dashboard-content {
    flex-grow: 1;
}

.tab-content {
    display: none;
    background: rgba(10, 10, 26, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(230, 194, 0, 0.5);
}

/* 表單樣式 */
.profile-form, .password-form {
    max-width: 600px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d3c9e0;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.5);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 5px rgba(230, 194, 0, 0.5);
}

.primary-btn, .secondary-btn, .danger-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-color), #8e44ad);
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(45deg, #8e44ad, var(--accent-color));
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.7);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

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

.danger-btn {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    color: white;
}

.danger-btn:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.change-password h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* 我的預約頁面樣式 */
.appointment-status {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: rgba(155, 89, 182, 0.2);
    color: white;
}

.status-btn.active {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
}

.appointment-list {
    display: grid;
    gap: 20px;
}

.appointment-card {
    background: rgba(30, 30, 60, 0.7);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--gold-color);
}

.appointment-card.completed {
    border-left-color: #2ecc71; /* 綠色表示已完成 */
}

.appointment-card.cancelled {
    border-left-color: #e74c3c; /* 紅色表示已取消 */
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.appointment-header h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.appointment-header .status {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
}

.appointment-header .status.upcoming {
    background-color: rgba(230, 194, 0, 0.2);
    color: var(--gold-color);
}

.appointment-header .status.completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.appointment-header .status.cancelled {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.detail-item .label {
    display: block;
    font-size: 0.85rem;
    color: #a99fc0;
    margin-bottom: 3px;
}

.detail-item .value {
    font-size: 1rem;
    color: var(--text-color);
}

.appointment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .member-dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .sidebar-nav li {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    .sidebar-nav li .icon {
        font-size: 1rem;
    }
    .appointment-details {
        grid-template-columns: 1fr; /* 在小螢幕上單列顯示 */
    }
    .appointment-actions button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* ==========================================================================
   Tarot card library (/cards/) and card meaning pages (/cards/<slug>/)
   Reuses the existing purple/gold palette and .content-section shell.
   ========================================================================== */

.breadcrumb {
    margin: 20px 0 10px;
    font-size: 0.95rem;
    color: #b8aec9;
}

.breadcrumb a {
    color: var(--gold-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Section headings on card pages: h2 leads, h3 sits under it */
.card-section h2,
.card-group h2 {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

.card-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    border-bottom: none;
    margin: 25px 0 12px;
    padding-bottom: 0;
}

.card-section a {
    color: var(--gold-color);
}

/* At-a-glance summary: card image beside the key facts table */
.card-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    box-shadow: var(--border-glow);
    padding: 35px;
    margin-bottom: 40px;
}

.card-summary-image {
    flex: 0 0 240px;
    margin: 0 auto;
}

.card-summary-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--gold-color);
    box-shadow: var(--border-glow);
}

.card-summary-table {
    flex: 1 1 320px;
}

.card-summary-table table {
    width: 100%;
    border-collapse: collapse;
}

.card-summary-table th,
.card-summary-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(155, 89, 182, 0.25);
    line-height: 1.6;
}

.card-summary-table th {
    width: 32%;
    color: var(--gold-color);
    font-weight: 600;
    white-space: nowrap;
}

.card-summary-table td {
    color: #d3c9e0;
}

.card-summary-table .keywords-up td {
    color: #a8e6b0;
}

.card-summary-table .keywords-rev td {
    color: #e6b0a8;
}

/* Card combination table */
.combination-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.combination-table th,
.combination-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(155, 89, 182, 0.25);
    line-height: 1.7;
    color: #d3c9e0;
}

.combination-table thead th {
    color: var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
}

.combination-table tbody th {
    width: 28%;
    color: var(--text-color);
    font-weight: 600;
}

.combination-table a {
    color: var(--gold-color);
}

/* Related cards strip */
.related-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-card {
    width: 120px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(230, 194, 0, 0.5);
}

.related-card span {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Prev / index / next navigation */
.card-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
}

.card-pager a {
    color: var(--gold-color);
    text-decoration: none;
    font-size: 1rem;
}

.card-pager a:hover {
    text-decoration: underline;
}

.card-pager .index {
    color: var(--text-color);
}

/* Closing call to action */
.card-cta {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    box-shadow: var(--border-glow);
    padding: 45px 30px;
    margin: 40px 0 60px;
}

.card-cta h2 {
    font-size: 1.9rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.card-cta p {
    color: #d3c9e0;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 25px;
}

/* Library grid */
.card-group-subtitle {
    color: #b8aec9;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

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

.card-thumb {
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

a.card-thumb:hover {
    transform: translateY(-6px);
}

.card-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(230, 194, 0, 0.5);
}

.card-thumb-name {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.card-thumb-en {
    display: block;
    font-size: 0.8rem;
    color: #b8aec9;
}

.card-thumb-pending {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .card-summary {
        padding: 25px 20px;
        gap: 25px;
    }

    .card-summary-image {
        flex: 0 0 200px;
    }

    .card-section h2,
    .card-group h2 {
        font-size: 1.6rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 20px 15px;
    }

    .card-summary-table th {
        width: 38%;
    }

    .card-summary-table th,
    .card-summary-table td {
        padding: 11px 8px;
        font-size: 0.95rem;
    }

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

/* ==========================================================================
   Articles (/articles/ and /articles/<slug>/)
   ========================================================================== */

.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d3c9e0;
    max-width: 760px;
    margin: 0 auto 18px;
}

.article-meta {
    font-size: 0.95rem;
    color: #b8aec9;
}

.article-meta span {
    color: var(--gold-color);
    margin-right: 14px;
}

/* Table of contents */
.article-toc {
    background: rgba(155, 89, 182, 0.12);
    border: 1px solid rgba(230, 194, 0, 0.35);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 35px;
}

.article-toc h2 {
    font-size: 1.15rem;
    color: var(--gold-color);
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.article-toc ol {
    padding-left: 22px;
}

.article-toc li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-toc a {
    color: #d3c9e0;
    text-decoration: none;
}

.article-toc a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Article body */
.article-body h2 {
    font-size: 1.9rem;
    color: var(--gold-color);
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
    scroll-margin-top: 20px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 28px 0 12px;
    padding: 0;
    border: none;
}

.article-body a {
    color: var(--gold-color);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
}

.article-table th,
.article-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(155, 89, 182, 0.25);
    line-height: 1.7;
    color: #d3c9e0;
    font-size: 1rem;
}

.article-table thead th {
    color: var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
    white-space: nowrap;
}

.article-table tbody th {
    color: var(--text-color);
    font-weight: 600;
}

.article-quote {
    border-left: 3px solid var(--gold-color);
    padding: 12px 22px;
    margin: 22px 0;
    background: rgba(230, 194, 0, 0.07);
}

.article-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #b8aec9;
    font-style: normal;
}

/* Listing */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.article-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--gold-color);
    border-radius: 15px;
    box-shadow: var(--border-glow);
    padding: 28px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card-image {
    flex: 0 0 110px;
}

.article-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(230, 194, 0, 0.5);
}

.article-card-body {
    flex: 1;
}

.article-card-category {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--gold-color);
    margin-bottom: 8px;
}

.article-card-body h2 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.45;
}

.article-card-body p {
    color: #d3c9e0;
    line-height: 1.7;
    margin-bottom: 10px;
}

.article-card-body time {
    font-size: 0.9rem;
    color: #b8aec9;
}

@media (max-width: 768px) {
    .article-body h2 { font-size: 1.5rem; }

    .article-card {
        flex-direction: column;
        padding: 22px;
        gap: 18px;
    }

    .article-card-image {
        flex: 0 0 auto;
        width: 100px;
    }

    /* Wrap rather than squash: without a min-width the table just compresses
       columns to one character per line instead of scrolling. */
    .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-table thead,
    .article-table tbody {
        display: table;
        width: 100%;
        min-width: 560px;
    }

    .article-table th,
    .article-table td {
        font-size: 0.95rem;
        padding: 11px 10px;
    }
}
