* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
}

body{
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------------------- */
/* Navbar css starts here */
/* Existing CSS */
header {
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: transparent;
  padding: 10px 0;
  transition: background-color 0.3s;
}

.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  color: white;
  padding: 0 20px;
}

.name {
  font-family: 'Leckerli One', sans-serif;
  font-size: 1.5rem;
  color: #695aa6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.name:hover {
  transform: scale(1.05);
  color: #543d8d;
}

.menu ul {
  display: flex;
  font-size: 15px;
}

.menu ul li {
  list-style: none;
  margin: 20px;
  font-family: 'Patrick Hand', cursive;
  color: white;
}

.menu ul li a {
  text-decoration: none;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* Media Queries */
@media (max-width: 768px) {
  .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 20px;
      background-color: white;
      border: 1px solid #695aa6;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .menu ul {
      flex-direction: column;
      padding: 0;
      margin: 0;
  }

  .menu ul li {
      margin: 10px 0;
  }

  .menu ul li a {
      color: #695aa6;
  }

  .menu-toggle {
      display: flex;
  }

  .navBar.bgColor .menu {
      background-color: white;
  }

  .navBar.bgColor .menu-toggle .bar {
      background-color: #695aa6;
  }
}

.menu.active {
  display: flex;
}

/* New CSS */
.header-scrolled {
  background-color: #fff;
}

.header-scrolled .name,
.header-scrolled #menu li a {
  color: #695aa6;
}

.header-scrolled .name:hover,
.header-scrolled #menu li a:hover {
  color: #543d8d;
}

/* Navbar CSS ends here  */
/* ------------------------------------------------------------------------------------- */
/* Hero section CSS starts here */
.hero {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/pic1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero .container .text {
  flex: 1;
  padding-right: 50px;
}

.hero .container .text h1 {
  font-family: 'Permanent Marker', cursive !important;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: normal;
  margin-bottom: 20px;
}

.hero .container .text h2 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}

.hero .container .text p {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 30px;
}

.hero-container{
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.hero-container h1 {
  font-size: 50px;
  color: #212529;
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-container h1 .auto-type {
  color: #695aa6;
}

.hero-container .up {
  font-size: 50px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container .down {
  font-size: 50px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container p{
  margin: 0;
  padding: 0;
  float: left;
}

.over{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, #fff 0%, rgba(105, 90, 166, 0.35) 99%, rgba(105, 90, 166, 0.5) 100%);
}

.hero-container .botton {
  margin-top: 24px;
}

.hero-container .botton a{
  text-decoration: none;
  color:#695aa6;
}

.hero-container .botton img{
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero{
    height: 80vh;
  }

  .hero-container h1 {
    font-size: 40px;
  }
  
  .hero-container .up,
  .hero-container .down {
    font-size: 40px;
  }

  .hero-container .botton img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .hero{
    height: 80vh;
  }

  .hero-container h1 {
    font-size: 30px;
  }
  
  .hero-container .up,
  .hero-container .down {
    font-size: 30px;
  }

  .hero-container .botton img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
}
/* hero section CSS end here  */
/* -------------------------------------------------------------------------- */
/* about section CSS starts here  */
.about{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  padding: 40px;
}

.about-container{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.imgeffect, .text{
  height: 400px;
}

.text{
  width: 650px;
  margin-left: 100px;
  margin-top: 120px;
}

.text h2, .text p{
  margin: 0;
  padding: 0;
}

.text .p1{
  font-size: 1.2rem;
  color: #695aa6;
  margin-bottom: 10px;
}

.text .p2{
  font-family: Patrick Hand, cursive;
  margin-bottom: 16px;
}

.text h2 {
  font-family: Leckerli One, sans-serif;
  margin-bottom: 16px;
  text-align: left !important;
  font-size: 20px;
  color: black;
  position: static;
}

.text h2::after {
  display: none;
}

.text button {
  background: #695aa6;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.text button:hover {
  background: #564a8a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(105, 90, 166, 0.3);
}

.imgeffect img{
  width: 300px;
  height: 400px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .about{
    height: 80vh;
    padding: 20px;
  }
  .about-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .text {
    width: 100%;
    margin-left: 0;
  }

  .text button {
    width: 100%;
    max-width: 150px;
  }
}


@media (max-width: 480px) {
  .about {
    height: 100vh;
    padding: 20px;
  }

  .text .p1, .text .p2 {
    font-size: 14px;
  }

  .text h2 {
    font-size: 24px;
  }

  .text button {
    width: 100%;
    max-width: 125px;
    font-size: 15px;
  }
}

/* about section CSS ends here */
/* -------------------------------------------------------------- */
/* skills section CSS starts here  */
.Skills{
  display: block;
  width: 100%;
  background-color: #f9f9f9;
  padding: 30px 0;
}

.Skills .container {
  width: 70%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
  padding: 50px 0;
}

.Skills .container .heading{
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.Skills .container .heading h1{
  padding: 0%;
  margin: 0%;
  font-size: 24px;
}

.Skills .container .heading h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.skillh1{
  color: black;
}

.Skills .container .mainSkill {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 0;
}

.Skills .container .mainSkill .front,
.Skills .container .mainSkill .back,
.Skills .container .mainSkill .datasci,
.Skills .container .mainSkill .tools {
  flex: 0 0 calc(50% - 20px);
  min-width: calc(50% - 20px);
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
  display: flex;
  flex-direction: column;
}

.Skills .container .mainSkill .front h2, .back h2, .datasci h2, .tools h2{
  margin: 0%;
  padding: 0%;
  font-size: 20px;
  font-family: Patrick Hand, cursive;
  font-weight: 600;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

.Skills .container .mainSkill .box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: auto;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-content: center;
  padding: 10px;
}

.Skills .container .mainSkill .front .frontSkill, 
.Skills .container .mainSkill .back .backSkill, 
.Skills .container .mainSkill .datasci .datasciSkill, 
.Skills .container .mainSkill .tools .toolsSkill {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.Skills .container .mainSkill .front .frontSkill:hover, 
.Skills .container .mainSkill .back .backSkill:hover,
.Skills .container .mainSkill .datasci .datasciSkill:hover,
.Skills .container .mainSkill .tools .toolsSkill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.Skills .container .mainSkill .front .box img,
.Skills .container .mainSkill .back .box img,
.Skills .container .mainSkill .datasci .box img,
.Skills .container .mainSkill .tools .box img {
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .back .box img{
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .datasci .box img{
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .tools .box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-items: center;
  justify-content: center;
  width: 100%;
}

.Skills .container .mainSkill .tools .toolsSkill {
  width: 100%;
  max-width: 200px; /* Limit max width to ensure consistent card size */
}

@media (max-width: 768px) {
  .Skills .container {
    width: 85%;
  }
  
  .Skills .container .mainSkill {
    grid-template-columns: 1fr;
  }
  
  .Skills .container .mainSkill .front h2,
  .Skills .container .mainSkill .back h2,
  .Skills .container .mainSkill .datasci h2,
  .Skills .container .mainSkill .tools h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .Skills .container .mainSkill .back .backSkill,
  .Skills .container .mainSkill .datasci .datasciSkill,
  .Skills .container .mainSkill .tools .toolsSkill {
    font-size: 12px;
    padding: 10px 14px;
  }

  .Skills .container .mainSkill .box {
    gap: 10px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .Skills .container .heading {
    font-size: 16px;
    margin-top: 80px;
    margin-bottom: 15px;
  }

  .Skills .container .mainSkill .front,
  .Skills .container .mainSkill .back,
  .Skills .container .mainSkill .datasci,
  .Skills .container .mainSkill .tools {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .Skills .container .mainSkill .front h2,
  .Skills .container .mainSkill .back h2,
  .Skills .container .mainSkill .datasci h2,
  .Skills .container .mainSkill .tools h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .Skills .container .mainSkill .back .backSkill,
  .Skills .container .mainSkill .datasci .datasciSkill,
  .Skills .container .mainSkill .tools .toolsSkill {
    font-size: 10px;
    padding: 8px 12px;
  }

  .Skills .container .mainSkill .box {
    gap: 8px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 20px;
    height: 20px;
  }
}

/* skills section CSS ends here  */
/* ------------------------------------------------------------------------------- */
/* experience section CSS starts here  */
.expirience {
  margin: 0;
  padding: 30px 0;
  font-family: 'Roboto', sans-serif;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

.expirience h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.expirience h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

h1 span {
  font-weight: 600;
}

.container-ex {
  width: 80%;
  padding: 50px 0;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

.container-ex:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  height: 100%;
  background: #CCD1D9;
  z-index: 1
}

.timeline-block {
  width: -webkit-calc(50% + 8px);
  width: -moz-calc(50% + 8px);
  width: calc(50% + 8px);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  justify-content: space-between;
  clear: both;
}

.timeline-block-right {
  float: right;
}

.timeline-block-left {
  float: left;
  direction: rtl
}

.marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #F5F7FA;
  background: #695aa6;
  margin-top: 10px;
  z-index: 9999
}

.timeline-content {
  width: 95%;
  padding: 0 15px;
  color: #666;
  margin-bottom:25px ;
}

.timeline-content h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 25px;
  font-weight: 500;
  color: #695aa6;
}

.timeline-content span {
  font-size: 15px;
  color: #a4a4a4;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.5em;
  word-spacing: 1px;
  color: #888;
}


@media screen and (max-width: 768px) {
  .container-ex:before {
     left: 8px;
     width: 2px;
  }
  .timeline-block {
     width: 100%;
     margin-bottom: 30px;
  }
  .timeline-block-right {
     float: none;
  }

  .timeline-block-left {
     float: none;
     direction: ltr;
  }
}
 /* experience section CSS ends hhere */
/* ---------------------------------------------------------------------- */
/* project section CSS starts here  */

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 30px 0;
  background-color: #f9f9f9;
  font-weight: 400;
}

.project .main {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.project .main h1 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Leckerli One', sans-serif;
  font-size: 24px;
  position: relative;
  margin-bottom: 20px;
  display: inline-block;
}

.project .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.project .container {
  width: calc(min(76.5rem, 90%));
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.project .container .project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project .container .project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.project .container .project-card .project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project .container .project-card:hover .project-img {
  transform: scale(1.02);
}

.project .container .project-card .project-info {
  padding: 20px;
}

.project .container .project-card .project-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.project .container .project-card .project-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.project .container .project-card .project-info .project-links {
  display: flex;
  gap: 15px;
}

.project .container .project-card .project-info .project-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #695aa6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project .container .project-card .project-info .project-links a:hover {
  color: #564a8a;
}

.project .container .project-card .project-info .project-links a img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project .container .project-card .project-info .project-links a:hover img {
  transform: translateX(3px);
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
  }
  
  .card-inner {
    height: 15rem;
  }
  
  .card .content h3 {
    font-size: 1.5rem;
  }
  
  .card .content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main h2 {
    font-size: 20px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-inner {
    height: 12rem;
  }
  
  .card .content h3 {
    font-size: 1.2rem;
  }
  
  .card .content p {
    font-size: 0.8rem;
  }
  
  .card ul li {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

/* project section CSS ends here  */
/* --------------------------------------------------------------------- */
/* Blogs section CSS starts here  */

.blogs {
  display: flex;
  flex-direction: column;
  height: 50vh;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}
  
.blogs .tit{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.blogs .tit h1{
  font-size: 30px;
  font-family: Leckerli One, sans-serif;
}

.blogs .con{
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.article-card {
  width: 350px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 300ms;
}
  
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
  
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  
.article-card .content {
  box-sizing: border-box;
  width: 100%;
  position: absolute;
  padding: 30px 20px 20px 20px;
  height: auto;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.article-card .title {
  margin: 0;
}

.article-card .title {
  font-size: 17px;
  color: #212529;
}
  
.article-card .btn {
    padding: 3px;
    margin: 5px;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid black;
    border-radius: 5px;
    background: transparent;
    color: #212529;
    font-size: 14px;
    cursor: pointer;
    transition: all 300ms;
}
/* blogs section CSS ends here */
/* ---------------------------------------------------------------------------- */
/* contact section CSS starts here  */
body {
  font-family: 'Patrick Hand', cursive;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.contact-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background-color: #695aa6;
  color: white;
}

.contact-info h2 {
  font-family: 'Leckerli One', sans-serif;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}

.contact-form {
  flex: 2;
  padding: 40px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 12px 24px;
  background-color: #695aa6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #543d8d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    width: 90%;
  }

  .contact-info,
  .contact-form {
    padding: 30px;
  }
}

.navBar .logo h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #fff;
}

.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

/* Global font settings */
* {
  font-family: 'Quicksand', sans-serif !important;
}

/* Hero section fonts */
.hero-container .down {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  margin-bottom: 5px;
}

.hero-container .up {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

.hero-container .text h2 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

/* Navigation bar fonts */
.navBar .name h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Heading fonts */
.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
}

.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

/* Button and link fonts */
button, a {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

/* Input field fonts */
input, textarea {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 400;
}

/* Other text elements */
p, span, div, h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif !important;
}

.project-card .icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px !important;
  height: 20px !important;
  background: #282828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.project-card .icon .arrow-icon {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.project-card:hover .icon {
  background: #695aa6;
}

.project-card:hover .icon .arrow-icon {
  transform: translate(2px, -2px);
}

.Projects {
  padding: 30px 0;
  background-color: #f9f9f9;
}

.about .text h2,
.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.about .text h2::after,
.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.header-scrolled .navBar .name h1 {
  color: #695aa6 !important;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card:nth-child(1) .box .icon .iconBox,
.card:nth-child(2) .box .icon .iconBox,
.card:nth-child(3) .box .icon .iconBox {
  background: #695aa6;
}

.card .content {
  padding: 0.938rem 0.625rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card .content h3 {
  text-transform: capitalize;
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
  margin-bottom: 0.625rem;
}

.card .content p {
  margin: 0.625rem 0 1.25rem;
  font-family: 'Patrick Hand', cursive;
  color: #565656;
  flex: 1;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.card ul li {
  text-transform: uppercase;
  background: #695aa6;
  color: #282828;
  font-weight: 700;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.8rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.188rem;
}

.card ul li.github,
.card ul li.site {
  color: white;
}

.card ul a {
  text-decoration: none;
  color: inherit;
}

.card ul a:hover li {
  background: #564a8a;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 18.75rem;
  background: var(--clr);
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.card-inner .box {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
}

.card-inner .box .imgBox {
  position: absolute;
  inset: 0;
}

.card-inner .box .imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-inner .box .imgBox img {
  transform: scale(1.02);
}

.card-inner .box .icon {
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  width: 6rem;
  height: 6rem;
  background: var(--clr);
  border-top-left-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-inner .box .icon .iconBox {
  position: absolute;
  inset: 0.625rem;
  background: #282828;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.card-inner .box .icon .iconBox:hover {
  background: #695aa6;
  transform: translateX(3px);
}

.card-inner .box .icon .iconBox img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.card-inner .box .icon .iconBox:hover img {
  transform: translateX(2px);
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.contact-form .success-message {
  color: #28a745;
  margin-top: 10px;
  text-align: center;
}

.contact-form .error-message {
  color: #dc3545;
  margin-top: 10px;
  text-align: center;
}

.contact-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background-color: #695aa6;
  color: white;
}

.contact-info h2 {
  font-family: 'Leckerli One', sans-serif;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a img {
  width: 20px;
  height: 20px;
}

.contact-form {
  flex: 2;
  padding: 40px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  background-color: #695aa6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #543d8d;
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

#menu li a:hover {
  color: #695aa6;
  transform: scale(1.05);
}

/* ═══════════════════ 技术计算页面 ═══════════════════ */
.tech-calc-page {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background: #f9f9f9;
}

/* ─── 侧边栏 ─── */
.tech-calc-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  padding: 0 20px 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #555;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.sidebar-item:hover {
  background: #f0edf7;
  color: #695aa6;
}

.sidebar-item.active {
  background: #695aa6;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(105, 90, 166, 0.25);
}

.sidebar-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* ─── 内容区域 ─── */
.tech-calc-content {
  flex: 1;
  padding: 20px 24px 40px;
  overflow-y: auto;
  min-width: 0;
}

/* ─── 占位符 ─── */
.placeholder-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.placeholder-tab h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.placeholder-tab p {
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  color: #888;
}

/* ─── 湿法工具 ─── */
.wet-tool {
  max-width: 1100px;
}

/* 预设按钮栏 */
.preset-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  align-items: center;
}

.preset-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-group-label {
  font-size: 12px;
  color: #999;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  margin-right: 2px;
  white-space: nowrap;
}

.preset-btn {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #666;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}

.preset-btn:hover {
  border-color: #695aa6;
  color: #695aa6;
  background: #f5f2fb;
}

/* 输入行 */
.wet-tool .input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.wet-tool .input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 70px;
  flex: 1;
}

.wet-tool .input-group label {
  font-size: 12px;
  color: #999;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.wet-tool .input-group select,
.wet-tool .input-group input {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  color: #333;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Quicksand', sans-serif;
  transition: border-color 0.15s;
  width: 100%;
}

.wet-tool .input-group select:focus,
.wet-tool .input-group input:focus {
  outline: none;
  border-color: #695aa6;
  background: #fff;
}

/* 结果区域 */
.results-area {
  min-height: 300px;
}

.empty-hint {
  text-align: center;
  padding: 60px 0;
  color: #bbb;
}

.empty-hint .eh-icon {
  font-size: 40px;
  opacity: 0.2;
  margin-bottom: 10px;
}

.empty-hint p {
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
}

/* 分区分隔线 */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 12px;
}

.section-divider .label {
  font-size: 15px;
  font-weight: 700;
  color: #695aa6;
  letter-spacing: 2px;
  white-space: nowrap;
  padding: 4px 14px;
  border: 1.5px solid #695aa6;
  border-radius: 4px;
  background: rgba(105, 90, 166, 0.04);
  font-family: 'Quicksand', sans-serif;
}

/* 步骤卡片 */
.step-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.step-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  color: #aaa;
  min-width: 28px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  font-family: 'Quicksand', sans-serif;
}

.step-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  margin-left: auto;
}

.step-badge.ok { background: #e8f5e9; color: #2e7d32; }
.step-badge.wn { background: #fff3e0; color: #e65100; }
.step-badge.er { background: #ffebee; color: #c62828; }

.step-result {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  margin: 4px 0;
}

.step-result.ok { color: #2e7d32; }
.step-result.wn { color: #e65100; }
.step-result.er { color: #c62828; }

.step-reason {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  font-family: 'Quicksand', sans-serif;
}

.step-reason .hl {
  color: #695aa6;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-weight: 600;
}

.text-ok { color: #2e7d32; font-weight: 600; }
.text-er { color: #c62828; font-weight: 600; }

/* PN表格 */
.step-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0;
}

.step-table th {
  text-align: left;
  color: #999;
  font-weight: 600;
  padding: 6px 10px;
  border-bottom: 2px solid #eee;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
}

.step-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
}

.step-table tr.rej td { color: #c62828; text-decoration: line-through; opacity: 0.6; }
.step-table tr.sel td { color: #695aa6; font-weight: 700; background: #faf8fd; }

/* 裕度条 */
.margin-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.margin-bar-label {
  font-size: 12px;
  color: #999;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  min-width: 60px;
}

.margin-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.margin-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.margin-bar-fill.good { background: #2e7d32; }
.margin-bar-fill.tight { background: #e65100; }
.margin-bar-fill.bad { background: #c62828; }

/* 规格网格 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.spec-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 14px;
}

.spec-item .sl {
  font-size: 11px;
  color: #999;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}

.spec-item .sl.accent { color: #695aa6; }

.spec-item .sv {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.spec-item .sv.accent { color: #695aa6; }

/* 最终汇总 */
.final-mark {
  text-align: center;
  padding: 20px;
  margin-top: 12px;
  border: 2px solid #695aa6;
  border-radius: 8px;
  background: rgba(105, 90, 166, 0.02);
}

.final-mark .pipe-code {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  letter-spacing: 0.5px;
  color: #695aa6;
  margin-bottom: 4px;
}

.final-mark .bom-line {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

.final-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.final-actions button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  transition: all 0.15s;
}

.final-actions button:hover {
  border-color: #695aa6;
  color: #695aa6;
}

.final-actions button.btn-primary {
  background: #695aa6;
  color: #fff;
  border-color: #695aa6;
}

.final-actions button.btn-primary:hover {
  background: #543d8d;
  border-color: #543d8d;
}

.final-actions button.btn-pdf {
  border-color: #e0e0e0;
  color: #888;
}

.final-actions button.btn-pdf:hover {
  border-color: #c62828;
  color: #c62828;
}

/* 警告横幅 */
.warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 6px;
  font-size: 13px;
  color: #e65100;
  line-height: 1.6;
  margin-top: 10px;
  font-family: 'Quicksand', sans-serif;
}

/* 材料参考 */
.mat-strip {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.mat-chip {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  color: #999;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
}

.mat-chip:hover {
  border-color: #bbb;
  color: #666;
}

.mat-chip.sel {
  border-color: #695aa6;
  color: #695aa6;
  background: #f5f2fb;
  font-weight: 600;
}

.mat-chip.exc {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: not-allowed;
}

.mat-chip-info {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 10px;
  color: inherit;
  opacity: 0.7;
}

/* ─── 密码门控 ─── */
.password-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.password-gate-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 36px;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.password-gate-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.password-gate-card h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.password-gate-card > p {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

.password-gate-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-gate-card input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  letter-spacing: 4px;
  transition: border-color 0.2s;
  outline: none;
}

.password-gate-card input:focus {
  border-color: #695aa6;
}

.password-gate-error {
  font-size: 13px;
  color: #c62828;
  font-family: 'Quicksand', sans-serif;
}

.password-gate-card button {
  padding: 12px 24px;
  background: #695aa6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.password-gate-card button:hover {
  background: #543d8d;
}

.password-gate-card button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .tech-calc-page {
    flex-direction: column;
  }

  .tech-calc-sidebar {
    width: 100%;
    min-width: 100%;
    position: static;
    height: auto;
    flex-direction: row;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 6px;
    padding: 0;
  }

  .sidebar-item {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
  }

  .tech-calc-content {
    padding: 12px 10px 30px;
  }

  .wet-tool .input-row {
    gap: 6px;
    padding: 10px;
  }

  .wet-tool .input-group {
    min-width: 60px;
  }

  .spec-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .preset-bar {
    gap: 8px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .sidebar-item {
    padding: 6px 10px;
    font-size: 12px;
  }

  .step-card {
    padding: 12px 14px;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════ 产线设计工具 ═══════════════════ */
.pl-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  margin-top: 70px;
  background: #f5f6f8;
  font-family: 'Quicksand', sans-serif;
}

/* ─── 工具栏 ─── */
.pl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  gap: 12px;
}

.pl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-name-input {
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 8px;
  background: transparent;
  color: #333;
  font-family: 'Quicksand', sans-serif;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.pl-name-input:focus { border-bottom-color: #695aa6; }

.pl-no-layout { color: #999; font-size: 15px; }
.pl-dirty-dot { color: #e65100; font-size: 10px; }

.pl-toolbar-right { display: flex; gap: 8px; }

.pl-btn {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pl-btn:hover { border-color: #695aa6; color: #695aa6; }
.pl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pl-btn-primary { background: #695aa6; color: #fff; border-color: #695aa6; }
.pl-btn-primary:hover { background: #543d8d; }

/* ─── 主区域 ─── */
.pl-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── 左侧栏 ─── */
.pl-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pl-section { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.pl-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pl-empty { color: #ccc; font-size: 13px; padding: 8px 0; }

/* 布局列表 */
.pl-layout-list { display: flex; flex-direction: column; gap: 4px; }
.pl-layout-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.pl-layout-item:hover { background: #f5f2fb; }
.pl-layout-item.active { background: #695aa6; color: #fff; }
.pl-layout-item.active .pl-layout-item-meta { color: rgba(255,255,255,0.7); }
.pl-layout-item-name { flex: 1; font-size: 13px; font-weight: 600; }
.pl-layout-item-meta { font-size: 11px; color: #aaa; margin-right: 20px; }
.pl-layout-item-del {
  position: absolute; right: 8px;
  background: none; border: none; color: #ccc; font-size: 16px;
  cursor: pointer; padding: 2px 4px; border-radius: 3px;
}
.pl-layout-item-del:hover { color: #c62828; background: #ffebee; }

/* 工位面板 */
.pl-palette { display: flex; flex-direction: column; gap: 3px; }
.pl-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fafafa;
  cursor: grab;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  user-select: none;
}
.pl-palette-item:hover { border-color: #695aa6; background: #f5f2fb; }
.pl-palette-item:active { cursor: grabbing; }
.pl-palette-temp { margin-left: auto; font-size: 11px; color: #999; font-family: 'Cascadia Code', monospace; }

/* ─── 画布 ─── */
.pl-canvas-wrap { flex: 1; overflow-y: auto; padding: 20px; }
.pl-canvas { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }

.pl-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 400px; text-align: center; gap: 12px;
}
.pl-empty-icon { font-size: 56px; opacity: 0.2; }
.pl-empty-state h3 { font-size: 20px; color: #555; font-weight: 700; }
.pl-empty-state p { font-size: 14px; color: #999; }

/* 工位节点 */
.pl-station-wrapper { display: flex; align-items: center; }
.pl-connector {
  font-size: 20px; color: #ccc; padding: 0 6px;
  font-family: 'Cascadia Code', monospace; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.pl-connector.warn { color: #e65100; }
.pl-connector-warn { font-size: 12px; }

.pl-drop-zone {
  width: 8px; height: 100px; border-radius: 4px;
  transition: all 0.15s; margin: 0 2px;
}
.pl-drop-zone.hover { background: rgba(105,90,166,0.12); width: 30px; }

.pl-station-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 10px; min-width: 90px;
  background: #fff; border: 2px solid #eee; border-radius: 10px;
  cursor: pointer; transition: all 0.15s; position: relative;
}
.pl-station-node:hover { border-color: #bbb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pl-station-node.selected { border-color: #695aa6; box-shadow: 0 0 0 3px rgba(105,90,166,0.12); }
.pl-station-node.warn { border-color: #e65100; }
.pl-station-seq { font-size: 13px; font-weight: 800; color: #695aa6; font-family: 'Cascadia Code', monospace; }
.pl-station-icon { font-size: 22px; }
.pl-station-info { text-align: center; }
.pl-station-name { font-size: 13px; font-weight: 600; color: #333; }
.pl-station-meta { font-size: 10px; color: #999; }
.pl-station-kpi { display: flex; gap: 6px; }
.pl-station-kpi span {
  font-size: 10px; background: #f5f2fb; color: #695aa6;
  padding: 2px 6px; border-radius: 3px; font-family: 'Cascadia Code', monospace;
}
.pl-station-del {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid #ddd; color: #999;
  font-size: 12px; cursor: pointer; display: none;
  align-items: center; justify-content: center;
}
.pl-station-node:hover .pl-station-del { display: flex; }
.pl-station-del:hover { background: #ffebee; color: #c62828; border-color: #c62828; }

/* 兼容性警告 */
.pl-compat-warnings { margin-top: 16px; }
.pl-compat-item {
  padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 4px;
}
.pl-compat-item.warning { background: #fff8e1; color: #e65100; border: 1px solid #ffcc02; }
.pl-compat-item.error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ─── 编辑器 ─── */
.pl-editor {
  width: 340px; min-width: 340px; background: #fff;
  border-left: 1px solid #e8e8e8; overflow-y: auto;
  display: flex; flex-direction: column;
}
.pl-editor-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #eee;
}
.pl-editor-header h3 { font-size: 16px; font-weight: 700; color: #333; }
.pl-editor-header button {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: #aaa; padding: 2px 6px;
}
.pl-editor-header button:hover { color: #333; }
.pl-editor-body { padding: 12px 16px; flex: 1; overflow-y: auto; }
.pl-editor-section { margin-bottom: 16px; }
.pl-editor-section h4 {
  font-size: 12px; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid #eee; padding-bottom: 4px; margin-bottom: 8px;
}
.pl-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; gap: 12px;
}
.pl-field span { font-size: 13px; color: #666; white-space: nowrap; }
.pl-field input {
  width: 100px; padding: 5px 8px; border: 1px solid #e0e0e0;
  border-radius: 4px; font-size: 13px; font-family: 'Cascadia Code', monospace;
  text-align: right; background: #fafafa;
}
.pl-field input:focus { outline: none; border-color: #695aa6; background: #fff; }

/* 计算结果 */
.pl-result { display: flex; flex-direction: column; gap: 4px; }
.pl-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px; background: #fafafa; border-radius: 4px;
}
.pl-result-row span { font-size: 12px; color: #999; }
.pl-result-row strong { font-size: 13px; color: #333; font-family: 'Cascadia Code', monospace; }

/* 设计指导 */
.pl-design-notes {
  margin-top: 10px; padding: 10px 12px;
  background: #f5f2fb; border-radius: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.pl-note-item { font-size: 11px; color: #555; line-height: 1.6; }
.pl-note-item.warn { color: #e65100; }

/* ─── 底部汇总栏 ─── */
.pl-summary {
  display: flex; gap: 0;
  background: #fff; border-top: 2px solid #695aa6;
  flex-shrink: 0; padding: 0 10px;
  overflow-x: auto;
}
.pl-summary-item {
  flex: 1; text-align: center; padding: 8px 12px;
  border-right: 1px solid #f0f0f0;
  min-width: 80px;
}
.pl-summary-item.warn { background: #fff8e1; }
.pl-summary-val {
  display: block; font-size: 16px; font-weight: 700;
  color: #695aa6; font-family: 'Cascadia Code', monospace;
}
.pl-summary-lbl {
  display: block; font-size: 10px; color: #999; margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
  .pl-sidebar { width: 180px; min-width: 180px; }
  .pl-editor { width: 280px; min-width: 280px; }
  .pl-station-node { min-width: 70px; padding: 8px 6px; }
}

@media (max-width: 768px) {
  .pl-main { flex-direction: column; }
  .pl-sidebar { width: 100%; min-width: 100%; flex-direction: row; overflow-x: auto; }
  .pl-section { flex: 1; border-bottom: none; border-right: 1px solid #f0f0f0; }
  .pl-canvas-wrap { padding: 12px; }
  .pl-editor { width: 100%; min-width: 100%; }
  .pl-summary { flex-wrap: wrap; }
  .pl-summary-item { min-width: 60px; padding: 6px 8px; }
}

/* ═══════════════════ 产线 v3: 机械手/模态框/缩放 ═══════════════════ */

/* 机械手覆盖条 */
.pl-robot-bar {
  padding: 8px 16px; background: #fafafa;
  border-bottom: 1px solid #eee; flex-shrink: 0;
}
.pl-robot-bar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pl-robot-bar-title { font-size: 13px; font-weight: 700; color: #333; }
.pl-robot-bar-toggles { display: flex; gap: 4px; }
.pl-robot-dir-btn {
  padding: 4px 12px; border-radius: 4px; border: 1px solid #ddd;
  background: #fff; color: #888; cursor: pointer;
  font-size: 11px; font-family: 'Quicksand', sans-serif; font-weight: 600;
  transition: all 0.15s;
}
.pl-robot-dir-btn:hover { border-color: #695aa6; color: #695aa6; }
.pl-robot-dir-btn.active { background: #695aa6; color: #fff; border-color: #695aa6; }

.pl-robot-row {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 4px; height: 28px;
}
.pl-robot-row-hd {
  display: flex; align-items: center; gap: 8px;
  min-width: 140px; padding: 0 8px; height: 100%;
  border-left: 3px solid #ddd; background: #fff;
  border-radius: 4px 0 0 4px;
}
.pl-robot-name { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-robot-inputs { display: flex; align-items: center; gap: 2px; }
.pl-robot-inputs input {
  width: 36px; padding: 2px 3px; border: 1px solid #ddd; border-radius: 3px;
  font-size: 11px; text-align: center; font-family: 'Cascadia Code', monospace;
  background: #fff;
}
.pl-robot-inputs input:focus { outline: none; border-color: #695aa6; }
.pl-robot-inputs span { font-size: 10px; color: #999; }

.pl-robot-track { flex: 1; display: flex; gap: 1px; height: 100%; background: #fff; border-radius: 0 4px 4px 0; overflow: hidden; }
.pl-robot-cell { flex: 1; min-width: 6px; background: #eee; border-radius: 0; transition: background 0.2s; }
.pl-robot-cell.covered { opacity: 1; }

/* 缩放控件 */
.pl-toolbar-sep { width: 1px; height: 24px; background: #ddd; margin: 0 4px; }
.pl-zoom-label { font-size: 13px; font-weight: 600; color: #555; font-family: 'Cascadia Code', monospace; min-width: 40px; text-align: center; }

/* 存储错误 */
.pl-storage-error { font-size: 11px; color: #c62828; background: #ffebee; padding: 2px 8px; border-radius: 4px; }

/* 工序时间 */
.pl-station-time {
  font-size: 10px; color: #e65100; font-weight: 600;
  font-family: 'Cascadia Code', monospace;
  background: #fff8e1; padding: 1px 6px; border-radius: 3px;
}

/* ─── 模态框 ─── */
.pl-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.pl-modal {
  background: #fff; border-radius: 12px; max-height: 85vh; overflow-y: auto;
  width: 90%; box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.pl-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.pl-modal-header h2 { font-size: 18px; font-weight: 700; color: #333; }
.pl-modal-header button { background: none; border: none; font-size: 22px; cursor: pointer; color: #aaa; }
.pl-modal-header button:hover { color: #333; }
.pl-modal-body { padding: 16px 24px; }
.pl-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 24px; border-top: 1px solid #eee;
  position: sticky; bottom: 0; background: #fff;
}

/* 详情区域 */
.pl-detail-section { margin-bottom: 16px; }
.pl-detail-title {
  font-size: 14px; font-weight: 700; color: #695aa6; margin-bottom: 8px;
  padding: 4px 10px; border-left: 3px solid #695aa6;
}
.pl-detail-card {
  background: #fafafa; border: 1px solid #eee; border-radius: 6px;
  padding: 10px 14px; font-size: 13px; line-height: 1.7;
}

/* 画布缩放 */
.pl-canvas {
  display: flex; align-items: flex-start; gap: 0;
  min-width: max-content; padding: 20px;
}

/* ═══════════════════ StationBox: 工位方框图 ═══════════════════ */
.sb-box {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 220px; max-width: 260px;
  background: #fff; border: 2px solid #eee; border-radius: 10px;
  padding: 10px 10px 8px; cursor: pointer; transition: all 0.15s;
  user-select: none; position: relative;
}
.sb-box:hover { border-color: #bbb; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sb-box.selected { border-color: #695aa6; box-shadow: 0 0 0 3px rgba(105,90,166,0.12); }
.sb-box.warn { border-color: #e65100; }

.sb-header {
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid #f0f0f0; padding-bottom: 6px;
}
.sb-seq { font-size: 13px; font-weight: 800; color: #695aa6; font-family: 'Cascadia Code', monospace; }
.sb-icon { font-size: 18px; }
.sb-name { font-size: 13px; font-weight: 600; color: #333; flex: 1; }
.sb-del {
  background: none; border: none; color: #ccc; font-size: 16px;
  cursor: pointer; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sb-del:hover { background: #ffebee; color: #c62828; }

.sb-info { display: flex; gap: 8px; font-size: 11px; color: #888; }
.sb-temp { color: #e65100; font-weight: 600; }
.sb-mat { color: #695aa6; }
.sb-time { color: #333; font-family: 'Cascadia Code', monospace; }

/* 子组件图标行 */
.sb-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 2px 0; }
.sb-sub {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 5px; border-radius: 4px; font-size: 10px;
  cursor: pointer; transition: all 0.1s; background: #fafafa;
  overflow: hidden;
}
.sb-sub:hover { background: #f0edf7; }
.sb-sub.on { border-left: 2px solid #2e7d32; }
.sb-sub.off { opacity: 0.35; border-left: 2px solid #ddd; }
.sb-sub.warn { border-left: 2px solid #e65100; }
.sb-sub-icon { font-size: 12px; width: 16px; text-align: center; }
.sb-sub-label { font-weight: 600; color: #555; min-width: 28px; }
.sb-sub-val {
  color: #999; font-family: 'Cascadia Code', monospace;
  font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sb-kpi {
  display: flex; gap: 4px; border-top: 1px solid #f0f0f0; padding-top: 4px;
}
.sb-kpi span {
  font-size: 10px; background: #f5f2fb; color: #695aa6;
  padding: 1px 5px; border-radius: 3px; font-family: 'Cascadia Code', monospace;
}

/* ═══════════════════ 机械手运动时序模拟 ═══════════════════ */
.rt-container {
  margin-top: 16px; padding: 12px 16px;
  background: #fff; border: 1px solid #eee; border-radius: 8px;
}
.rt-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }

.rt-timeline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rt-row { display: flex; align-items: center; gap: 8px; }
.rt-label { font-size: 12px; font-weight: 700; color: #555; min-width: 50px; }
.rt-track { flex: 1; display: flex; align-items: center; height: 28px; background: #f5f5f5; border-radius: 4px; overflow: hidden; position: relative; }
.rt-bar {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; cursor: default; min-width: 0;
  overflow: hidden; transition: opacity 0.15s;
}
.rt-bar:hover { opacity: 0.8; }
.rt-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.rt-total {
  font-size: 11px; font-weight: 700; color: #333;
  font-family: 'Cascadia Code', monospace; padding: 0 8px; white-space: nowrap;
}

.rt-analysis {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #666; margin-bottom: 10px;
}

.rt-table-wrap { max-height: 200px; overflow-y: auto; }
.rt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rt-table th {
  text-align: left; color: #999; font-weight: 600; padding: 4px 8px;
  border-bottom: 2px solid #eee; position: sticky; top: 0; background: #fff;
}
.rt-table td { padding: 3px 8px; border-bottom: 1px solid #f0f0f0; font-family: 'Cascadia Code', monospace; }
.rt-table tr.left td { background: #f5f2fb; }
.rt-table tr.right td { background: #fef9ee; }

/* ═══════════════════ 全工位参数一览表 ═══════════════════ */
.pl-param-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pl-param-table th {
  background: #f5f2fb; color: #333; font-weight: 600;
  padding: 6px 8px; border: 1px solid #e0e0e0; text-align: center;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.pl-param-table td { padding: 2px; border: 1px solid #eee; text-align: center; }
.pl-param-table input {
  width: 100%; min-width: 55px; padding: 4px 6px;
  border: 1px solid transparent; border-radius: 3px; text-align: center;
  font-size: 11px; font-family: 'Cascadia Code', monospace; background: transparent;
}
.pl-param-table input:hover { border-color: #ddd; }
.pl-param-table input:focus { outline: none; border-color: #695aa6; background: #fff; }

/* ═══════════════════ 时序动画 ═══════════════════ */
.rt-legend-box { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }

.rt-station-header {
  flex: 1; min-width: 40px; text-align: center;
  font-size: 9px; font-weight: 700; color: #333; padding: 2px 0;
  border-right: 1px solid #eee;
}

.rt-station-bar-wrap { flex: 1; min-width: 40px; padding: 0 1px; }
.rt-station-bar {
  height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.rt-station-bar.idle { background: #f5f5f5; border: 1px solid #ddd; }
.rt-station-bar.processing { background: #e8f5e9; border: 2px solid #2e7d32; animation: pulse-green 1.5s ease-in-out infinite; }
.rt-station-bar-time { font-size: 9px; font-weight: 700; color: #555; font-family: 'Cascadia Code', monospace; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(46,125,50,0); }
}

.rt-cell {
  flex: 1; min-width: 40px; height: 100%; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: background 0.2s;
}
.rt-cell-dot { width: 5px; height: 5px; border-radius: 50%; }

.rt-robot-icon {
  width: 22px; height: 22px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; z-index: 2;
  animation: robot-bounce 0.5s ease-in-out infinite;
}
.rt-robot-icon.phase-moving { animation: robot-slide 0.3s ease-in-out infinite; }
.rt-robot-icon.phase-pickup { animation: robot-pick 0.4s ease-in-out; border-radius: 30% 30% 50% 50%; }
.rt-robot-icon.phase-drop { animation: robot-drop 0.4s ease-in-out; border-radius: 50% 50% 30% 30%; }
.rt-robot-icon.phase-processing {
  animation: robot-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 8px currentColor;
}

@keyframes robot-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes robot-slide { 0% { transform: translateX(-4px); } 100% { transform: translateX(4px); } }
@keyframes robot-pick { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.2); } 100% { transform: translateY(0) scale(1); } }
@keyframes robot-drop { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(3px) scale(0.9); } 100% { transform: translateY(0) scale(1); } }
@keyframes robot-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.85; } }

/* ═══════════════════ 离散事件模拟 ═══════════════════ */
.sim-header-row { display: flex; margin-bottom: 2px; }
.sim-station-hdr {
  flex: 1; min-width: 38px; text-align: center;
  font-size: 8px; font-weight: 600; color: #555; padding: 2px 0;
  border-right: 1px solid #f0f0f0;
}
.sim-station-state {
  flex: 1; min-width: 38px; text-align: center;
  font-size: 8px; font-weight: 700; padding: 3px 1px; border-radius: 3px; margin: 0 1px;
  font-family: 'Cascadia Code', monospace;
}
.sim-station-state.EMPTY { background: #f5f5f5; color: #bbb; }
.sim-station-state.PROCESSING { background: #e8f5e9; color: #2e7d32; animation: pulse-green 1s infinite; }
.sim-station-state.DONE { background: #e3f2fd; color: #1565c0; }

.sim-cell {
  flex: 1; min-width: 38px; height: 100%; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  position: relative; margin: 0 1px;
}
.sim-robot-row { display: flex; align-items: center; margin-bottom: 3px; }
.sim-robot-dot {
  width: 24px; height: 24px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@keyframes sim-carry { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sim-wait { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.sim-stat {
  padding: 4px 10px; background: #fafafa; border-radius: 4px;
  border: 1px solid #eee; color: #666;
}

/* ═══════════════════ 技术博客样式 ═══════════════════ */

/* ---- 博客页面容器 ---- */
.blog-page {
  min-height: 100vh;
  background: #fafbfc;
}

.blog-hero {
  text-align: center;
  padding: 100px 20px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.blog-hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Quicksand', sans-serif;
}

.blog-hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  font-family: 'Quicksand', sans-serif;
}

.blog-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ---- 文章卡片网格 ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.1rem;
}

/* ---- 文章卡片 ---- */
.blog-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8ed;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.blog-card-link {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
  font-family: 'Quicksand', sans-serif;
}

.blog-card-date {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #695aa6;
  background: #f0edf7;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
}

.blog-card-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: #695aa6;
}

/* ---- 文章详情页 ---- */
.blog-post-page {
  min-height: 100vh;
  background: #fafbfc;
}

.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.blog-post-header {
  margin-bottom: 36px;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #695aa6;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Quicksand', sans-serif;
}

.blog-back-link:hover {
  color: #4a3f7a;
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 12px;
  font-family: 'Quicksand', sans-serif;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #888;
}

.blog-post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---- MDX 文章内容 ---- */
.blog-post-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #333;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-family: 'Quicksand', sans-serif;
}

.blog-post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 28px 0 10px;
  font-family: 'Quicksand', sans-serif;
}

.blog-post-content p {
  margin-bottom: 14px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 8px 0 14px 24px;
}

.blog-post-content li {
  margin-bottom: 4px;
}

.blog-post-content strong {
  color: #222;
}

.blog-post-content a {
  color: #695aa6;
  text-decoration: underline;
}

.blog-post-content blockquote {
  border-left: 4px solid #695aa6;
  padding: 10px 18px;
  margin: 16px 0;
  background: #f8f6fc;
  border-radius: 0 8px 8px 0;
  color: #555;
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 28px 0;
}

/* ---- 代码块（非 Sandpack 的普通代码块） ---- */
.blog-code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

.blog-code-block code {
  font-family: inherit;
  background: none;
  padding: 0;
}

/* ---- 提示框 Callout ---- */
.blog-callout {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.blog-callout-info {
  background: #e8f0fe;
  border: 1px solid #c5d9f7;
  color: #2c5282;
}

.blog-callout-warning {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #744e0e;
}

.blog-callout-tip {
  background: #e8f5e9;
  border: 1px solid #b9dfbf;
  color: #1e5631;
}

.blog-callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ---- 文章底部 ---- */
.blog-post-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ---- Sandpack 工具栏按钮 ---- */
.sp-btn {
  width: 28px; height: 28px; border: 1px solid #555; border-radius: 4px;
  background: #2d2d2d; color: #ccc; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sp-btn:hover { background: #444; color: #fff; }

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .blog-hero { padding: 80px 16px 32px; }
  .blog-hero-title { font-size: 1.8rem; }
  .blog-post-container { padding: 80px 16px 40px; }
  .blog-post-title { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}