h1{
  color: #38bdf8; 
  font-size: 36px; 
  text-align: center; 
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6); 
  margin-bottom: 1rem;
}
h2{
  color: #60a5fa; 
  font-size: 28px; 
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #39457c;
  padding-bottom: 6px;
}
.description{
  background:#182037; 
  border-radius:10px; 
  border-top-left-radius: 0px; 
  border-top-right-radius: 0px; 
  border:1px solid #2b355e; 
  color:#d0d6f5; 
  text-align:center; 
  padding:35px
}
.project-doc i{

}
.project-doc p {
    margin: 0.5em 0;
    line-height: 1.4;
}
.project-doc b {
    font-weight: bold;
}
.project-doc i {
    font-style: italic;
}
.eval-demo, .editor-demo{
  /*border: 1px rgba(255, 255, 255, 0.46) solid;*/
  border-radius: 16px;
  background-color: #1b1f2f69;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}
.eval-input-demo{
  height:30px;
}
.eval-input-demo input{
  width: 100%;
  height:100%;
  margin:0px;
  padding:0px;
  text-align: center;
}
.eval-demo-content, .editor-demo-content{
  margin-top:15px;
  margin-bottom:15px;
  width:95%;
  height:95%;
}
.json-wrapper {
  width:100%;
  margin: 30px 0;
  height:auto;
}

.json-box {
  background: #0f1629;
  color: #e8ecff;
  padding: 30px 35px;
  border-radius: 10px;
  border: 1px solid #39457c;
  height:100%;

  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
}
.editor-demo-area{
 
}

.flow-container {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: inter, sans-serif;
}

.flow-box {
  background: #182037;
  color: #d0d6f5;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid #2b355e;
  font-size: 16px;
  text-align: center;
  min-width: 160px;
}

.flow-box.inner {
  background: #202945;
  border-color: #364170;
}

.flow-arrow {
  font-size: 32px;
  color: #a6b2e0;
  user-select: none;
}

.flow-env {
  background: #121a33;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #2b355e;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  min-width: 220px;
}

.flow-env-title {
  font-weight: bold;
  color: #e6ebff;
  text-align: center;
  font-size: 18px;
}

.flow-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.flow-icon-large {
  width: 80px;
  height: 80px;
  margin: 5px 0 10px 0;
}

.code-block, .code-block-visual {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  margin: 2rem 0;
  font-family: "JetBrains Mono", monospace;
}

.code-header {
  background: #040a29;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #e2e2e2;
  border-bottom: 1px solid #1e293b;
}

.code-title {
  font-weight: 600;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.explain-block {
  background: linear-gradient(180deg, #050e36, #050e36cc);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.explain-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.explain-icon{
    font-size:35px
}

.explain-title {
  font-weight: 600;
}

.visual-caption{
  width: 100%;
  margin-top:3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explain-content p {
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.explain-content p:last-child {
  margin-bottom: 0;
}

.formula-visual {
  display:flex; justify-content: center; align-items: center;
  margin: 1.5rem 0;
  font-family: monospace;
  gap: 0.8rem;
}

.formula-call {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: inline-block;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.fn-name {
  color: #38bdf8;
}

.arg {
  color: #a7f3d0;
}

.formula-arrow {
  margin: 0.6rem 0;
  color: #64748b;
  font-size: 0.75rem;
}

.members-box {
  background: #020617;
  border: 1px dashed #38bdf8;
  border-radius: 10px;
  padding: 0.8rem;
  max-width: 320px;
}

.members-title {
  font-size: 0.75rem;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.member {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

.member-type {
  color: #facc15;
  margin-right: 0.3rem;
}

.member-value {
  color: #e5e7eb;
}

.formula-result-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
  font-family: monospace;
}

.process-arrow {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.process-label {
  display: block;
  color: #38bdf8;
  margin-bottom: 0.2rem;
}

.process-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  color: #e5e7eb;
  min-width: 180px;
}

.result-box {
  background: linear-gradient(180deg, #021d2c, #020617);
  border: 1px solid #10a8b9;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: center;
  min-width: 120px;
}

.result-title {
  font-size: 0.7rem;
  color: 00#6ee1e7;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.result-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #a7dff3;
}

.formula-evaluation-visual, .formula-parser-visual{
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
}
.formula-evaluation-visual .explain-header, .formula-parser-visual .explain-header{
  padding:7px;
}
.formula-evaluation-visual .explain-header .explain-icon, .formula-parser-visual .explain-header .explain-icon{
  font-size: 45px;
}

.builtin-formulas-visual {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.code-block-visual pre code {
  tab-size: 4;
  -moz-tab-size: 4;
  -o-tab-size: 4;
}

.builtin-title {
  font-size: 0.85rem;
  color: #38bdf8;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formula-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.4rem 0.8rem;
}

.formula-list li {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: #a7d3f3;
  display:flex;
  flex-direction: row;
  cursor:pointer;
}

.formula-list li:hover {
  background: #0b1649;
}

.formula-list li.choosed {
  background: #0b1f75;
  border-color: #38bdf8;
}

.formula-list li.choosed:hover {
  background: #102a9e;
}
.fn {
  flex:0.9;
  color: #a7d3f3;
}
.fn-eye{
  flex:0.1;
}


@media only screen and (max-width:790px){
  .formula-visual{
      flex-direction: column;
  }
  .formula-result-visual{
      flex-direction: column;
  }
  .process-arrow span.arrow {
      display: inline-block;
      transform: rotate(90deg);
  }
  .formula-result-visual .members-box{
      display: none;
  }
}

.formula-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: monospace;
}

.formula-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-box {
  background: #0b1649;
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  min-width: 280px;
  max-width: 400px;
}

.step-title {
  font-weight: bold;
  color: #a7d3f3;
  display: block;
  margin-bottom: 0.4rem;
}

.step-code {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.step-arrow {
  font-size: 1.2rem;
  color: #38bdf8;
  margin: 0.3rem 0;
}

.evaluation-types {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: monospace;
}

.eval-type {
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  margin:1.25rem;
}

.eval-title {
  font-weight: bold;
  display: block;
  margin-bottom: 0.2rem;
}

.more-info-content {
  margin-top: 0.3rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background-color: rgba(45, 55, 86, 0.37);
  padding: 0.4rem;
}

.example {
  border-bottom: 1px solid white;
  text-align: center;
  padding-bottom: 0.2rem;
  margin-bottom: 0.3rem;
  color: #cbd5e1;
}

.explanation {
  text-align: center;
  font-size: 0.85rem;
  color: #e0e7ff;
}



@media only screen and (max-width:600px){
  .formula-visual{
    gap: 0.6rem;
  }
  .step-box {
    min-width: 200px;
  }
}

.viz-card{
  margin-top: 14px;
  border: 1px solid rgba(57,69,124,0.55);
  background: rgba(18,26,51,0.75);
  border-radius: 16px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.viz-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#93c5fd;
  font-weight:800;
  letter-spacing:0.2px;
  margin-bottom: 10px;
}

.viz-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#38bdf8;
  box-shadow: 0 0 14px rgba(56,189,248,0.55);
}

.viz-hint{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(203,213,225,0.9);
  border-top: 1px solid rgba(57,69,124,0.35);
  padding-top: 10px;
}

.token-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items: stretch;
}

.tok{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  min-width: 110px;
  padding: 0 12px;
  gap: 8px;
}

.tok small{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

.tok.fn{ background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.35); }
.tok.num{ background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.30); }
.tok.op{ background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.30); }
.tok.par{ background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.30); }
.tok.sep{ background: rgba(148,163,184,0.10); border-color: rgba(148,163,184,0.25); }

.level-tree{
  margin-top: 8px;
}

.lvl{
  position: relative;
}

.lvl-child{
  margin-left: 26px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.12);
  margin-top: 10px;
}

.lvl-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(4,40,72,0.45);
}

.lvl-head.root{
  background: rgba(57,69,124,0.22);
  border-color: rgba(57,69,124,0.45);
}

.lvl-head.fnlvl{
  background: rgba(4,40,72,0.62);
  border-color: rgba(45,212,191,0.35);
}

.badge{
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(72,39,4,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e6ebff;
}

.lvl-head .name{
  font-weight: 900;
  color:#e6ebff;
}

.lvl-head .desc{
  color: rgba(203,213,225,0.85);
  font-size: 13px;
}

.members{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.mem{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(18,26,51,0.65);
}

.mem.expr{
  border-color: rgba(251,191,36,0.28);
  background: rgba(251,191,36,0.08);
}

.m-tag{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color:#93c5fd;
}

.m-val{
  font-weight: 900;
  color:#e6ebff;
  overflow-wrap:anywhere;
}

