* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; background: #f5f7fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 15px 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #2563eb; text-decoration: none; }
nav a { color: #555; text-decoration: none; margin-left: 20px; }
nav a:hover { color: #2563eb; }
.hero { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 36px; margin-bottom: 10px; }
.hero p { font-size: 18px; opacity: 0.9; }
main { padding: 40px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.tool-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.tool-card h3 { font-size: 18px; margin-bottom: 8px; color: #2563eb; }
.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card p { color: #666; font-size: 14px; }
.tool-card .btn { display: inline-block; margin-top: 12px; padding: 8px 16px; background: #2563eb; color: #fff; text-decoration: none; border-radius: 4px; font-size: 14px; }
.tool-card .btn:hover { background: #1d4ed8; }
footer { background: #1e293b; color: #94a3b8; padding: 30px 0; text-align: center; }
footer a { color: #fff; text-decoration: none; margin: 0 10px; }
.tool-page { background: #fff; border-radius: 12px; padding: 40px; margin: 20px auto; max-width: 900px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.tool-page h1 { color: #2563eb; margin-bottom: 10px; }
.tool-page input, .tool-page textarea, .tool-page select { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 16px; margin-bottom: 15px; font-family: inherit; }
.tool-page textarea { min-height: 150px; resize: vertical; }
.tool-page .btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tool-page button { padding: 12px 24px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.tool-page button:hover { background: #1d4ed8; }
.tool-page .result { background: #f1f5f9; padding: 20px; border-radius: 6px; white-space: pre-wrap; word-break: break-all; min-height: 60px; }
.tool-page .description { color: #64748b; margin-bottom: 20px; }
.tool-content h3 { margin: 20px 0 10px; color: #334155; }
.tool-content p { margin-bottom: 15px; color: #475569; line-height: 1.7; }
.tool-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card-content { padding: 20px; }
.article-card h3 { font-size: 18px; margin-bottom: 8px; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card p { color: #666; font-size: 14px; }
