/* ========================================
   塔测师 - 免费塔罗牌在线占卜
   样式文件
   ======================================== */

/* === CSS 变量 === */
:root {
    --primary: #6C3FA0;
    --primary-dark: #4A2878;
    --primary-light: #9B6DD7;
    --accent: #E8A838;
    --accent-light: #F5D98E;
    --bg: #0F0A1A;
    --bg-card: #1A1228;
    --bg-card-hover: #241838;
    --text: #E8E0F0;
    --text-muted: #9A8AB0;
    --text-light: #C8B8E0;
    --border: #2A1E40;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(108, 63, 160, 0.15);
    --shadow-lg: 0 8px 40px rgba(108, 63, 160, 0.25);
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* === 轮播图 === */
.hero {
    padding: 0;
    position: relative;
    background: var(--bg);
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
    background: #000;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15,10,26,0.6) 0%, rgba(15,10,26,0.45) 50%, rgba(15,10,26,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay .container {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

.hero-overlay .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    background: rgba(15,10,26,0.65);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 32px 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-overlay .hero-content h1 {
    display: block;
    color: #fff !important;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    background: none;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-overlay .hero-content .hero-subtitle {
    display: block;
    color: #fff !important;
    font-size: clamp(13px, 2vw, 18px);
    margin-bottom: 8px;
    line-height: 1.5;
}

.hero-overlay .hero-content .hero-desc {
    display: block;
    color: rgba(255,255,255,0.95) !important;
    font-size: clamp(12px, 1.8vw, 14px);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-overlay .hero-content .hero-stats {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
}

.hero-overlay .btn {
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-overlay .btn-outline {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.hero-overlay .btn-outline:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
}

/* 移动端文字块（默认隐藏） */
.hero-text-block {
    display: none;
}

@media (max-width: 768px) {
    /* PC的hero flex布局改为上下堆叠 */
    .hero {
        min-height: auto;
        flex-direction: column;
        padding: 0;
        text-align: center;
    }
    .hero-slider {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    /* PC overlay内的文字在移动端隐藏 */
    .hero-overlay .hero-content {
        display: none;
    }

    /* 移动端独立文字块显示 */
    .hero-text-block {
        display: block;
        background: var(--bg);
        padding: 24px 20px 32px;
    }
    .hero-text-block .container {
        padding: 0;
        max-width: 100%;
    }
    .hero-text-block .hero-content-mobile {
        text-align: center;
        color: var(--text);
    }
    .hero-text-block h1 {
        font-size: 22px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .hero-text-block .hero-subtitle {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 6px;
    }
    .hero-text-block .hero-desc {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 16px;
        line-height: 1.5;
    }
    .hero-text-block .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    .hero-text-block .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
    .hero-text-block .hero-stats {
        display: flex;
        gap: 4px 8px;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 12px;
        color: var(--text-muted);
    }

    .hero-dots {
        bottom: 12px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 按钮 === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 63, 160, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 63, 160, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 18px;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* === 头部导航 === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text) !important;
}
.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-muted) !important;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active {
    background: var(--bg-card);
    color: var(--text) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 8px 0;
}
.mobile-menu.open {
    display: block;
}
.mobile-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted) !important;
    font-size: 16px;
    transition: all 0.3s;
}
.mobile-link:hover, .mobile-link.active {
    background: var(--bg-card);
    color: var(--text) !important;
}

/* === 首页主视觉 === */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse at center top, rgba(108, 63, 160, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at center bottom, rgba(232, 168, 56, 0.08) 0%, transparent 50%);
}

.hero-content {
    max-width: 700px;
}



.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-light);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    flex-wrap: wrap;
}

/* === 通用段落 === */
.section {
    padding: 60px 0;
}
.section-alt {
    background: var(--bg-card);
}

.section-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === 快捷占卜卡片 === */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text) !important;
}
.quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.quick-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.quick-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* === 热门牌意 === */
.hot-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.hot-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    color: var(--text) !important;
}
.hot-card-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hot-card-num {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hot-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hot-card-en {
    font-size: 11px;
    color: var(--text-muted);
}

/* === FAQ === */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}
.faq-question:hover {
    background: var(--bg-card-hover);
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: var(--primary-light);
    transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}
.faq-item.open .faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* === 单页标签切换 === */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === 页脚 === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-col p, .footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   抽牌页面
   ======================================== */

/* 牌阵选择 */
.spread-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.spread-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.spread-option:hover {
    border-color: var(--primary-light);
}
.spread-option.active {
    border-color: var(--primary);
    background: rgba(108, 63, 160, 0.15);
}

.spread-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.spread-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.spread-desc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* 问题输入 */
.question-input {
    max-width: 500px;
    margin: 0 auto 30px;
}

.question-input input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font);
}
.question-input input:focus {
    border-color: var(--primary);
}
.question-input input::placeholder {
    color: var(--text-muted);
}

/* 抽牌区域 */
.draw-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.card-back {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.card-back::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
}
.card-back:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 50px rgba(108, 63, 160, 0.4);
}

.card-back-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.card-back-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 12px;
}

.card-back-text {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.card-back.shuffling {
    animation: shuffleAnim 0.6s ease-in-out 3;
}

@keyframes shuffleAnim {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(0.95); }
    75% { transform: rotate(5deg) scale(1.05); }
}

.draw-hint {
    text-align: center;
    color: var(--text-muted);
}
.draw-hint p {
    font-size: 15px;
}
.draw-hint-small {
    font-size: 13px;
    margin-top: 4px;
}

/* 抽牌结果 */
.result-area {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.result-card {
    width: 180px;
    text-align: center;
}

.result-card-inner {
    width: 180px;
    height: 270px;
    background: linear-gradient(145deg, #1E1530, #2A1E40);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}
.result-card-inner.reversed {
    transform: rotate(180deg);
}

.result-card-symbol {
    font-size: 56px;
    margin-bottom: 8px;
}

.result-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.result-card-en {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.result-card-position {
    font-size: 13px;
    color: var(--text-muted);
}

.result-card-position.rev {
    color: #E86868;
}

.result-card-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 解读区域 */
.result-interpretation {
    max-width: 700px;
    margin: 0 auto;
}

.interp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease;
}

.interp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.interp-icon {
    font-size: 32px;
}

.interp-title {
    font-size: 18px;
    font-weight: 600;
}

.interp-meaning {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========================================
   牌意查询页面
   ======================================== */

.card-search {
    max-width: 500px;
    margin: 0 auto 20px;
}

.card-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font);
}
.card-search input:focus {
    border-color: var(--primary);
}

.card-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.card-tab {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font);
}
.card-tab:hover {
    border-color: var(--primary-light);
    color: var(--text);
}
.card-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.card-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-item-number {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-item-en {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-item-meaning {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-item-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.card-tag {
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    background: rgba(108, 63, 160, 0.2);
    color: var(--primary-light);
}

.card-tag.reversed {
    background: rgba(232, 104, 104, 0.15);
    color: #E86868;
}

/* 牌详情弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    animation: fadeInUp 0.3s ease;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--text);
}

.modal-number {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.modal-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.modal-en {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 16px;
}

.modal-section h4 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 6px;
}

.modal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    background: rgba(108, 63, 160, 0.2);
    color: var(--primary-light);
}

/* ========================================
   新手入门页面
   ======================================== */

.learn-content {
    max-width: 800px;
    margin: 0 auto;
}

.learn-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.learn-block h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.learn-block p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

.learn-block ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.learn-block li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 4px;
}

.learn-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .learn-cards {
        grid-template-columns: 1fr;
    }
}

.learn-card-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.learn-card-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.learn-card-item p {
    font-size: 14px;
    margin-bottom: 6px;
}

.step-list {
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.step-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-item p, .step-item li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: block; }

    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .spread-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-card, .result-card-inner {
        width: 130px;
        height: 200px;
    }
    .result-card-symbol {
        font-size: 40px;
    }
    .result-card-name {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hot-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .spread-selector {
        grid-template-columns: 1fr 1fr;
    }
}
