/* 首页专用样式 */

/* 防止下拉灰色区域的简单解决方案 */
.home-page {
    background-color: #f8f8f8 !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 首页header增强效果 */
.home-page .site-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* header和hero section之间的过渡区域 */
.home-page .site-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
    z-index: 999;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin-top: -10px; /* 轻微重叠，创建自然过渡 */
    background-color: #f8f8f8 !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%), url('/img/index-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 星空粒子动画容器 */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* 星星粒子 */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star.small {
    width: 2px;
    height: 2px;
    animation-duration: 2s;
}

.star.medium {
    width: 3px;
    height: 3px;
    animation-duration: 3s;
}

.star.large {
    width: 4px;
    height: 4px;
    animation-duration: 4s;
}

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 悬浮的神秘符号 */
.mystical-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.symbol {
    position: absolute;
    color: rgba(212, 175, 55, 0.3);
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.symbol:nth-child(1) { animation-delay: 0s; }
.symbol:nth-child(2) { animation-delay: 2s; }
.symbol:nth-child(3) { animation-delay: 4s; }

/* 悬浮动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'KNYuanmo', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', sans-serif;
    font-size: 2.6rem; /* 进一步减小字体大小以确保在桌面端显示为一行 */
    font-weight: normal; /* KNYuanmo字体本身已经有合适的粗细 */
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
    letter-spacing: -0.02em; /* 稍微减小字母间距 */
    color: #ffffff;
    text-align: center; /* 确保文字居中 */
    position: relative;
}

/* 打字机效果 */
.hero-title.typewriter {
    overflow: hidden;
    border-right: 3px solid rgba(212, 175, 55, 0.8);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* 打字动画 */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* 光标闪烁 */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(212, 175, 55, 0.8); }
}

/* 文字发光效果 */
.hero-title.glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
    }
    to {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.4);
    }
}

/* 大屏幕优化 - 确保标题在桌面端显示为一行 */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.0rem; /* 大屏幕使用适中的字体大小 */
        letter-spacing: -0.03em; /* 进一步减小字母间距 */
        text-align: center; /* 确保大屏幕下也居中 */
    }
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 4s forwards;
}



.hero-actions {
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 5s forwards;
}

/* 渐现上升动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.btn-explore {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #ffffff;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-explore:hover::before {
    left: 100%;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #b8860b, #d4af37);
}

/* 确保按钮在移动端完全可见 */
@media (max-width: 768px) {
    .btn-explore {
        margin-bottom: 20px;
        position: relative;
        z-index: 10;
    }

    .hero-section {
        margin-top: -5px; /* 轻微重叠 */
        padding-top: 30px; /* 适度的顶部间距 */
        padding-bottom: 80px;
    }

    .hero-content .container {
        padding: 0 15px;
    }
}

/* 推荐塔罗师区域 */
.featured-readers-section {
    padding: 60px 0;
    background: #f8f9fa;
    color: #333;
}

.section-title {
    font-family: 'KNYuanmo', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: normal; /* KNYuanmo字体本身已经有合适的粗细 */
    margin-bottom: 60px;
    color: #d4af37;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    border-radius: 2px;
}

/* 圆形塔罗师网格 */
.readers-circle-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.reader-circle-card {
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.reader-circle-card:hover {
    transform: translateY(-10px);
}

/* 圆形卡片CTA标签 */
.cta-badge-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: ctaGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.reader-circle-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.reader-circle-link:hover {
    transform: scale(1.05);
}

.reader-circle-link:focus {
    outline: none;
}

.reader-circle-link:active {
    outline: none;
}

.reader-circle-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.reader-circle-photo:hover {
    border-color: #ffd700;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.reader-circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    border-radius: 50%;
}

.default-circle-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d4af37;
}

.reader-circle-info {
    text-align: center;
}

.reader-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.reader-circle-card:hover .reader-name {
    color: #d4af37;
}

.reader-experience {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}

/* 查看更多按钮 */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* 服务说明区域 */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
    color: #333;
}

.services-title {
    font-family: 'KNYuanmo', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: normal; /* KNYuanmo字体本身已经有合适的粗细 */
    margin-bottom: 20px;
    color: #333;
}

.services-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon .icon {
    font-size: 3rem;
    display: inline-block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .readers-circle-grid {
        gap: 30px;
    }
    
    .reader-circle-photo {
        width: 130px;
        height: 130px;
    }

    .cta-badge-circle {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
        margin-top: -5px; /* 轻微重叠 */
        padding-top: 40px; /* 适度的顶部间距 */
    }

    /* 移动端header过渡效果已移除 */

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .hero-actions {
        margin-top: 30px;
    }

    .btn-explore {
        padding: 13px 32px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .readers-circle-grid {
        gap: 25px;
    }

    .reader-circle-photo {
        width: 120px;
        height: 120px;
    }

    .cta-badge-circle {
        font-size: 8px;
        padding: 2px 5px;
        top: 8px;
        left: 8px;
    }

    .reader-name {
        font-size: 1.1rem;
    }

    .reader-experience {
        font-size: 0.9rem;
    }

    /* 服务说明区域响应式 */
    .services-section {
        padding: 60px 0;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        margin-top: -5px; /* 轻微重叠 */
        padding-top: 50px; /* 小屏幕适度间距 */
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-content .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .hero-actions {
        margin-top: 25px;
        margin-bottom: 20px;
    }

    .btn-explore {
        padding: 14px 30px;
        font-size: 0.9rem;
        letter-spacing: 0.8px;
        margin-bottom: 10px;
    }

    .featured-readers-section {
        padding: 60px 0;
    }

    .readers-circle-grid {
        gap: 20px;
    }

    .reader-circle-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .cta-badge-circle {
        font-size: 7px;
        padding: 2px 4px;
        top: 5px;
        left: 5px;
        border-radius: 10px;
    }

    .reader-name {
        font-size: 1rem;
    }

    .reader-experience {
        font-size: 0.85rem;
    }

    /* 服务说明区域小屏幕优化 */
    .services-section {
        padding: 50px 0;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .services-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .services-grid {
        padding: 0 15px;
        gap: 25px;
    }

    .service-item {
        padding: 25px 15px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .hero-section {
        min-height: 380px;
        margin-top: -5px; /* 轻微重叠 */
        padding-top: 60px; /* 超小屏幕适度间距 */
    }

    /* 超小屏幕header过渡效果已移除 */

    .hero-content {
        padding: 0 5px;
    }

    .hero-content .container {
        padding: 0 5px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.85rem;
        padding: 0 5px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-actions {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .btn-explore {
        padding: 12px 25px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
}



/* 占卜师卡片悬停增强效果 */
.reader-circle-card {
    transition: all 0.3s ease;
}

.reader-circle-card:hover {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.3));
}

.reader-circle-card:hover .reader-circle-photo {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* 背景渐变动画 */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 25%,
        transparent 75%,
        rgba(212, 175, 55, 0.1) 100%);

    z-index: 1;
}

/* 新用户欢迎区域 */
.welcome-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 600;
}

.welcome-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.welcome-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.welcome-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.welcome-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 20px 0;
    }

    .welcome-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }

    .welcome-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}
