.cabinet {
  position: fixed;
  transition: all cubic-bezier(.19, 1, .22, 1);
  transition-duration: .4s;
}

.cabinet-drawer {
  position: absolute;
	top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.cabinet-drawer.drawer-open {
	z-index: 3000;
}
.cabinet-drawer.drawer-close {
	z-index: 0;
}

.cabinet-knob {
  position: absolute;
  background-color: #DDC135;
  border: 1px solid #aaa;
}

.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
  background-color: #FFF3B6;
  border: none;
  z-index: 10;
}

.cabinet-box {
  position: absolute;
	top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;

  background-color: red;
  padding: 10px;
  height: 600px;
}

.cabinet-right {
  top: 150px;
  right: 0px;
  height: 550px
}

.cabinet-top {
  top: 0px;
  right: 0px;
  width: 500px;
}


.cabinet-bottom {
  bottom: 0px;
  left: 50px;
  width: 300px;
}

.cabinet-left .cabinet-knob,
.cabinet-right .cabinet-knob {
  width: 30px;
  height: 100px;
}

.cabinet-left .cabinet-knob p,
.cabinet-right .cabinet-knob p {
	transform: rotate(-90deg);
	transform-origin: left bottom;
  position: absolute;
  bottom: 0px;
  left: 20px;
	right: -50px;
  font-size: 15px;

  color: #f8f9fa;
  height: auto;
}

.cabinet-left .cabinet-drawer:nth-child(1) .cabinet-knob,
.cabinet-right .cabinet-drawer:nth-child(1) .cabinet-knob {
  top: 0px;
}
.cabinet-left .cabinet-drawer:nth-child(2) .cabinet-knob,
.cabinet-right .cabinet-drawer:nth-child(2) .cabinet-knob {
  top: calc(100px - 10px);
}
.cabinet-left .cabinet-drawer:nth-child(3) .cabinet-knob,
.cabinet-right .cabinet-drawer:nth-child(3) .cabinet-knob {
  top: calc(200px - 20px);
}
.cabinet-left .cabinet-drawer:nth-child(4) .cabinet-knob,
.cabinet-right .cabinet-drawer:nth-child(4) .cabinet-knob {
  top: calc(300px - 30px);
}
.cabinet-left .cabinet-drawer:nth-child(5) .cabinet-knob,
.cabinet-right .cabinet-drawer:nth-child(5) .cabinet-knob {
  top: calc(400px - 40px);
}

.cabinet-left .cabinet-knob {
	right: -50px;
	border-radius: 0px 10px 10px 0px;
	box-shadow: 2px 2px 5px 0px #aaa;
}

.cabinet-left.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
	box-shadow: 5px 5px 10px 0px #aaa;
}

.cabinet-right .cabinet-knob {
	left: -30px;
	border-radius: 10px 0px 0px 10px;
	box-shadow: -2px 2px 5px 0px #aaa;


    color: #f8f9fa;
}

.cabinet-right.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
	box-shadow: -5px 5px 10px 0px #aaa;
}

.cabinet-top .cabinet-knob,
.cabinet-bottom .cabinet-knob {
  width: 100px;
  height: 50px;
  text-align: right;
}

.cabinet-top .cabinet-knob p,
.cabinet-bottom .cabinet-knob p {
  margin-top: 5px;
  margin-right: 5px;
  overflow: hidden;
}

.cabinet-top .cabinet-drawer:nth-child(1) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(1) .cabinet-knob {
  right: 0px;
}
.cabinet-top .cabinet-drawer:nth-child(2) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(2) .cabinet-knob {
  right: calc(100px - 10px);
}
.cabinet-top .cabinet-drawer:nth-child(3) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(3) .cabinet-knob {
  right: calc(200px - 20px);
}
.cabinet-top .cabinet-drawer:nth-child(4) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(4) .cabinet-knob {
  right: calc(300px - 30px);
}
.cabinet-top .cabinet-drawer:nth-child(5) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(5) .cabinet-knob {
  right: calc(400px - 40px);
}


.cabinet-top .cabinet-knob {
	bottom: -50px;
	border-radius: 0px 0px 10px 10px;
	box-shadow: 0px 2px 5px 0px #aaa;
}

.cabinet-top.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
	box-shadow: 0px 5px 10px 0px #aaa;
}

.cabinet-bottom .cabinet-knob {
	top: -50px;
	border-radius: 10px 10px 0px 0px;
	box-shadow: 0px -2px 5px 0px #aaa;
}

.cabinet-bottom.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
	box-shadow: 0px -5px 10px 0px #aaa;
}

.ipa-section {
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ipa-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ipa-section-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #f8f9fa;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.ipa-subsection {
    margin-bottom: 25px;

}

.ipa-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #f8f9fa;
    font-weight: 500;
}
/* 音标卡片样式 */

.ipa-grid {
    width: 85%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: auto;
}

.ipa-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1px 1px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e1e4e8;
    position: relative;
    overflow: hidden;

}

.ipa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.ipa-card:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ipa-card:hover::before {
    transform: scaleX(1);
}

.ipa-card:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ipa-symbol {
    line-height: 60px;
    font-size:55px;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 500;
}

.ipa-example {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

.lesson-symbol {
    line-height: 60px;
    font-size:28px;
    color: #2c3e50;
    font-weight: 500;
}

.lesson-example {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.fa-check-circle {
    font-size: 32px;
    color: green;
}

.fa-dim-circle {
    color: lightgray;
}

.disabled-click {
  pointer-events: none;
  
  cursor: not-allowed; /* Optional: shows a restricted cursor */
}