/* 全局变量 */
:root {
    /* 主要颜色 */
    --primary-color: #8A2BE2;
    --primary-light: #9d4ced;
    --primary-dark: #6a1cb3;
    --secondary-color: #5D3FD3;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    
    /* 文本颜色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #8e8e93;
    --text-color: #333;
    --gray-color: #6c757d;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-accent: #fafafa;
    --capsule-bg: #f2f2f7;
    
    /* 其他颜色 */
    --border-color: #e0e0e5;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --success-color: #34c759;
    --warning-color: #ff9500;
    --error-color: #ff3b30;
    
    /* 尺寸变量 */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-pill: 30px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 过渡效果 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition: all 0.3s ease;
    
    /* 新变量 */
    --border-radius: 20px;
    --small-radius: 10px;
    --capsule-radius: 25px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 暗色主题变量 */
.dark-theme {
    --primary-color: #9d4ced;
    --primary-light: #b072f3;
    --primary-dark: #792fd0;
    --secondary-color: #2c2c2e;
    
    --text-primary: #ffffff;
    --text-secondary: #c7c7cc;
    --text-light: #8e8e93;
    
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-accent: #3a3a3c;
    --capsule-bg: #3a3a3c;
    
    --border-color: #38383a;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: none;
}

.dark-theme .navbar {
    background-color: transparent;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    margin-right: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
}

.logo span:first-child {
    margin-right: 8px;
    font-size: 1.5rem;
}

.logo img {
    margin-right: 10px;
}

/* 导航胶囊容器 */
.nav-capsules {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 导航胶囊样式 */
.nav-capsule {
    background-color: rgba(230, 230, 235, 0.5);
    border-radius: var(--capsule-radius);
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 主导航菜单 */
.main-nav-capsule {
    flex-grow: 1;
}

.nav-menu ul {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--capsule-radius);
    transition: var(--transition);
    text-decoration: none;
    border-bottom: none;
    height: 36px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.nav-link.premium {
    background-color: rgba(180, 180, 185, 0.8);
    color: #FFD700;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-link.premium:hover {
    background-color: rgba(160, 160, 165, 0.9);
    transform: translateY(-2px);
}

.nav-link.premium i {
    color: #FFD700;
    margin-right: 4px;
}

/* 用户控制胶囊 */
.user-controls-capsule {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle, .language-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover, .language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-secondary);
    font-size: 1.2rem;
    text-decoration: none;
}

.user-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区域样式 */
.content-section {
    padding: 60px 0;
}

.content-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 塔罗师头像网格 */
.tarot-readers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
}

.tarot-reader {
    width: 100%;
    position: relative;
    border-radius: var(--small-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tarot-reader:hover {
    transform: scale(1.05);
}

.tarot-reader img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* 按钮样式 */
.action-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: var(--small-radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-button i {
    margin-left: 5px;
}

/* 是否占卜卡片 */
.yes-no-cards {
    display: flex;
    gap: 20px;
}

.yes-no-cards img, .tarot-card-display img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--small-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.yes-no-cards img:hover, .tarot-card-display img:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 每日塔罗卡片 */
.tarot-card-display {
    position: relative;
}

/* 渐变背景区域 */
.service-section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.gradient-bg-1 {
    background: linear-gradient(135deg, #ff7f50, #ff5f6d);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.section-content {
    flex: 1;
    min-width: 300px;
}

.section-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.service-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 特色区域 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: white;
    border-radius: var(--small-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background-color: white;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-color);
    font-size: 0.9rem;
}

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

/* 汉堡菜单按钮（移动端） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tarot-readers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-capsules {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    .nav-capsules.active {
        height: auto;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-capsule {
        width: 100%;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .content-section .container,
    .section-container {
        flex-direction: column;
    }
    
    .section-content, .text-content,
    .section-image, .image-content {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .tarot-readers-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .yes-no-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 文本对齐 */
.text-center {
    text-align: center;
}

/* 头部英雄区域 */
.hero-section {
    padding: 60px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-black {
    color: var(--text-primary);
}

.title-purple {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.tarot-card-single {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.card-image-container {
    position: relative;
    width: 200px;
    height: 320px;
}

.card-image {
    width: 100%;
    height: 100%;
    background-color: #33084d;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.purple-button {
    background: var(--primary-color);
    color: white;
    padding: 18px 38px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    border: none;
    cursor: pointer;
}

.purple-button:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.purple-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.purple-button:hover i {
    transform: translateX(5px);
}

/* 移动端按钮样式优化 */
@media (max-width: 768px) {
    .purple-button {
        padding: 16px 32px;
        font-size: 1.2rem;
        width: 80%;
        max-width: 320px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .purple-button {
        padding: 15px 25px;
        font-size: 1.1rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 分割内容区域 */
.split-section {
    padding: 60px 0;
}

.split-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.split-content .text-content,
.split-content .image-content {
    flex: 1;
    min-width: 300px;
}

.split-content .text-content {
    padding: 30px;
}

.readers-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.reader-box {
    background: linear-gradient(135deg, #8a4baf, #6a3093);
    border-radius: 12px;
    height: 0;
    padding-bottom: 150%; /* 保持宽高比例 */
    position: relative;
    box-shadow: 0 8px 16px rgba(106, 48, 147, 0.2);
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.reader-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') center/cover;
    opacity: 0.1;
}

.yes-no-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
}

.yes-no-card {
    width: 120px;
    height: 200px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: cardFlip 1.5s ease both;
    transform-style: preserve-3d;
}

.yes-card {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    animation-delay: 0.5s;
}

.no-card {
    background: linear-gradient(135deg, #F44336, #C62828);
    animation-delay: 0.8s;
}

.yes-no-card:hover {
    transform: translateY(-10px) rotateY(10deg);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFlip {
    0% {
        transform: rotateY(180deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: rotateY(0) scale(1);
        opacity: 1;
    }
}

/* 年度塔罗运势部分 */
.year-tarot-section {
    padding: 80px 0;
    text-align: center;
}

.year-tarot-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.year-tarot-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.year-tarot-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.year-tarot-button {
    background-color: #8A2BE2;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.year-tarot-button:hover {
    background-color: #6a1cb3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

/* 特点区域 */
.features-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.blue-icon {
    color: #4285f4;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 疗愈区域 */
.healing-section {
    padding: 50px 0;
    background-color: #fceeff;
    border-radius: 10px;
    margin: 20px 0;
}

.healing-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .split-content {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
}

/* 铺满宽度容器 */
.fullwidth-container {
    max-width: 100%;
    width: 100%;
    padding: 0 30px;
}

/* 居中内容 */
.center-content {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* 塔罗特色区域 */
.tarot-feature-section {
    padding: 80px 0;
    background-color: #fafafa;
    margin: 20px 0;
}

.tarot-feature-section:nth-child(even) {
    background-color: #f5f5f5;
}

/* 特色标题 */
.feature-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    color: #222 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 会员订阅弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .subscription-modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.plan-options {
    padding: 20px;
}

.plan-option {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-option:hover, .plan-option.selected {
    border-color: #8A2BE2;
    background-color: rgba(138, 43, 226, 0.05);
}

.plan-option.selected::before {
    content: "";
    position: absolute;
    right: 15px;
    top: 15px;
    color: #8A2BE2;
    font-weight: bold;
}

.plan-name {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.plan-price {
    color: #8A2BE2;
}

.plan-description {
    font-size: 0.85rem;
    color: #666;
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.modal-footer button {
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-button {
    background-color: #f0f0f0;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.subscribe-button {
    background-color: #8A2BE2;
    color: white;
}

.subscribe-button:hover {
    background-color: #7926c9;
}

.term-conditions {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    padding: 0 20px 20px;
}

/* 夜间模式样式 */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .navbar {
    background-color: rgba(30, 30, 30, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo a {
    color: #ffffff;
}

body.dark-mode .nav-link {
    color: #e0e0e0;
}

body.dark-mode .nav-link.active {
    background-color: #333333;
    color: var(--primary-light);
}

body.dark-mode .user-controls button {
    color: #e0e0e0;
}

body.dark-mode .nav-capsule {
    background-color: rgba(60, 60, 60, 0.5);
}

body.dark-mode .feature-card {
    background-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .feature-icon {
    background-color: #444444;
}

body.dark-mode .action-button {
    background-color: var(--primary-dark);
}

body.dark-mode .action-button:hover {
    background-color: var(--primary-color);
}

body.dark-mode .section-title, 
body.dark-mode .feature-title,
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333333;
}

body.dark-mode .footer-links a {
    color: #b0b0b0;
}

body.dark-mode .subscription-modal {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .plan-option {
    background-color: #333333;
    border-color: #444444;
}

body.dark-mode .plan-option.selected {
    background-color: rgba(138, 43, 226, 0.2);
}

body.dark-mode .subscribe-button {
    background-color: var(--primary-color);
}

body.dark-mode .subscribe-button:hover {
    background-color: var(--primary-light);
}

body.dark-mode .cards-stack-container {
    background-color: #333333;
}

body.dark-mode .drawing-title {
    color: #ffffff;
}

body.dark-mode .drawing-subtitle {
    color: #c0c0c0;
}

body.dark-mode .tarot-card {
    background-color: #33084d;
    border-color: #5a3860;
}

body.dark-mode .position-placeholder {
    background-color: rgba(80, 80, 80, 0.3);
}

body.dark-mode .position-label {
    color: #e0e0e0;
}

body.dark-mode .redraw-button {
    background-color: #333333;
}

body.dark-mode .redraw-button:hover {
    background-color: #444444;
}

body.dark-mode .reading-modal .reading-container {
    background-color: #2a2a2a;
}

/* 更新特定模块的夜间模式样式 */
body.dark-mode .tarot-reader-info {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode .reader-message {
    color: #e0e0e0;
}

body.dark-mode .tarot-spread-container {
    background-color: #333333;
}

body.dark-mode .tarot-spread-title {
    color: #ffffff;
}

body.dark-mode .other-spread-option {
    background-color: #444444;
    color: #e0e0e0;
}

body.dark-mode .other-spread-option:hover {
    background-color: #555555;
}

body.dark-mode .question-textarea {
    background-color: #333333;
    color: #e0e0e0;
}

body.dark-mode .suggestion-button {
    background-color: #333333;
    color: #e0e0e0;
}

body.dark-mode .suggestion-button:hover {
    background-color: #444444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .reader-card {
    background-color: #333333;
}

body.dark-mode .reader-description {
    color: #c0c0c0;
}

body.dark-mode .reader-name {
    color: #ffffff;
}

body.dark-mode .free-counter-box {
    background-color: #333333;
}

body.dark-mode .reset-time {
    color: #a0a0a0;
}

body.dark-mode .search-bar {
    background-color: #333333;
}

body.dark-mode .search-bar input {
    color: #e0e0e0;
}

body.dark-mode .feature-section {
    background-color: #1a1a1a;
}

body.dark-mode .faq-item {
    background-color: #333333;
}

body.dark-mode .faq-question {
    color: #ffffff;
}

body.dark-mode .faq-answer {
    color: #c0c0c0;
}

body.dark-mode .more-features {
    background-color: #1a1a1a;
}

body.dark-mode .more-features h2 {
    color: #ffffff;
}

body.dark-mode .more-features p {
    color: #c0c0c0;
}

/* 图标和切换按钮样式 */
body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: inline-block;
}

.theme-toggle .fa-sun {
    display: none;
}

/* 更新首页特定模块的夜间模式样式 */
body.dark-mode .tarot-feature-section {
    background-color: #1a1a1a;
}

body.dark-mode .tarot-feature-section:nth-child(even) {
    background-color: #222222;
}

body.dark-mode .section-description {
    color: #b0b0b0;
}

body.dark-mode .features-section {
    background-color: #1a1a1a;
}

body.dark-mode .blue-icon {
    color: #6ba4ff;
}

body.dark-mode .card-image {
    border: 3px solid #5a3860;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .tarot-card-single {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

body.dark-mode .readers-grid-container {
    background-color: #6b1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .yes-no-cards-container {
    background-color: #755215;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .daily-tarot-container {
    background-color: #7e2800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .feature-title {
    color: #ffffff !important;
}

body.dark-mode .healing-section {
    background-color: #3a1a45;
}

body.dark-mode .title-black {
    color: #ffffff;
}

body.dark-mode .year-tarot-section {
    background-color: #1a1a1a;
}

body.dark-mode .year-tarot-title {
    color: #ffffff;
}

body.dark-mode .year-tarot-description {
    color: #b0b0b0;
}

body.dark-mode .action-button {
    background: linear-gradient(135deg, var(--primary-dark), #4b237e);
}

body.dark-mode .action-button:hover {
    background: linear-gradient(135deg, var(--primary-color), #612ea1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .purple-button,
body.dark-mode .purple-sm-button {
    background: var(--primary-dark);
}

body.dark-mode .purple-button:hover,
body.dark-mode .purple-sm-button:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

/* AI塔罗牌占卜页面夜间模式样式 */
body.dark-mode .feature-section[style*="background-color: white"] {
    background-color: #1a1a1a !important;
}

body.dark-mode .highlight-feature {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

body.dark-mode .highlight-image {
    background: linear-gradient(135deg, #33084d, #4b2c72);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .highlight-content h3 {
    color: #ffffff;
}

body.dark-mode .highlight-content p {
    color: #b0b0b0;
}

body.dark-mode .ai-tarot-highlight {
    color: #7fb3ff;
    text-shadow: 0 0 5px rgba(127, 179, 255, 0.5);
}

body.dark-mode .more-features-button {
    background-color: var(--primary-dark);
}

body.dark-mode .more-features-button:hover {
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

/* 故事分享模块样式 */
.story-sharing-section {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

.stories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.story-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.story-card:hover::before {
    opacity: 1;
}

.story-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.story-tarot-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.story-tarot-card {
    width: 70px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-card:hover .story-tarot-card:nth-child(1) {
    transform: rotate(-5deg) translateY(-5px);
}

.story-card:hover .story-tarot-card:nth-child(2) {
    transform: translateY(-8px);
}

.story-card:hover .story-tarot-card:nth-child(3) {
    transform: rotate(5deg) translateY(-5px);
}

.story-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color, #333);
}

.story-preview {
    font-size: 0.9rem;
    color: var(--secondary-text, #666);
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-read-more {
    background-color: transparent;
    color: var(--primary-color, #8a4baf);
    border: 1px solid var(--primary-color, #8a4baf);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.story-read-more:hover {
    background-color: var(--primary-color, #8a4baf);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.2);
}

/* 故事详情弹窗样式 */
#storyDetailModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 查看更多故事按钮容器 */
.view-more-container {
    margin-top: 2rem;
    text-align: center;
}

.view-more-button {
    display: inline-block;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.view-more-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-more-button:hover i {
    transform: translateX(5px);
}

/* 暗黑模式适配 */
body.dark-mode .view-more-button {
    background-color: var(--primary-dark, #7926c9);
}

body.dark-mode .view-more-button:hover {
    background-color: var(--primary-color, #8a4baf);
}

#storyDetailModal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.story-detail-modal {
    background: var(--modal-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-name {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0;
    background-color: var(--primary-color, #8a4baf);
    color: #fff;
}

.chat-container {
    background-color: var(--chat-bg, #f9f9f9);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    padding-left: 0.5rem;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.user-message, .ai-message {
    flex-direction: row;
}

.user-message .message-content, .ai-message .message-content {
    margin-left: 0.5rem;
    text-align: left;
}

.user-message .message-text {
    border-top-left-radius: 0;
    background-color: var(--bg-secondary, #f5f5f7);
}

.ai-message .message-text {
    border-top-left-radius: 0;
    background-color: #ffffff;
}

.dark-mode .user-message .message-text {
    background-color: var(--dark-card-bg, #2d2d2d);
}

.dark-mode .ai-message .message-text {
    background-color: var(--dark-message-bg, #363636);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .stories-container {
        flex-direction: column;
        align-items: center;
    }
    
    .story-card {
        width: 100%;
        max-width: 350px;
    }
    
    .story-tarot-cards-large {
        flex-wrap: wrap;
    }
}

#storyDetailModal.active .story-detail-modal {
    transform: scale(1);
}

.story-tarot-cards-large {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.story-tarot-card-large {
    width: 130px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: var(--bg-secondary, #f5f5f7);
}

.story-tarot-card-large:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 12px 24px rgba(138, 43, 226, 0.2);
}

.story-tarot-card-large img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-tarot-card-large:hover img {
    transform: scale(1.05);
}

.story-detail-modal .modal-title {
    color: var(--primary-color, #8a4baf);
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.user-message .message-avatar {
    background-color: #e9eaec;
}

.ai-message .message-avatar {
    background-color: #f3e5f5;
}

.message-content {
    max-width: calc(100% - 50px);
    padding: 0 0.5rem;
}

.message-text {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-message .message-text {
    background-color: #f0f0f0;
}

.ai-message .message-text {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
}

/* 暗色模式适配 */
.dark-mode .story-card {
    background-color: var(--dark-card-bg, #2d2d2d);
}

.dark-mode .story-title {
    color: var(--dark-text, #f1f1f1);
}

.dark-mode .story-preview {
    color: var(--dark-secondary-text, #bebebe);
}

.dark-mode .story-detail-modal {
    background-color: var(--dark-modal-bg, #2d2d2d);
}

.dark-mode .chat-container {
    background-color: var(--dark-chat-bg, #222);
}

.chat-message:nth-child(1) {
    animation-delay: 0.1s;
}

.chat-message:nth-child(2) {
    animation-delay: 0.3s;
}

.chat-message:nth-child(3) {
    animation-delay: 0.5s;
}

.chat-message:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary, #f5f5f7);
    color: var(--text-secondary, #666);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.close-modal:hover {
    background-color: var(--primary-color, #8a4baf);
    color: white;
    transform: rotate(90deg);
}

/* 暗色模式增强 */
.dark-mode .story-tarot-card-large {
    background-color: var(--dark-card-bg, #2d2d2d);
}

.dark-mode .close-modal {
    background-color: var(--dark-card-bg, #2d2d2d);
    color: var(--dark-text, #f1f1f1);
}

.dark-mode .close-modal:hover {
    background-color: var(--primary-dark, #7926c9);
}

.dark-mode .story-detail-modal .modal-title {
    color: var(--primary-light, #9d4ced);
}

.story-tarot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dark-mode .user-message .message-avatar {
    background-color: #444444;
}

.dark-mode .ai-message .message-avatar {
    background-color: #34264a;
}

.dark-mode .user-message .message-text {
    background-color: #333333;
    border-color: transparent;
}

.dark-mode .ai-message .message-text {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

.privacy-notice {
    text-align: center;
    color: #888888;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0.8;
}

.dark-mode .privacy-notice {
    color: #666666;
}

/* 三牌阵样式 */
.three-card-spread {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    perspective: 1000px;
}

.tarot-card-back {
    width: 120px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

/* 移除卡牌悬停效果 */
/* .tarot-card-back:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
} */

.tarot-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 单牌阵样式 */
.single-card-spread {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    perspective: 1000px;
    height: 240px;
}

.flippable {
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* 移除卡牌悬停翻转效果 */
/* .flippable:hover .card-inner {
    transform: rotateY(15deg);
} */

.flippable.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 暗黑模式适配 */
.dark-mode .card-back {
    background-color: #2d2d2d;
}

/* 小按钮样式 */
.purple-sm-button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.25);
}

.purple-sm-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.35);
}

@media (max-width: 768px) {
    .purple-sm-button {
        padding: 10px 20px;
        font-size: 1rem;
        min-width: 160px;
        text-align: center;
    }
}

/* 故事页面样式 */
.stories-filter {
    margin: 2rem auto;
    max-width: 700px;
}

.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-bar button {
    background-color: var(--primary-color, #8a4baf);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background-color: var(--primary-dark, #7926c9);
}

.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-tag {
    padding: 0.5rem 1.2rem;
    background-color: var(--bg-secondary, #f5f5f7);
    color: var(--text-secondary, #666);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-tag:hover, .filter-tag.active {
    background-color: var(--primary-color, #8a4baf);
    color: white;
}

/* 瀑布流布局 */
.stories-waterfall-section {
    padding: 2rem 0 4rem;
}

.stories-waterfall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.load-more-container, .share-story-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-button, .share-story-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.load-more-button i, .share-story-button i {
    margin-left: 0.5rem;
}

.load-more-button:hover i {
    animation: spin 1s linear infinite;
}

.share-story-button {
    margin-top: 2rem;
    background-color: #fff;
    color: var(--primary-color, #8a4baf);
    border: 2px solid var(--primary-color, #8a4baf);
}

.share-story-button:hover {
    background-color: var(--primary-color, #8a4baf);
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 暗色模式适配 */
body.dark-mode .search-bar input {
    background-color: var(--dark-card-bg, #2d2d2d);
    border-color: #444;
    color: var(--dark-text, #f1f1f1);
}

body.dark-mode .filter-tag {
    background-color: var(--dark-card-bg, #2d2d2d);
    color: var(--dark-secondary-text, #bebebe);
}

body.dark-mode .filter-tag:hover, body.dark-mode .filter-tag.active {
    background-color: var(--primary-dark, #7926c9);
    color: white;
}

body.dark-mode .share-story-button {
    background-color: transparent;
    color: var(--primary-light, #9d4ced);
    border-color: var(--primary-light, #9d4ced);
}

body.dark-mode .share-story-button:hover {
    background-color: var(--primary-dark, #7926c9);
    color: white;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .stories-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-tags {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .stories-waterfall {
        grid-template-columns: 1fr;
    }
}

#storyDetailModal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
} 