:root {
    --primary: #6366f1;
    --bg-light: #f7f8fa;
    --bg-dark: #18181b;
    --text-light: #1f2937;
    --text-dark: #f3f4f6;
    --card-light: #ffffff;
    --card-dark: #242424;
    --link-light: #4f46e5;
    --link-dark: #a5b4fc;
    --bg-color: #f7f8fa;
    --text-color: #1f2937;
    --card-bg: #ffffff;
    --card-border: #6366f1;
    --code-bg: #2d3748;
    --code-color: #e2e8f0;
    --output-bg: #1a202c;
    --table-header: #f7fafc;
    --table-border: #e2e8f0;
    --table-bg: #fff5f5;
    --highlight: #e6fffa;
    --highlight-border: #38b2ac;
    --copy-btn: #6366f1;
    --copy-btn-hover: #5a6fd8;
    --footer-color: #666;
      --bg: #f9fafb;
      --text: #1f2937;
      --card: #ffffff;
      --code-text: #e2e8f0;
}
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}
.navbar-light .navbar-nav .nav-link {
    color: #000;
}
.nav-item.active .nav-link {
    font-weight: bold;
    text-decoration: underline;
}

body{
      margin: 0;
      padding: 70px 16px;
}
 body.dark {
            --bg-color: #1c1d20;
            --text-color: #f3f4f6;
            --card-bg: #2a2b2e;
            --card-border: #7f9cf5;
            --code-bg: #1e1e1e;
            --code-color: #cbd5e0;
            --output-bg: #111;
            --table-header: #2d2d2d;
            --table-border: #444;
            --table-bg: #2c1c1c;
            --highlight: #223;
            --highlight-border: #66c2ba;
            --copy-btn: #7f9cf5;
            --copy-btn-hover: #a5b4fc;
            --footer-color: #aaa;
        }
body.dark .navbar-nav .nav-link {
    color: #f8f9fa !important;
}
body.dark .navbar-brand {
    color: #f8f9fa !important;
}
body.dark footer {
    background-color: #1c1c1e;
    color: #aaa;
    border-top: 1px solid #444;
}
/* 激活项样式更明显 */
.nav-item.active .nav-link {
    font-weight: bold;
    text-decoration: underline;
}

table td, table th {
    vertical-align: top;
    white-space: normal;
}
body.dark {
      background-color: var(--bg-dark);
      color: var(--text-dark);
}
body.dark .color-black {
    color: var(--bg-dark);
}
body.dark table {
      color: var(--link-dark);
      background-color: var(--card-dark);
}

body.dark .table-hover tbody tr:hover {
    color: var(--link-dark);
}

body.dark .card {
      color: var(--link-dark);
      background-color: var(--card-dark);
}

 button:focus{
     outline: none ;
 }
 .command-example {
    background: var(--code-bg);
    color: var(--code-color);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    position: relative;
    margin-bottom: 10px;
}

.command-example::before {
    content: "$ ";
    color: #4fd1c7;
    font-weight: bold;
}

.output-example {
    background: var(--output-bg);
    color: var(--code-color);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.copy-btn {
    background: var(--copy-btn);
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 6px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.copy-btn:hover {
    background: var(--copy-btn-hover);
}


.theme-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    z-index: 99999;
}

/* 悬浮主题按钮：避开右上角汉堡，放到左侧或下移一点 */
@media (max-width: 575.98px){
  .theme-toggle{ top: 55px; } /* 小屏再微调 */
}


.go-top {
    display: none;
    opacity: 0.6;
    z-index: 999999;
    position: fixed;
    bottom: 113px;
    left: 90%;
    margin-left: 40px;
    border: 1px solid #fff;
    width: 50px;
    height: 50px;
    background-color: #666;
    border-radius: 3px;
    cursor: pointer;
}

.go-top:hover {
    opacity: 1;
    filter: alpha(opacity=100);
}

.go-top .arrow {
    position: absolute;
    left: 15px;
    top: 2px;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-bottom-color: #fff;
}

.go-top .stick {
    position: absolute;
    left: 20px;
    top: 15px;
    width: 8px;
    height: 20px;
    display: block;
    background-color: #fff;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}

.table-hover td,
.table-hover th {
  text-align: left; /* 或 center/right 视需求而定 */
  vertical-align: middle;
  padding: 0.75rem; /* 保证表格内边距一致 */
  word-break: break-word; /* 防止内容撑破单元格 */
}

.table-hover {
  table-layout: fixed;
  width: 100%;
}

.text-1-2 {
    font-size: 1.2rem;
}

.text-1-1 {
    font-size: 1.1rem;
}

.text-1 {
    font-size: 1.0rem;
}

.text-0-8 {
    font-size: 0.8rem;
}

.text-0-5 {
    font-size: 0.5rem;
}

input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    color: #468847;
    background-color: #DFF0D8;
    border: 1px solid #D6E9C6;
}

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    color: #B94A48;
    background-color: #F2DEDE;
    border: 1px solid #EED3D7;
}

.parsley-errors-list {
    margin: 2px 0 3px 10px;
    padding: 0 0 0 2px;
    list-style-type: none;
    font-size: 0.9em;
    line-height: 0.9em;
    opacity: 0;
    color: #B94A48;

    transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
    opacity: 1;
}