/* =========================================================
   阿易说 · 移动端设计系统（原创重写）
   主题：深咖啡 + 暖金，神秘质感 —— 褐色/咖啡系
   750px 设计稿，rem 适配
   配色 token：
     咖啡深底 #1e130b / 卡片 #33231a / 金棕强调 #8a5a33
     暖金点缀 #d9b06a / 奶油字 #ece0cd / 柔金星 #e7c27a
   ========================================================= */

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

html {
    background-color: #1e130b;
    /* 星空：散布的星点 + 两团暖金星云，固定视口营造深夜神秘感 */
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(255,255,255,0.95), transparent),
        radial-gradient(1.5px 1.5px at 22% 38%, rgba(231,194,122,0.9), transparent),
        radial-gradient(1px 1px at 35% 8%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 47% 55%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 60% 18%, rgba(231,194,122,0.8), transparent),
        radial-gradient(1.5px 1.5px at 72% 42%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 83% 10%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 91% 30%, rgba(231,194,122,0.85), transparent),
        radial-gradient(1px 1px at 14% 70%, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.5px 1.5px at 28% 88%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 41% 76%, rgba(231,194,122,0.7), transparent),
        radial-gradient(1.5px 1.5px at 55% 92%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 68% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 80% 85%, rgba(231,194,122,0.8), transparent),
        radial-gradient(1px 1px at 93% 62%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 5% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 97% 78%, rgba(231,194,122,0.6), transparent),
        radial-gradient(60px 60px at 18% 20%, rgba(231,194,122,0.10), transparent),
        radial-gradient(80px 80px at 85% 75%, rgba(138,90,51,0.12), transparent);
    background-attachment: fixed;
    color: #ece0cd;
    font-size: 50px; /* JS 会按视口宽度重算 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
        sans-serif;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    font-size: 0.28rem;
    background-color: transparent;
    color: #ece0cd;
    line-height: 1.6;
    padding-bottom: 0.4rem;
}

img { vertical-align: middle; width: 100%; display: block; }
a { text-decoration: none; color: #ece0cd; }
ul, li { list-style: none; }

/* ---------- 通用工具类 ---------- */
.flex { display: flex; }
.flex-item { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.text-center { text-align: center; }
.bold { font-weight: bold; }
.mt-02 { margin-top: 0.2rem; }
.mt-03 { margin-top: 0.3rem; }
.ml-02 { margin-left: 0.2rem; }

.line-ellipsis-2 {
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.line-ellipsis-3 {
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}

/* ---------- 顶部导航 ---------- */
.header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 750px; z-index: 100;
    background: transparent; overflow: visible;
}
.header::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, #7a4a28 0%, #2a1810 60%, #160d07 100%);
    opacity: 0; transition: opacity 0.4s ease;
    pointer-events: none; z-index: 0;
}
.header.scrolled::before { opacity: 1; }
.header-inner {
    position: relative; z-index: 1; display: flex; align-items: center;
    padding: 0 0.2rem; height: 0.9rem;
}
.header a { color: #fff; font-size: 0.32rem; }
.header-logo { font-size: 0.38rem; font-weight: bold; letter-spacing: 1px; display: flex; align-items: center; }
.header-logo .logo-avatar {
    width: 0.6rem; height: 0.6rem; border-radius: 50%; object-fit: cover;
    border: 2px solid #e7c27a; background: #fff; margin-right: 0.12rem;
    box-shadow: 0 0 0.18rem rgba(231,194,122,0.5); flex: none;
}
.header-logo .sub { font-size: 0.22rem; opacity: 0.85; font-weight: normal; }
.header-nav { flex: 1; text-align: right; }
.header-nav a { margin-left: 0.3rem; }
.header-menu {
    width: 0.5rem; height: 0.5rem; margin-left: 0.2rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(231,194,122,0.6); border-radius: 0.1rem;
}
.header-menu span { font-size: 0.3rem; line-height: 1; color: #e7c27a; }

/* ---------- 顶部 banner（今日星座） ---------- */
.header-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #7a4a28 0%, #2a1810 60%, #160d07 100%);
    padding-top: 1.2rem; padding-bottom: 0.8rem;
}
/* 暗角：四周压暗，聚焦中央，增强神秘氛围 */
.header-banner::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 35%, transparent 45%, rgba(10,6,3,0.55) 100%);
}
/* 巨型「阿易」水印：淡淡的 IP 印记，纯文字不依赖图片 */
.header-banner::after {
    content: "阿易"; position: absolute; right: -0.1rem; bottom: -0.6rem;
    z-index: 0; pointer-events: none;
    font-size: 3.2rem; font-weight: 900; line-height: 1;
    color: rgba(231,194,122,0.07);
    writing-mode: vertical-rl; letter-spacing: 0.1rem;
    text-shadow: 0 0 0.4rem rgba(231,194,122,0.05);
}

.nowaday { position: relative; z-index: 1; display: flex; color: #fff; padding: 0 0.2rem; }
.nowaday .imgbox {
    width: 2rem; text-align: center; margin-right: 0.2rem; position: relative;
}
.nowaday .imgbox .symbol {
    width: 1.6rem; height: 1.6rem; margin: 0 auto;
    border-radius: 50%; background: rgba(231,194,122,0.14);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; box-shadow: 0 0 0.4rem rgba(231,194,122,0.3);
}
.nowaday .name { margin-top: 0.1rem; font-size: 0.34rem; font-weight: bold; }
.nowaday .daterange { margin-top: 0.1rem; font-size: 0.24rem; opacity: 0.9; }
/* 首页 banner 阿易头像（替代星座符号大圆） */
.nowaday .imgbox .ayi-banner-avatar {
    width: 1.6rem; height: 1.6rem; margin: 0 auto; border-radius: 50%;
    object-fit: cover; border: 3px solid #e7c27a; background: #fff;
    box-shadow: 0 0 0.4rem rgba(231,194,122,0.5);
}
/* 首页「遇见·阿易」形象卡 */
.ayi-card {
    margin: 0.3rem 0.2rem 0; padding: 0.24rem;
    background: linear-gradient(160deg, #2f2016, #1c130c);
    border: 1px solid rgba(231,194,122,0.25); border-radius: 0.2rem;
    display: flex; align-items: center; gap: 0.24rem;
    box-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.4);
}
.ayi-card img { width: 1.8rem; height: auto; border-radius: 0.16rem; background: #fbf6ec; flex: none; }
.ayi-card .ayi-txt h3 { color: #e7c27a; font-size: 0.32rem; margin-bottom: 0.08rem; }
.ayi-card .ayi-txt p { color: #d9c6a8; font-size: 0.24rem; line-height: 1.6; }

.nowaday .ysbox { flex: 1; }
.nowaday .stars-box { font-size: 0.28rem; display: flex; align-items: center; }
.stars { color: #e7c27a; letter-spacing: 0.04rem; font-size: 0.32rem; }
.stars .off { color: rgba(255,255,255,0.3); }
.nowaday .cnt {
    margin-top: 0.2rem; color: #f3e9d6; font-size: 0.26rem;
    line-height: 1.7; opacity: 0.95;
}
.nowaday .flex { margin-top: 0.2rem; }
.nowaday .gd, .nowaday .zq {
    flex: 1; text-align: center; padding: 0.14rem 0;
    background-color: rgba(231,194,122,0.16); border-radius: 0.1rem;
    color: #f3e9d6; font-size: 0.26rem;
}
.nowaday .gd { margin-right: 0.1rem; }
.nowaday .zq { margin-left: 0.1rem; }

/* 今日/明日/本周/本月 切换按钮 */
.btns { display: flex; flex-wrap: wrap; }
.btns.btns-4 { padding: 0 0.2rem; margin-top: 0.3rem; }
.btns.btns-4 .btn {
    width: 1.625rem; text-align: center; margin-left: 0.2rem; margin-bottom: 0.2rem;
}
.btn {
    position: relative; text-align: center; color: #ece0cd;
    background-color: #33231a; border-radius: 0.1rem;
    height: 0.68rem; line-height: 0.68rem;
    box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.35); padding: 0 0.2rem;
}
.btn-sm {
    background-color: rgba(231,194,122,0.14);
    display: inline-block; color: #f3e9d6; height: 0.5rem;
    line-height: 0.5rem; font-size: 0.24rem; box-shadow: none;
}
.btn-sm.btn-active { background-color: #8a5a33; }

/* 幸运数字/颜色/宜忌表 */
.detail {
    color: #f3e9d6; background-color: rgba(255, 255, 255, 0.07);
    border-radius: 0.1rem; padding: 0.2rem;
    margin: 0 0.2rem; position: relative;
}
.detail p:first-of-type { margin-bottom: 0.2rem; text-align: center; font-weight: bold; }
.detail table {
    border-collapse: collapse; width: 100%; font-size: 0.24rem;
}
.detail table td {
    border: 1px solid rgba(231,194,122,0.18); padding: 0.12rem 0.1rem;
}
.detail table td:first-child { color: rgba(243,233,214,0.8); width: 1.6rem; }

/* 12 星座宫格 */
.xz-12 { display: flex; flex-wrap: wrap; margin-top: 0.3rem; padding: 0 0 0 0.2rem; }
.xz-12 a {
    width: 1.0166rem; margin: 0 0.2rem 0.2rem 0;
    text-align: center; color: #fff;
}
.xz-12 a .img-bg {
    background-color: rgba(231,194,122,0.16); padding: 0.12rem;
    border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.xz-12 a .img-bg .symbol { font-size: 0.5rem; }
.xz-12 a .name { margin-top: 0.1rem; font-size: 0.24rem; }

/* ---------- 工具入口（10 个） ---------- */
.gj-10 { display: flex; flex-wrap: wrap; padding: 0.3rem 0 0 0.3rem; background: #241710; }
.gj-10 a {
    width: 1.14rem; margin: 0 0.3rem 0.3rem 0;
    text-align: center; color: #e0d2bb; font-size: 0.24rem; font-weight: bold;
}
.gj-10 .tool-icon {
    width: 0.9rem; height: 0.9rem; margin: 0 auto 0.1rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.46rem; color: #fff;
    background: linear-gradient(135deg, #b07a45, #6f4e37);
    box-shadow: 0 0.06rem 0.16rem rgba(120, 70, 30, 0.5);
}
.gj-10 a:nth-child(2n) .tool-icon { background: linear-gradient(135deg, #d9b06a, #b07a45); }
.gj-10 a:nth-child(3n) .tool-icon { background: linear-gradient(135deg, #9c6b3f, #5a3a22); }

/* ---------- 面板 / 文章列表 ---------- */
.panel { background-color: #33231a; margin-top: 0.2rem; }
.panel + .panel { margin-top: 0.2rem; }
.panel-hd {
    display: flex; align-items: center; height: 1.0rem; line-height: 1.0rem;
    padding: 0 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.panel-hd_tit { flex: 1; font-weight: bold; color: #ece0cd; font-size: 0.34rem; }
.panel-hd_ft a { font-size: 0.24rem; color: #b8a489; }
.panel-hd_ft.access a::after { content: " ›"; }

.cells { padding: 0.2rem 0.2rem 0; }
.cell {
    display: flex; margin-bottom: 0.2rem; padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cell:last-child { border-bottom: none; }
.cell-hd { width: 2.2rem; flex-shrink: 0; }
.cell-hd .thumb {
    width: 100%; height: 1.5rem; border-radius: 0.1rem;
    background: linear-gradient(135deg, #8a5a33, #2a1810);
    display: flex; align-items: center; justify-content: center;
    color: #f3e9d6; font-size: 0.4rem;
}
.cell-bd { flex: 1; margin-left: 0.2rem; position: relative; }
.cell-bd_tit {
    color: #ece0cd; display: block; font-size: 0.3rem; font-weight: bold;
    line-height: 1.5;
}
.cell-bd_time {
    color: #b8a489; position: absolute; font-size: 0.24rem; bottom: 0; left: 0;
}

/* ---------- 卡片 ---------- */
.card {
    background-color: #33231a; border-radius: 0.12rem;
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.card-hd { display: flex; align-items: center; padding: 0.2rem 0.2rem 0; }
.card-hd_tit { flex: 1; font-weight: bold; font-size: 0.3rem; color: #ece0cd; }
.card-bd { display: block; padding: 0.2rem; color: #ece0cd; line-height: 1.8; }
.card-ft a {
    color: #f3e9d6; background-color: rgba(138, 90, 51, 0.9);
    display: block; text-align: center; height: 0.6rem; line-height: 0.6rem;
}

/* ---------- 指数条（今日运势详情） ---------- */
.yszsbox { display: flex; align-items: flex-end; justify-content: space-around; padding: 0.3rem 0.2rem; }
.yszs { flex: 1; display: flex; flex-direction: column; align-items: center; }
.yszs-bg {
    position: relative; height: 1.6rem; width: 0.3rem;
    background-color: #241710; border-radius: 0.15rem; overflow: hidden;
}
.yszs-zs {
    position: absolute; bottom: 0; width: 100%; border-radius: 0.15rem;
    transition: height 0.6s ease;
}
.yszs.zh .yszs-bg { height: 2rem; }
.yszs.zh .yszs-name { font-weight: bold; color: #ece0cd; font-size: 0.28rem; }
.yszs.zh .yszs-num { font-size: 0.28rem; font-weight: bold; }
.yszs-name { font-size: 0.24rem; color: #b8a489; margin-top: 0.12rem; }
.yszs-num { font-size: 0.24rem; color: #b8a489; margin-top: 0.04rem; }
.yszs.zh .yszs-zs { background: linear-gradient(135deg, #b07a45, #2a1810); }
.yszs.aq .yszs-zs { background: linear-gradient(135deg, #c98aa0, #8a4a62); }
.yszs.sy .yszs-zs { background: linear-gradient(135deg, #6fa392, #3a6a5a); }
.yszs.cf .yszs-zs { background: linear-gradient(135deg, #e0b15a, #b07a2f); }
.yszs.jk .yszs-zs { background: linear-gradient(135deg, #9fbf86, #5e8a4e); }

/* ---------- tabs ---------- */
.tabs { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tab {
    padding: 0.08rem 0.4rem; text-align: center; color: #c9b89a;
    border: 2px solid rgba(255,255,255,0.12); cursor: pointer; font-size: 0.26rem;
}
.tabs .tab:first-of-type { border-top-left-radius: 0.1rem; border-bottom-left-radius: 0.1rem; }
.tabs .tab:last-of-type { border-top-right-radius: 0.1rem; border-bottom-right-radius: 0.1rem; }
.tab.active { color: #d9b06a; border: 2px solid #d9b06a; background: #241710; font-weight: bold; }
.tab-content { display: none; margin-top: 0.2rem; }
.tab-content.active { display: block; }

/* ---------- 面包屑 ---------- */
.bread-wrap {
    padding: 0 0.2rem; height: 0.6rem; line-height: 0.6rem;
    font-size: 0.26rem; color: #b8a489; background-color: #241710;
}
.bread-wrap a { color: #b8a489; }

/* ---------- 星座列表页 ---------- */
.xz-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.2rem;
    padding: 0.3rem 0.2rem;
}
.xz-grid a {
    background: #33231a; border-radius: 0.12rem; padding: 0.3rem 0.1rem;
    text-align: center; box-shadow: 0 0.06rem 0.16rem rgba(0,0,0,0.3);
    color: #ece0cd;
}
.xz-grid a .symbol { font-size: 0.7rem; }
.xz-grid a .name { font-weight: bold; font-size: 0.3rem; margin-top: 0.1rem; }
.xz-grid a .date { font-size: 0.22rem; color: #9a8a70; margin-top: 0.06rem; }

/* ---------- 文章详情 ---------- */
.article-detail { overflow: hidden; background-color: #33231a; margin: 0 0.2rem; padding: 0.3rem 0.2rem; border-radius: 0.12rem; }
.article-detail-title { font-size: 0.4rem; font-weight: 700; text-align: center; line-height: 1.5; color: #ece0cd; }
.article-detail-source { color: #b8a489; font-size: 0.24rem; margin: 0.2rem 0; text-align: center; }
.article-detail-content { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.2rem; }
.article-detail-content p { line-height: 1.9; margin-bottom: 0.2rem; font-size: 0.3rem; color: #ece0cd; }
.article-detail-content h4 { font-weight: bold; font-size: 0.34rem; color: #e0d2bb; margin: 0.3rem 0 0.1rem; }

/* ---------- 分页 ---------- */
.pagination { list-style: none; margin: 0.3rem 0.2rem; display: flex; justify-content: space-between; }
.pagination li a, .pagination li.disabled, .pagination li.active {
    text-align: center; color: #ece0cd; background-color: #33231a; border-radius: 0.1rem;
    padding: 0.15rem 0.3rem; box-shadow: 0 0 0.2rem rgba(0,0,0,0.3); font-size: 0.24rem;
}
.pagination li.active { background-color: #8a5a33; color: #f3e9d6; }

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.24rem; text-align: center;
    color: #9a8a70; padding: 0.3rem 0.2rem; margin-top: 0.3rem; line-height: 1.8;
}

/* 区块标题 */
.section-hd {
    font-size: 0.36rem; text-align: center; font-weight: bold; color: #ece0cd;
    height: 1.0rem; line-height: 1.0rem;
}

/* 装饰云朵（暖金微光） */
.cloud {
    position: absolute; width: 7.5rem; height: 0.8rem; left: 0; bottom: 0;
    background: radial-gradient(circle at 20% 60%, rgba(231,194,122,0.18), transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(231,194,122,0.14), transparent 40%);
    pointer-events: none;
}

/* ---------- 表单（星盘查询） ---------- */
.form { padding: 0.3rem 0.2rem; }
.form .field { margin-bottom: 0.24rem; }
.form label { display: block; color: #b8a489; font-size: 0.26rem; margin-bottom: 0.1rem; }
.form input, .form select {
    width: 100%; height: 0.8rem; padding: 0 0.2rem; font-size: 0.28rem;
    background: #241710; color: #ece0cd; border: 1px solid rgba(231,194,122,0.25);
    border-radius: 0.1rem; outline: none;
}
.form input:focus, .form select:focus { border-color: #d9b06a; }
.form .submit {
    width: 100%; height: 0.86rem; margin-top: 0.1rem; border: none; border-radius: 0.1rem;
    background: linear-gradient(135deg, #8a5a33, #5a3a22); color: #f3e9d6;
    font-size: 0.3rem; font-weight: bold; cursor: pointer;
}

/* ---------- 配对卡 ---------- */
.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.2rem; padding: 0.3rem 0.2rem; }
.pair-card { background: #33231a; border-radius: 0.12rem; padding: 0.2rem; box-shadow: 0 0.06rem 0.16rem rgba(0,0,0,0.3); }
.pair-card .pair-top { display: flex; align-items: center; justify-content: center; font-size: 0.26rem; color: #ece0cd; }
.pair-card .pair-top .sym { font-size: 0.46rem; margin: 0 0.08rem; }
.pair-card .pair-top .x { color: #b8a489; margin: 0 0.06rem; }
.pair-card .pair-bar { height: 0.16rem; background: #241710; border-radius: 0.08rem; overflow: hidden; margin-top: 0.16rem; }
.pair-card .pair-bar > i { display: block; height: 100%; background: linear-gradient(135deg, #b07a45, #8a5a33); border-radius: 0.08rem; }
.pair-card .pair-num { text-align: right; color: #d9b06a; font-size: 0.24rem; margin-top: 0.06rem; }
.pair-card .pair-desc { color: #b8a489; font-size: 0.24rem; margin-top: 0.12rem; line-height: 1.6; }

/* ---------- 塔罗卡 ---------- */
.tarot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.24rem; padding: 0.3rem 0.2rem; }
.tarot-card {
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, #3a281c 0%, #22150d 100%);
    border: 2px solid rgba(231,194,122,0.4); border-radius: 0.2rem;
    padding: 0.3rem 0.18rem 0.22rem; text-align: center;
    box-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.45), inset 0 0 0.5rem rgba(231,194,122,0.05);
    cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tarot-card::before {
    content: ""; position: absolute; inset: 0.09rem; pointer-events: none;
    border: 1px solid rgba(231,194,122,0.28); border-radius: 0.13rem;
}
.tarot-card:active { transform: scale(0.97); }
.tarot-card:hover { border-color: rgba(231,194,122,0.65); box-shadow: 0 0.12rem 0.4rem rgba(0,0,0,0.5), 0 0 0.6rem rgba(231,194,122,0.22); }
.tarot-card .tc-num {
    position: absolute; top: 0.14rem; right: 0.18rem; z-index: 2;
    font-size: 0.28rem; font-weight: bold; color: #e7c27a; opacity: 0.9;
}
.tarot-card .tc-sym {
    width: 1.7rem; height: 1.7rem; margin: 0.14rem auto 0.16rem;
    border-radius: 0.4rem;
    background: radial-gradient(circle at 50% 36%, rgba(231,194,122,0.25), rgba(18,11,6,0.65) 72%);
    border: 2px solid rgba(231,194,122,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.0rem; line-height: 1;
    box-shadow: inset 0 0 0.3rem rgba(0,0,0,0.55), 0 0 0.3rem rgba(231,194,122,0.2);
}
.tarot-card .tc-name { font-weight: bold; font-size: 0.4rem; color: #f6ecd9; letter-spacing: 0.02rem; margin-top: 0.02rem; }
.tarot-card .tc-mean { font-size: 0.27rem; color: #d9b06a; margin-top: 0.1rem; line-height: 1.45; padding: 0 0.04rem; }
.tarot-card .tc-detail { display: none; font-size: 0.27rem; color: #cbb696; line-height: 1.7; margin-top: 0.18rem; text-align: left; border-top: 1px dashed rgba(231,194,122,0.3); padding-top: 0.18rem; }
.tarot-card .tc-detail b { color: #e7c27a; font-size: 0.3rem; }
.tarot-card.open { grid-column: 1 / -1; }
.tarot-card.open .tc-detail { display: block; }
.tarot-card.draw { grid-column: 1 / -1; margin-top: 0.1rem; }

/* ---------- 配对查询 ---------- */
.pair-lookup { padding: 0.1rem 0.2rem 0.3rem; }
.pair-lookup .lookup-row { display: flex; gap: 0.2rem; align-items: flex-end; }
.pair-lookup .field { flex: 1; }
.pair-lookup label { display: block; color: #b8a489; font-size: 0.24rem; margin-bottom: 0.08rem; }
.pair-lookup select { width: 100%; box-sizing: border-box; background: #2a1c12; color: #ece0cd; border: 1px solid #4a3322; border-radius: 0.1rem; padding: 0.16rem; font-size: 0.26rem; }
.pair-lookup select:focus { border-color: #d9b06a; }

/* ---------- 抽牌 ---------- */
.draw-box { padding: 0.1rem 0.2rem 0.3rem; }
.draw-box .draw-btn { display: inline-block; background: linear-gradient(135deg, #b07a45, #8a5a33); color: #fff; border: none; border-radius: 0.5rem; padding: 0.24rem 0.7rem; font-size: 0.36rem; box-shadow: 0 0.06rem 0.16rem rgba(0,0,0,0.35); }
.draw-box .draw-btn:active { transform: translateY(1px); }

/* ---------- 星盘结果 ---------- */
.star-result { padding: 0.1rem 0.2rem 0.4rem; display: none; }
.star-result.show { display: block; }
.star-head { color: #d9b06a; font-size: 0.28rem; margin-bottom: 0.2rem; }
.star-row { display: flex; justify-content: space-between; align-items: center; background: #33231a; border-radius: 0.1rem; padding: 0.18rem 0.2rem; margin-bottom: 0.12rem; }
.star-row .star-k { color: #b8a489; font-size: 0.26rem; }
.star-row .star-v { color: #ece0cd; font-size: 0.3rem; font-weight: bold; }
.star-row .star-v i { font-style: normal; font-size: 0.22rem; color: #b8a489; font-weight: normal; }
.star-desc { color: #c9b699; font-size: 0.24rem; line-height: 1.65; margin-bottom: 0.16rem; }
.tip { color: #8a6f52; font-size: 0.22rem; margin-top: 0.1rem; }

/* ---------- 声音开关 ---------- */
.sound-toggle {
    position: fixed; right: 0.24rem; bottom: 0.24rem; z-index: 999;
    width: 0.84rem; height: 0.84rem; border-radius: 50%;
    background: linear-gradient(135deg, #7a4a28, #3a2415);
    color: #e7c27a; display: flex; align-items: center; justify-content: center;
    font-size: 0.42rem; cursor: pointer;
    border: 1px solid rgba(231,194,122,0.45);
    box-shadow: 0 0.06rem 0.2rem rgba(0,0,0,0.55);
    user-select: none; -webkit-tap-highlight-color: transparent;
}
.sound-toggle:active { transform: scale(0.92); }

/* ---------- 小六壬工具页 ---------- */
.xl-cap { color: #b8a489; font-size: 0.24rem; padding: 0.16rem 0.2rem 0; line-height: 1.6; }
.xl-tip { color: #b8a489; font-size: 0.24rem; line-height: 1.6; margin-bottom: 0.1rem; }

/* 掌盘轨迹板 */
.palm {
    position: relative; width: 4.6rem; height: 5.6rem; margin: 0.3rem auto;
    border-radius: 0.4rem;
    background:
        radial-gradient(120% 90% at 50% 40%, rgba(231,194,122,0.10), transparent 60%),
        linear-gradient(160deg, #3a2415, #1c1109);
    border: 1px solid rgba(231,194,122,0.25);
    box-shadow: inset 0 0 0.8rem rgba(0,0,0,0.5);
    overflow: hidden;
}
.palm::before {
    content: "\1F590"; position: absolute; left: 50%; top: 52%;
    transform: translate(-50%,-50%); font-size: 4.2rem; opacity: 0.06; filter: grayscale(1);
}
.joint {
    position: absolute; transform: translate(-50%,-50%);
    width: 1.04rem; padding: 0.1rem 0; text-align: center;
    background: linear-gradient(135deg, #b07a45, #6f4e37);
    border: 1px solid rgba(231,194,122,0.5); border-radius: 0.5rem;
    color: #f3e9d6; cursor: pointer; box-shadow: 0 0.04rem 0.14rem rgba(0,0,0,0.45);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.joint .joint-name { display: block; font-size: 0.3rem; font-weight: bold; }
.joint .joint-pos { display: block; font-size: 0.18rem; opacity: 0.8; }
.joint:active { transform: translate(-50%,-50%) scale(0.94); }
.joint.trail { box-shadow: 0 0 0.3rem rgba(231,194,122,0.9); filter: brightness(1.25); }
.joint.picked { border-color: #e7c27a; box-shadow: 0 0 0.34rem rgba(231,194,122,0.95); }

.xl-joint-info {
    margin: 0 0.2rem 0.3rem; padding: 0.24rem; border-radius: 0.14rem;
    background: #2a1c12; border: 1px solid rgba(231,194,122,0.25); color: #ece0cd;
}
.xl-joint-info .xji-h b { color: #e7c27a; font-size: 0.3rem; }
.xl-joint-info .xji-meta { color: #b8a489; font-size: 0.24rem; margin: 0.12rem 0; }
.xl-joint-info .xji-poem { font-size: 0.24rem; line-height: 1.7; color: #c9b699; }
.xl-joint-info .xji-desc { font-size: 0.26rem; line-height: 1.6; margin-top: 0.12rem; color: #ece0cd; }

/* 推算日志 */
.xl-log { padding: 0.24rem 0.2rem; max-height: 4.2rem; overflow-y: auto; }
.xl-log-item { font-size: 0.26rem; line-height: 1.7; color: #c9b699; padding: 0.06rem 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.xl-log-item .hl { color: #e7c27a; }
.xl-log-item .hl.big { font-size: 0.36rem; font-weight: bold; }
.xl-log-item.muted { color: #8a6f52; font-style: italic; }

/* 吉凶徽章 */
.lv { display: inline-block; padding: 0.02rem 0.14rem; border-radius: 0.3rem; font-size: 0.22rem; font-weight: bold; }
.lv-great { background: rgba(120,200,120,0.18); color: #8fe39a; border: 1px solid rgba(120,200,120,0.5); }
.lv-mid   { background: rgba(231,194,122,0.18); color: #e7c27a; border: 1px solid rgba(231,194,122,0.5); }
.lv-minor { background: rgba(150,200,230,0.16); color: #a9d6ef; border: 1px solid rgba(150,200,230,0.45); }
.lv-minor-bad { background: rgba(230,180,120,0.16); color: #e8b98a; border: 1px solid rgba(230,180,120,0.45); }
.lv-bad   { background: rgba(230,120,120,0.16); color: #ef9a9a; border: 1px solid rgba(230,120,120,0.5); }

/* 最终卦象卡 */
.xl-result { padding: 0.3rem 0.2rem; }
.xl-final { text-align: center; margin-bottom: 0.24rem; }
.xl-final-name { font-size: 0.8rem; font-weight: 900; line-height: 1.1; }
.xl-final-name.lv { background: none; border: none; padding: 0; }
.xl-final-name.lv-great { color: #8fe39a; text-shadow: 0 0 0.3rem rgba(143,227,154,0.5); }
.xl-final-name.lv-bad { color: #ef9a9a; text-shadow: 0 0 0.3rem rgba(239,154,154,0.45); }
.xl-final-name.lv-mid, .xl-final-name.lv-minor, .xl-final-name.lv-minor-bad { color: #e7c27a; text-shadow: 0 0 0.3rem rgba(231,194,122,0.5); }
.xl-final-lv { margin-top: 0.1rem; }
.xl-meta { display: flex; gap: 0.16rem; margin-bottom: 0.2rem; }
.xl-meta div { flex: 1; text-align: center; background: #2a1c12; border-radius: 0.1rem; padding: 0.16rem 0.06rem; }
.xl-meta span { display: block; color: #8a6f52; font-size: 0.2rem; margin-bottom: 0.06rem; }
.xl-meta b { color: #ece0cd; font-size: 0.28rem; }
.xl-poem, .xl-desc { font-size: 0.26rem; line-height: 1.75; margin-bottom: 0.16rem; color: #c9b699; }
.xl-label { display: inline-block; color: #e7c27a; font-weight: bold; margin-right: 0.12rem; }

/* 六神释义总表 */
.xl-table { padding: 0.2rem; }
.xl-row { background: #2a1c12; border-radius: 0.12rem; padding: 0.22rem; margin-bottom: 0.18rem; border: 1px solid rgba(231,194,122,0.12); }
.xl-row-h { font-size: 0.32rem; color: #ece0cd; }
.xl-row-h b { color: #e7c27a; }
.xl-row-pos { font-size: 0.22rem; color: #8a6f52; margin-left: 0.12rem; }
.xl-row-meta { font-size: 0.23rem; color: #b8a489; margin: 0.1rem 0; }
.xl-row-poem { font-size: 0.23rem; line-height: 1.7; color: #c9b699; }
.xl-row-desc { font-size: 0.25rem; line-height: 1.6; color: #ece0cd; margin-top: 0.08rem; }

/* 操作按钮 */
.xl-actions { display: flex; gap: 0.2rem; padding: 0 0.2rem 0.3rem; }
.xl-ghost { background: linear-gradient(135deg, #5a3a22, #3a2415); }

/* ---------- 全站菜单抽屉 ---------- */
.site-menu-mask { position: fixed; inset: 0; background: rgba(8,5,2,0.6); z-index: 1200; opacity: 0; visibility: hidden; transition: opacity .25s; }
.site-menu-mask.open { opacity: 1; visibility: visible; }
.site-menu {
    position: fixed; top: 0; right: 0; height: 100%; width: 5.6rem; max-width: 80%; z-index: 1300;
    background: linear-gradient(160deg, #2a1810, #160d07);
    border-left: 1px solid rgba(231,194,122,0.3);
    transform: translateX(100%); transition: transform .28s ease;
    padding: 1.2rem 0.3rem 0.4rem; overflow-y: auto;
    box-shadow: -0.1rem 0 0.5rem rgba(0,0,0,0.6);
}
.site-menu.open { transform: translateX(0); }
.site-menu .sm-close { position: absolute; top: 0.3rem; right: 0.3rem; color: #e7c27a; font-size: 0.5rem; cursor: pointer; line-height: 1; }
.site-menu .sm-title { color: #e7c27a; font-size: 0.3rem; font-weight: bold; margin: 0 0 0.1rem; letter-spacing: 1px; }
.site-menu .sm-group { color: #8a6f52; font-size: 0.22rem; margin: 0.24rem 0 0.06rem; }
.site-menu a { display: block; color: #ece0cd; font-size: 0.3rem; padding: 0.2rem 0.1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-menu a:active { color: #e7c27a; }
.site-menu a.sm-feat { color: #e7c27a; border: 1px solid rgba(231,194,122,0.4); border-radius: 0.1rem; margin: 0.1rem 0; background: rgba(231,194,122,0.08); font-weight: bold; }

/* ---------- 通用工具页组件（鲁班尺/数字能量/二十八宿/称骨/MBTI/心理） ---------- */
.tt-result { background: linear-gradient(160deg, #2e1e13, #1c1108); border: 1px solid rgba(231,194,122,0.25); border-radius: 0.14rem; padding: 0.3rem; margin: 0.2rem; box-shadow: 0 0.08rem 0.2rem rgba(0,0,0,0.4); }
.tt-result-h { font-size: 0.4rem; color: #e7c27a; font-weight: bold; text-align: center; text-shadow: 0 0 0.4rem rgba(231,194,122,0.5); }
.tt-badge { display: inline-block; padding: 0.04rem 0.18rem; border-radius: 0.5rem; font-size: 0.24rem; margin-left: 0.12rem; vertical-align: middle; }
.tt-badge.good { background: rgba(120,180,110,0.2); color: #9bd08a; border: 1px solid rgba(120,180,110,0.5); }
.tt-badge.bad { background: rgba(200,90,80,0.2); color: #e88a7e; border: 1px solid rgba(200,90,80,0.5); }
.tt-meta { display: flex; flex-wrap: wrap; gap: 0.14rem; margin: 0.2rem 0; }
.tt-meta div { flex: 1 1 40%; text-align: center; background: #2a1c12; border-radius: 0.1rem; padding: 0.14rem 0.06rem; }
.tt-meta span { display: block; color: #8a6f52; font-size: 0.2rem; margin-bottom: 0.04rem; }
.tt-meta b { color: #ece0cd; font-size: 0.26rem; }
.tt-line { font-size: 0.26rem; line-height: 1.8; margin: 0.1rem 0; color: #c9b699; }
.tt-line b { color: #e7c27a; }
.tt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.18rem; padding: 0.2rem; }
.tt-card { background: #2a1c12; border-radius: 0.12rem; padding: 0.2rem 0.18rem; border: 1px solid rgba(231,194,122,0.1); }
.tt-card-h { font-size: 0.32rem; color: #ece0cd; }
.tt-card-h .sym { color: #e7c27a; margin-right: 0.08rem; }
.tt-card-p { font-size: 0.24rem; color: #b8a489; margin: 0.08rem 0; line-height: 1.5; }
.tt-card .tt-badge { margin: 0; }
.tt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.14rem; padding: 0.2rem; }
.tt-card3 { background: #2a1c12; border-radius: 0.1rem; padding: 0.16rem 0.1rem; text-align: center; border: 1px solid rgba(231,194,122,0.1); }
.tt-card3 .s { font-size: 0.34rem; color: #e7c27a; }
.tt-card3 .n { font-size: 0.22rem; color: #ece0cd; margin-top: 0.04rem; }
.tt-card3.lucky { border-color: rgba(155,208,138,0.5); box-shadow: 0 0 0.2rem rgba(155,208,138,0.15); }
.tt-card3.unlucky { border-color: rgba(232,138,126,0.5); }
.tt-q { background: #2a1c12; border-radius: 0.12rem; padding: 0.22rem; margin: 0.18rem 0.2rem 0; border: 1px solid rgba(231,194,122,0.12); }
.tt-q-t { font-size: 0.28rem; color: #ece0cd; line-height: 1.6; }
.tt-q-t .num { color: #e7c27a; font-weight: bold; margin-right: 0.1rem; }
.tt-opts { display: flex; flex-wrap: wrap; gap: 0.16rem; margin-top: 0.16rem; }
.tt-opt { flex: 1 1 40%; background: #1c1108; border: 1px solid rgba(231,194,122,0.25); border-radius: 0.1rem; padding: 0.16rem 0.1rem; font-size: 0.26rem; color: #c9b699; text-align: center; cursor: pointer; transition: all .15s; }
.tt-opt.sel { background: linear-gradient(135deg, #b07a45, #8a5a33); color: #fff; border-color: #d9b06a; }
.tt-opt:active { transform: scale(0.97); }
.tt-bar { height: 0.18rem; border-radius: 0.1rem; background: #1c1108; overflow: hidden; margin-top: 0.1rem; }
.tt-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #d9b06a, #e7c27a); border-radius: 0.1rem; transition: width .5s; }
.tt-note { font-size: 0.22rem; color: #8a6f52; padding: 0.1rem 0.2rem; line-height: 1.6; }
.tt-sec { padding: 0.1rem 0.2rem; }
.tt-sec h4 { color: #e7c27a; font-size: 0.28rem; margin: 0.2rem 0 0.1rem; }

/* ---------- 每日运势 · 首页区块 ---------- */
.df-home {
    margin: 0.2rem; background: linear-gradient(160deg, #2f2016, #1c130c);
    border: 1px solid rgba(231,194,122,0.25); border-radius: 0.2rem; padding: 0.24rem;
    box-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.4);
}
.df-hd { display: flex; align-items: center; justify-content: space-between; }
.df-date { color: #ece0cd; font-size: 0.3rem; font-weight: bold; }
.df-lunar { color: #b8a489; font-size: 0.24rem; margin-top: 0.04rem; }
.df-more { color: #e7c27a; font-size: 0.26rem; flex: none; padding-left: 0.2rem; }
.df-quote {
    margin: 0.2rem 0; padding: 0.24rem; background: rgba(231,194,122,0.08);
    border-left: 3px solid #d9b06a; border-radius: 0.1rem;
    color: #f3e9d6; font-size: 0.32rem; line-height: 1.7; text-align: center;
    font-weight: bold; letter-spacing: 0.02rem;
}
.df-sub { color: #b8a489; font-size: 0.24rem; margin: 0.1rem 0 0.16rem; }
.df-signs { display: flex; flex-wrap: wrap; gap: 0.12rem; }
.df-mini {
    width: calc(25% - 0.09rem); text-align: center; background: #2a1c12;
    border: 1px solid rgba(231,194,122,0.12); border-radius: 0.12rem;
    padding: 0.16rem 0.04rem; color: #ece0cd;
}
.df-mini:active { border-color: #d9b06a; }
.df-mini .sym { display: block; font-size: 0.44rem; }
.df-mini .nm { display: block; font-size: 0.22rem; margin-top: 0.04rem; }
.df-mini .st { display: block; font-size: 0.18rem; color: #e7c27a; margin-top: 0.04rem; letter-spacing: -0.02rem; }

/* ---------- 每日运势 · 专属页 ---------- */
.dfp-banner { background: linear-gradient(160deg, #7a4a28, #2a1810 60%, #160d07); padding: 0.34rem 0.2rem 0.4rem; text-align: center; }
.dfp-date { color: #f3e9d6; font-size: 0.32rem; font-weight: bold; }
.dfp-lunar { color: #d9b06a; font-size: 0.24rem; margin-top: 0.06rem; }
.dfp-quote { margin: 0.22rem auto 0; max-width: 6.4rem; color: #f6ecd9; font-size: 0.36rem; font-weight: bold; line-height: 1.6; letter-spacing: 0.02rem; }
.dfp-toggle { display: flex; justify-content: center; gap: 0.2rem; margin-top: 0.24rem; }
.dfp-toggle .btn-sm { width: auto; padding: 0 0.4rem; }

.df-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.18rem; padding: 0.2rem; }
.df-card {
    background: linear-gradient(165deg, #3a281c, #22150d); border: 2px solid rgba(231,194,122,0.4);
    border-radius: 0.2rem; padding: 0.22rem 0.16rem; text-align: center;
    box-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.45), inset 0 0 0.5rem rgba(231,194,122,0.05);
    cursor: pointer; transition: transform .15s, border-color .15s;
}
.df-card:active { transform: scale(0.97); }
.df-card:hover { border-color: rgba(231,194,122,0.65); }
.df-card.open { grid-column: 1 / -1; cursor: default; border-color: rgba(231,194,122,0.7); }
.df-card-h { display: flex; align-items: center; justify-content: center; gap: 0.1rem; }
.df-card-h .sym { font-size: 0.5rem; line-height: 1; }
.df-card-h .nm { font-size: 0.32rem; font-weight: bold; color: #f6ecd9; }
.df-star { color: #e7c27a; font-size: 0.22rem; margin-left: 0.06rem; }
.df-card-sub { color: #d9b06a; font-size: 0.24rem; margin-top: 0.1rem; }
.df-detail { display: none; margin-top: 0.2rem; border-top: 1px dashed rgba(231,194,122,0.3); padding-top: 0.2rem; text-align: left; }
.df-card.open .df-detail { display: block; }
.df-meta { display: flex; flex-wrap: wrap; gap: 0.14rem; margin: 0.2rem 0; }
.df-meta div { flex: 1 1 30%; text-align: center; background: #2a1c12; border-radius: 0.1rem; padding: 0.14rem 0.06rem; }
.df-meta span { display: block; color: #8a6f52; font-size: 0.2rem; margin-bottom: 0.04rem; }
.df-meta b { color: #ece0cd; font-size: 0.26rem; }
.df-comment { font-size: 0.27rem; line-height: 1.7; color: #cbb696; background: rgba(231,194,122,0.06); border-radius: 0.1rem; padding: 0.18rem; }
.df-comment::before { content: "阿易说 · "; color: #e7c27a; font-weight: bold; }

/* ---------- 分享海报 ---------- */
.share-fab {
    position: fixed; left: 0.24rem; bottom: 1.2rem; z-index: 998;
    background: linear-gradient(135deg, #8a5a33, #5a3a22); color: #f3e9d6;
    border: 1px solid rgba(231,194,122,0.45); border-radius: 0.5rem;
    padding: 0.16rem 0.3rem; font-size: 0.26rem; cursor: pointer;
    box-shadow: 0 0.06rem 0.2rem rgba(0,0,0,0.55);
    display: flex; align-items: center; gap: 0.08rem;
}
.share-fab:active { transform: scale(0.95); }
.share-modal {
    position: fixed; inset: 0; z-index: 1500; display: none;
    align-items: center; justify-content: center;
}
.share-modal.open { display: flex; }
.share-modal-mask { position: absolute; inset: 0; background: rgba(8,5,2,0.82); }
.share-modal-box {
    position: relative; z-index: 1; width: 88%; max-width: 420px;
    background: linear-gradient(160deg, #2a1810, #160d07);
    border: 1px solid rgba(231,194,122,0.4); border-radius: 0.2rem;
    padding: 0.3rem; text-align: center;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.6);
}
.share-modal-title { color: #e7c27a; font-size: 0.32rem; font-weight: bold; margin-bottom: 0.2rem; }
.share-canvas-wrap { display: flex; justify-content: center; overflow: auto; }
.share-actions { display: flex; gap: 0.16rem; margin-top: 0.24rem; }
.share-btn {
    flex: 1; height: 0.7rem; line-height: 0.7rem; border: none; border-radius: 0.1rem;
    font-size: 0.28rem; font-weight: bold; cursor: pointer; color: #f3e9d6;
    background: linear-gradient(135deg, #5a3a22, #3a2415);
}
.share-btn.save { background: linear-gradient(135deg, #8a5a33, #5a3a22); }
.share-btn.share { background: linear-gradient(135deg, #b07a45, #8a5a33); color: #fff; }
.share-btn:active { transform: scale(0.97); }
.share-tip { color: #8a6f52; font-size: 0.22rem; margin-top: 0.16rem; line-height: 1.6; }

/* ---------- 语言切换器 ---------- */
.lang-switch { display: flex; gap: 0.12rem; justify-content: center; margin: 0.16rem 0 0.1rem; }
.lang-switch button {
    background: #2a1c12; color: #c9b699; border: 1px solid rgba(231,194,122,0.3);
    border-radius: 0.5rem; padding: 0.1rem 0.3rem; font-size: 0.26rem; cursor: pointer;
}
.lang-switch button.active { background: #8a5a33; color: #f3e9d6; border-color: #d9b06a; font-weight: bold; }
.site-menu .sm-lang-tip { color: #8a6f52; font-size: 0.22rem; text-align: center; margin-top: 0.1rem; }

/* ---------- 每日运势 · 当前时辰 ---------- */
.df-hour {
    margin: 0.2rem; background: rgba(231,194,122,0.06);
    border: 1px dashed rgba(231,194,122,0.3); border-radius: 0.14rem; padding: 0.2rem;
    text-align: center;
}
.df-hour .dh-t { color: #e7c27a; font-size: 0.26rem; margin-bottom: 0.1rem; }
.df-hour .dh-m { color: #f3e9d6; font-size: 0.3rem; font-weight: bold; }
.df-hour .dh-s { color: #b8a489; font-size: 0.24rem; margin-top: 0.08rem; line-height: 1.6; }

/* ---------- 阿易夜话 · 话本对话 ---------- */
.ai-wrap { display: flex; flex-direction: column; height: calc(100dvh - 1.1rem); background: #1c1009; overflow: hidden; }
.ai-banner { font-size: 0.22rem; line-height: 1.5; color: #d8b878; background: rgba(122,74,40,0.16); border-bottom: 1px dashed rgba(231,194,122,0.28); padding: 0.14rem 0.3rem; text-align: center; flex: 0 0 auto; }
.ai-msgs { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.3rem 0.28rem; display: flex; flex-direction: column; gap: 0.24rem; }
.ai-row { display: flex; align-items: flex-end; gap: 0.16rem; }
.ai-row.me { flex-direction: row-reverse; }
.ai-ava { width: 0.72rem; height: 0.72rem; border-radius: 50%; border: 1px solid #d9b06a; flex: 0 0 auto; object-fit: cover; background: #2a1810; }
.ai-bubble { max-width: 74%; font-size: 0.28rem; line-height: 1.62; padding: 0.2rem 0.24rem; border-radius: 0.18rem; word-break: break-word; white-space: pre-wrap; }
.ai-row.ayi .ai-bubble { background: #2a1810; color: #f1e6cf; border: 1px solid #7a4a28; border-bottom-left-radius: 0.04rem; }
.ai-row.me .ai-bubble { background: #d9b06a; color: #241710; border-bottom-right-radius: 0.04rem; }
.ai-typing { display: inline-flex; gap: 0.08rem; align-items: center; }
.ai-typing i { width: 0.12rem; height: 0.12rem; border-radius: 50%; background: #b79a6a; animation: aiTyping 1s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiTyping { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-0.08rem); } }
.ai-quick { display: flex; flex-wrap: wrap; gap: 0.16rem; padding: 0.16rem 0.28rem 0.04rem; flex: 0 0 auto; }
.ai-chip { font-size: 0.24rem; color: #e7c27a; background: rgba(217,176,106,0.12); border: 1px solid rgba(122,74,40,0.6); border-radius: 0.3rem; padding: 0.12rem 0.24rem; cursor: pointer; }
.ai-chip:active { background: rgba(217,176,106,0.24); }
.ai-inputbar { display: flex; gap: 0.16rem; align-items: flex-end; padding: 0.16rem 0.28rem; background: #1c1009; border-top: 1px solid #3a2414; flex: 0 0 auto; }
.ai-input { flex: 1 1 auto; resize: none; height: 0.72rem; max-height: 1.7rem; font-size: 0.28rem; line-height: 1.4; color: #f1e6cf; background: #2a1810; border: 1px solid #7a4a28; border-radius: 0.16rem; padding: 0.16rem 0.2rem; font-family: inherit; }
.ai-input::placeholder { color: #8a6f52; }
.ai-send { flex: 0 0 auto; height: 0.72rem; padding: 0 0.34rem; font-size: 0.28rem; color: #241710; background: #d9b06a; border: none; border-radius: 0.16rem; font-weight: bold; cursor: pointer; }
.ai-send:disabled { opacity: .5; }

/* ---------- 阿易夜话 · 语音朗读 ---------- */
.ai-ttsbar { display: flex; align-items: center; gap: 0.16rem; padding: 0.14rem 0.28rem; background: #1c1009; border-bottom: 1px solid #3a2414; flex: 0 0 auto; position: relative; }
.ai-tts-toggle { font-size: 0.24rem; color: #b8a489; background: rgba(122,74,40,0.2); border: 1px solid #7a4a28; border-radius: 0.3rem; padding: 0.1rem 0.22rem; cursor: pointer; flex: 0 0 auto; }
.ai-tts-toggle.on { color: #241710; background: #d9b06a; border-color: #d9b06a; font-weight: bold; }
.ai-voice-btn { font-size: 0.24rem; color: #e7c27a; background: rgba(217,176,106,0.12); border: 1px solid rgba(122,74,40,0.6); border-radius: 0.3rem; padding: 0.1rem 0.22rem; cursor: pointer; margin-left: auto; max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-voice-btn:active { background: rgba(217,176,106,0.24); }
.ai-tts-tip { font-size: 0.2rem; color: #8a6f52; text-align: center; padding: 0.08rem 0.28rem 0.14rem; background: #1c1009; flex: 0 0 auto; line-height: 1.5; }
.ai-voice-panel { position: absolute; left: 0.28rem; right: 0.28rem; top: calc(100% + 0.08rem); max-height: 5.6rem; overflow-y: auto; background: #2a1810; border: 1px solid #7a4a28; border-radius: 0.16rem; box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.5); z-index: 20; padding: 0.1rem; display: none; }
.ai-voice-panel.open { display: block; }
.ai-voice-item { display: flex; align-items: center; gap: 0.12rem; padding: 0.16rem 0.18rem; border-radius: 0.12rem; font-size: 0.24rem; color: #f1e6cf; cursor: pointer; }
.ai-voice-item:active { background: rgba(217,176,106,0.16); }
.ai-voice-item.sel { background: rgba(217,176,106,0.22); border: 1px solid #d9b06a; }
.ai-voice-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-voice-lang { color: #8a6f52; font-size: 0.2rem; flex: 0 0 auto; }
.ai-voice-tag { font-size: 0.18rem; padding: 0.02rem 0.1rem; border-radius: 0.2rem; flex: 0 0 auto; }
.ai-voice-tag.ms { color: #241710; background: #e7c27a; }
.ai-voice-tag.zh { color: #e7c27a; background: rgba(217,176,106,0.18); border: 1px solid #7a4a28; }
.ai-voice-empty { font-size: 0.22rem; color: #8a6f52; padding: 0.24rem; text-align: center; line-height: 1.6; }

/* ---- 火山 Key 输入区 ---- */
.ai-voice-keyzone { background: #1c1009; border: 1px solid #3a2414; border-radius: 0.14rem; padding: 0.16rem 0.18rem; margin-bottom: 0.14rem; }
.ai-key-title { font-size: 0.22rem; color: #e7c27a; margin-bottom: 0.12rem; font-weight: bold; }
.ai-key-input { width: 100%; box-sizing: border-box; font-size: 0.22rem; color: #f1e6cf; background: #2a1810; border: 1px solid #7a4a28; border-radius: 0.1rem; padding: 0.12rem 0.14rem; outline: none; }
.ai-key-input::placeholder { color: #6f5640; }
.ai-key-input:focus { border-color: #d9b06a; }
.ai-key-row { display: flex; gap: 0.1rem; margin-top: 0.1rem; align-items: stretch; }
.ai-key-input.sm { flex: 1 1 auto; }
.ai-key-btn { flex: 0 0 auto; font-size: 0.22rem; color: #241710; background: #d9b06a; border: none; border-radius: 0.1rem; padding: 0 0.28rem; cursor: pointer; font-weight: bold; }
.ai-key-btn:active { background: #e7c27a; }
.ai-voice-hint { font-size: 0.2rem; color: #8a6f52; margin-top: 0.1rem; line-height: 1.5; }
.ai-voice-hint.ok { color: #9bd07a; }
.ai-voice-list { display: block; }
.ai-voice-tag.hs { color: #2a1006; background: #e0915a; }


/* ===== 图标全量替换 · 星河鎏金纹章（2026-11-15） ===== */
/* 宣纸玉牌自带底与轮廓，容器只负责给尺寸，不再叠原来的渐变圆底 */
.xz-12 a .img-bg .symbol,
.xz-grid a .symbol,
.nowaday .imgbox .symbol,
.header-banner .imgbox .symbol,
.cell-hd .thumb,
.gj-10 .tool-icon,
.gj-10 a:nth-child(2n) .tool-icon,
.gj-10 a:nth-child(3n) .tool-icon { background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.xz-12 a .img-bg .symbol,
.xz-grid a .symbol,
.nowaday .imgbox .symbol,
.header-banner .imgbox .symbol,
.cell-hd .thumb,
.gj-10 .tool-icon { display: block; }
.xz-12 a .img-bg .symbol img,
.xz-grid a .symbol img,
.nowaday .imgbox .symbol img,
.header-banner .imgbox .symbol img,
.cell-hd .thumb img,
.gj-10 .tool-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 首页十二宫 */
.xz-12 a .img-bg .symbol { width: 0.78rem; height: 0.78rem; margin: 0 auto; }
/* 星座三列宫格 / 详情页页尾十二宫 */
.xz-grid a .symbol { width: 1.12rem; height: 1.12rem; margin: 0 auto 0.12rem; }
/* 详情页页头大章 */
.nowaday .imgbox .symbol,
.header-banner .imgbox .symbol { width: 1.6rem; height: 1.6rem; margin: 0 auto; padding: 0; }
/* 文章缩略图 */
.cell-hd .thumb { width: 100%; height: 1.5rem; }
/* 工具宫格 */
.gj-10 .tool-icon,
.gj-10 a:nth-child(2n) .tool-icon,
.gj-10 a:nth-child(3n) .tool-icon { width: 0.94rem; height: 0.94rem; margin: 0 auto 0.1rem; }
/* 站点地图特色入口 */
.site-menu a.sm-feat img.sm-ico { display: inline-block; width: 0.34rem; height: 0.34rem; vertical-align: -0.08rem; margin-right: 0.08rem; object-fit: contain; }


/* ===== 星河框架图 · 全站高级感（2026-11-15） ===== */
/* F1 星河底板：固定视口、极低透明度，不抢内容 */
body { z-index: 0; }
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url('../img/frames/frame_starriver.webp') center center / cover no-repeat fixed;
    opacity: 0.20;
}

/* F3 章节头图：中央一缕茶烟 + 金线，压暗保证文字可读 */
.section-hd {
    position: relative;
    background: linear-gradient(180deg, rgba(22,13,7,.52), rgba(22,13,7,.38)),
                url('../img/frames/frame_section.webp') center center / cover no-repeat;
    border-top: 1px solid rgba(231,194,122,.18);
    border-bottom: 1px solid rgba(231,194,122,.18);
    text-shadow: 0 0.02rem 0.14rem rgba(0,0,0,.85);
    letter-spacing: 0.02em;
}

/* F2 小游戏主视觉：竖版空卡框 + 器物图标居中 + 金光 */
.tool-hero {
    position: relative; width: 2.62rem; height: 3.46rem;
    margin: 0.34rem auto 0.28rem; overflow: hidden;
    border-radius: 0.16rem;
    box-shadow: 0 0.06rem 0.26rem rgba(0,0,0,.55), 0 0 0.3rem rgba(231,194,122,.10);
}
.tool-hero .th-frame {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.tool-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at 50% 44%, rgba(231,194,122,.16), transparent 52%);
}
.tool-hero .th-icon {
    position: absolute; z-index: 2; width: 44%; height: auto;
    left: 28%; top: 22%;
    filter: drop-shadow(0 0 0.12rem rgba(231,194,122,.45));
}
.tool-hero .th-cap {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0.24rem;
    text-align: center; font-size: 0.21rem; color: #c9a876; letter-spacing: 0.06em;
}

/* F4 品牌圆章：站点地图头部 */
.site-menu .sm-medal { text-align: center; margin: -0.3rem 0 0.16rem; }
.site-menu .sm-medal img {
    width: 1.28rem; height: 1.28rem; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(231,194,122,.42);
    box-shadow: 0 0 0.24rem rgba(231,194,122,.22);
}

/* 分享悬浮钮：缩成小圆钮，不再压住星座宫格 */
.share-fab {
    width: 0.78rem; height: 0.78rem; padding: 0; border-radius: 50%;
    left: 0.2rem; bottom: 0.9rem;
    justify-content: center; align-items: center;
    font-size: 0.32rem; line-height: 1; overflow: hidden;
    box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,.55);
}


/* ===== 每日运势动态渲染 · 星座玉牌（2026-11-15） ===== */
.df-mini .sym, .df-card-h .sym {
    background: none !important; border: 0 !important; box-shadow: none !important;
    color: inherit !important;
}
.df-mini .sym { display: block; width: 0.62rem; height: 0.62rem; margin: 0 auto 0.06rem; }
.df-mini .sym img, .df-card-h .sym img {
    display: block; width: 100%; height: 100%; object-fit: contain;
}
.df-card-h .sym { display: inline-block; width: 0.62rem; height: 0.62rem; line-height: 1; }


/* ===== 配对 / 星盘 动态渲染 · 星座玉牌 ===== */
.pair-card .pair-top .sym {
    display: inline-block; width: 0.52rem; height: 0.52rem; line-height: 1;
    background: none !important; color: inherit !important;
}
.pair-card .pair-top .sym img { display: block; width: 100%; height: 100%; object-fit: contain; }
.star-row .star-v img.star-ico {
    display: inline-block; width: 0.44rem; height: 0.44rem;
    vertical-align: -0.12rem; margin-right: 0.06rem; object-fit: contain;
}

/* ---------- 2026-11-15 内容修复 · 风物小卡 ---------- */
.xz-qi { color: #d9b06a; font-weight: bold; font-size: 0.3rem; letter-spacing: 0.02rem; }
.xz-qi::before { content: '·'; color: #b8a489; font-weight: normal; margin: 0 0.1rem; }
.xz-notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.08rem; padding: 0.24rem 0.2rem; }
.xz-note {
    background: #241710; border: 1px solid rgba(231,194,122,0.22); border-radius: 0.1rem;
    padding: 0.16rem 0.04rem; text-align: center; font-size: 0.22rem;
    color: #ece0cd; line-height: 1.5;
}
.xz-note span { display: block; color: #d9b06a; font-size: 0.26rem; font-weight: bold; margin-bottom: 0.06rem; }
.detail table { width: 100%; border-collapse: collapse; }
.detail td { padding: 0.12rem 0.1rem; font-size: 0.27rem; color: #ece0cd; border-bottom: 1px solid rgba(255,255,255,0.07); }
.detail td:first-child { width: 1.6rem; color: #b8a489; }
.art-back { text-align: center; margin: 0.3rem 0.2rem; }
.art-back a { color: #d9b06a; font-size: 0.28rem; }
.art-list .cell { padding: 0.24rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.art-list .cell-bd_tit { line-height: 1.6; }
.ai-huaben-note {
    font-size: 0.2rem; color: #8a6f52; text-align: center; line-height: 1.5;
    padding: 0.08rem 0.28rem 0.12rem; background: #1c1009; flex: 0 0 auto;
    border-bottom: 1px dashed rgba(231,194,122,0.16); letter-spacing: 0.01rem;
}
/* 文章折叠：默认收起，点「展开全文」看全 */
.content-fold { max-height: 6.4rem; overflow: hidden; }
.content-fold.expanded { max-height: none; }
.fold-footer { text-align: center; padding: 0.16rem 0 0.06rem; }
.fold-footer button {
    font-size: 0.26rem; color: #d9b06a; background: rgba(217,176,106,0.1);
    border: 1px solid rgba(217,176,106,0.4); border-radius: 0.3rem;
    padding: 0.12rem 0.4rem; cursor: pointer;
}
