/* 共通設定 */
body {
  font-family: "Futura", Helvetica, sans-serif;
  /*font-size: small;*/
  -webkit-text-size-adjust: 100%;
}

div.IndexMainFooterSpace {
  margin: 0 0 250px 0;
}

#wrapper {
  /* スマホの横スクロール禁止 */
  width: 100%;
  overflow-x: hidden !important;
}

p {
  margin: 0;
}

p.top {
  margin: 7px 0 0 0;
}

h2.title {
  margin: 0 0 5px 0;
}

fieldset.calloption {
  padding: 0 0 2px 0;
}

/* iosでinput入力時にアップさせない */
input,
textarea,
select {
  font-size: 16px;
}

#girltable tr td:nth-of-type(1) {
  color: #ff0000;
}

#girltable tr td:nth-of-type(1) {
  color: #ff0000;
}

#girltable tr td:nth-of-type(2) {
  color: #0000ff;
}

.returnlink {
  font-size: smaller;
}

#girltable tr:nth-child(odd) {
  background-color: #fcdcec;
}

#girltable tr:nth-child(even) {
  background-color: #fcf2f7;
}

#girltable tr {
  text-align: center;
}

#girltable th,
td {
  padding: 3px;
}

/* 呼びかけ一覧tableのスタイルここまで */

/* 呼びかけの画像保存リンクのスタイル */
#canvasImgLink {
  font-size: larger;
  background-color: #fdd8ea;
  border: 2px solid #fc6ab1;
  border-radius: 5px;
  margin: 0px 10px;
  padding: 2px 2px;
  color: #333;
  text-decoration: none;
}


div.caution {
  font-size: small;
  text-align: center;
}

.at {
  white-space: nowrap;
}

.returnlink {
  font-size: smaller;
}

/* ヘッダバナーの設定 */
img.headerBanner {
  max-width: 750px;
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 2px 0px 0px 0px;
  border-style: none;
}

span.headerExpl2 {
  font-size: xx-small;
}

/* 検索オプションの設定 */
/*箇条書き設定*/
dl.searchOption {
  margin: 0;
  padding: 0;
}


dl.searchOption dt {
  position: relative;
  padding-left: 1.2em;

}


dl.searchOption dt:not(:first-child) {
  margin: 0.3em 0 0 0;
}


dl.searchOption dt::before {
  position: absolute;
  content: "★";
  color: deeppink;
  top: 0%;
  left: 0%;
  font-size: 1em;
}

dl.searchOption dd.selectBoxSet {
  margin-left: 0.0em;
}

dl.searchOption dd:not(.selectBoxSet) {
  margin-left: 1em;
}


dl.searchOption div.storychkbox {
  display: inline-block;
  vertical-align: top;
  font-size: smaller;
}


/*選択boxイメージの設定*/
.selectBoxImg {
  width: 76px;
  height: 77px;
  padding: 0px;
  margin: 0px;
}

/*AND, ORボックスのスタイル*/
div.selectBoxSet {
  display: inline-flex;
  flex-wrap: nowrap;
  text-align: left;
}

.selectBox {
  border: 1px #000000 solid;
  width: 80px;
  padding: 0px;
  margin: 0px;
  text-align: center;
  font-size: 10px;
}


/*ダイアログ関係*/
/*ダイアログにリンクするテキストのスタイル*/
.topdialoglink span {
  color: rgb(41, 41, 243);
  font-weight: bold;
  vertical-align: -1px;
  margin-left: 2px;
}

.topdialoglink i {
  color: rgb(41, 41, 243);
  vertical-align: middle;
}

.dialoglink span {
  color: deeppink;
  font-weight: bold;
  vertical-align: -1px;
  margin-left: 2px;
}

.dialoglink i {
  color: deeppink;
  vertical-align: middle;
}

/*タイトルバーの色*/
.topTitleClass .ui-dialog-titlebar {
  color: white;
  background: rgb(30, 30, 180);
}

.topTitleClass .ui-button {
  color: white;
  background: rgb(30, 30, 180);
}

.useTitleClass .ui-dialog-titlebar {
  color: white;
  background: deeppink;
}

/*ダイアログボタンの色*/
.useTitleClass .ui-button {
  color: white;
  background: deeppink;
}

/*ダイアログ表示時のバックグラウンドの色など*/
.ui-widget-overlay {
  background: #000000;
  opacity: .7;
  filter: Alpha(Opacity=70);
}

/*ダイアログ設定ここまで*/

/*属性選択簡易表示用*/
#at_result {
  background: #fff9fc;
}

h2.at_resultHeader {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin: 0px 0px 0px 2px;
}

#at_reset {
  font-size: smaller;
  -webkit-appearance: none;
  border-radius: 5px;
  border: 1px solid rgb(70, 70, 70);
}

#at_reset:active {
  color: gray;
}


/*属性選択簡易表示のオーバーレイ用要素用ここまで*/


/* 検索ボタンを強調 */
.searchbtn {
  font-size: larger;
  background-color: #fdd8ea;
  border: 2px solid #fc6ab1;
  border-radius: 7px;
  margin: 7px 0px;
  -webkit-appearance: none;
}

.searchbtn:active {
  background-color: #fc6ab1;
}

.resetbtn {
  background-color: #fdebf4;
  border: 2px solid #88797f;
  border-radius: 5px;
  -webkit-appearance: none;
}

.resetbtn:active {
  background-color: #88797f;
}

.storytable td {
  padding: 1px 30px 1px 0px;
}

/* 魔法少女選択のdivの高さを合わせる。 */
div.magicalgirl {
  display: inline-flex;
  flex-wrap: wrap;
  margin-left: 4px;
}

/* 魔法少女選択のboxの仕様 */
label.girlbox {
  width: 68px;
  padding: 0px;
  margin: 0px;
  font-size: 12px;
  line-height: 13px;
  text-align: center;
  border: solid 1px #000000;
  position: relative;
}

/*girlboxの区切りに隙間を作る*/
label.leftm {
  margin-left: 1px;
  width: 67px;
}

/* girlboxにひらがなのツールチップをつける */
label.girlbox::after {
  font-size: x-small;
  content: attr(data-kana);
  display: block;
  padding: 2px;
  background: #fdc6d2;
  color: #000000;
  border-radius: 5px;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  width: auto;
  word-break: keep-all;
  /*ツールチップ内でスペース以外改行しない*/
  line-height: 110%;
  z-index: 9999;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

label.girlbox:hover::after {
  opacity: 1;
  pointer-events: none;
}

/* 魔法少女選択のboxの背景色 */
/*うめ先生デザインキャラの背景色 */
.umeColor {
  background-color: #ffffdb;
}

/*ヒストリアカラー*/
.hisColor {
  background-color: #f8a2ea;
}

/*うめ先生デザイン別バージョンキャラ*/
.umeOtherColor {
  background-color: #dbdbff;
}

/*PMHQ*/
.PMHQColor {
  background-color: #ffdbed;
}

/*PMHQ別バージョンキャラ*/
.PMHQotherColor {
  background-color: #dbffff;
}

/*その他の魔法少女*/
.otherColor {
  background-color: #ffffdb;
}

/*その他の魔法少女その2*/
.otherColor2 {
  background-color: #eddbff;
}

/*その他の魔法少女バージョン違い*/
.otherotherColor {
  background-color: #ffeddb;
}

/*外伝キャラ*/
.gaidenColor {
  background-color: #dbffdb;
}

/*コラボキャラ*/
.collaboColor {
  background-color: #ffe5ab;
}

/*モブキャラ*/
.mobColor {
  background-color: #f8f8f8;
}

/*未実装キャラ*/
.unimpColor {
  background-color: #cacaca;
}

/*呼びかけ用カラー*/
/*ユニオンカラー*/
.unionColor {
  background-color: #ffc8d4;
}

/*時女一族カラー*/
.tokimeColor {
  background-color: #a7eca7;
}

/*ミスドカラー*/
.misdColor {
  background-color: #f59292;
}

/*ネギウスカラー*/
.negiusColor {
  background-color: #bcb7ff;
}

/*里見家カラー*/
.satomiColor {
  background-color: #fbfcb6;
}

/*ピュエラケアカラー*/
.pueraColor {
  background-color: #f8f5e3;
}

/*水名カラー*/
.mizunaColor {
  background-color: #faacf6;
}

/*中央カラー*/
.chuoColor {
  background-color: #98faed;
}

/*魔法少女選択の名前フォントの大きさ*/
#arumado {
  font-size: 10px;
}

#masara {
  font-size: 10px;
}

#feri {
  font-size: 10px;
}

#fate_t {
  font-size: 10px;
}

#hitagi {
  font-size: 10px;
}

#ash {
  font-size: 10px;
}

/*魔法少女選択の名前フォントの大きさ終わり*/


/* 検索オプションの箇条書きのpadding */
li {
  padding: 5px 0 0 0;
}

ul {
  /*  list-style: none; */
  margin: 0 0 0 0;
  padding: 0 0 0 1em;
  text-indent: -0.5em
}

.story .netabare .star {
  vertical-align: middle;
  text-align: center;
}

.mgreset {
  margin: 3px 0 3px 0;
  -webkit-appearance: none;
  background-color: #e6e6e6;
  border: 1px solid gray;
  border-radius: 5px;
}

/*絞り込みワード入力のinputの幅をスマホのときは長くPCの時は短く*/
.ndownword {
  width: 90%;
  background-color: #ffebef;
  display: block;
  margin: 2px 0 2px 0;
  border-radius: 5px;
  border: 1px solid rgb(70, 70, 70);

}

@media only screen and (min-width : 640px) {
  .ndownword {
    width: 50%;
    background-color: #ffebef;
    display: block;
    margin-top: 2px;
  }
}

.ndownReset {
  margin: 3px 0 3px 0;
  pointer-events: none;
  color: gray;
  -webkit-appearance: none;
  border: 1px solid gray;
  border-radius: 5px;

}

.ndownReset_caution {
  margin: 4px 0 4px 1px;
  pointer-events: auto;
  background-color: rgb(235, 21, 135);
  color: white;
  font-weight: bolder;
  border: 1;
  -webkit-appearance: none;
}

.nodata {
  text-decoration: line-through;
}

fieldset {
  display: inline;
}


/* キーワードテキストリセットボタンのCSS */
#keyreset {
  font-size: smaller;
  display: block;
  margin-top: 2px;
  -webkit-appearance: none;
  border-radius: 3px;
  border: 1px solid rgb(70, 70, 70);
}

#keyreset:active {
  background-color: rgb(145, 145, 145);
}


/* 魔法少女アイコンクリック時挙動。チェック前挙動 */
.magicalgirl input[type="checkbox"] {
  -webkit-appearance: none;
  /* 元々のチェックボックスを非表示 */
  position: relative;
  /* checked時画像のためのrelative */
  display: inline-block;
  width: 60px;
  height: 60px;
  background-size: contain;
  border: none;
  filter: brightness(50%);
}

/* チェック時の挙動 */
.magicalgirl input[type="checkbox"]:checked:before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  display: inline-block;
  width: 60px;
  height: 60px;
  /* background-size: 51px 51px; */
  background-size: contain;
}

.magicalgirl input[type="checkbox"]:checked {
  filter: brightness(90%);
  filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.8));
  will-change: filter;
  /* iOSでフィルタ実行が遅くなる対策。リソースを使う */
}

:focus {
  outline: none;
}

/************** 以下結果表示のスタイル ****************/
/* 結果の～話を表示する列のスタイルを指定 */
td.resultStory {
  font-size: 13px;
  line-height: 13px;
}

/* 結果のストーリーのリンクのスタイル */
.resultStory a {
  text-decoration: none;
  border: none;
  outline: none;
  color: black;
}

/* 結果の魔法少女を表示する列のスタイルを指定
  画像にマウスオーバーしないとき魔法少女名を出さない。 */
.resultGirl span {
  display: none;
}

/* マウスオーバーした時の魔法少女名を上に重ねるためzを10に設定 */
.resultGirl img {
  z-index: 10;
}

/* 画像にマウスオーバーしたとき魔法少女名を出す。 */
.resultGirl img:hover+span {
  position: absolute;
  top: -20px;
  left: 35px;
  display: block;
  background: #fdc6d2ee;
  padding: 0px 2px 0px 2px;
  border: 1px solid;
  border-radius: 5px;
  font-size: small;
  color: #333;
  z-index: 20;
  white-space: nowrap;
  height: auto;

}

/*結果の画像とキャラ名を切り替えるチェックボックスのスタイル*/
div.cngChk {
  position: fixed;
  /*位置を画面に固定する*/
  right: 5%;
  /* 右からの位置指定 */
  top: 0px;
  /*上からの位置指定 */

}

body.result {
  position: absolute;
}

.girlName {
  margin: 0px 5px 0px 0px;
  /*height:42px; */
  /* 結果のテキスト表示を画像の高さに合わせる */
  /*line-height: 42px;*/
}

/* 結果のネタバレを表示する列のスタイルを指定 */
td.resultNetabare {
  font-size: 13px;
  line-height: 13px;
}

/* スペシャルの発生時期のフォントを指定 */
span.specialTime {
  font-size: 12px;
  line-height: 12px;
  color: #ff5ba3;
}

/* 結果出力時の画像基本設定 */
.result img {
  width: 40px;
  height: 40px;
  margin: 1px;
  vertical-align: middle;
}

/* 結果一覧のテーブル設定 */
.result table {
  text-align: left;
  border-collapse: collapse;
  border: solid 2px black;
}

.result tr td {
  border-collapse: collapse;
  border: solid 1px black;
  margin: 2px;
  /* line-height:100%; */
}

.result th {
  background: #3f3f3f;
  color: #ffffff;
  border: solid 1px white;
  text-align: center;
}

tr.メイン【第1部】 {
  background: #877099;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.メイン【第2部】 {
  background: #877099;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.scene0 {
  background: #02a54c;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.ピュエラ・ヒストリア {
  background: #ffff7a;
  color: rgb(80, 80, 80);
  font-weight: bold;
  text-align: center;
}

tr.アナザー【第1部】 {
  background: #4c9482;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.アナザー【第2部】 {
  background: #4c9482;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.魔法少女 {
  background: #FF647E;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.衣装 {
  background: #FF7B44;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.ミラーズ {
  background: #B837DF;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.イベント {
  background: #ffff7a;
  color: rgb(80, 80, 80);
  font-weight: bold;
  text-align: center;
}

tr.バトルミュージアム {
  background: hsl(128, 91%, 87%);
  color: rgb(80, 80, 80);
  font-weight: bold;
  text-align: center;
}

tr.スペシャル {
  background: #ff60af;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.メモリア {
  background: #fa2991;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.シール図鑑 {

  background: #f8f892;
  color: rgb(80, 80, 80);
  font-weight: bold;
  text-align: center;
}

tr.第1部EDムービー {
  background: #060A1F;
  color: white;
  font-weight: bold;
  text-align: center;
}

tr.第2部EDムービー {
  background: #060A1F;
  color: white;
  font-weight: bold;
  text-align: center;
}


tr.アニメ【1st】 {
  background: #ff7fbf;
  color: rgb(59, 59, 59);
  font-weight: bold;
  text-align: center;
}

tr.アニメ【2nd】 {
  background: #ff7fbf;
  color: rgb(59, 59, 59);
  font-weight: bold;
  text-align: center;
}

tr.アニメ【Final】 {
  background: #ff7fbf;
  color: rgb(59, 59, 59);
  font-weight: bold;
  text-align: center;
}

/* スペースなど調整用 */
.mgr-10 {
  margin-right: 10px;
}

/* call.html用*************************/
/* ページトップへ戻るボタン */
#pagetop {
  position: fixed;
  bottom: 100px;
  right: 10px;
  padding: 10px 20px;
  color: #f85ab6;
  text-align: center;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}

/* ページボトムへ進むボタン */
#pagebtm {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 10px 20px;
  color: #f85ab6;
  text-align: center;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}

/* ページの真ん中へ進むボタン */
#pagemdl {
  position: fixed;
  bottom: 55px;
  right: 10px;
  padding: 10px 20px;
  color: #f85ab6;
  text-align: center;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}

/* call.html用終わり*************************/

/* index.html用*************************/
/* ページトップへ戻る固定アイコン */
#sty_pagetop {
  position: fixed;
  bottom: 200px;
  right: 2px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;

}

/* ページの魔法少女トップへ進む固定アイコン*/
#sty_pagecharatop {
  position: fixed;
  bottom: 160px;
  right: 0px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;
}

/* 検索する固定アイコン */
#sty_seach {
  position: fixed;
  bottom: 120px;
  right: 0px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;
}

/* ページの魔法少女エンドへ進む固定アイコン */
#sty_pagecharaend {
  position: fixed;
  bottom: 80px;
  right: 0px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;
}

/* ページの結果テーブルへ進む固定アイコン*/
#sty_pagetbl {
  position: fixed;
  bottom: 40px;
  right: 0px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;
}

/* ページボトムへ進む固定アイコン */
#sty_pagebtm {
  position: fixed;
  bottom: 5px;
  right: 0px;
  padding: 14px 10px;
  color: #f85ab6;
  text-align: center;
  font-size: smaller;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
  z-index: 99999;
}

/* index.html用終わり*************************/

/*検索結果表示*/
H3.seachResult {
  padding: 0px 0px 0px 0px;
  margin: 10px 0px 0px 0px;
}

/*ガチャ用設定*/
#gachaCnt {
  color: red;
  font-size: 16px;
  font-weight: bolder;
}

/*表の限定表示の背景色*/
table.gachatable {
  border: 0px;
  border-spacing: 3px;
}

table.gachatable td {
  border: 0px;
}

td.gachaTblBak {
  background-color: rgb(255, 208, 216);
}

td.gachaTblBlank {
  background-color: gray;
}

td.gachasum {
  background-color: rgb(194, 213, 250);
}

td.gachaNormal {
  background-color: rgb(255, 255, 217);
}

tr.gachaboder td {
  padding: 7px;
  background-color: rgb(221, 221, 221);
}

.shadow-3 {
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -1px rgba(0, 0, 0, .05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -1px rgba(0, 0, 0, .05) !important
}

.forminput {
  border-radius: 5px;
  border: 1px solid rgb(70, 70, 70);
  margin-top: 1px;
}

/* --- 身高图表专属样式 --- */
#heightChartContainer {
    position: relative;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    margin-top: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
#chartControlPanel {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
}
#chartControlPanel .note {
    font-size: smaller;
    color: #555;
    margin-left: 10px;
}
#heightChartWrapper {
    display: flex;
    width: 100%;
    height: 700px; /* 增加高度 */
    overflow-x: auto;
    position: relative;
}
#yAxisContainer {
    position: relative; /* 设定为定位上下文，这是必须的 */
    flex-shrink: 0;
    width: 50px; /* 给予一个固定的宽度 */
    padding: 0;
    font-size: 12px;
    color: #333;
    background-color: #f0f0f0;
}
#heightChartArea {
   flex-grow: 1;
    position: relative;
    /* 修正：添加两种背景图像，分别用于1cm和5cm的刻度线 */
    background-image:
        linear-gradient(to top, #e0e0e0 1px, transparent 1px), /* 1cm 刻度的细线 */
/* 用下面这行代码替换上面那一行 */
linear-gradient(to top, #35001f 2px, transparent 2px); /* 5cm 刻度的加重标记线 */    /* 修正：设置正确的background-size以生成水平重复的线条 */
    background-size:
        100% 1.66667%, /* 100% / (60cm / 1cm) = 1.66667% */
        100% 8.33333%; /* 100% / (60cm / 5cm) = 8.33333% */
}
#chartGridAndPoints {
    display: grid;
    height: 100%;
    width: 100%;
    position: relative;
}
.grid-column {
    border-right: 1px dashed #ccc;
}
#xAxisContainer {
    display: grid;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    width: 100%;
}
.x-axis-label {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    border-right: 1px solid #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chart-point {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translateX(-50%); /* 水平居中 */
    cursor: pointer;
    transition: transform 0.2s;
}
.chart-point:hover {
    transform: translateX(-50%) scale(1.2);
    z-index: 100;
}
.chart-point img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #f85ab6;
    background-color: rgba(255, 255, 255, 0.7);
}
.chart-point::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px; /* 从图标中心开始 */
    width: 100vw;
    height: 1px;
    background-image: linear-gradient(to left, #f85ab6, #f85ab6 5px, transparent 5px, transparent 10px);
    background-size: 10px 1px;
    z-index: -1;
}
#chart-scroll-area {
    flex-grow: 1;
    overflow-x: auto; /* 使其可以水平滚动 */
    display: flex;
    flex-direction: column;
}

#heightChartArea {
    flex-grow: 1; /* 让图表区域填满剩余垂直空间 */
}
/* --- 为身高图表的条形图模式新增 --- */
.height-bar {
  align-self: end; /* 将条形图与网格单元底部对齐 */
  width: 75%; /* 条形图相对于其列的宽度 */
  margin: 0 auto; /* 在列内居中条形图 */
  background-color: #f85ab6; /* 使用一个主题颜色作为条形图的颜色 */
  border-top: 2px solid #c03a8a;
  border-radius: 4px 4px 0 0; /* 圆角顶部 */
  transition: height 0.5s ease-in-out; /* 为高度变化添加动画效果 */
  position: relative; /* 用于添加数据标签 */
}

.height-bar::after {
  content: attr(data-label); /* 显示来自 data-label 属性的值 */
  position: absolute;
  top: -20px; /* 将标签定位在条形图的上方 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #333;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 4px;
  border-radius: 3px;
}
/* --- 自定义图表提示框样式 --- */
.chart-tooltip {
  position: fixed; /* 固定定位，确保在最上层 */
  display: none; /* 默认隐藏 */
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line; /* 允许 \n 换行 */
  z-index: 10000;
  pointer-events: none; /* 穿透鼠标事件，不影响下层元素 */
  transition: opacity 0.2s;
  text-align: left;
}
/* --- 为新增的“保存身高图”按钮添加样式 --- */
#saveHeightChartBtn {
  font-size: larger;
  background-color: #fdd8ea;
  border: 2px solid #fc6ab1;
  border-radius: 5px;
  margin: 0px 10px;
  padding: 2px 2px;
  color: #333;
  cursor: pointer;
  -webkit-appearance: none; /* 移除移动端默认样式 */
}

#saveHeightChartBtn:active {
  background-color: #fc6ab1; /* 添加点击效果 */
}