#dpb-reading-progress {
display: none;
}
@media (max-width: 768px) {
#dpb-reading-progress {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: rgba(255, 255, 255, 0.15);
z-index: 99999;
pointer-events: none;
}
.dpb-progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.85) 0%,
rgba(255, 255, 255, 0.95) 50%,
rgba(255, 255, 255, 0.85) 100%
);
box-shadow: 
0 0 8px rgba(255, 255, 255, 0.4),
0 0 2px rgba(255, 255, 255, 0.6);
transition: width 0.1s ease-out;
border-radius: 0 2px 2px 0;
}
} #toc-container {
background: #F2F8F7;
border-left: 6px solid #02746A;
padding: 30px 40px;
border-radius: 6px;
max-width: 880px;
margin: 40px auto 40px 0; 
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
width: 100%; 
}
#toc-container .toc-title {
color: #014F48;
margin-top: 0;
margin-bottom: 14px;
font-size: 24px;
font-weight: 800;
display: flex;
align-items: center;
gap: 10px;
} .dpb-toc-toggle,
.dpb-toc-counter,
#toc-container .toc-lead {
display: none;
} .toc-label-mobile { display: none; }
@media (max-width: 768px) {
.toc-label-desktop { display: none; }
.toc-label-mobile { display: inline; }
}
#toc-container .toc-desc {
margin-bottom: 20px;
color: #355957;
font-size: 15px;
}
#toc-list {
list-style: none;
padding: 0;
margin: 0;
}
#toc-list li {
margin: 8px 0;
font-size: 15px;
line-height: 1.6;
}
#toc-list a {
color: #02746A;
text-decoration: none;
transition: 0.15s;
}
#toc-list a:hover {
color: #014F48;
text-decoration: underline;
background-color: transparent !important; 
}
#toc-list .toc-sub {
margin-left: 22px;
font-size: 14.5px;
margin-top: 4px;
margin-bottom: 4px;
} @media (max-width: 768px) {
#toc-container {
margin: 20px 0;
padding: 0;
border: none;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
background: #02746A;
} #toc-container .toc-title {
display: flex;
align-items: center;
gap: 11px;
min-height: 62px;
padding: 0 14px;
margin: 0; transform: none !important;
background: #02746A;
color: #FFFFFF;
font-size: 1rem;
font-weight: 700;
text-transform: none;
letter-spacing: normal;
cursor: pointer;
border: none;
-webkit-tap-highlight-color: transparent;
}
#toc-container .toc-title:focus-visible {
outline: 3px solid #fff;
outline-offset: -5px;
} #toc-container .toc-title::before { content: none; }
#toc-container .toc-lead {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
flex: 0 0 auto;
background: rgba(255,255,255,0.15);
border-radius: 10px;
}
#toc-container .toc-lead svg {
width: 19px;
height: 19px;
stroke: #FFFFFF;
display: block;
}
#toc-container .toc-title .toc-title-text {
flex: 0 1 auto;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
}
#toc-container .dpb-toc-counter {
flex: 0 0 auto;
font-size: 0.8125rem;
font-weight: 600;
color: rgba(255,255,255,0.74);
background: none;
padding: 0;
margin: 0;
white-space: nowrap;
}
#toc-container .dpb-toc-counter::before {
content: '·';
margin-right: 7px;
color: rgba(255,255,255,0.5);
}
@media (max-width: 360px) {
#toc-container .dpb-toc-counter { display: none; }
} .dpb-toc-toggle {
display: flex !important;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
margin-left: auto;
background: rgba(255,255,255,0.22);
border-radius: 50%;
cursor: pointer;
flex: 0 0 auto;
transition: background 0.25s ease;
}
.dpb-toc-toggle:active {
background: rgba(255,255,255,0.3);
}
.dpb-toc-toggle svg {
width: 18px;
height: 18px;
stroke: #FFFFFF;
stroke-width: 2.5;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} #toc-container.collapsed .dpb-toc-toggle svg {
transform: rotate(0deg);
}
#toc-container:not(.collapsed) .dpb-toc-toggle svg {
transform: rotate(180deg);
} #toc-container .toc-desc {
display: none;
} #toc-list {
overflow: hidden;
background: #FFFFFF;
margin: 0;
max-height: var(--dpb-toc-h, 9999px);
opacity: 1;
padding: 16px 20px;
transition:
max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.25s ease,
padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
#toc-list, .dpb-toc-toggle svg { transition: none !important; }
} #toc-container.collapsed #toc-list {
max-height: 0;
opacity: 0;
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
} #toc-list {
counter-reset: toc-counter;
}
#toc-list li {
counter-increment: toc-counter;
margin: 0;
border-bottom: 1px solid rgba(0,0,0,0.06);
list-style: none;
}
#toc-list li:last-child {
border-bottom: none;
}
#toc-list a {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 10px;
font-size: 0.9375rem;
font-weight: 500;
color: #333;
text-decoration: none;
transition: color 0.2s ease; text-align: left;
} #toc-list a::before {
content: counter(toc-counter, decimal-leading-zero);
display: flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
background: rgba(2, 116, 106, 0.1);
color: #02746A;
font-size: 0.75rem;
font-weight: 700;
border-radius: 8px;
flex-shrink: 0;
}
#toc-list a:hover,
#toc-list a:active {
color: #02746A;
}
#toc-list a:hover::before,
#toc-list a:active::before {
background: #02746A;
color: #FFFFFF;
} .dpb-toc-counter {
display: inline-flex;
align-items: center;
padding: 3px 9px;
background: rgba(255, 255, 255, 0.2);
border-radius: 12px;
font-size: 0.6875rem;
font-weight: 500;
color: rgba(255, 255, 255, 0.9);
white-space: nowrap;
margin-left: auto;
margin-right: 2px;
letter-spacing: 0.02em;
}
}