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

#vt100 a:hover {
  text-decoration:      underline;
}

#vt100 #reconnect {
  position:             absolute;
  z-index:              2;
}

#vt100 #reconnect input {
  padding:              1ex;
  font-weight:          bold;
  font-size:            x-large;
}

#vt100 #cursize {
  background:           #EEEEEE;
  border:               1px solid black;
  font-family:          sans-serif;
  font-size:            large;
  font-weight:          bold;
  padding:              1ex;
  position:             absolute;
  z-index:              2;
}

#vt100 pre {
  margin:               0px;
}

#vt100 pre pre {
  overflow:             hidden;
}

#vt100 #scrollable {
  overflow-x:           hidden;
  overflow-y:           scroll;
  position:             relative;
  padding:              1px;
}

#vt100 #console, #vt100 #alt_console, #vt100 #cursor, #vt100 #lineheight, #vt100 .hidden pre {
  font-family:          "DejaVu Sans Mono", "Everson Mono", FreeMono, "Andale Mono", Consolas, monospace;
}

#vt100 #lineheight {
  position:             absolute;
  visibility:           hidden;
}

#vt100 #cursor {
  position:             absolute;
  left:                 0px;
  top:                  0px;
  overflow:             hidden;
  z-index:              1;
}

#vt100 #cursor.bright {
  background-color:     black;
  color:                white;
}

#vt100 #cursor.dim {
  background-color:     white;
  opacity:              0.2;
  -moz-opacity:         0.2;
  filter:               alpha(opacity=20);
}

#vt100 #cursor.inactive {
  border:               1px solid;
  margin:               -1px;
}

#vt100 #padding {
  visibility:           hidden;
  width:                1px;
  height:               0px;
  overflow:             hidden;
}

#vt100 .hidden {
  position:             absolute;
  top:                  -10000px;
  left:                 -10000px;
  width:                0px;
  height:               0px;
}

#vt100 #menu {
  overflow:             visible;
  position:             absolute;
  z-index:              3;
}

#vt100 #menu .popup {
  background-color:     #EEEEEE;
  border:               1px solid black;
  font-family:          sans-serif;
  position:             absolute;
}

#vt100 #menu .popup ul {
  list-style-type:      none;
  padding:              0px;
  margin:               0px;
  min-width:            10em;
}

#vt100 #menu .popup li {
  padding:              3px 0.5ex 3px 0.5ex;
}

#vt100 #menu .popup li.hover {
  background-color:     #444444;
  color:                white;
}

#vt100 #menu .popup li.disabled {
  color:                #AAAAAA;
}

#vt100 #menu .popup hr {
  margin:               0.5ex 0px 0.5ex 0px;
}

#vt100 #menu img {
  margin-right:         0.5ex;
  width:                1ex;
  height:               1ex;
}

#vt100 #scrollable.inverted {
  color:                #ffffff;
  background-color:     #000000;
}

#vt100 #kbd_button {
  float:                left;
  position:             fixed;
  z-index:              0;
  visibility:           hidden;
}

#vt100 #keyboard {
  z-index:              3;
  position:             absolute;
}

#vt100 #keyboard .box {
  font-family:          sans-serif;
  background-color:     #cccccc;
  padding:              .8em;
  float:                left;
  position:             absolute;
  border-radius:        10px;
  -moz-border-radius:   10px;
  box-shadow:           4px 4px 6px #222222;
  -webkit-box-shadow:   4px 4px 6px #222222;
  /* Don't set the -moz-box-shadow. It doesn't properly scale when CSS
   * transforms are in effect. Once Firefox supports box-shadow, it should
   * automatically do the right thing. Until then, leave shadows disabled
   * for Firefox.
   */
  opacity:              0.85;
  -moz-opacity:         0.85;
  filter:               alpha(opacity=85);
}

#vt100 #keyboard .box * {
  vertical-align:       top;
  display:              inline-block;
}

#vt100 #keyboard b, #vt100 #keyboard i, #vt100 #keyboard s, #vt100 #keyboard u {
  font-style:           normal;
  font-weight:          bold;
  border-radius:        5px;
  -moz-border-radius:   5px;
  background-color:     #555555;
  color:                #eeeeee;
  box-shadow:           2px 2px 3px #222222;
  -webkit-box-shadow:   2px 2px 3px #222222;
  padding:              4px;
  margin:               2px;
  height:               2ex;
  display:              inline-block;
  text-align:           center;
  text-decoration:      none;
}

#vt100 #keyboard b, #vt100 #keyboard s {
  width:                2ex;
}

#vt100 #keyboard u, #vt100 #keyboard s {
  visibility:           hidden;
}

#vt100 #keyboard .shifted {
  display:              none;
}

#vt100 #keyboard .selected {
  color:                #888888;
  background-color:     #eeeeee;
  box-shadow:           0px 0px 3px #222222;
  -webkit-box-shadow:   0px 0px 3px #222222;
  position:             relative;
  top:                  1px;
  left:                 1px;
}

@media print {
  #vt100 .scrollback {
    display:            none;
  }

  #vt100 #reconnect, #vt100 #cursor, #vt100 #menu, #vt100 #kbd_button, #vt100 #keyboard {
    visibility:         hidden;
  }

  #vt100 #scrollable {
    overflow:           hidden;
  }

  #vt100 #console, #vt100 #alt_console {
    overflow:           hidden;
    width:              1000000ex;
  }
}

/* IE cannot properly handle "inherit" properties. So, the monochrome.css/
 * color.css style sheets cannot work, if we define colors in styles.css.
 */

/*
 * Kindle Oasis 10代大字体优化样式 - 增强版
 * 设备规格: 7英寸, 1680x1264, 300 PPI
 * 用户需求: 外影斜+近视，需要超大字体
 * 修复: 彻底禁用光标闪烁
 */

/* 主容器 - 超大字体版本 */
#vt100 {
    font-family: "Courier New", Courier, "Liberation Mono", "DejaVu Sans Mono", monospace !important;
    font-size: 22px !important;           /* 超大字体，适合视力不佳 */
    font-weight: 700 !important;          /* 加粗文字，提高清晰度 */
    line-height: 1.8 !important;          /* 增大行间距，减少视觉拥挤 */
    letter-spacing: 0.5px !important;     /* 字母间距，提高可读性 */
    background-color: #ffffff !important; /* 纯白背景 */
    color: #000000 !important;            /* 纯黑文字，最大对比度 */
    padding: 12px !important;
    word-spacing: 2px !important;         /* 词间距 */
    overflow-y: scroll !important;       /* 强制显示垂直滚动条 */
    -webkit-overflow-scrolling: touch !important;  /* 触摸滚动优化 */
}

/* 禁用所有动画和过渡效果 - E-ink优化 */
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    -webkit-transition: none !important;
}

/* ========== 增强版：彻底禁用光标闪烁 ========== */

/* 所有可能的光标选择器 */
#vt100 #cursor,
#vt100 .cursor,
#cursor,
.cursor,
#vt100 #cursor.bright,
#vt100 #cursor.dim,
#console #cursor,
span#cursor,
span.cursor,
.terminal-cursor,
#vt100 span#cursor {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    /* 彻底禁用所有动画 */
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 0 !important;
    transition: none !important;
    -webkit-transition: none !important;
    /* 固定不透明度 */
    opacity: 1 !important;
    /* 光标尺寸 */
    width: 16px !important;
    height: 28px !important;
}

/* 禁用文本输入光标（caret）*/
#vt100,
#vt100 *,
input,
textarea,
[contenteditable],
[contenteditable="true"] {
    caret-color: transparent !important;
    -webkit-caret-color: transparent !important;
    -moz-caret-color: transparent !important;
}

/* 覆盖所有可能的blink类 */
.blink,
.blinking,
.cursor-blink {
    animation: none !important;
    -webkit-animation: none !important;
    opacity: 1 !important;
}

/* 重新定义所有blink动画为无闪烁 */
@keyframes blink {
    from, to { opacity: 1; }
}
@-webkit-keyframes blink {
    from, to { opacity: 1; }
}
@-moz-keyframes blink {
    from, to { opacity: 1; }
}
@keyframes cursor-blink {
    from, to { opacity: 1; }
}
@-webkit-keyframes cursor-blink {
    from, to { opacity: 1; }
}

/* ========== 以下是原有样式 ========== */

/* ANSI颜色 - 高对比度版本，适合E-ink */
.ansi0  { color: #000000 !important; font-weight: 700 !important; }  /* 黑色 */
.ansi1  { color: #8B0000 !important; font-weight: 700 !important; }  /* 深红 */
.ansi2  { color: #006400 !important; font-weight: 700 !important; }  /* 深绿 */
.ansi3  { color: #8B4500 !important; font-weight: 700 !important; }  /* 深橙 */
.ansi4  { color: #000080 !important; font-weight: 700 !important; }  /* 深蓝 */
.ansi5  { color: #800080 !important; font-weight: 700 !important; }  /* 深紫 */
.ansi6  { color: #008080 !important; font-weight: 700 !important; }  /* 深青 */
.ansi7  { color: #505050 !important; font-weight: 700 !important; }  /* 深灰 */
.ansi8  { color: #404040 !important; font-weight: 700 !important; }  /* 更深灰 */
.ansi9  { color: #B22222 !important; font-weight: 700 !important; }  /* 火砖红 */
.ansi10 { color: #228B22 !important; font-weight: 700 !important; }  /* 森林绿 */
.ansi11 { color: #B8860B !important; font-weight: 700 !important; }  /* 暗金黄 */
.ansi12 { color: #0000CD !important; font-weight: 700 !important; }  /* 中蓝 */
.ansi13 { color: #8B008B !important; font-weight: 700 !important; }  /* 暗洋红 */
.ansi14 { color: #008B8B !important; font-weight: 700 !important; }  /* 暗青 */
.ansi15 { color: #2F4F4F !important; font-weight: 700 !important; }  /* 暗石板灰 */

/* 背景色ANSI - 避免过暗影响可读性 */
.bgAnsi0  { background-color: #f8f8f8 !important; }
.bgAnsi1  { background-color: #ffe0e0 !important; }
.bgAnsi2  { background-color: #e0ffe0 !important; }
.bgAnsi3  { background-color: #fffacd !important; }
.bgAnsi4  { background-color: #e0e0ff !important; }
.bgAnsi5  { background-color: #ffe0ff !important; }
.bgAnsi6  { background-color: #e0ffff !important; }
.bgAnsi7  { background-color: #f0f0f0 !important; }

/* 滚动条 - 超大版本，便于触摸操作 */
::-webkit-scrollbar {
    width: 40px !important;
    height: 40px !important;
}

::-webkit-scrollbar-track {
    background: #ffffff !important;
    border: 4px solid #000000 !important;
}

::-webkit-scrollbar-thumb {
    background: #000000 !important;
    border: 4px solid #ffffff !important;
    border-radius: 0px !important;
    min-height: 80px !important;          /* 最小高度，便于触摸 */
}

::-webkit-scrollbar-thumb:active {
    background: #000000 !important;
}

/* 选中文本样式 - 高对比度 */
::selection {
    background: #d0d0d0 !important;
    color: #000000 !important;
}

::-moz-selection {
    background: #d0d0d0 !important;
    color: #000000 !important;
}

/* 输入框样式 - 大字体 */
input,
textarea,
#vt100 input {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    border: 2px solid #333333 !important;
    padding: 8px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    line-height: 1.6 !important;
}

/* 隐藏不必要的界面元素 */
#reconnect,
#hidpi,
.shellinabox-logo,
#vt100 .logo {
    display: none !important;
}

/* 链接样式 */
a, a:link, a:visited {
    color: #000080 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

a:hover, a:active {
    color: #0000CD !important;
    background-color: #f0f0f0 !important;
}

/* 按钮样式 - 大尺寸，便于触摸 */
button,
input[type="button"],
input[type="submit"] {
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border: 2px solid #333333 !important;
    background-color: #f8f8f8 !important;
    color: #000000 !important;
    min-height: 50px !important;
    min-width: 100px !important;
}

/* 简化页面元素 */
body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
}

/* 提示文本样式 */
.prompt,
.info,
pre {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

/* 错误消息 - 高对比度 */
.error {
    color: #8B0000 !important;
    font-weight: 900 !important;
    font-size: 24px !important;
}

/* 成功消息 */
.success {
    color: #006400 !important;
    font-weight: 900 !important;
    font-size: 24px !important;
}
