html {
  background-color: #050816;   
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;

  background: radial-gradient(circle at top, #091432 0%, #303a89 55%, #00184b 100%);
  background-size: cover;

  color: #e4e9ff;
  line-height: 1.6;

  opacity: 0;
  animation: bodyFade 1s ease-out forwards;
}


@keyframes bodyFade {
  from {
    opacity: 0;
    transform: translateY(2px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-name {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}


header {
  background: linear-gradient(120deg, #111827 0%, #020617 60%, #0f172a 100%);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}
header h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

header p {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 0.95rem;
}

nav {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  padding: 10px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

nav a {
  color: #e5e7eb;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

nav a:hover {
  color: #22d3ee;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.85));
}

.nav-link {
    transition: transform 0.15s ease;
}

.nav-link:active {
    transform: scale(1.12);
}


.main-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;          
  flex-wrap: wrap;    
}

@media (max-width: 768px) {

  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .brand-name {
    font-size: 2.6rem;     
    text-align: center;
  }


  .main-nav {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .nav-link {
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {

  .brand-name {
    font-size: 2.2rem;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }
}
section {
  max-width: 980px;
  margin: 32px auto;
  padding: 24px 28px;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.96));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.6) inset;
  position: relative;
  overflow: hidden;
}
section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  opacity: 0.5;
  pointer-events: none;
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  padding-bottom: 8px;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}

p {
  color: #cbd5f5;
  font-size: 0.98rem;
}

ol {
  padding-left: 20px;
  color: #d1d5db;
}

li {
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.8);
}
table th,
table td {
  padding: 10px 12px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
}

table th {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.95);
}

table tr:hover td {
  background: rgba(30, 64, 175, 0.35);
}

.plot-container {
  text-align: center;
  margin-top: 22px;
}

.plot-container img {
  width: 84%;
  max-width: 720px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* ========= Dashboard Inputs / Buttons ========= */
textarea,
input[type="text"] {
  width: 100%;
  max-width: 820px;
  padding: 10px 12px;
  margin-top: 8px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

textarea:focus,
input[type="text"]:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7), 0 0 20px rgba(34, 211, 238, 0.45);
}


button,
.btn-primary {
  margin-top: 12px;
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b1120;
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
}

button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(34, 211, 238, 0.55);
}

button:active,
.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}


#predict-result,
#xgb-result {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  white-space: pre-wrap;
  min-height: 52px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
textarea {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.25s;
}

textarea:focus {
    outline: none;
    border: 1px solid #60a5fa; 
    box-shadow: 0 0 8px #60a5fa55;
}
.result-box {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 12px;
    white-space: pre-wrap;
    min-height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
}

.result-mini{display:grid;gap:.5rem;margin-top:.5rem}
.result-mini .row{display:grid;grid-template-columns:80px 1fr 48px;align-items:center;gap:.5rem}
.bar{height:8px;background:#223;border-radius:999px;overflow:hidden}
.bar>div{height:100%;width:0%;background:#5bc0de;transition:width .25s}


.team {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.member {
  text-align: center;
  margin: 8px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.8);
}

footer {
  background: #020617;
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
}


.section-block {
  max-width: 980px;
  margin: 40px auto;
  padding: 24px 28px;
  background: radial-gradient(
    circle at top left,
    rgba(30, 64, 175, 0.22),
    rgba(15, 23, 42, 0.96)
  );
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.6) inset;
  position: relative;
  overflow: hidden;
}

.section-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  opacity: 0.5;
  pointer-events: none;
}


.section-heading {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  padding-bottom: 8px;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}

.section-intro {
  color: #bfc6d1;
  margin-bottom: 24px;
  max-width: 800px;
  font-size: 0.98rem;
}

/* ===== METHODS SECTION ===== */

.methods-section {
  
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  
  gap: 22px;
  justify-items: center; 
}


.method-card {
    background: rgba(30, 41, 59, 0.55);
    height: 280px; 
    display: flex;      
    flex-direction: column;
    
    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.method-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.method-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.method-card p {
  color: #c7d0db;
  line-height: 1.5rem;
  font-size: 0.9rem;
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ===== DEPLOYMENT FLOW SECTION ===== */

.deploy-section {
  padding: 0 32px 40px
  
}

.flow-line {
    display: flex;
    flex-wrap: nowrap;  
    gap: 12px;
    overflow-x: auto;   
    padding-bottom: 10px;
    margin-top: 8px;

    -webkit-overflow-scrolling: touch; 
}
.flow-step {
  height: 130px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.flow-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.flow-desc {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.flow-arrow {
  align-self: center;
  font-size: 1.4rem;
  color: #60a5fa;
  flex-shrink: 0;
}

.flow-details {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.flow-details summary {
  cursor: pointer;
  color: #93c5fd;
}

.flow-details summary:hover {
  color: #bfdbfe;
}



/* ===== RESULT SECTION ===== */
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-block {
    margin-top: 0;  
    margin-bottom: 10px;
}

.img-row {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.img-row img {
    width: 48%;
    border-radius: 6px;
}

.result-desc {
    margin-top: 10px;
    line-height: 1.6;
    
}



/* ===== DEPLOYMENT FLOW SECTION（phone） ===== */
@media (max-width: 900px) {
  .flow-line {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible; 
    gap: 10px;
  }


  .flow-step {
    width: 90%;
    height: auto;
    padding: 12px 16px;

  }


  .flow-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .flow-desc {
    font-size: 0.8rem;
  }

  .flow-arrow {
    align-self: center;
    font-size: 1.2rem;
    margin: 4px 0;
    transform: rotate(90deg);  
  }
}


.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.chart-card {
  background: #111827;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chart-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

