*{
box-sizing:border-box;
}


body{

margin:0;

font-family:

-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Microsoft YaHei",
sans-serif;

background:#f6f8fc;

color:#1f2937;

}



.header{

background:white;

padding:30px 20px 50px;

text-align:center;

border-bottom:1px solid #eee;

}




.logo{

font-size:26px;

font-weight:800;

}




nav{

position:sticky;

top:0;

background:white;

padding:15px;

z-index:10;

box-shadow:
0 2px 10px rgba(0,0,0,.05);

}



nav a{

margin:0 12px;

text-decoration:none;

color:#374151;

font-weight:600;

}




.header h1{

font-size:42px;

margin-top:40px;

}



.header p{

font-size:20px;

color:#6b7280;

}



#search{

margin-top:25px;

width:90%;

max-width:600px;

padding:16px 20px;

border-radius:30px;

border:1px solid #ddd;

font-size:16px;

outline:none;

}





main{

padding:40px 20px;

}





section{

max-width:1200px;

margin:auto;

}



h2{

font-size:28px;

margin-bottom:25px;

}





#tools{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(280px,1fr));

gap:25px;

}




.card{

background:white;

border-radius:22px;

padding:28px;

box-shadow:

0 10px 30px rgba(0,0,0,.06);

transition:.25s;

}



.card:hover{

transform:

translateY(-8px);

box-shadow:

0 15px 40px rgba(0,0,0,.12);

}




.icon{

font-size:55px;

margin-bottom:15px;

}




.card h3{

font-size:24px;

margin:10px 0;

}



.tag{

display:inline-block;

background:#e8f0ff;

color:#2563eb;

padding:6px 14px;

border-radius:30px;

font-size:14px;

margin-right:8px;

}



.price{

display:inline-block;

background:#e7f9ee;

color:#16a34a;

padding:6px 14px;

border-radius:30px;

font-size:14px;

}



.card p{

line-height:1.8;

color:#6b7280;

}



.card a{

display:inline-block;

margin-top:15px;

background:#2563eb;

color:white;

padding:12px 22px;

border-radius:12px;

text-decoration:none;

}




button{

border:none;

background:#2563eb;

color:white;

padding:12px 20px;

border-radius:12px;

cursor:pointer;

}




.categories{

display:flex;

gap:15px;

flex-wrap:wrap;

}



.categories a{

background:white;

padding:18px 25px;

border-radius:18px;

text-decoration:none;

color:#333;

box-shadow:

0 5px 20px rgba(0,0,0,.05);

}





footer{

text-align:center;

padding:40px;

color:#777;

}




@media(max-width:600px){


.header h1{

font-size:30px;

}



nav a{

font-size:14px;

margin:0 5px;

}



.card{

padding:22px;

}


}
.dark {
  
  background: #111827;
  
  color: #f9fafb;
  
}



.dark .header,
.dark .card,
.dark nav,
.dark .categories a {
  
  background: #1f2937;
  
  color: #f9fafb;
  
}



.dark nav a {
  
  color: #f9fafb;
  
}



.dark .card p {
  
  color: #d1d5db;
  
}



.dark .tag {
  
  background: #374151;
  
  color: #93c5fd;
  
}



.dark .price {
  
  background: #14532d;
  
  color: #bbf7d0;
  
}