
        /* ================= 新中式 / 国潮 颜色变量 ================= */
        :root {
            /* 浅色模式 - 宣纸白底，朱砂红点缀，黛黑文字 */
            --bg-page: #FDFBF7;       /* 宣纸白 */
            --bg-card: #FFFFFF;
            --text-main: #2C2C2C;     /* 黛黑 */
            --text-muted: #7A7A7A;
            --accent-red: #B22222;    /* 朱砂红 - 主色调 */
            --accent-gold: #C69C6D;   /* 琉璃金 - 强调色 */
            --border-color: #EBE5D9;
            --shadow: 0 4px 15px rgba(139, 69, 19, 0.05);
            --nav-bg: rgba(255, 255, 255, 0.95);
        }

        [data-theme="dark"] {
            /* 深色模式 - 玄黑底色，暗金与暗红点缀 */
            --bg-page: #121212;
            --bg-card: #1E1E1E;
            --text-main: #E0E0E0;
            --text-muted: #999999;
            --accent-red: #D34141;
            --accent-gold: #D4B886;
            --border-color: #333333;
            --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            --nav-bg: rgba(30, 30, 30, 0.95);
        }

        /* ================= 基础重置 ================= */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
            background-color: var(--bg-page);
            color: var(--text-main);
            line-height: 1.6;
            transition: background-color 0.3s, color 0.3s;
            padding-bottom: env(safe-area-inset-bottom);
        }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

       /* ================= 顶部 Header ================= */
        .header {
            display: flex; 
            justify-content: flex-end; /* 将操作按钮推到最右侧 */
            align-items: center;
            padding: 15px 20px; 
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            position: relative; /* 为 Logo 绝对居中提供参照 */
        }
        
        .logo-box { 
            font-size: 20px; 
            font-weight: bold; 
            color: var(--accent-red); 
            display: flex; 
            align-items: center; 
            gap: 8px;
            /* 🟢 核心修改：让 Logo 绝对居中于屏幕，不受左右元素挤压 */
            position: absolute; 
            left: 50%; 
            transform: translateX(-50%); 
        }
        .logo-box i { font-size: 24px; }
        
        /* ================= 顶部 Header 操作区 ================= */
        .header-actions {
            display: flex; 
            align-items: center; 
            gap: 12px;
        }
        
        /* 登录后：用户中心按钮 */
        .btn-user-center {
            display: inline-flex; align-items: center; gap: 4px;
            font-size: 14px; font-weight: bold;
            color: var(--accent-gold); border: 1px solid var(--accent-gold);
            padding: 4px 14px; border-radius: 20px; background: transparent;
            transition: all 0.3s ease;
            max-width: 120px; /* 防止用户名过长挤占屏幕 */
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .btn-user-center i { font-size: 16px; }
        .btn-user-center:hover {
            background: var(--accent-gold); color: #ffffff;
            box-shadow: 0 2px 8px rgba(198, 156, 109, 0.3);
        }
@media (max-width: 768px) {
            
            /* 🟢 新增：手机端 Logo 取消居中，改为左对齐 */
            .logo-box {
                position: static; /* 取消绝对定位 */
                transform: none; /* 取消位移 */
                margin-right: auto; /* 自动撑满右侧，把操作按钮推到最右边 */
            }
}
        /* 🟢 新增：退出登录按钮 (小巧精致) */
        .btn-logout {
            display: flex; align-items: center; justify-content: center;
            width: 32px; height: 32px; border-radius: 50%;
            color: var(--text-muted); border: 1px solid var(--border-color);
            background: transparent; transition: all 0.2s; cursor: pointer;
        }
        .btn-logout i { font-size: 16px; }
        .btn-logout:hover {
            background: #ffebee; color: var(--accent-red); border-color: #ffcdd2;
        }
        
        /* 登录按钮 */
        .btn-login {
            display: inline-flex; align-items: center; gap: 4px;
            font-size: 14px; font-weight: bold;
            color: var(--accent-red); border: 1px solid var(--accent-red);
            padding: 4px 14px; border-radius: 20px; background: transparent;
            transition: all 0.3s ease;
        }
        .btn-login i { font-size: 16px; }
        .btn-login:hover {
            background: var(--accent-red); color: #ffffff;
            box-shadow: 0 2px 8px rgba(178, 34, 34, 0.3);
        }

        /* 主题切换图标 */
        .btn-icon {
            background: none; border: 1px solid var(--border-color); color: var(--text-main);
            width: 32px; height: 32px; border-radius: 50%; cursor: pointer; 
            display: flex; align-items: center; justify-content: center; transition: background 0.2s;
        }
        .btn-icon:hover { background: rgba(198, 156, 109, 0.1); }
        .btn-icon i { font-size: 18px; }

        /* 主题切换的纯图标圆形按钮 */
        .btn-icon {
            background: none; 
            border: 1px solid var(--border-color); 
            color: var(--text-main);
            width: 32px; 
            height: 32px; 
            border-radius: 50%; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            transition: background 0.2s;
        }
        .btn-icon:hover {
            background: rgba(198, 156, 109, 0.1); /* 鼠标悬停泛起淡淡的琉璃金 */
        }
        .btn-icon i {
            font-size: 18px;
        }
        /* ================= 页面主容器 ================= */
        .container { max-width: 1200px; margin: 0 auto; padding: 20px; padding-bottom: 80px; }

        /* ================= 公告滚动 ================= */
        .notice-bar {
            background: rgba(198, 156, 109, 0.1); border: 1px solid var(--accent-gold);
            border-radius: 8px; padding: 10px 15px; margin-bottom: 25px;
            display: flex; align-items: center; gap: 10px; overflow: hidden;
        }
        .notice-label { color: var(--accent-red); font-weight: bold; white-space: nowrap; }
        .notice-content { flex: 1; height: 24px; overflow: hidden; position: relative; }
        .notice-list { position: absolute; top: 0; left: 0; width: 100%; transition: top 0.5s ease; }
        .notice-list li { height: 24px; line-height: 24px; font-size: 14px; color: var(--text-main); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

        /* ================= 标题统一样式 ================= */
        .section-title {
            font-size: 22px; font-weight: bold; margin-bottom: 20px; 
            display: flex; align-items: center; gap: 8px;
        }
        .section-title::before {
            content: ''; display: block; width: 4px; height: 18px;
            background-color: var(--accent-red); border-radius: 2px;
        }

        /* ================= Hero 焦点图位 (AI奇门 & AI八字) ================= */
        .hero-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px; margin-bottom: 30px;
        }
        .hero-card {
            background: var(--bg-card); border-radius: 16px; overflow: hidden;
            box-shadow: var(--shadow); border: 1px solid var(--border-color);
            position: relative; display: flex; flex-direction: column;
            transition: transform 0.2s;
        }
        .hero-card:hover { transform: translateY(-3px); }
        .hero-bg {
            height: 100px; background: linear-gradient(135deg, var(--accent-red) 0%, #801818 100%);
            display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
        }
        .hero-bg.gold { background: linear-gradient(135deg, var(--accent-gold) 0%, #A67D4D 100%); }
        .hero-bg h3 { color: #fff; font-size: 24px; letter-spacing: 2px;}
        .hero-bg i { font-size: 73px; color: rgba(255,255,255,0.3); }
        .hero-content { padding: 20px; }
        .hero-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
        .hero-tags span {
            display: inline-block; padding: 4px 10px; font-size: 12px;
            background: rgba(178, 34, 34, 0.08); color: var(--accent-red);
            border-radius: 12px; margin-right: 8px; margin-bottom: 8px;
        }

        /* ================= 常规网格布局 ================= */
        .grid-container {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; margin-bottom: 40px;
			background: var(--bg-card);
        }
        .service-card {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 12px; padding: 20px; display: flex; align-items: flex-start; gap: 15px;
            box-shadow: var(--shadow); transition: transform 0.2s; cursor: pointer;
        }
        .service-card:hover { transform: translateY(-2px); border-color: var(--accent-gold); }
        .card-icon {
            width: 45px; height: 45px; border-radius: 10px;
            background: rgba(198, 156, 109, 0.1); color: var(--accent-gold);
            display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
        }
        .card-info h4 { font-size: 16px; margin-bottom: 5px; color: var(--text-main); }
        .card-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

        /* ================= 转化与充值区 (国潮引导卡片) ================= */
        .vip-section {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px; margin-bottom: 40px;
        }
        .vip-card {
            padding: 20px; border-radius: 12px; border: 1px solid var(--border-color);
            background: var(--bg-card); position: relative; overflow: hidden;
            display: flex; justify-content: space-between; align-items: center;
        }
        .vip-card::after {
            content: ''; position: absolute; right: -20px; bottom: -20px;
            width: 80px; height: 80px; border-radius: 50%;
            background: radial-gradient(circle, rgba(198,156,109,0.1) 0%, transparent 70%);
        }
        .vip-info strong { display: block; font-size: 18px; color: var(--accent-red); margin-bottom: 4px; }
        .vip-info span { font-size: 12px; color: var(--text-muted); }

        /* ================= 移动端底部导航栏 ================= */
        .bottom-nav { display: none; }
        @media (max-width: 768px) {
            .container { padding-bottom: 100px; /* 给底部导航留出空间 */ }
            .hero-grid { grid-template-columns: 1fr; }
			/* 手机端改为单列显示，让用户有充足空间阅读卖点介绍 */
            .grid-container { grid-template-columns: 1fr; gap: 15px; }
            .service-card { padding: 18px; }
            
            .bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
				-webkit-backdrop-filter: blur(10px); /* 兼容苹果 iOS */
                background: var(--nav-bg); backdrop-filter: blur(10px);
                border-top: 1px solid var(--border-color); z-index: 999;
                padding-bottom: env(safe-area-inset-bottom); /* 适配全面屏底部安全区 */
                box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
				/* 极限压缩：给老旧安卓机一个基础的 4px 上下边距 */
                padding: 4px 0; 
                /* 认识 env 的全面屏手机会自动覆盖上一行，采用下面这行 */
                padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
            }
            .nav-item {
                flex: 1; display: flex; flex-direction: column; align-items: center;
                padding: 10px 0; color: var(--text-muted); font-size: 12px; gap: 4px;
            }
            .nav-item.active { color: var(--accent-red); font-weight: bold; }
            .nav-item i { font-size: 22px; }
        }
/* ================= 登录模态框 (Modal) ================= */
        .login-overlay {
            display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
            z-index: 3000; backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s;
        }
        .login-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
            width: 90%; max-width: 360px; background: var(--bg-card);
            border-radius: 16px; z-index: 3001; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            opacity: 0; visibility: hidden; transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }
        .login-header {
            padding: 20px 20px 10px; display: flex; justify-content: space-between; align-items: center;
        }
        .login-header h3 { font-size: 18px; color: var(--accent-red); display: flex; align-items: center; gap: 8px;}
        .login-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
        .login-close:hover { color: var(--accent-red); }
        .login-body { padding: 10px 20px 25px; }
        
        .input-group {
            position: relative; margin-bottom: 20px;
        }
        .input-group i {
            position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
            color: var(--text-muted); font-size: 18px;
        }
        .input-group input {
            width: 100%; padding: 12px 15px 12px 40px; border: 1px solid var(--border-color);
            border-radius: 8px; background: var(--bg-page); color: var(--text-main);
            font-size: 14px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
        }
        .input-group input:focus {
            border-color: var(--accent-gold);
            box-shadow: 0 0 0 3px rgba(198, 156, 109, 0.1);
        }
        
        .btn-submit {
            width: 100%; padding: 12px; background: var(--accent-red); color: #fff;
            border: none; border-radius: 8px; font-size: 16px; font-weight: bold;
            cursor: pointer; transition: background 0.3s; margin-bottom: 15px;
            letter-spacing: 2px;
        }
        .btn-submit:hover { background: #8B1A1A; }
        
        .login-links { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
        .login-links a:hover { color: var(--accent-gold); text-decoration: underline; }

        /* 登录框激活状态 */
        .login-overlay.active { display: block; opacity: 1; }
        .login-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
		
        /* ================= 底部抽屉 Modal (替代原Popover) ================= */
        .drawer-overlay {
            display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
            z-index: 2000; backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s;
        }
        .drawer-content {
            position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--bg-card);
            border-radius: 20px 20px 0 0; z-index: 2001; transition: bottom 0.3s ease-out;
            max-height: 85vh; display: flex; flex-direction: column;
        }
        .drawer-header {
            padding: 8px; border-bottom: 1px solid var(--border-color);
            display: flex; justify-content: space-between; align-items: center;
        }
        .drawer-header h3 { font-size: 18px; color: var(--accent-red); }
        .drawer-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
        .drawer-body { padding: 20px; overflow-y: auto; background: var(--bg-page); } /* 抽屉背景稍微暗一点，衬托卡片 */
        
        /* 增强版灵签网格：签图 + 头像叠加卡片 */
        .lots-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* 卡片稍微加宽以容纳大图 */
            gap: 15px; 
        }
        .lots-item { 
            display: flex; flex-direction: column; align-items: center; text-align: center; 
            background: var(--bg-card); border: 1px solid var(--border-color); 
            border-radius: 12px; overflow: hidden; position: relative; 
            text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .lots-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(198, 156, 109, 0.15);
            border-color: var(--accent-gold);
        }
        .lots-item-cover { 
            width: 100%; height: 75px; object-fit: cover; 
            border-bottom: 1px solid var(--border-color);
        }
        .lots-item-avatar { 
            width: 44px; height: 44px; border-radius: 50%; 
            border: 2px solid var(--bg-card); 
            margin-top: -22px; /* 核心：负边距让头像压在大图的边界上 */
            z-index: 2; position: relative; background: #fff;
            object-fit: cover;
        }
        .lots-item-text { 
            display: block; font-size: 13px; color: var(--text-main); 
            padding: 8px 5px 12px; font-weight: bold; width: 100%;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        /* Drawer 激活状态 */
        .drawer-overlay.active { display: block; opacity: 1; }
        .drawer-overlay.active + .drawer-content { bottom: 0; }

        /* 电脑端 Drawer 变为居中 Modal */
        @media (min-width: 769px) {
            .drawer-content {
                top: 50%; left: 50%; transform: translate(-50%, -50%);
                bottom: auto; width: 600px; border-radius: 16px;
                opacity: 0; visibility: hidden; transition: opacity 0.3s;
            }
            .drawer-overlay.active + .drawer-content { opacity: 1; visibility: visible; }
        }
		
		/* ================= App 内部视图 (自适应高度) ================= */
        #app-view {
            width: 100%;
            height: 100vh; /* 电脑端：全屏满高 */
            position: relative;
            margin: 0 auto;
        }

        /* 移动端专属压缩样式 */
        @media (max-width: 768px) {
            .container { 
                padding-bottom: 55px; /* 配合更矮的底部导航，减小主页面底部的留白 */ 
            }
            
            #app-view {
                /* 手机端：减去极致压缩后的底部导航高度(约 42px) 和 底部安全区 */
                height: calc(100vh - 42px - env(safe-area-inset-bottom));
            }
            
            .bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
                background: var(--nav-bg); backdrop-filter: blur(10px);
                border-top: 1px solid var(--border-color); z-index: 999;
                /* 极限压缩：上下基础留白压缩到 4px */
                padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); 
                box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            }
            .nav-item {
                flex: 1; display: flex; flex-direction: column; align-items: center;
                justify-content: center;
                padding: 2px 0; 
                color: var(--text-muted); 
                font-size: 10px; /* 字体精简至 10px */
                line-height: 1;  /* 去除多余的行高占用 */
            }
            .nav-item.active { color: var(--accent-red); font-weight: bold; }
            .nav-item i { 
                font-size: 18px; /* 图标缩小一号 */
                margin-bottom: 3px; /* 控制图标与文字的极小间距 */
            }
        }
        #app-iframe {
            width: 100%;
           /* height: 100%; */
            border: none;
			padding-bottom: 10px;
            opacity: 0; /* 配合加载动画使用 */
            transition: opacity 0.3s ease;
        }
        .iframe-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--accent-gold);
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: -1; /* 放在iframe后面，iframe加载完会盖住它 */
        }
		/* ================= 电脑端：悬浮返回胶囊按钮 ================= */
        .desktop-back-btn {
            display: none; /* 默认隐藏 */
            position: fixed;
            top: 48px;
            left: 20px;
            z-index: 9999;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 30px; 
            padding: 8px 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            color: var(--text-main);
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            align-items: center;
            gap: 6px;
            /* 取消了 all，明确指定过渡属性，防止和动画冲突 */
            transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
        }
        .desktop-back-btn:hover {
            color: var(--accent-red);
            border-color: var(--accent-red);
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(178, 34, 34, 0.15);
        }
        
        /* 🟢 新增：通过 class 控制的显示状态，自带 0.6 秒弹跳动画 */
        .desktop-back-btn.show {
            display: flex;
            animation: slideBounceIn 0.6s ease-out;
        }

        /* 🟢 新增：果冻弹跳入场动画关键帧 */
        @keyframes slideBounceIn {
            0% { opacity: 0; transform: translateX(-40px) scale(0.8); }
            50% { opacity: 1; transform: translateX(10px) scale(1.05); }
            75% { transform: translateX(-5px) scale(0.98); }
            100% { opacity: 1; transform: translateX(0) scale(1); }
        }
        
        /* 手机端由于有底部导航，强制隐藏此悬浮按钮 */
        @media (max-width: 768px) {
            .desktop-back-btn { display: none !important; }
        }
		/* ================= 新闻中心 ================= */
        .news-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 40px;
        }
        .news-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            transition: transform 0.2s, border-color 0.2s;
            position: relative;
            overflow: hidden;
        }
        .news-item:hover {
            transform: translateY(-2px);
            border-color: var(--accent-gold);
        }
        .news-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent-red);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .news-item:hover::before {
            opacity: 1; /* 悬停时左侧亮起朱砂红边线 */
        }
        .news-content {
            flex: 1;
            padding-right: 15px;
            overflow: hidden;
        }
        .news-content h4 {
            font-size: 15px;
            color: var(--text-main);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .news-content p {
            font-size: 13px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .news-date {
            font-size: 12px;
            color: var(--accent-red);
            font-weight: bold;
            background: rgba(178, 34, 34, 0.08);
            padding: 4px 10px;
            border-radius: 8px;
            flex-shrink: 0;
        }
		
		/* ================= 页脚与免责声明 ================= */
        .footer {
            padding: 30px 15px 10px;
            margin-top: 20px;
            border-top: 1px dashed var(--border-color);
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.8;
        }
        .footer p {
            margin-bottom: 8px;
        }
		/* ================= 老用户迁移公告面板 ================= */
        .migration-notice-box {
            background: linear-gradient(145deg, #FFF8E1 0%, #FFFDF7 100%);
            border: 1px solid var(--accent-gold);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 40px;
            box-shadow: 0 4px 15px rgba(198, 156, 109, 0.15);
            position: relative;
        }
        .migration-notice-box::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 6px; height: 100%;
            background: var(--accent-gold);
            border-radius: 12px 0 0 12px;
        }
        .migration-header {
            display: flex; align-items: center; gap: 8px;
            margin-bottom: 12px;
        }
        .migration-header h3 {
            font-size: 18px; color: #B27C38; /* 深金色 */
            margin: 0;
        }
        .migration-body {
            font-size: 14px; color: var(--text-main); line-height: 1.8;
        }
        .migration-body p { margin-bottom: 8px; }
        .migration-body strong { color: var(--accent-red); }
        .migration-btn {
            display: inline-flex; align-items: center; gap: 4px;
            background: var(--accent-red); color: #fff;
            padding: 6px 14px; border-radius: 20px; font-weight: bold;
            font-size: 13px; margin-top: 5px; transition: background 0.3s;
        }
        .migration-btn:hover { background: #8B1A1A; color: #fff; }
		/* ================= 常规网格布局 (高转化率富文本版) ================= */
        .grid-container {
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 加宽卡片以容纳更多文字 */
            gap: 20px; 
            margin-bottom: 40px;			
    border-radius: 100px;
        }
        .service-card {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 212px; padding: 22px; 
            display: flex; flex-direction: column; gap: 12px;
            box-shadow: var(--shadow); transition: all 0.3s ease; cursor: pointer;
			background: url(/images/xwbgx2.png) right no-repeat;
			align-items: center;
        }
        .service-card:hover { 
            transform: translateY(-4px); 
            border-color: var(--accent-gold); 
            box-shadow: 0 10px 25px rgba(198, 156, 109, 0.15);
        }
        .service-card-top {
            display: flex; align-items: center; gap: 12px;
        }
        .card-icon {
            width: 48px; height: 48px; border-radius: 112px;
            background: rgba(198, 156, 109, 0.1); color: var(--accent-gold);
            display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
        }
        .card-info h4 { 
            font-size: 16px; margin: 0; color: var(--text-main); font-weight: bold; 
            display: flex; align-items: center; gap: 6px;
        }
        .card-info .hot-badge {
            font-size: 11px; padding: 2px 6px; border-radius: 4px; 
            background: rgba(178, 34, 34, 0.08); color: var(--accent-red); font-weight: normal;
        }
        .service-card-desc {
            font-size: 13px; color: var(--text-muted); line-height: 1.6; text-align: justify;
            flex-grow: 1; /* 让描述部分撑开，保证下方标签对齐 */
        }
        .service-card-tags {
            display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px;
        }
        .service-card-tags span {
            font-size: 12px; padding: 4px 8px; border-radius: 6px;
            background: var(--bg-page); color: var(--accent-gold);
            border: 1px dashed rgba(198, 156, 109, 0.4);
        }
		/* ================= Hero 焦点图位 (AI奇门 & AI八字) ================= */
        .hero-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px; margin-bottom: 30px;
        }
        .hero-card {
            background: var(--bg-card); border-radius: 16px; overflow: hidden;
            box-shadow: var(--shadow); border: 1px solid var(--border-color);
            position: relative; display: flex; flex-direction: column;
            transition: transform 0.2s;
        }
        .hero-card:hover { transform: translateY(-3px); }
        
        .hero-bg {
            height: 100px; 
            background: linear-gradient(135deg, var(--accent-red) 0%, #801818 100%);
            display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
            /* 🟢 新增：为透明背景图铺垫 */
            position: relative; 
            z-index: 0; /* 创建独立的层级，非常关键 */
           /* overflow: hidden;  防止背景图溢出圆角 */
        }
        
        /* 🟢 新增：利用伪元素叠加背景图（黑科技） */
        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: url('/images/topbg1.png') right/cover no-repeat; /* 👈 把这里换成你的图片地址 */
            opacity: 1; /* 👈 自由控制透明度！0.1 到 0.3 之间通常最显高级 */
            z-index: -1; /* 让图片乖乖躺在文字下面，但在背景颜色上面 */
            pointer-events: none; /* 防止图片遮挡鼠标点击 */
        }

        .hero-bg.gold { background: linear-gradient(135deg, var(--accent-gold) 0%, #A67D4D 100%); }
        
        .hero-bg h3 { color: #fff; font-size: 24px; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
        .hero-bg i { font-size: 73px; color: rgba(255,255,255,0.3); }
        .hero-content { padding: 20px; }
        .hero-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
        .hero-tags span {
            display: inline-block; padding: 4px 10px; font-size: 12px;
            background: rgba(178, 34, 34, 0.08); color: var(--accent-red);
            border-radius: 12px; margin-right: 8px; margin-bottom: 8px;
        }
		/* ================= 焦点图卡片右上角花朵装饰 ================= */
.corner-flower {
    position: absolute;
    top: 48px;    /* 略微向上偏，配合卡片圆角显得自然 */
    right: 0px;  /* 紧贴右侧 */
    width: 110px;  /* 控制花朵的整体大小，你可以根据图片实际情况微调 */
    height: 75px;
    z-index: 1;   /* 确保浮在底色和背景图之上 */
    pointer-events: none; /* 核心护栏：防止花朵图片遮挡用户的鼠标点击 */
    opacity: 0.9; /* 稍微透明一点点，更好地融入底色 */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Q弹的过渡动画 */
}

.corner-flower img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); /* 给花朵加一点点微弱的立体投影 */
}

/* 鼠标悬停在卡片上时，花朵像迎风绽放一样微微放大并旋转 */
.hero-card:hover .corner-flower {
    transform: scale(1.15) rotate(8deg);
}

/* ================= PWA 安装提示 ================= */
#pwa-prompt {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 9998;
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 24px rgba(139,69,19,0.18);
    max-width: 220px;
    animation: pwaSlideIn 0.4s ease-out;
}
@keyframes pwaSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#pwa-prompt .pwa-hd {
    display: flex; align-items: center; gap: 10px; margin-bottom: 7px;
}
#pwa-prompt .pwa-hd img {
    width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
#pwa-prompt .pwa-hd span {
    font-size: 14px; font-weight: bold; color: var(--text-main); line-height: 1.3;
}
#pwa-prompt .pwa-desc {
    font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5;
}
#pwa-prompt .pwa-btns { display: flex; gap: 8px; }
#pwa-prompt .pwa-ok {
    flex: 1; padding: 7px 0; background: var(--accent-red); color: #fff;
    border: none; border-radius: 8px; font-size: 13px; font-weight: bold;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
#pwa-prompt .pwa-ok:hover { background: #8B1A1A; }
#pwa-prompt .pwa-no {
    padding: 7px 11px; background: transparent; color: var(--text-muted);
    border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
#pwa-prompt .pwa-no:hover { color: var(--accent-red); border-color: var(--accent-red); }
@media (max-width: 768px) {
    #pwa-prompt { bottom: 68px; right: 12px; max-width: 200px; }
}

/* ===== 奇门遁甲选择展开面板 ===== */
.hero-card.qimen-toggle { cursor: pointer; }
.qimen-expand {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0; display: flex; gap: 10px;
}
.qimen-expand.open { max-height: 80px; padding: 14px 0 2px; }
.qimen-btn {
    flex: 1; display: block; text-align: center;
    padding: 10px 0; border-radius: 10px;
    font-size: 14px; font-weight: 600; letter-spacing: 1px;
    color: #fff; text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.qimen-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.qimen-btn-dao { background: linear-gradient(135deg, var(--accent-red) 0%, #801818 100%); }
.qimen-btn-trad { background: linear-gradient(135deg, #5a5a8a 0%, #2a2a5a 100%); }
.qimen-arrow {
    font-size: 12px; color: rgba(255,255,255,0.75);
    transition: transform 0.3s ease; display: inline-block; margin-left: 6px;
}
.hero-card.qimen-toggle.open .qimen-arrow { transform: rotate(180deg); }