:root {
    --blue: #1b7dee;
    --blue-light: #e3effd;
    --blue-banner: #348ef4;
    --orange: #ff914d;
    --orange-light: #ffe4d3;
    --text: #222;
    --text-body: #666;
    --text-sub: #909090;
    --line: #ddd;
    --bg-teal: #e2fbff;
}

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #eefcfe;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

input, button {
    font-family: inherit;
    border: none;
    outline: none;
}

/* =========================================================
   搜索页（严格按 UI 设计图）
   ========================================================= */
.search-page {
    position: relative;
    max-width: 750px;
    height: 100vh;
    min-height: 640px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #aee3eb 0%, #cbeef3 26%, #d5f1f5 34%, #e0f6f9 40%, #e7fafc 58%, #effdff 100%);
    box-shadow: 0 0 24px rgba(43, 179, 198, .08);
}

.search-decor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.search-hero {
    position: relative;
    z-index: 1;
    padding: min(7.6vh, 124px) min(3.2vw, 24px) 0;
    text-align: center;
}

.search-title {
    font-size: min(10.7vw, 80px);
    font-weight: 700;
    color: #fff;
    letter-spacing: min(.8vw, 6px);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(20, 90, 100, .18);
}

.search-card {
    display: flex;
    align-items: center;
    width: min(88.7vw, 665px);
    height: min(13.3vw, 100px);
    margin: min(3.9vh, 63px) auto 0;
    padding: 0 min(5.2vw, 39px) 0 min(2.4vw, 18px);
    background: #fff;
    border: min(.27vw, 2px) solid #4ed8ff;
    border-radius: 999px;
    box-shadow: 0 min(1.9vh, 15px) min(4.3vh, 34px) rgba(50, 195, 255, .30);
}

.search-card input {
    flex: 1;
    min-width: 0;
    font-size: min(3.5vw, 26px);
    color: #222;
    background: transparent;
}

.search-card input::placeholder {
    color: #999;
}

.search-card button {
    flex-shrink: 0;
    height: min(5vh, 40px);
    padding: 0 0 0 min(1.6vw, 12px);
    background: transparent;
    color: #222;
    font-size: min(3.5vw, 26px);
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
}

.search-card button:active {
    background: rgba(50, 195, 255, .14);
}

.search-error {
    margin-top: min(1.7vh, 14px);
    color: #fff;
    font-size: min(3.5vw, 26px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.search-illustration {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(12.9vh, 210px);
}

.search-illustration img {
    display: block;
    width: min(82.7vw, 620px);
    max-width: 82%;
}

.search-footer,
.report-footer,
.detail-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(1.2vw, 9px);
    padding: min(1.7vh, 14px) 0 min(4.9vh, 40px);
    text-align: center;
    font-size: min(3.3vw, 25px);
    color: #3d4040;
}

.search-footer img,
.report-footer img,
.detail-footer img {
    width: min(7.3vw, 55px);
    height: auto;
}

/* =========================================================
   列表页（严格按 UI 设计图）
   ========================================================= */
.report-list-page {
    position: relative;
    max-width: 750px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #aee3eb 0%, #cbeef3 24%, #d5f1f5 30%, #e0f6f9 36%, #e6f9fc 52%, #eefcfe 100%);
    box-shadow: 0 0 24px rgba(43, 179, 198, .08);
}

.report-hero {
    padding: min(7.6vh, 124px) min(3.2vw, 24px) 0;
    text-align: center;
}

.report-hero-title {
    font-size: min(10.7vw, 80px);
    font-weight: 700;
    color: #fff;
    letter-spacing: min(.8vw, 6px);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(20, 90, 100, .18);
}

.report-search-card {
    display: flex;
    align-items: center;
    width: min(88.7vw, 665px);
    height: min(13.3vw, 100px);
    margin: min(3.9vh, 63px) auto 0;
    padding: 0 min(5.2vw, 39px) 0 min(2.4vw, 18px);
    background: #fff;
    border: min(.27vw, 2px) solid #4ed8ff;
    border-radius: 999px;
    box-shadow: 0 min(1.9vh, 15px) min(4.3vh, 34px) rgba(50, 195, 255, .30);
}

.report-search-card input {
    flex: 1;
    min-width: 0;
    font-size: min(3.5vw, 26px);
    color: #222;
    background: transparent;
}

.report-search-card input::placeholder {
    color: #999;
}

.report-search-card button {
    flex-shrink: 0;
    height: min(5vh, 40px);
    padding: 0 0 0 min(1.6vw, 12px);
    background: transparent;
    color: #222;
    font-size: min(3.5vw, 26px);
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
}

.report-hero-error {
    margin-top: min(1.7vh, 14px);
    color: #fff;
    font-size: min(3.5vw, 26px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.report-list-body {
    flex: 1;
    padding: min(8.8vw, 66px) min(5.3vw, 40px) min(4.7vh, 38px);
}

.report-card {
    display: block;
    background: #fff;
    border-radius: min(2.1vw, 16px);
    padding: min(5.5vw, 41px) min(5.5vw, 41px) min(5.3vw, 40px);
    margin-bottom: min(5.5vw, 41px);
    box-shadow: 0 min(.7vh, 6px) min(2.7vh, 22px) rgba(50, 195, 255, .14);
}

.report-card:last-child {
    margin-bottom: 0;
}

.report-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: min(5.6vw, 42px);
}

.report-card-title {
    font-size: min(3.5vw, 26px);
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.report-card-view {
    font-size: min(3vw, 22px);
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 999px;
    padding: min(.5vw, 4px) min(.8vw, 6px);
    line-height: 1;
}

.report-card-row {
    display: flex;
    align-items: center;
    padding: 0 0 min(5.5vw, 41px);
    font-size: min(3vw, 22px);
    color: #222;
    line-height: 1.05;
}

.report-card-row:last-child {
    padding-bottom: 0;
}

.report-card-label {
    color: var(--text-body);
}

.report-card-row em {
    font-style: normal;
    font-weight: 600;
}

.report-card-date {
    margin-left: auto;
    color: var(--text-body);
}

.report-empty {
    text-align: center;
    padding: min(13.3vw, 100px) 0;
    color: var(--text-sub);
    font-size: min(3.5vw, 26px);
}

/* =========================================================
   详情页（严格按 UI 设计图）
   ========================================================= */
.detail-page {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 24px rgba(43, 179, 198, .08);
    padding-bottom: min(5.3vw, 40px);
}

/* 封面 */
.detail-cover-top {
    position: relative;
    height: min(113.3vw, 850px);
    background: linear-gradient(180deg, #aee3eb 0%, #cbeef3 70%, #e2fbff 100%);
    overflow: hidden;
}

.detail-cover-figure {
    position: absolute;
    top: min(20.5vw, 154px);
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.detail-cover-title {
    position: absolute;
    top: min(16.7vw, 125px);
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    font-size: min(10.7vw, 80px);
    font-weight: 700;
    color: #fff;
    letter-spacing: min(.8vw, 6px);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(20, 90, 100, .18);
}

.detail-cover-info {
    position: relative;
    padding: min(18.5vw, 139px) min(5.3vw, 40px) min(10.7vw, 80px);
}

.detail-cover-title2 {
    text-align: center;
    font-size: min(5.3vw, 40px);
    font-weight: 700;
    color: #222;
    line-height: 1.1;
    margin-bottom: min(4.3vw, 32px);
}

.detail-cover-meta {
    display: inline-block;
    vertical-align: top;
    font-size: min(3.3vw, 25px);
    color: #222;
}

.detail-cover-item {
    line-height: min(7.2vw, 54px);
}

.detail-cover-item span {
    color: var(--text-body);
}

.detail-qr {
    float: right;
    text-align: center;
    margin-top: min(2.7vw, 20px);
}

.detail-qr img {
    width: min(18.7vw, 140px);
    height: min(18.7vw, 140px);
    border-radius: min(1.3vw, 10px);
    display: block;
    margin: 0 auto min(1.3vw, 10px);
}

.detail-qr p {
    font-size: min(2.4vw, 18px);
    color: var(--text-sub);
    line-height: 1.5;
}

/* 报告目录 */
.detail-toc {
    padding: min(5.9vw, 44px) min(5.3vw, 40px) min(16vw, 120px);
    border-bottom: min(1.3vw, 10px) solid #f2fbfd;
}

.detail-toc-title {
    font-size: min(3.7vw, 28px);
    font-weight: 700;
    color: #50a0fb;
    line-height: 1.1;
    margin-bottom: min(7vw, 53px);
}

.detail-toc-greet {
    font-size: min(3vw, 22px);
    color: #222;
    font-weight: 600;
    margin-bottom: min(1.3vw, 10px);
}

.detail-toc-desc,
.detail-toc-warn {
    font-size: min(2.7vw, 20px);
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: min(1.3vw, 10px);
}

.detail-toc-item {
    display: flex;
    gap: min(2.7vw, 20px);
    padding: min(8vw, 60px) 0 min(2.7vw, 20px);
}

.detail-toc-num {
    flex-shrink: 0;
    width: min(5.3vw, 40px);
    height: min(5.3vw, 40px);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc6a3, #ff995a);
    color: #fff;
    font-size: min(2.4vw, 18px);
    font-weight: 700;
    line-height: min(5.3vw, 40px);
    text-align: center;
}

.detail-toc-item-title {
    font-size: min(3.3vw, 25px);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: min(.7vw, 5px);
}

.detail-toc-item-desc {
    font-size: min(2.5vw, 19px);
    color: var(--text-sub);
    line-height: 1.7;
}

/* 章节蓝色横幅 */
.sec-banner {
    margin: min(5.3vw, 40px) min(2.7vw, 20px) min(5.7vw, 43px);
    height: min(7.2vw, 54px);
    line-height: min(7.2vw, 54px);
    padding-left: min(10.8vw, 81px);
    background: linear-gradient(180deg, #4a9cf8 0%, #2c88f2 45%, #2281ee 100%);
    color: #fff;
    font-size: min(3.7vw, 28px);
    font-weight: 700;
    border-radius: min(1.3vw, 10px);
    box-shadow: 0 min(.7vh, 4px) min(1.3vh, 10px) rgba(34, 129, 238, .25);
}

.sec6-card {
    display: block;
    width: min(78.7vw, 590px);
    margin: 0 auto min(2.7vw, 20px);
    border-radius: min(1.3vw, 10px);
}

.detail-section {
    padding: 0 min(10.8vw, 81px) min(10.7vw, 80px);
}

.sub-title {
    font-size: min(3.2vw, 24px);
    font-weight: 700;
    color: #222;
    margin: min(5.3vw, 40px) 0 min(2.7vw, 20px);
}

.sub-banner {
    height: min(6.7vw, 50px);
    line-height: min(6.7vw, 50px);
    padding: 0 min(2.7vw, 20px);
    background: linear-gradient(180deg, #4a9cf8, #1b7dee);
    color: #fff;
    font-size: min(3vw, 22px);
    font-weight: 700;
    border-radius: min(1.3vw, 10px);
    display: flex;
    justify-content: space-between;
    margin: min(4vw, 30px) 0 min(2vw, 15px);
}

.para {
    font-size: min(2.7vw, 20px);
    line-height: 1.95;
    color: var(--text-body);
    margin-bottom: min(2vw, 15px);
    text-align: justify;
}

.para b {
    color: #333;
}

.note {
    margin-top: min(2.7vw, 20px);
    font-size: min(2.4vw, 18px);
    line-height: 1.8;
    color: var(--text-sub);
}

.no-data {
    text-align: center;
    color: #a9c2c8;
    font-size: min(3vw, 22px);
    padding: min(4vw, 30px) 0;
}

/* 用户基本信息 */
.user-info-block {
    background: #fff;
    border-radius: min(2.1vw, 16px);
    padding: min(2.7vw, 20px) min(2.7vw, 20px) min(4vw, 30px);
    margin-bottom: min(2.7vw, 20px);
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(2vw, 15px);
}

.user-info-item {
    font-size: min(2.8vw, 21px);
    color: #222;
    padding: min(1vw, 8px) 0;
}

.user-info-item span {
    display: inline-block;
    width: min(13.3vw, 100px);
    color: var(--text-body);
}

.user-info-constitution {
    color: var(--orange);
    font-weight: 700;
}

/* 图片 */
.img-row {
    display: flex;
    gap: min(2vw, 15px);
    margin: min(2.7vw, 20px) 0;
    overflow-x: auto;
}

.img-row figure {
    flex-shrink: 0;
    width: min(24vw, 180px);
    text-align: center;
}

.img-row img {
    width: min(24vw, 180px);
    height: min(24vw, 180px);
    object-fit: cover;
    border-radius: min(1.6vw, 12px);
    border: 1px solid var(--line);
}

.img-row figcaption {
    margin-top: min(.8vw, 6px);
    font-size: min(2.4vw, 18px);
    color: var(--text-sub);
}

/* 表格：蓝表头 + 白底 + 浅灰竖线 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: min(2vw, 15px) 0 min(2.7vw, 20px);
    table-layout: fixed;
}

.data-table th {
    background: linear-gradient(180deg, #348ef4, #1b7dee);
    color: #fff;
    font-size: min(2.4vw, 18px);
    font-weight: 700;
    padding: min(1.7vw, 13px) min(1.3vw, 10px);
    text-align: left;
}

.data-table th:first-child {
    border-radius: min(1.3vw, 10px) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 min(1.3vw, 10px) 0 0;
}

.data-table td {
    font-size: min(2.5vw, 19px);
    color: #333;
    padding: min(1.7vw, 13px) min(1.3vw, 10px);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
    vertical-align: top;
}

.data-table td:first-child {
    border-left: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table th:nth-child(1) { width: 12%; }
.data-table th:nth-child(2) { width: 16%; }
.data-table th:nth-child(3) { width: 18%; }
.data-table th:nth-child(4) { width: 54%; }

/* 脉象 */
.pulse-labels {
    display: flex;
    justify-content: center;
    gap: min(12vw, 90px);
    font-size: min(3vw, 22px);
    color: var(--text-sub);
    margin: min(2vw, 15px) 0;
}

.pulse-result {
    text-align: center;
    padding: min(2vw, 15px) 0;
    margin-bottom: min(1.3vw, 10px);
}

.pulse-result-label {
    font-size: min(2.7vw, 20px);
    color: var(--text-body);
}

.pulse-result-value {
    font-size: min(4vw, 30px);
    font-weight: 700;
    color: #71aef4;
}

.pulse-result-heart {
    font-size: min(2.4vw, 18px);
    color: var(--text-sub);
    margin-left: min(1.3vw, 10px);
}

.constitution-note {
    font-size: min(2.4vw, 18px);
    color: var(--text-sub);
    line-height: 1.8;
    margin: min(2vw, 15px) 0;
}

.chart {
    width: 100%;
    height: min(52vw, 390px);
}

.score-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: min(1.3vw, 10px) min(2vw, 15px);
    margin: min(2vw, 15px) 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    font-size: min(2.4vw, 18px);
    padding: min(.8vw, 6px) min(1vw, 8px);
    background: #f6fdfe;
    border-radius: min(1vw, 8px);
    color: #333;
}

.score-item em {
    font-style: normal;
    color: var(--blue);
    font-weight: 700;
}

.conclusion-tag {
    display: inline-block;
    margin: min(1.3vw, 10px) 0 min(2vw, 15px);
    padding: min(1.1vw, 8px) min(3.3vw, 25px);
    border-radius: 999px;
    background: var(--orange-light);
    color: var(--orange);
    font-size: min(3.7vw, 28px);
    font-weight: 700;
}

/* 健康关注提示 */
.risk-table {
    margin-bottom: min(2.7vw, 20px);
}

.risk-row {
    display: flex;
    justify-content: space-between;
    padding: min(1.9vw, 14px) min(2vw, 15px);
    font-size: min(2.7vw, 20px);
    color: #444;
    border-bottom: 1px solid var(--line);
}

.risk-row:last-child {
    border-bottom: none;
}

.risk-row-head {
    background: #f9f9f9;
    color: var(--text-sub);
    font-weight: 700;
    border-radius: min(1vw, 8px) min(1vw, 8px) 0 0;
}

.risk-result {
    color: var(--orange);
    font-weight: 700;
}

.risk-detail {
    margin-top: min(2vw, 15px);
}

/* 食物 */
.food-list {
    display: grid;
    gap: min(1.3vw, 10px);
    margin-bottom: min(2.7vw, 20px);
}

.food-item {
    display: flex;
    gap: min(1.7vw, 13px);
    padding: min(1.6vw, 12px);
    background: #f6fdfe;
    border-radius: min(1.3vw, 10px);
    font-size: min(2.5vw, 19px);
    line-height: 1.6;
}

.food-cat {
    flex-shrink: 0;
    color: var(--blue);
    font-weight: 700;
}

.food-items {
    color: #333;
}

/* 食谱 */
.recipe-card {
    margin-bottom: min(2.7vw, 20px);
    padding: min(2.7vw, 20px);
    border: 1px solid var(--line);
    border-radius: min(1.6vw, 12px);
    background: #fff;
}

.recipe-name {
    font-size: min(3.2vw, 24px);
    font-weight: 700;
    color: var(--orange);
    margin-bottom: min(1.7vw, 13px);
}

.recipe-card p {
    font-size: min(2.5vw, 19px);
    line-height: 1.8;
    color: #333;
    margin-bottom: min(1vw, 8px);
}

/* 穴位 */
.acupoint-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(1.7vw, 13px);
    margin-bottom: min(2vw, 15px);
}

.acupoint-card {
    padding: min(2.7vw, 20px) min(2vw, 15px);
    border: 1px solid #e8e8e8;
    border-radius: min(1.6vw, 12px);
    background: #fff;
}

.acupoint-name {
    font-size: min(3vw, 22px);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: min(1.3vw, 10px);
}

.acupoint-card p {
    font-size: min(2.4vw, 18px);
    line-height: 1.7;
    color: #444;
    margin-bottom: min(.8vw, 6px);
}

/* 说明列表 */
.note-list {
    padding-left: min(4vw, 30px);
    font-size: min(2.5vw, 19px);
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: min(2.7vw, 20px);
}

/* 详情页脚 */
.detail-footer {
    background: var(--bg-teal);
    margin: min(2.7vw, 20px) 0 0;
    padding: min(2.7vw, 20px) 0 min(4.9vh, 40px);
}

/* =========================================================
   详情页：锚点导航 / 一周三餐 / 穴位弹层
   ========================================================= */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

/* 目录项可点击 */
.detail-toc-item {
    display: flex;
    gap: min(2.7vw, 20px);
    padding: min(8vw, 60px) 0 min(2.7vw, 20px);
    cursor: pointer;
    border-radius: min(1.3vw, 10px);
    transition: background .2s ease;
}

.detail-toc-item:hover {
    background: #f6fbfe;
}

.detail-toc-item-title .toc-arrow {
    font-style: normal;
    margin-left: min(1.3vw, 10px);
    color: #c4d8f2;
    font-weight: 700;
    transition: color .2s ease, margin-left .2s ease;
}

.detail-toc-item:hover .toc-arrow,
.detail-toc-item.active .toc-arrow {
    color: var(--blue);
    margin-left: min(2vw, 15px);
}

/* 副标题行（标题 + 右侧操作按钮） */
.sub-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: min(5.3vw, 40px) 0 min(2.7vw, 20px);
}

.sub-title-row .sub-title {
    margin: 0;
}

.acupoint-view-btn {
    flex-shrink: 0;
    background: var(--blue-light);
    color: var(--blue);
    font-size: min(2.5vw, 19px);
    font-weight: 700;
    border-radius: 999px;
    padding: min(1.1vw, 8px) min(2.4vw, 18px);
    cursor: pointer;
    transition: background .2s ease;
}

.acupoint-view-btn:hover {
    background: #d3e8fd;
}

/* 一周三餐 */
.diet-day-card {
    border: 1px solid var(--line);
    border-radius: min(1.6vw, 12px);
    margin-bottom: min(2.7vw, 20px);
    overflow: hidden;
    background: #fff;
}

.diet-day-title {
    padding: min(1.9vw, 14px) min(2.7vw, 20px);
    background: linear-gradient(180deg, #4a9cf8, #1b7dee);
    color: #fff;
    font-size: min(3vw, 22px);
    font-weight: 700;
}

.diet-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.diet-table th {
    background: #f2f7fd;
    color: #5a7ea6;
    font-size: min(2.4vw, 18px);
    font-weight: 700;
    padding: min(1.3vw, 10px) min(1.3vw, 10px);
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.diet-table td {
    font-size: min(2.4vw, 18px);
    color: #333;
    padding: min(1.5vw, 11px) min(1.3vw, 10px);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
    vertical-align: top;
}

.diet-table td:first-child {
    border-left: none;
}

.diet-table tr:last-child td {
    border-bottom: none;
}

.diet-table .diet-meal-type {
    text-align: center;
    color: var(--blue);
    font-weight: 700;
}

/* 悬浮目录按钮 */
.anchor-fab {
    position: fixed;
    right: min(3.5vw, 26px);
    bottom: min(7.5vh, 60px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: min(.4vw, 3px);
    width: min(12.5vw, 94px);
    height: min(12.5vw, 94px);
    border-radius: 50%;
    background: linear-gradient(180deg, #4a9cf8 0%, #2c88f2 45%, #2281ee 100%);
    color: #fff;
    box-shadow: 0 min(1vh, 8px) min(2.7vh, 20px) rgba(34, 129, 238, .35);
    cursor: pointer;
    transition: transform .2s ease;
}

.anchor-fab:hover {
    transform: scale(1.05);
}

.anchor-fab-icon {
    font-size: min(4.3vw, 32px);
    line-height: 1;
}

.anchor-fab-text {
    font-size: min(2.5vw, 19px);
    font-weight: 700;
    line-height: 1;
}

.anchor-mask,
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 42, 64, .45);
}

.anchor-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 71;
    width: 100%;
    max-width: 750px;
    background: #fff;
    border-radius: min(3.2vw, 24px) min(3.2vw, 24px) 0 0;
    box-shadow: 0 min(1.3vh, 10px) min(5.3vh, 40px) rgba(15, 42, 64, .2);
    padding: min(3.2vw, 24px) min(3.2vw, 24px) min(7.5vh, 60px);
}

.anchor-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: min(2.7vw, 20px);
    border-bottom: 1px solid #eef2f6;
    font-size: min(3.5vw, 26px);
    font-weight: 700;
    color: #222;
}

.anchor-panel-close,
.modal-close {
    width: min(6.7vw, 50px);
    height: min(6.7vw, 50px);
    border-radius: 50%;
    background: #f2f7fd;
    color: #7d97b5;
    font-size: min(4vw, 30px);
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.anchor-panel-close:hover,
.modal-close:hover {
    background: #dcebfc;
    color: var(--blue);
}

.anchor-panel-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: min(1.7vw, 13px);
    padding-top: min(2.7vw, 20px);
}

.anchor-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(1.1vw, 8px);
    padding: min(2.4vw, 18px) min(1.3vw, 10px);
    border-radius: min(1.6vw, 12px);
    background: #f4f9fe;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.anchor-panel-item:hover,
.anchor-panel-item.active {
    border-color: var(--blue);
    background: var(--blue-light);
}

.anchor-panel-num {
    color: var(--blue);
    font-size: min(2.7vw, 20px);
    font-weight: 700;
}

.anchor-panel-title {
    font-size: min(2.5vw, 19px);
    color: #333;
    text-align: center;
    line-height: 1.4;
}

/* 穴位弹层 */
.modal-mask {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: min(4vw, 30px);
}

.modal-card {
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    background: #fff;
    border-radius: min(2.7vw, 20px);
    box-shadow: 0 min(1.3vh, 10px) min(5.3vh, 40px) rgba(15, 42, 64, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: min(2.7vw, 20px) min(2.7vw, 20px) min(2vw, 15px);
    border-bottom: 2px solid #f0f0f0;
    font-size: min(3.7vw, 28px);
    font-weight: 700;
    color: #222;
}

/* 穴位弹层：左右双栏 */
.modal-card.acupoint-modal {
    max-width: 1100px;
    width: min(96vw, 1100px);
    height: min(90vh, 800px);
    max-height: min(90vh, 800px);
}

.acupoint-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

.acupoint-left {
    flex-shrink: 0;
    width: 300px;
    padding: min(2.7vw, 20px);
    border-right: 2px solid #f0f0f0;
    background: #fafafa;
    overflow-y: auto;
}

.acupoint-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: min(2.4vw, 18px);
}

.modal-block-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.modal-block {
    margin-top: 20px;
}

.modal-block:first-child {
    margin-top: 0;
}

.acupoint-explain {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    text-align: justify;
}

.acupoint-explain-blue {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
}

.acupoint-explain-green {
    background: #f0fff0;
    border: 1px solid #90ee90;
}

/* 右侧顶部：穴位切换 + 信息 */
.acupoint-topbox {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.acupoint-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.acupoint-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 13px;
    color: #666;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, background .2s ease;
}

.acupoint-tab:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.acupoint-tab.active {
    color: var(--blue);
    font-weight: 700;
    border-bottom-color: var(--blue);
}

.acupoint-info-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
}

.acupoint-info-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.acupoint-info-label {
    flex-shrink: 0;
    min-width: 48px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.acupoint-info-content {
    flex: 1;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
}

/* 右侧下方：3D 模型区 */
.acupoint-model-wrapper {
    position: relative;
    flex: 1;
    min-height: 260px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.acupoint-model-container {
    position: absolute;
    inset: 0;
    cursor: grab;
}

.acupoint-model-container:active {
    cursor: grabbing;
}

.acupoint-loading,
.acupoint-error {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, .92);
    font-size: 13px;
    color: #666;
}

.acupoint-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #dbe8f7;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: acupoint-spin .8s linear infinite;
}

@keyframes acupoint-spin {
    to {
        transform: rotate(360deg);
    }
}

.acupoint-error-icon {
    font-size: 28px;
}

.acupoint-error-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.acupoint-error-msg {
    font-size: 13px;
    color: #999;
}

.acupoint-retry {
    margin-top: 4px;
    padding: 9px 24px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s ease;
}

.acupoint-retry:hover {
    background: #1468cc;
}

.acupoint-fallback {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 55%;
    max-height: 78%;
    object-fit: contain;
    z-index: 4;
}

.acupoint-tip {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .score-list {
        grid-template-columns: 1fr 1fr;
    }

    .acupoint-grid {
        grid-template-columns: 1fr;
    }

    .anchor-panel-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .modal-card.acupoint-modal {
        width: 96vw;
        height: auto;
        max-height: 92vh;
    }

    .acupoint-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .acupoint-left {
        width: 100%;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        overflow: visible;
    }

    .acupoint-right {
        min-height: 560px;
    }

    .acupoint-model-wrapper {
        min-height: 340px;
    }
}
