.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #5a8dee, #7f53ac);
  color: white;
}

.hero .btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 25px;
  background: white;
  color: #333;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.tools-section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

label {
  color: #333;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.tool-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.tool-card:hover {
  background: #eef2ff;
}

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #777;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #5a8dee, #7f53ac);
  color: #fff;
}


.header .logo { font-size:20px; font-weight:600; }
.header nav a {
  margin-left:20px; text-decoration:none; color:#333; font-size:15px;
}

/* Main layout: side ads + tool card */
.page-layout {
  max-width: 700px;
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  text-align: center;
  margin: auto;
  min-width: 450px;
  width: 100%;
}

.side-ad {
  width: 200px;
  min-height: 600px;
  background: #eee;     /* 放到容器上 */
  border-radius: 16px;
  padding: 20px;
}

/* Hide side ads on mobile */
@media (max-width: 1024px) {
  .side-ad {
    display: none;
  }
}

.ad-box {
  margin: 20px 0;
  text-align: center;
}

h1 { 
  margin-bottom:20px; 
  color: #111
}

h2 { 
  margin-bottom:20px; 
  color: #111;  
   margin-top: 40px;
  font-size: 22px;
}
#uploadArea {
  border:3px dashed #5a8dee;
  border-radius:16px;
  background:#f0f4ff;
  padding:60px 20px;
  margin-bottom:20px;
  cursor:pointer;
  transition:background 0.3s,border-color 0.3s;
  position:relative;
  min-height:250px;
  display:flex;
  justify-content:center;
  align-items:center;
}
#uploadArea.dragover { background:#d0e0ff; border-color:#3f6ad8; }
#uploadArea input[type="file"] { display:none; }
.plus-icon { font-size:60px; color:#5a8dee; position:absolute; pointer-events:none; transition: opacity 0.2s; }
#uploadText { position:absolute; bottom:15px; font-size:14px; color:#555; }

/* Card with preview */
.card { display:flex; flex-direction:column; align-items:center; gap:10px; }
.card img { max-width:100%; max-height:180px; border-radius:12px; object-fit:contain; }

.download-btn {
  display:inline-block; padding:8px 16px; background:#5a8dee; color:white;
  border-radius:8px; text-decoration:none; font-size:14px;
}
button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #5a8dee;
  color: white;
  cursor: pointer;
  margin-right: 10px;
}
button:hover {
  background: #3f6ad8;
}
button {
  padding: 12px 24px;
  border-radius: 8px;
  background: #5a8dee;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
button:hover { background: #3f6ad8; }

.container {
  display: flex;
  justify-content: space-between;
  margin: 2vw;
}

.toolContent{
  max-width: 600px;
}