/* 塔罗知道统一样式 - 恢复原始设计 */

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

:root {
    /* 简化的响应式缩放系统 */
    --scale: clamp(0.9, calc(100vw / 1200), 1.15);
    /* 品牌主色（與 services 頁一致） */
    --primary-color: rgb(118, 99, 76);
    /* 卦圖顏色（長線/斷線） */
    --hex-solid-color: #C2462B; /* 朱砂紅：陽爻 */
    --hex-broken-color: #2B2B2B; /* 深灰黑：陰爻 */
    
    /* 统一的间距系统 */
    --gap-xs: clamp(12px, 2vw, 16px);
    --gap-sm: clamp(16px, 3vw, 24px);
    --gap: clamp(24px, 4vw, 32px);
    --gap-lg: clamp(32px, 5vw, 48px);
    --gap-xl: clamp(48px, 6vw, 64px);
    
    /* 基础字体大小 */
    --text-xs: clamp(11px, 2vw, 13px);
    --text-sm: clamp(13px, 2.2vw, 15px);
    --text-base: clamp(15px, 2.5vw, 18px);
    --text-lg: clamp(18px, 3vw, 22px);
    --text-xl: clamp(22px, 3.5vw, 28px);
    --text-2xl: clamp(28px, 4vw, 36px);
    --text-3xl: clamp(36px, 5vw, 48px);
}

/* 响应式调整在矮屏设备上的处理将在各个组件中单独处理 */

body {
    width: 100%;
    min-height: 100vh; /* 改为min-height确保可以扩展 */
    font-family: "Source Han Serif SC", "思源宋体", "宋体", serif;
    overflow-x: hidden;
}

/* 确保html也有正确的高度 */
html {
    height: 100%;
}

/* 背景容器 - 保持原始视觉效果 */
#background {
    position: fixed;
  top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(231 247 255 / 80%) 0%, rgba(49, 45, 15, 0.95) 25%, rgb(18 33 41 / 76%) 50%, rgb(0 0 0 / 82%) 75%, rgb(72 58 28) 100%), url('/images/header-bg.jpg') center / cover no-repeat;
    z-index: -1;
    filter: brightness(0.2) contrast(0.9) saturate(0.2) sepia(0.3) hue-rotate(15deg);
    animation: gentleFloat 4s ease-in-out infinite;
}

/* 小幅度晃动动画 */
@keyframes gentleFloat {
    0%, 100% {
        transform: translate(0px, 0px) scale(1.03);
    }
    25% {
        transform: translate(-3px, -2px) scale(1.035);
    }
    50% {
        transform: translate(2px, -3px) scale(1.03);
    }
    75% {
        transform: translate(-2px, 2px) scale(1.035);
    }
}

/* 粒子容器 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 顶部导航栏设计 - 固定定位、增强效果
   ═══════════════════════════════════════════════════════════════════ */

/* 主导航栏 - 固定定位、增大高度、优化效果 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 90px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 滚动时导航栏变化效果 */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 左侧Logo区域 */
.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* 中央导航菜单 */
.nav-center {
    display: flex;
    gap: 32px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* 右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.brand { 
    display: inline-flex; 
    align-items: center; 
    text-decoration: none; 
}

/* 脉冲发光：B 方案 */
.brand-glow .logo-svg, .brand-glow img {
  animation: brand-glow-pulse 4.6s ease-in-out infinite;
}
@keyframes brand-glow-pulse {
  0%   { filter: drop-shadow(0 0 0 rgba(225,149,57,0)) brightness(1); }
  50%  { filter: drop-shadow(0 0 12px rgba(225,149,57,.45)) brightness(1.06); }
  100% { filter: drop-shadow(0 0 0 rgba(225,149,57,0)) brightness(1); }
}

@media (prefers-reduced-motion: reduce){
  .brand-glow .logo-svg, .brand-glow img { animation: none; }
}

.brand img, .brand .logo-svg { 
    height: 55px; 
    max-height: 100%; 
    width: auto; 
    display: block; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)) drop-shadow(0 0 12px rgba(255,255,255,.1)); 
    transition: all 0.3s ease;
}

.brand img:hover, .brand .logo-svg:hover {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.8)) drop-shadow(0 0 16px rgba(255,255,255,.2));
    transform: scale(1.05);
}

@media (min-width: 1024px) { 
    .brand img, .brand .logo-svg { height: 60px; } 
}

@media (max-width: 768px) { 
    .brand img, .brand .logo-svg { height: 40px; } 
}

/* 中央导航菜单样式 */
.nav-center a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-center a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e1953a, #d4af37);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-center a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 149, 58, 0.15);
}

.nav-center a:hover::before {
    width: 80%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 语言切换器样式优化 */
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 26px;
    text-align: center;
    background: transparent;
}

.lang-switch a:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(225, 149, 58, 0.15);
    transform: translateY(-1px);
}

.lang-switch a[aria-current="true"] {
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, rgba(225, 149, 58, 0.3), rgba(212, 175, 55, 0.3));
    box-shadow: 0 2px 8px rgba(225, 149, 58, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 主内容区域
   ═══════════════════════════════════════════════════════════════════ */

.site-main {
    /* 由于导航栏固定定位，需要预留导航栏高度 */
    padding-top: 130px;  /* 90px导航栏高度 + 40px内容间距 */
    padding-left: calc(var(--scale) * 50px);
    padding-right: calc(var(--scale) * 50px);
    padding-bottom: 60px; /* 底部留出足够空间给footer */
    min-height: calc(100vh - 90px);  /* 减去固定导航栏高度 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 改为顶部对齐，不居中 */
    align-items: center;
    gap: var(--gap);
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* 标题样式 - 使用统一的文字变量系统 */
h1, .page-title {
    font-size: var(--text-3xl);
    color: white;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: var(--gap-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2, .subtitle {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: var(--gap);
}

h3 {
    font-size: var(--text-xl);
    color: white;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.05em;
    margin-bottom: var(--gap-sm);
}

/* 描述文字 - 基础样式 */
.description, .lead {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--gap-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 段落 */
p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin-bottom: var(--gap-sm);
}

/* 列表项 */
li {
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: var(--gap-xs) 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 原始CTA按钮设计
   ═══════════════════════════════════════════════════════════════════ */

/* CTA按钮 - 基础样式 */
.cta, .cta-buttons {
    display: flex;
    gap: var(--gap-lg);
    flex-wrap: wrap;
    animation: fadeInUp 2.2s ease-out;
    margin-top: var(--gap);
    justify-content: center;
    align-items: center;
}

.btn, .cta-btn, .cta {
    padding: var(--gap-xs) var(--gap-sm);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    font-weight: 300;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.btn:hover, .cta-btn:hover, .cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

/* 呼吸动画 */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

/* 主要按钮样式和呼吸动画 */
.cta-primary.breathing {
    animation: breathing 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.cta-primary.breathing:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 服务栏目设计
   ═══════════════════════════════════════════════════════════════════ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center; /* 网格项居中 */
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--gap);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px; /* 限制卡片最大宽度 */
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.service-card h3 {
    color: white;
    font-size: var(--text-xl);
    margin-bottom: var(--gap-sm);
    text-align: center;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--gap-sm);
}

.service-card ul { 
    list-style: none; 
    padding: 0; 
}

.service-card li {
    color: rgba(255, 255, 255, 0.75);
    padding-left: 16px;
    position: relative;
}

.service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* 服务边界声明 */
.service-note {
    margin-top: var(--gap-lg);
    padding: var(--gap-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 文化与教学栏目设计 - 修复黑字问题
   ═══════════════════════════════════════════════════════════════════ */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: var(--gap);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.course-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.course-card h3 {
    margin-bottom: var(--gap-sm);
    color: white !important;
    font-size: var(--text-xl);
    position: relative;
    flex-shrink: 0;
}

.course-card p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-style: italic;
    margin-bottom: var(--gap-sm);
    flex-grow: 1;
    font-size: var(--text-sm);
}

.course-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    flex-shrink: 0;
    margin-top: auto;
}

.course-card li {
    color: rgba(255, 255, 255, 0.75) !important;
    padding-left: 20px;
    position: relative;
    margin: var(--gap-xs) 0;
    font-size: var(--text-xs);
}

.course-card li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 联系页面 - 恢复原始卡片式布局
   ═══════════════════════════════════════════════════════════════════ */

/* 删除旧的contact-section样式 */

/* 联系页顶部：左侧渠道 + 右侧提示 */
.contact-top-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--gap-sm);
    max-width: 1100px;
    margin: var(--gap-sm) auto var(--gap);
}

.contact-channels { display: grid; grid-auto-rows: minmax(72px, auto); gap: 10px; }

/* 更紧凑的渠道卡片尺寸 */
.contact-channels .im { padding: 10px 12px; min-height: 72px; }

/* IM 网格（兼容旧结构） */
.im-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-sm);
    margin: var(--gap) auto;
    max-width: 900px;
    width: 100%;
}

.im {
    padding: var(--gap-sm);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    transition: all 0.3s ease;
    min-height: 80px;
    justify-content: flex-start;
}

.im img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}

.im .im-text { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.5; 
    flex-grow: 1;
}

.im .im-name { 
    font-size: var(--text-sm); 
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 2px;
}

.im .im-email { 
    font-size: var(--text-xs); 
    opacity: .8; 
    color: rgba(255, 255, 255, 0.7);
}

.im:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 联系提示区块 */
.contact-tips {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
}

.contact-tips h3 {
    color: white;
    font-size: var(--text-md);
    margin-bottom: 8px;
    text-align: left;
}

.contact-tips ol {
    padding-left: 18px;
    margin: 6px 0 0 0;
}

.contact-tips ol li {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 4px 0;
}

/* 移动端：顶部区域单列更紧凑 */
@media (max-width: 768px){
  .contact-top-grid { grid-template-columns: 1fr; gap: var(--gap-sm); margin: var(--gap-sm) auto; }
  .contact-channels { grid-auto-rows: minmax(64px, auto); }
  .contact-channels .im { min-height: 64px; }
}

.contact-tips p {
    text-align: center;
    margin-top: var(--gap-sm);
    opacity: 0.85;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 哲学要点列表 - 恢复原始竖线设计
   ═══════════════════════════════════════════════════════════════════ */

.philosophy-points {
    list-style: none;
    max-width: 600px;
    padding: 0;
    margin: var(--gap) auto;
}

.philosophy-points.poetic {
    text-align: left;
    padding-left: var(--gap-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin: var(--gap) auto;
}

.philosophy-points.poetic li, .principle-list li {
    padding-left: 0;
    line-height: 1.7;
    letter-spacing: 0.02em;
    margin: var(--gap-sm) 0;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.philosophy-points.poetic li:before, .principle-list li:before {
    content: "";
}

.philosophy-points.poetic li strong, .principle-list li strong {
    display: inline-block;
    min-width: 72px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.philosophy-points.poetic li:hover {
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 Oracle每日一卦部分样式
   ═══════════════════════════════════════════════════════════════════ */

.oracle-header { 
    margin: var(--gap-sm) auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
}

.oracle-symbol {
    font-size: var(--text-xl);
    color: #B8860B;
    opacity: 0.7;
}

.oracle-section {
    margin: var(--gap) auto;
    text-align: center;
    max-width: 700px;
}

.oracle-title {
    font-size: var(--text-xl);
    color: white;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: var(--gap-sm);
}

.oracle-desc, .oracle-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    text-align: center;
    margin-top: var(--gap-sm);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 底部信息 - 恢复原始精美设计
   ═══════════════════════════════════════════════════════════════════ */

/* 版权信息 - 改为正常文档流，避免滚动冲突 */
.site-footer {
    position: relative;
    margin-top: var(--gap-xl);
    margin-bottom: var(--gap);
    z-index: 100;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.site-footer div:last-child {
    white-space: nowrap;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 960px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
    padding: 2px 6px;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer > div:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   🔮 今日之卦样式
   ═══════════════════════════════════════════════════════════════════ */

/* 每日启发区块 */
.daily-inspiration-section {
    margin-bottom: var(--gap-xl);
}

/* 两栏布局：左“今日启发”，右“抽取卡” */
.daily-two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--gap);
    align-items: start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto var(--gap-xl);
}

@media (max-width: 960px) {
  .daily-two-col {
    grid-template-columns: 1fr;
  }
}

.daily-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(118, 99, 76, 0.2);
    border-radius: 12px;
    padding: var(--gap-lg);
    margin: 0 auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(118, 99, 76, 0.15);
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap-md);
    border-bottom: 1px solid rgba(118, 99, 76, 0.2);
    padding-bottom: var(--gap-sm);
}

.daily-header h2 {
    font-size: var(--text-lg);
    color: rgb(189 151 105);
    margin: 0;
}

.daily-date {
    font-size: var(--text-sm);
    color: rgba(118, 99, 76, 0.7);
}

.inspiration-title {
    font-size: var(--text-xl);
    color: rgb(225 149 57);
    margin-bottom: var(--gap-sm);
    text-align: center;
}

.inspiration-summary {
    font-size: var(--text-md);
    line-height: 1.6;
    margin-bottom: var(--gap-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
}

.inspiration-overview {
    margin-bottom: var(--gap-md);
}

.inspiration-overview strong {
    display: block;
    color: rgb(189 151 105);
    font-size: var(--text-sm);
    margin-bottom: var(--gap-xs);
}

.inspiration-overview p {
    margin: 0;
    line-height: 1.6;
}

.inspiration-keywords {
    margin-bottom: var(--gap-md);
}

.inspiration-keywords strong {
    display: block;
    color: rgb(189 151 105);
    font-size: var(--text-sm);
    margin-bottom: var(--gap-xs);
}

.keyword-tags {
    display: flex;
    justify-content: flex-start;
    gap: var(--gap-xs);
    flex-wrap: wrap;
}

.keyword-tag {
    background: rgba(118, 99, 76, 0.1);
    color: rgb(200 143 75);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-sm);
    border: 1px solid rgba(118, 99, 76, 0.2);
}

.inspiration-guidance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.inspiration-guidance .guidance-section {
    padding: var(--gap-sm);
    background: rgba(118, 99, 76, 0.03);
    border-radius: 8px;
}

.inspiration-guidance .guidance-section strong {
    display: block;
    color: rgb(189 151 105);
    font-size: var(--text-sm);
    margin-bottom: var(--gap-xs);
}

.inspiration-guidance ul {
    margin: 0;
    padding-left: var(--gap-sm);
    list-style-type: none;
}

.inspiration-guidance li {
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 4px;
    position: relative;
}

.inspiration-guidance li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -12px;
}

.inspiration-scenarios {
    margin-bottom: var(--gap-lg);
}

.inspiration-scenarios .scenario {
    margin-bottom: var(--gap-md);
    padding: var(--gap-sm);
    background: rgba(118, 99, 76, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(118, 99, 76, 0.3);
}

.inspiration-scenarios .scenario strong {
    display: block;
    color: rgb(211 154 86);
    font-size: var(--text-sm);
    margin-bottom: var(--gap-xs);
}

.inspiration-scenarios .scenario p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.inspiration-quote {
    text-align: center;
    padding: var(--gap-md);
    background: rgba(118, 99, 76, 0.05);
    border-radius: 8px;
}

.inspiration-quote strong {
    display: block;
    color: var(--primary-color);
    font-size: var(--text-sm);
    margin-bottom: var(--gap-sm);
}

.inspiration-quote blockquote {
    margin: 0;
    font-style: italic;
    font-size: var(--text-md);
    color: var(--primary-color);
}



/* 个人抽签区块 */
.personal-divination-section {
    margin-bottom: var(--gap-xl);
}

.divination-intro {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.divination-intro h2 {
    font-size: var(--text-xl);
    color: var(--primary-color);
    margin-bottom: var(--gap-sm);
}

.divination-intro p {
    color: rgba(118, 99, 76, 0.7);
    font-size: var(--text-md);
}

/* 卦象卡片 */
.hexagram-draw-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
    max-width: 100%;
    box-sizing: border-box;
}

.hexagram-card {
    width: 200px;
    height: 280px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/images/card-bg.png') center/cover no-repeat; /* 原色卡面 */
    border: 2px solid rgba(118, 99, 76, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.6s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.card-back {
    transform: rotateY(180deg);
}

.hexagram-card.drawing .card-front {
    transform: rotateY(-180deg);
}

.hexagram-card.drawing .card-back {
    transform: rotateY(0deg);
}

.card-pattern {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, 
        rgba(118, 99, 76, 0.1) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(118, 99, 76, 0.1) 75%);
    background-size: 20px 20px;
    border-radius: 50%;
    margin-bottom: var(--gap-md);
}

.draw-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: var(--text-md);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.draw-btn:hover:not(:disabled) {
    background: #5a4a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 99, 76, 0.3);
}

.draw-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 卦象符号 */
.hexagram-symbol {
    text-align: center;
}

.hexagram-lines {
    margin-bottom: var(--gap-sm);
}

/* 专业卦图与太极组件 */
.hexagram-visual {
    display: grid;
    place-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

/* 真正的太極（單 div + 兩個偽元素） */
.taiji {
    position: relative;
    width: 0;                /* 關鍵：由左右邊框構成兩半圓 */
    height: 120px;
    border-left: 60px solid #000; /* 黑 */
    border-right: 60px solid #fff; /* 白 */
    border-radius: 50%;
}
.taiji::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;              /* 上半圓小圓 */
    height: 60px;
    border-radius: 50%;
    background: #000;         /* 黑底白心 */
    border: 30px solid #fff;
}
.taiji::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;              /* 下半圓小圓 */
    height: 60px;
    border-radius: 50%;
    background: #fff;         /* 白底黑心 */
    border: 30px solid #000;
}

.line {
    width: 96px;
    height: 8px;
    margin: 5px auto;
    background: var(--hex-solid-color);
    border-radius: 2px;
}

.line.broken {
    background: linear-gradient(to right,
        var(--hex-broken-color) 0 40%,
        transparent 40% 60%,
        var(--hex-broken-color) 60% 100%);
}

.hexagram-name {
    font-size: var(--text-lg);
    font-weight: bold;
    color: var(--primary-color);
}

/* 卦象结果详情 */
.hexagram-result {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 25px;
}
.hex-left { 
    position: relative; 
    background: rgba(30, 25, 20, 0.5);
    border-radius: 10px;
    padding: 15px;
    max-width: 280px; 
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hex-right { 
    background: rgba(30, 25, 20, 0.5);
    border-radius: 10px;
    padding: 15px 20px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hexagram-header h3 {
    font-size: clamp(20px, 3.2vw, 26px);
    color: rgb(225 149 57);
    margin-bottom: var(--gap-xs);
    text-align: center;
}

.hexagram-summary {
    font-size: clamp(14px, 2.4vw, 16px);
    line-height: 1.7;
    margin: 0 auto var(--gap-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

.hexagram-keywords {
    display: flex;
    justify-content: center;
    gap: 8px 10px;
    margin-bottom: var(--gap-lg);
    flex-wrap: wrap;
}

.hexagram-guidance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.guidance-section h4 {
    font-size: var(--text-md);
    color: rgb(189 151 105);
    margin-bottom: var(--gap-xs);
}

.guidance-section p {
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.hexagram-scenarios {
    margin-bottom: var(--gap-lg);
}

.scenario {
    margin-bottom: var(--gap-md);
    padding: var(--gap-sm);
    background: rgba(118, 99, 76, 0.05);
    border-radius: 8px;
    border-left: 4px solid rgba(118, 99, 76, 0.3);
}

.scenario h4 {
    font-size: var(--text-md);
    margin-bottom: var(--gap-xs);
    color: rgb(211 154 86);
}

.scenario p {
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.hexagram-quote {
    background: rgba(118, 99, 76, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: var(--gap-sm) var(--gap-md);
    margin: var(--gap-md) 0;
    font-style: italic;
    text-align: center;
    border-radius: 0 8px 8px 0;
    color: rgb(200 143 75);
}

/* 相關卦（本/互/綜/錯）縮略圖 */
.hexagram-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.taiji-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.gtukuang {
    margin-top: 5px;
}

.related-hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.mini-hex { 
    position: relative;
    box-sizing: border-box; 
    background: rgba(40, 35, 30, 0.5);
    border: 1px solid rgba(150, 130, 100, 0.25);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}

.mini-hex h4 {
    color: rgb(200, 160, 120);
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    margin: 0 0 6px;
}

.mini-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-lines .line { 
    width: 32px; 
    height: 3px; 
    margin: 2px auto; 
    border-radius: 1px;
}

/* 移除重複定義 */
.gtukuang { display: grid; justify-content: center; }
.gtukuang .gua-line { width: 120px; height: 12px; margin: 6px auto; border-radius: 2px; }
.gtukuang .gua-line.yang { background: var(--hex-solid-color); }
.gtukuang .gua-line.yin { background: linear-gradient(to right, var(--hex-broken-color) 0 42%, transparent 42% 58%, var(--hex-broken-color) 58% 100%); }

.hexagram-interpretation {
    margin-top: var(--gap-md);
    padding-top: var(--gap-md);
    border-top: 1px solid rgba(118, 99, 76, 0.2);
}

.hexagram-interpretation h4 {
    font-size: var(--text-md);
    color: var(--primary-color);
    margin-bottom: var(--gap-sm);
}

.hexagram-interpretation p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* 分享功能 */
.share-section {
    text-align: center;
    margin-top: var(--gap-lg);
}

.share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: var(--text-md);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.share-icon {
    font-size: var(--text-lg);
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: var(--text-sm);
    z-index: 1000;
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   📱 响应式优化
   ═══════════════════════════════════════════════════════════════════ */

/* 移动端优化 */
@media (max-width: 768px) {
    /* 移动端导航栏 - 保持水平布局 */
    .site-header {
        height: 60px; /* 移动端导航栏高度 */
        padding: 12px var(--gap-sm);
        flex-direction: row; /* 保持水平布局 */
        justify-content: space-between;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    /* 移动端Logo区域 */
    .nav-brand {
        flex-shrink: 0;
    }
    
    .brand img {
        height: 30px; /* 移动端logo高度 */
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 移动端导航菜单 - 下拉菜单 */
    .nav-center {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-center.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-center a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        width: 100%;
        background: transparent;
    }
    
    .nav-center a:hover {
        background: rgba(225, 149, 58, 0.1);
        color: rgba(255, 255, 255, 0.95);
        transform: none;
        box-shadow: none;
    }
    
    .nav-center a:last-child {
        border-bottom: none;
    }
    
    /* 移动端语言切换 */
    .nav-right {
        flex-shrink: 0;
    }
    
    .lang-switch {
        padding: 4px 8px;
        gap: 4px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .lang-switch a {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 20px;
    }
    
    .lang-switch a:hover {
        background: rgba(225, 149, 58, 0.2);
    }
    
    .lang-switch a[aria-current="true"] {
        background: rgba(225, 149, 58, 0.25);
    }
    
    .site-main {
        padding-top: 80px; /* 60px导航栏高度 + 20px内容间距 */
        padding-left: var(--gap-sm);
        padding-right: var(--gap-sm);
        padding-bottom: 20px;
        min-height: calc(100vh - 60px); /* 减去导航栏高度 */
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--gap-sm);
        align-items: center;
    }
    
    .cta, .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* 移动端按钮顺序保持：今日之卦在上方 */
    
    .service-grid, .course-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
    }
    
    /* IM网格移动端优化 */
    .im-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
        margin: var(--gap) auto;
    }
    
    .im { 
        padding: var(--gap-sm);
        min-height: 70px;
        gap: var(--gap-sm);
    }
    
    .im img {
        width: 28px;
        height: 28px;
        -webkit-filter: none !important;
        filter: none !important;
        mix-blend-mode: normal;
    }
    
    .im .im-name { 
        font-size: var(--text-xs); 
    }
    
    .im .im-email { 
        font-size: var(--text-xs); 
        opacity: 0.7;
    }

    .site-footer {
        font-size: var(--text-xs);
        margin-top: var(--gap-xl);
        margin-bottom: var(--gap-lg);
        padding: var(--gap);
        /* 确保footer在移动端可见 */
        position: relative;
        z-index: 100;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        backdrop-filter: blur(4px);
    }
    
    .site-footer::before {
        width: 80vw;
        top: -10px;
    }
    
    .footer-links {
        gap: var(--gap-sm);
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: var(--text-xs);
        padding: 2px 4px;
    }
    
    .site-footer > div:last-child {
        font-size: var(--text-xs);
        margin-top: 4px;
        opacity: 0.8;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    /* 平板端导航栏 */
    .site-header {
        height: 80px; /* 平板端导航栏高度 */
        padding: 20px var(--gap);
    }
    
    .brand img {
        height: 50px; /* 平板端logo高度 */
    }
    
    .nav-center {
        gap: 28px;
    }
    
    .nav-center a {
        font-size: 15px;
        padding: 8px 14px;
    }
    
    .lang-switch {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .site-main {
        /* 平板端：内容间距30px */
        padding-top: 110px; /* 80px导航栏高度 + 30px内容间距 */
        padding-left: var(--gap);
        padding-right: var(--gap);
        padding-bottom: 60px;
        min-height: calc(100vh - 80px);  /* 减去导航栏高度 */
    }
    
    .service-grid, .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-sm);
    }
    
    /* IM网格平板端优化 */
    .im-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-sm);
        margin: var(--gap) auto;
    }
    
    .im { 
        padding: var(--gap-sm);
        min-height: 70px;
        gap: var(--gap-sm);
    }
    
    .im img {
        width: 30px;
        height: 30px;
    }
    
    .im .im-name { 
        font-size: var(--text-sm); 
    }
    
    .im .im-email { 
        font-size: var(--text-xs); 
    }
}

@media (min-width: 1024px) {
    .site-main {
        /* 桌面端：内容间距40px */
        padding-top: 130px; /* 90px导航栏高度 + 40px内容间距 */
        padding-left: calc(var(--scale) * 50px);
        padding-right: calc(var(--scale) * 50px);
        padding-bottom: 60px;
        min-height: calc(100vh - 90px);  /* 减去导航栏高度 */
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-lg);
        max-width: 1100px;
    }
    
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap);
        max-width: 1200px;
    }
    
    /* 大屏幕下的IM网格 */
    .im-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap);
        max-width: 1000px;
    }
}