@charset "UTF-8";

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
    font-family: 'iconfont';
    /* Project id 549174 */
    src: url('//at.alicdn.com/t/c/font_549174_xz4c4xlwzm.woff2?t=1752722132883') format('woff2'),
        url('//at.alicdn.com/t/c/font_549174_xz4c4xlwzm.woff?t=1752722132883') format('woff'),
        url('//at.alicdn.com/t/c/font_549174_xz4c4xlwzm.ttf?t=1752722132883') format('truetype');
}

/* 基础变量 */
:root {
    --color: #333;
    --bgcolor: #fff;
    --disabled: #f5f5f5;
    --padding: 8px;
    --radius: 12px;
}

/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 0px;
}

body {
    color: var(--color);
    background: var(--bgcolor);
    padding: calc(var(--padding) * 2);
    line-height: 1.5;
    font-family: "iconfont", sans-serif;
}

/* 容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
}

a{
    color: var(--color);
}

/* 标题 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: calc(var(--padding) * 2) 0;
    font-weight: 500;
}

h1:first-child:before {
    content: "\ecb2\a"
}

img{
    border-radius: var(--radius);
}

/* 输入框 */
input,
.input,
textarea,
.textarea,
select {
    padding: var(--padding) calc(var(--padding) * 2);
    border: 1px dashed var(--color);
    border-radius: var(--radius);
    background: var(--bgcolor);
    font-size: 1em;
}

[type=checkbox], [type=radio], [type=range] {
    filter: grayscale(1) contrast(1.5);
}

textarea,
.textarea{
    width: 100%;
    min-height: 38vh;
    max-height: 62vh;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color);
}

/* 按钮 */
button {
    padding: var(--padding) calc(var(--padding) * 2);
    border-radius: var(--radius);
    color: var(--bgcolor);
    background: var(--color);
    border: 1px solid var(--color);
    font-size: 1em;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    opacity: 0.9;
}

button:active {
    opacity: 0.5;
}

button:disabled {
    cursor: not-allowed;
}

li {
    list-style-position: inside;
}

ul li {
    list-style: none;
}

ul li:before {
    content: "\e66c\a";
	display: inline-block;
    transform: rotateZ(-25deg);
}

label{
    display: inline-block;
}

/* 列表 */
.list {
    list-style: none;
    border: 1px solid;
    border-radius: var(--radius);
}

/* 卡片 */
.card {
    color: var(--bgcolor);
    background: var(--color);
    border-radius: var(--radius);
    padding: var(--padding);
}
.card input,.card textarea{
    border: none;
}

/* 项目 */
.item {
    padding: var(--padding);
    border-bottom: 1px dashed;
}

.item:last-child {
    border-bottom: none;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--padding) 0;
    box-shadow: 0 0 0 1px;
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: var(--padding);
    text-align: center;
    border: 1px solid;
}

th {
    font-weight: 500;
    background: var(--disabled);
}

tr:nth-child(even) {
    background: var(--disabled);
}

/* 移除表格内部边框 */
th:first-child,
td:first-child {
    border-left: none;
}

th:last-child,
td:last-child {
    border-right: none;
}

tr:first-child th,tr:first-child td {
    border-top: none;
}

tr:last-child td {
    border-bottom: none;
}

/* 布局 */
.flex {
    display: flex;
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap {
    gap: var(--padding);
}

.center {
    text-align: center;
}

.margin-top{
	margin-top: calc(var(--padding) * 4);
}

.margin-bottom{
	margin-bottom: calc(var(--padding) * 4);
}

.nowrap{
	white-space: nowrap
}

/* 响应式 */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        text-align: center;
    }
}
.zhujie{
    text-decoration: none;
}
.zhujie:after {
    content: "注解\e9a0";
    font-size: 0.62em;
    vertical-align: super;
    background: var(--color);
    color: var(--bgcolor);
    margin-left: 0.5em;
    padding: 2px 4px;
    display: inline-block;
    line-height: 1;
    cursor: pointer;
}
.card .zhujie:after{
    background: var(--bgcolor);
    color: var(--color);
}

/* TTS插件样式 */

button {
    border: none;
    font-family: 'iconfont';
}

.tts-read-btn {
    position: absolute;
    right: 0;
    top: 50%;
    padding: 0.2em 0.2em 0.2em 0.4em;
    box-shadow: none;
    transition: opacity 0.3s;
    border-radius: 12px 0 0 12px;
}

.tts-reading .tts-read-btn {
    background-color: limegreen;
    opacity: 1;
}


/* 底部控制栏 */
.tts-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--bgcolor);
    background: var(--color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: none;
    /* 默认隐藏 */
    z-index: 9;
}

.tts-player.show {
    display: flex;
    justify-content: center;
}

.tts-player-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tts-player-btn {
    background: none !important;
    box-shadow: none !important;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0 10px;
    color: var(--bgcolor);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

#tts-close {
    color: red;
}

.tts-progress {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    max-width: 20%;
    margin: 10px;
}

.tts-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: limegreen;
    width: 0;
    border-radius: 2px;
}

/* 竖屏样式 */
@media (orientation: portrait) {
    .tts-progress {
        width: 100%;
        max-width: 100%;
        position: absolute;
        top: -2px;
        margin: 0;
        border-radius: 0;
    }
}

.tts-time {
    font-size: 12px;
    padding: 0 10px;
    font-family: monospace;
}

/* 设置面板 */

.tts-settings {
    position: absolute;
    color: var(--bgcolor);
    background: var(--color);
    padding: 20px;
    border-radius: 8px;
    display: none;
    bottom: 55px;
    transform: translateX(-50%);
    margin-left: 20px;
}

.tts-settings.center {
    right: auto;
    left: 50%;
    margin-left: 0;
}

.tts-settings::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color);
}

.tts-settings h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.tts-setting-item {
    margin: 1em 0;
    white-space: nowrap;
}

.tts-setting-item label {
    font-size: 14px;
}

.tts-regenerate-btn {
    color: var(--color);
    background: var(--bgcolor);
    box-shadow: 2px 2px var(--bgcolor);
}

#tts-save {
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--color);
    background: var(--bgcolor);
}

#tts-rate-value {
    display: inline-block;
    margin-left: 10px;
    min-width: 45px;
}

.tts-auto-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.tts-auto-play input[type="checkbox"] {
    margin: 0;
}

/* Loading样式 */
.tts-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bgcolor);
    background: var(--color);
    padding: 1em;
    box-shadow: 2px 2px var(--color);
    display: none;
    z-index: 2000;
    text-align: center;
    white-space: nowrap;
}

.tts-loading.show {
    display: block;
}