/* ==========================================================================
   NovoBuilder —— 主工具页样式（index.html）

   结构：基础 → 外壳布局 → 顶栏与标签 → 右键菜单 → 表单与按钮 →
         表格 → 统计 → 弹层 → 质粒图谱与序列配色（原样保留）

   配色全部来自 tokens.css（与后台同一套品牌色）。
   图谱、序列、feature、氨基酸与酶切位点的颜色在文件末尾单独成段，
   从旧样式逐字保留，不做任何改动。
   ========================================================================== */

@import url("tokens.css");

/* ---------------------------------------------------------------- 基础 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 基础 reset：旧样式依赖 layui 的全局归零，这里补回来，
   cart.js / NovoPlas.js 生成的 div / p / td 都依赖它 */
blockquote,
body,
button,
dd,
div,
dl,
dt,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
li,
ol,
p,
pre,
td,
th,
textarea,
ul {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

body {
    display: flex;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--ink);
}

li {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    display: inline-block;
    border: none;
    vertical-align: middle;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

a:active,
a:hover {
    outline: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: 0;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

::selection {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border: 2px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
    background-clip: padding-box;
}

/* ---------------------------------------------------------------- 骨架 */

.flex {
    display: flex;
}

.flex1 {
    flex: 1;
}

.flex3 {
    flex: 3;
}

.flex5 {
    flex: 5;
}

.flex7 {
    flex: 7;
}

.flex9 {
    flex: 9;
}

.column {
    flex-direction: column;
}

.base {
    background-color: var(--surface);
}

/* 左侧图标栏 */

#main-left-menu {
    width: 60px;
    flex: 0 0 60px;
    margin-right: 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: none;
}

#main-left-menu>div {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 72px;
    margin: 0 6px 6px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

#main-left-menu>div:hover {
    background: var(--brand-soft);
}

#main-left-menu>div[id$="-collection"] {
    cursor: pointer;
}

#main-left-menu .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

/* 左栏图标的内联 stroke 是品红；logo 用的是渐变 fill，不受影响 */
#main-left-menu svg[stroke="#cc0066"],
#main-left-menu svg[stroke="#CC0066"] {
    stroke: var(--brand);
}

/* 载体 / 元件面板 */

#panel-box {
    display: none;
    width: 260px;
    margin-right: 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
}

.panel-head {
    padding: 16px 15px 0;
}

.panel-body {
    padding: 0 15px;
}

#panel-box ol.tree {
    padding: 0;
}

#panel-box li {
    position: relative;
    margin-left: -15px;
    list-style: none;
}

#panel-box li.backbone,
#panel-box li.part {
    margin-left: -1px !important;
    display: block;
    text-decoration: none;
}

#panel-box li.backbone:before,
#panel-box li.part:before {
    content: "🗎";
    color: var(--brand);
    margin-right: 10px;
    font-size: 17px;
    font-weight: 700;
}

#panel-box li input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1em;
    height: 1em;
    margin-left: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

#panel-box li input+ol {
    display: block;
    height: 1em;
    margin: -0.938em 0 0 -44px;
}

#panel-box li input+ol>li {
    height: 0;
    overflow: hidden;
    margin-left: -14px !important;
    padding-left: 1px;
}

#panel-box li label {
    display: block;
    cursor: pointer;
}

#panel-box li label:before {
    content: "📁";
    margin-right: 5px;
}

#panel-box li input:checked+ol {
    height: auto;
    margin: -1.25em 0 0 -44px;
    padding: 1.563em 0 0 65px;
}

#panel-box li input:checked+ol>li {
    height: auto;
    margin: 0 0 0.125em;
    font-size: 90%;
}

#panel-box li input:checked+ol>li:last-child {
    margin: 0 0 0.063em;
}

#main-content {
    width: calc(100% - 60px);
    height: 100%;
    min-width: 0;
}

/* 左栏菜单选中态 */
.active {
    background-color: var(--brand-soft);
    cursor: pointer;
}

.nav {
    align-items: center;
}

/* ---------------------------------------------------------------- 顶栏 */

.cw-icon {
    position: absolute;
    right: 24px;
    top: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

#show-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--brand) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background-color 0.15s ease;
}

#show-cart:hover {
    background: var(--brand-soft);
}

/* 购物车图标的内联 fill 是品红，收敛到品牌色 */
.cw-icon svg *[fill="#cc0066"],
.cw-icon svg *[fill="#CC0066"] {
    fill: var(--brand);
}

.ci-count {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background-color: var(--brand) !important;
    color: #fff;
    font-size: 11px !important;
    line-height: 16px !important;
    font-weight: 600;
    text-align: center;
    vertical-align: middle !important;
}

/* ---------------------------------------------------------------- 标签页 */

#tabs-navigator {
    display: flex;
    align-items: flex-end;
    height: 44px;
    margin: 0;
    padding: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

#tabs-navigator li {
    list-style: none;
    width: fit-content;
    font-size: 13px;
    color: var(--ink-muted);
}

#tabs-navigator svg *[fill="#cc0066"],
#tabs-navigator svg *[fill="#CC0066"] {
    fill: var(--ink-subtle);
}

#tabs-navigator li.layui-this,
#tabs-navigator li.layui-this span {
    color: var(--brand);
    font-weight: 600;
}

#tabs-navigator li.layui-this svg *[fill="#cc0066"],
#tabs-navigator li.layui-this svg *[fill="#CC0066"] {
    fill: var(--brand);
}

.layui-tab {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: left;
}

.layui-tab .layui-tab-title {
    position: relative;
    left: 0;
    height: 44px;
    white-space: nowrap;
    font-size: 0;
    border-bottom: none;
}

.layui-tab .layui-tab-title:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    border-bottom: 1px solid var(--line);
    pointer-events: none;
}

.layui-tab .layui-tab-title li {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    height: 44px;
    padding: 0 16px;
    margin: 0;
    font-size: 13px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    color: var(--ink-muted);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.layui-tab .layui-tab-title li:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.layui-tab-title .layui-this {
    background: var(--surface);
    color: var(--brand);
    font-weight: 600;
}

.layui-tab-title .layui-this:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--brand);
    z-index: 9;
    pointer-events: none;
}

.layui-tab-item {
    display: none;
}

.layui-tab-item.layui-show {
    display: block;
}

.layui-tab-content {
    position: relative;
    /* 横向不留白：标签页与面板内容都从同一条左边缘开始 */
    padding: 15px 0;
}

.layui-tab-title li .layui-tab-close {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    margin-left: 6px;
    text-align: center;
    font-size: 16px;
    color: var(--ink-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.layui-tab-title li .layui-tab-close::before {
    content: "\00d7";
}

.layui-tab-title li .layui-tab-close:hover {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.layui-tab-title>li:nth-child(1) .layui-tab-close {
    display: none;
}

/* ---------------------------------------------------------------- 右键菜单 */

.novopro-context-menu {
    position: fixed;
    z-index: 10000;
    padding: 4px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.hide-cus-context-menu {
    display: none;
}

.novopro-context-menu li {
    min-width: 140px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    user-select: none;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.novopro-context-menu li span {
    display: block;
    margin: 0;
    padding: 6px 10px;
    border-bottom: 1px solid var(--line-soft);
}

.novopro-context-menu li:last-child span {
    border-bottom: none;
}

.novopro-context-menu li:hover {
    cursor: pointer;
    background-color: var(--brand-soft);
    color: var(--brand);
}

.novopro-context-menu li:active {
    background-color: var(--brand-tint);
}

/* ---------------------------------------------------------------- 序列输入 */

.seq-box {
    width: 100%;
    height: 100px;
    padding: 10px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.seq-box:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

.upld-btn {
    margin-top: 16px;
    padding: 9px 24px;
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.upld-btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.pos-hint {
    position: absolute;
    padding: 10px;
}

/* ---------------------------------------------------------------- 表格 */

/* 购物车表格：保持原有样式，未纳入本次视觉统一 */

td {
    padding-left: 20px;
    line-height: 25px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-collapse: collapse;
}

th {
    height: 49px;
    vertical-align: middle;
    text-align: center;
    color: #707070;
    font: bold 12px 'PT Sans', Arial, Verdana, sans-serif;
    background: #ddd3;
    border-bottom: 1px solid #bdd1e9;
    border-right: 1px solid #e0e0e0;
}

.cart-items {
    width: 100%;
    margin-top: 5px;
    padding: 0;
}

.cart-items th {
    background-color: #f5f5f5;
    text-align: left;
    min-height: 30px;
}

.cart-items td {
    padding: 2px 20px 2px 5px;
}

/* 购物车内的链接沿用原来的深灰，不被全站品牌蓝覆盖 */
.cart-items a {
    color: #333;
    text-decoration: none;
}

.cart-item-catno {
    font-size: 12px;
    color: #333;
}

.cart-item-url,
.cart-item-delete {
    text-decoration: none;
    font-size: 13px;
    color: #005aab;
}

.cart-action-row {
    margin-top: 20px;
    overflow: hidden;
    margin-bottom: 5px;
}

.cart-item-quantity {
    width: 25px;
}

.text-right {
    text-align: right;
}

select.plsmid-target {
    min-height: 36px;
    margin: 0 5px;
    border-radius: 5px;
    border-color: #ccc;
    padding: 0 10px;
}

/* ---------------------------------------------------------------- 按钮（购物车，保持原样） */

.btn-block {
    display: block;
    border-radius: 4px;
    user-select: none;
    border: 1px solid #ffa200;
    margin-right: 20px;
    width: auto;
    min-width: 120px;
    padding: 0 14px;
    white-space: nowrap;
    text-align: center;
    height: 40px;
    line-height: 38px;
    background: #fc0;
    color: #000;
    font-weight: 700;
    float: right;
}

.btn-default {
    background: #428bca;
    border: 1px solid #357ebd;
    color: #fff;
}

.btn-cart-cloning {
    display: block;
    border: 0;
    background: #08c;
    padding: 0 15px;
    font-size: 14px;
    color: #fff;
    line-height: 34px;
    border-radius: 5px;
    margin: 15px auto;
    cursor: pointer;
}

/* ---------------------------------------------------------------- 质粒列表 */

.plasmid-table-container {
    max-height: 90vh;
    margin: 20px auto;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-ui);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.plasmid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.plasmid-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.plasmid-actions button:hover {
    background: var(--brand-soft);
    border-color: var(--brand-tint);
    color: var(--brand);
    transform: none;
}

.plasmid-actions button#delete-selected-plasmids {
    background: var(--surface);
    color: var(--danger);
    border-color: var(--danger-line);
}

.plasmid-actions button#delete-selected-plasmids:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.plasmid-table {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
}

.plasmid-table thead {
    background: var(--surface-2);
}

.plasmid-table th {
    position: relative;
    padding: 10px 14px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-muted);
}

.plasmid-table th input[type="checkbox"] {
    margin-right: 8px;
}

.plasmid-table td {
    padding: 9px 14px;
    text-align: left;
    font-size: 13px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
}

.plasmid-table tbody tr {
    transition: background-color 0.15s ease;
}

.plasmid-table tbody tr:hover {
    background-color: var(--brand-soft);
}

.plasmid-table tbody tr:last-child td {
    border-bottom: none;
}

.plasmid-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}

.plasmid-table td a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
}

.plasmid-table td a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.plasmid-table td button {
    padding: 4px 10px;
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--brand-tint);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.plasmid-table td button:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------------------------------------------------------------- 统计 */

.stats {
    margin-top: 20px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.stats h3 {
    margin-top: 0;
    color: var(--ink);
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.stat-item {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ---------------------------------------------------------------- 标签输入 */

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    width: 98%;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tag-input-container:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.6rem;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-tint);
    border-radius: 999px;
    font-size: 12.5px;
}

.tag-remove-btn {
    margin-left: 4px;
    background: none;
    border: none;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

.tag-remove-btn:hover {
    color: var(--danger);
}

.tag-input {
    flex: 1;
    min-width: 120px;
    padding: 0.4rem;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--ink);
    background: transparent;
}

/* ---------------------------------------------------------------- 窄屏 */

@media (max-width: 900px) {
    #panel-box {
        position: absolute;
        left: 60px;
        top: 0;
        bottom: 0;
        z-index: 20;
        box-shadow: var(--shadow-md);
    }

    .layui-tab-content {
        padding: 12px;
    }

    .cw-icon {
        right: 12px;
        top: 8px;
    }
}

/* ==========================================================================
   质粒图谱 / 序列 / feature / 氨基酸 / 酶切位点配色
   —— 以下规则逐字保留自旧样式，不做任何改动
   ========================================================================== */

.map-container, .seq-container {    padding: 0 15px;
    flex-direction: column;}

.map-container svg {    max-height: calc(100vh - 170px);}

.slice-box {    background: #fff;
    cursor: text;
    max-height: calc(100vh - 140px);
    overflow-y: scroll;
    overflow-x: hidden;
    user-select: none;}

.seq-box {    width: 100%;
    height: 100px;
    resize: none;
    font-size: 12px;
    font-family: consolas;}

/* plasmid table end */ /* slice view */ .slices-container {    margin: 20px 0;}

.slice-svg {    display: block;
    cursor: crosshair;
    margin-bottom: 20px;
    user-select: none;}

.enz {    font-size: 12px;
    font-family: Consolas, Monaco, monospace, "Courier New";
    font-weight: 700;
    letter-spacing: normal;}

.seq {    font-size: 14px;
    font-family: Consolas, Monaco, monospace, "Courier New";
    letter-spacing: 0.8px;}

.seq.forward {    fill: #000;}

.seq.reverse {    fill: #666;}

.position {    font-family: Consolas, Monaco, monospace, "Courier New";
    font-size: 12px;
    fill: #888;}

.featpath {    fill-opacity: 0.7;
    stroke-width: 1px;
    cursor: pointer;}

rect.orf {    cursor: pointer}

.feat {    font-family: Consolas, Monaco, monospace, "Courier New";
    font-size: 11px;
    font-weight: bold;
    fill: #333;}

.enzyme-label {    font-family: Consolas, Monaco, monospace, "Courier New";
    font-size: 12px;
    font-weight: 700;
    fill: #d32f2f;}

.featpath:hover {    fill-opacity: 1;}

.amino-acid {    font-size: 12px;
    font-family: Consolas, Monaco, monospace, "Courier New";
    letter-spacing: 0.8px;
    fill: #333;}

.amino-acid.acidic {    fill: red;}

.amino-acid.basic {    fill: blue;}

.amino-acid.nonpolar {    fill: green;}

.amino-acid.amides {    fill: orange;}

.amino-acid.aromatic {    fill: purple;}

.enz-mask {    fill: #009688;
    fill-opacity: 0.2;
    stroke-width: 0;
    display: none;}

.enz-cutline {    fill: none;
    stroke: #f44336;
    stroke-width: 1;
    display: none;}

.base-line {    stroke: #ff4444;
    stroke-width: 2;
    pointer-events: none;}

/* slice view end */ /* circle map */ .mapsvg {    user-select: none;}

.mapsvg circle {    stroke: #cfd9db;
    fill: none;
    stroke-width: 5}

.mapsvg .plasmid-name {    font-weight: 700;
    user-select: none;
    fill: #666;}

.mapsvg .seq-len {    font-size: 12px;
    font-weight: 400;
    fill: #999;}

.mapsvg .t-l {    stroke-width: 2;
    stroke: black;}

.mapsvg .t-s {    stroke-width: 1;
    stroke: grey;}

.mapsvg .t-n {    font-size: 8pt;
    user-select: none;
    fill: #999;
    alignment-baseline: middle;}

.mapsvg .user {    stroke: #CC0066;
    fill: #CC0066;}

.mapsvg path, .slice-svg path {    stroke: #a6acb3;
    fill: #dadada;
    cursor: pointer;
    fill-opacity: 1;}

svg .C_region {    stroke: #7CAF9A;
    /* 比#8CBCA6 稍深的绿色系描边，强化边界 */
    fill: #8CBCA6;
    fill-opacity: 1;}

svg .CDS {    stroke: #be7baa;
    fill: #D38BBD;
    fill-opacity: 1;}

svg .exon {    stroke: #6B8BA0;
    /* 比#81AABC 稍深的蓝色系描边 */
    fill: #81AABC;
    fill-opacity: 1;}

svg .gene {    stroke: #9F89B8;
    /* 与CDS 描边保持一致，强化基因关联 */
    fill: #AF99C8;
    fill-opacity: 1;
    /* 与CDS保持一致 */}

svg .mRNA {    stroke: #268B7B;
    /* 比#299d8f 稍深的绿色系描边 */
    fill: #299d8f;
    fill-opacity: 1;}

svg .operon {    stroke: #C79E7A;
    /* 比#DFAD92 稍深的棕色系描边 */
    fill: #DFAD92;
    fill-opacity: 1;
    /* 浅棕色，文字清晰 */}

svg .rep_origin {    stroke: #D6B55A;
    /* 比#e7c66b 稍深的黄色系描边 */
    fill: #e7c66b;
    fill-opacity: 1;
    /* 亮黄色，黑色文字最清晰 */}

svg .precursor_RNA {    stroke: #6FB08A;
    /* 比#80cba4 稍深的绿色系描边 */
    fill: #80cba4;
    fill-opacity: 1;
    /* 调整为浅绿，提升对比度 */}

svg .prim_transcript {    stroke: #7AAE6B;
    /* 比#8ab07c 稍深的橄榄绿系描边 */
    fill: #8ab07c;
    fill-opacity: 1;
    /* 浅橄榄绿，文字可读 */}

svg .primer_bind {    stroke: #E69251;
    /* 比#f3a361 稍深的橙色系描边 */
    fill: #f3a361;
    fill-opacity: 1;
    /* 橙色系，对比度良好 */}

svg .promoter {    stroke: #1f989b;
    fill: #69c6c6;
    fill-opacity: 1;}

svg .RBS {    stroke: #8BAE6D;
    /* 比#9CB87D 稍深的绿色系描边 */
    fill: #9CB87D;
    fill-opacity: 1;}

svg .rRNA {    stroke: #D9E093;
    /* 比#e9f4a3 稍深的黄绿色系描边 */
    fill: #e9f4a3;
    fill-opacity: 1;
    /* 浅黄绿色，提升文字可读性 */}

svg .tRNA {    stroke: #EACB73;
    /* 比#fbda83 稍深的黄色系描边 */
    fill: #fbda83;
    fill-opacity: 1;}

svg .unsure {    stroke: #9c6bf5;
    fill: #b28bf8;
    fill-opacity: 1;}

svg .selected-region, svg .selection-rect {    stroke: rgba(255, 68, 68, 0.2);
    fill: #ff4444;
    cursor: pointer;
    fill-opacity: 0.3;
    pointer-events: none;}

path.orf-fwd {    fill: #333;
    stroke: #ffd281;
    stroke-width: 3px;
    stroke-opacity: 0.6;}

rect.orf-fwd {    fill: #ffd281;}

path.orf-rev {    fill: #333;
    stroke: #c3f991;
    stroke-width: 4px;
    stroke-opacity: 0.6;}

rect.orf-rev {    fill: #c3f991;}

