/* ============================================
   全局样式与变量定义
   ============================================ */

:root {
    /* 色彩方案 */
    --color-primary: #2D1B4E;        /* 深紫色 */
    --color-secondary: #1a1a3e;      /* 神秘蓝 */
    --color-accent: #D4AF37;         /* 金色 */
    --color-accent-light: #FFA500;   /* 琥珀色 */
    --color-text: #FFFFFF;           /* 白色文字 */
    --color-text-light: #F5E6D3;     /* 浅金色文字 */
    
    /* 玻璃态效果 */
    --glass-bg: rgba(45, 27, 78, 0.3);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-blur: blur(10px);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* 字体 */
    --font-primary: 'Segoe UI', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    --font-mystic: 'Georgia', 'Times New Roman', serif;
    
    /* 过渡动画 */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   基础重置与全局样式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 页面初始加载时禁用平滑滚动，避免抽搐效果 */
html.loading {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: linear-gradient(135deg, #1a1a3e 0%, #2D1B4E 50%, #0d0d1a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 星空背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 165, 0, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(255, 165, 0, 0.15), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ============================================
   顶部导航栏
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 27, 78, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(45, 27, 78, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between; /* 桌面端：Logo在左，语言选择在右 */
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-lang-wrapper {
    display: flex;
    justify-content: flex-end;
}

.logo-icon {
    /* 支持 <span> emoji 与 <img> favicon 两种形式 */
    display: inline-block;
    width: 32px;
    height: 32px;
    font-size: 2rem;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

img.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    /* 让小图标在深色背景更清晰一点 */
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.25));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-lang {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap; /* 允许换行，适应更多按钮 */
    justify-content: flex-end; /* 右对齐 */
    align-items: flex-start; /* 顶部对齐 */
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(45, 27, 78, 0.7);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* 防止文字换行 */
}

.lang-btn:hover {
    background: rgba(45, 27, 78, 0.85);
    border-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.lang-btn.active {
    background: rgba(45, 27, 78, 0.9);
    border-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.blog-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    vertical-align: middle; /* 确保垂直对齐 */
    line-height: inherit; /* 继承行高 */
}

/* 确保Blog按钮内的emoji不会影响高度 */
.blog-btn span,
.blog-btn::before {
    line-height: 1;
    vertical-align: middle;
}

/* ============================================
   Hero区域
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md) 160px; /* 增加底部空间以容纳更大的按钮 */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 100px; /* 适当下移，避免被导航遮挡，同时保留更多可视空间 */
    margin-bottom: auto;
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.4rem); /* 略微减小字号，适配多语言长句 */
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out;
}

.title-line {
    display: block;
    color: var(--color-text-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.6rem); /* 略微减小副标题字号，避免挤占过多竖向空间 */
    color: var(--color-text-light);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   Hero区域导航按钮
   ============================================ */

.hero-nav-buttons {
    position: absolute;
    bottom: 80px; /* 从40px上移到80px，更靠近内容 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem; /* 稍微减小间距，适应6个按钮一横排 */
    z-index: 10;
    flex-wrap: nowrap; /* 桌面端不换行，一横排 */
    justify-content: center; /* 居中显示 */
    align-items: center;
    max-width: 95%;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

.nav-jump-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.8rem; /* 稍微减小内边距，适应6个按钮 */
    min-width: 140px; /* 稍微减小宽度，适应6个按钮一横排 */
    max-width: 160px; /* 限制最大宽度 */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 18px; /* 稍微增大圆角 */
    text-decoration: none;
    color: var(--color-text-light);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4); /* 增强阴影 */
    position: relative;
    overflow: hidden;
}

.nav-jump-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-jump-btn:hover::before {
    left: 100%;
}

.nav-jump-btn:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.2);
}

.nav-jump-btn:active {
    transform: translateY(-2px);
}

.nav-jump-btn .btn-icon {
    font-size: 2.5rem; /* 从2rem增大到2.5rem */
    margin-bottom: 0.75rem; /* 增大间距 */
    display: block;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6)); /* 增强发光 */
    transition: var(--transition);
}

.nav-jump-btn:hover .btn-icon {
    transform: scale(1.25) rotate(5deg); /* 稍微增大hover效果 */
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.9));
}

.nav-jump-btn .btn-text {
    font-size: 1rem; /* 从0.9rem增大到1rem */
    font-weight: bold;
    color: var(--color-text-light);
    transition: var(--transition);
    letter-spacing: 0.5px; /* 增加字间距，更优雅 */
}

.nav-jump-btn:hover .btn-text {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 移动端优化 */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Hero样式已移至index.html内联样式，此处不再定义，避免冲突 */
    /* 根据ZX文档指导：避免在.hero-content上使用margin-top，只通过.hero的padding-top控制位置 */
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem); /* 移动端也增加字号 */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.6rem); /* 移动端也增加字号 */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-nav-buttons {
        position: absolute; /* 保持绝对定位 */
        bottom: 20px; /* 下移按钮，更靠近底部，露出标题 */
        gap: 0.8rem; /* 稍微减小间距，让按钮更紧凑 */
        padding: 0 var(--spacing-sm);
        display: grid; /* 移动端使用grid布局 */
        grid-template-columns: repeat(2, 1fr); /* 每排两个 */
        grid-template-rows: repeat(3, auto); /* 三排 */
        max-width: 600px; /* 限制最大宽度，保持美观 */
        width: 100%;
        left: 50%;
        transform: translateX(-50%); /* 保持居中 */
    }
    
    .nav-jump-btn {
        min-width: 110px; /* 从80px增大到110px */
        padding: 1.2rem 1.3rem; /* 增大内边距 */
        width: 100%; /* grid布局中占满单元格 */
        max-width: 100%;
        border-radius: 16px;
    }
    
    .nav-jump-btn .btn-icon {
        font-size: 2rem; /* 从1.5rem增大到2rem */
        margin-bottom: 0.5rem;
    }
    
    .nav-jump-btn .btn-text {
        font-size: 0.85rem; /* 从0.75rem增大到0.85rem */
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Hero样式已移至index.html内联样式，此处不再定义，避免冲突 */
    /* 根据ZX文档指导：避免在.hero-content上使用margin-top，只通过.hero的padding-top控制位置 */
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem); /* 小屏幕也增加字号 */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem); /* 小屏幕也增加字号 */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-nav-buttons {
        position: absolute; /* 保持绝对定位 */
        gap: 0.6rem; /* 稍微减小间距，让按钮更紧凑 */
        bottom: 15px; /* 下移按钮，更靠近底部，露出标题 */
        display: grid; /* 小屏幕也使用grid布局 */
        grid-template-columns: repeat(2, 1fr); /* 每排两个 */
        grid-template-rows: repeat(3, auto); /* 三排 */
        max-width: 100%;
        width: 100%;
        left: 50%;
        transform: translateX(-50%); /* 保持居中 */
    }
    
    .nav-jump-btn {
        min-width: 100px; /* 从70px增大到100px */
        padding: 1rem 1.1rem; /* 增大内边距 */
        width: 100%; /* grid布局中占满单元格 */
        max-width: 100%;
        border-radius: 14px;
    }
    
    .nav-jump-btn .btn-icon {
        font-size: 1.8rem; /* 从1.3rem增大到1.8rem */
        margin-bottom: 0.4rem;
    }
    
    .nav-jump-btn .btn-text {
        font-size: 0.8rem; /* 从0.7rem增大到0.8rem */
        font-weight: 600;
    }
}

/* ============================================
   区块标题
   ============================================ */

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.title-icon {
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title-en {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
    font-style: italic;
}

/* ============================================
   今日推荐区块
   ============================================ */

.featured-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.featured-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 175, 55, 0.4);
    border-color: var(--color-accent);
}

.featured-card .card-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    display: block;
    animation: float 3s ease-in-out infinite;
}

/* 推荐卡片图标中的图片样式 */
.featured-card .card-icon img,
.featured-card .card-icon picture {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.featured-card .card-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent);
}

.featured-card .card-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.featured-card .card-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

.featured-card .card-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.featured-card .card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

/* ============================================
   分类区块
   ============================================ */

.category-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.category-section:nth-child(even) {
    background: rgba(26, 26, 62, 0.3);
}

/* ============================================
   卡片网格
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* 响应式：桌面端 3-4 列 */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 响应式：平板 2-3 列 */
@media (min-width: 768px) and (max-width: 1199px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式：手机 1 列 */
@media (max-width: 767px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   占卜卡片
   ============================================ */

.divination-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 卡片延迟动画 */
.divination-card:nth-child(1) { animation-delay: 0.1s; }
.divination-card:nth-child(2) { animation-delay: 0.2s; }
.divination-card:nth-child(3) { animation-delay: 0.3s; }
.divination-card:nth-child(4) { animation-delay: 0.4s; }
.divination-card:nth-child(5) { animation-delay: 0.5s; }
.divination-card:nth-child(6) { animation-delay: 0.6s; }

/* 卡片发光效果 */
.divination-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

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

.divination-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-accent);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.4);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: var(--transition);
}

/* 卡片图标中的图片样式 */
.card-icon img,
.card-icon picture {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: var(--transition);
}

.divination-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.divination-card:hover .card-icon img,
.divination-card:hover .card-icon picture {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-light);
    transition: var(--transition);
}

.divination-card:hover .card-title {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    color: var(--color-text-light);
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    opacity: 0.9;
    min-height: 3em;
}

.card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.card-btn:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* ============================================
   页脚
   ============================================ */

.footer {
    padding: var(--spacing-md) 0;
    background: rgba(13, 13, 26, 0.7);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
}

.footer-logo img.logo-icon {
    width: 24px;
    height: 24px;
}

.footer-desc {
    color: var(--color-text-light);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    transform: translateX(5px);
}

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--spacing-sm) 0;
    opacity: 0.3;
}

.footer-friendly-links {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.friendly-links-title {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}

.friendly-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-xs);
}

.friendly-link-item {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
    white-space: nowrap;
}

.friendly-link-item:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-copyright {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.footer-copyright p {
    color: var(--color-text-light);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

.footer-disclaimer {
    text-align: center;
    padding: var(--spacing-sm) 0;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text {
    color: var(--color-text-light);
    opacity: 0.7;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-sm) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .footer-section {
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .friendly-links-list {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .disclaimer-text {
        font-size: 0.75rem;
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   视差效果
   ============================================ */

.category-section {
    transform: translateZ(0);
    will-change: transform;
}

/* ============================================
   响应式优化
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding-top: 1rem; /* 增加导航栏顶部间距，让"今日运势"更优美 */
        padding-bottom: 0.75rem;
    }
    
    .nav-container {
        flex-direction: column; /* Logo在上方，语言选择在下方 */
        align-items: center; /* 改为居中 */
        gap: 0.5rem;
    }
    .nav-logo {
        font-size: 2.2rem; /* 从1.6rem进一步加大到2.2rem，更醒目 */
        width: 100%;
        justify-content: center; /* 改为居中 */
        align-self: center; /* 改为居中 */
        padding-top: 0.5rem; /* 增加顶部间距，显示更优美 */
        margin-bottom: 0.3rem; /* 增加底部间距，与语言按钮分离更清晰 */
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.6); /* 增强文字阴影，更醒目 */
        letter-spacing: 0.1em; /* 增加字间距，更优雅 */
    }
    
    .logo-icon {
        font-size: 2rem; /* 相应增大图标尺寸，保持比例协调 */
    }
    
    .nav-lang-wrapper {
        width: 100%;
        justify-content: flex-end;
    }
    
    .nav-lang {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center; /* 改为居中 */
        align-content: flex-start;
        width: 100%;
    }
    
    /* 按钮按固定宽度自动换行成两排 */
    /* 第一排：简体、繁体、EN、ES、PT */
    /* 第二排：한、JP、Blog（Blog在PT正下方） */
    
    .lang-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        min-height: 36px;
        width: 4.5rem; /* 固定宽度，确保所有按钮宽度一致 */
        flex: 0 0 4.5rem; /* 固定宽度，不伸缩 */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap; /* 防止文字换行 */
    }
    
    /* 控制按钮顺序，让第一排先显示，第二排后显示 */
    .nav-lang .lang-btn[data-lang="zh"] { order: 1; } /* 简体 */
    .nav-lang .lang-btn[data-lang="zh-tw"] { order: 2; } /* 繁体 */
    .nav-lang .lang-btn[data-lang="en"] { order: 3; } /* EN */
    .nav-lang .lang-btn[data-lang="es"] { order: 4; } /* ES */
    .nav-lang .lang-btn[data-lang="pt"] { order: 5; } /* PT */
    .nav-lang .blog-btn { order: 6; } /* Blog */
    
    /* Hero样式已移至index.html内联样式，此处不再定义，避免冲突 */
    /* 根据ZX文档指导：避免在.hero-content上使用margin-top，只通过.hero的padding-top控制位置 */
    
    .featured-card {
        padding: var(--spacing-md);
    }
    
    .featured-card .card-icon {
        font-size: 3.5rem;
    }
    
    .divination-card {
        padding: var(--spacing-sm);
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    /* 移动端卡片图标中的图片样式 */
    .card-icon img {
        width: 144px !important;
        height: 144px !important;
        max-width: 100% !important;
    }
    
    .featured-card .card-icon img {
        width: 244px !important;
        height: 244px !important;
        max-width: 100% !important;
    }
}

/* ============================================
   回到顶部按钮（仅移动端）
   ============================================ */

.back-to-top-btn {
    display: none; /* 默认隐藏，桌面端不显示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--color-accent);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

.back-to-top-icon {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 移动端显示回到顶部按钮 */
@media (max-width: 768px) {
    .back-to-top-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   面包屑导航
   ============================================ */

/* 面包屑导航容器样式 */
#breadcrumb-container {
    position: relative;
    z-index: 1;
    margin-top: 100px; /* 桌面端：为导航栏留出空间 */
    padding: var(--spacing-sm) 0;
}

.breadcrumb {
    padding: 0;
    margin: 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb-link {
    text-decoration: none;
    color: var(--color-text-light);
    opacity: 0.7;
}

.breadcrumb-link:hover {
    opacity: 1;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.breadcrumb-current {
    color: var(--color-accent);
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.breadcrumb-separator {
    color: var(--color-text-light);
    opacity: 0.5;
    margin: 0 0.25rem;
    font-size: 1rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #breadcrumb-container {
        margin-top: 140px; /* 移动端：增加顶部间距，确保面包屑可见 */
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .breadcrumb-container {
        font-size: 0.85rem;
        padding: 0 var(--spacing-sm);
    }
    
    .breadcrumb-separator {
        margin: 0 0.2rem;
    }
}

@media (max-width: 480px) {
    #breadcrumb-container {
        margin-top: 150px; /* 小屏幕进一步增加 */
    }
}

/* ============================================
   可访问性优化
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点可见性 */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-particles,
    .card-btn {
        display: none;
    }
}
