  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  header {
    text-align: center;
    padding: 40px 20px;
    color: white;
  }
  header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  header p {
    font-size: 1.1rem;
    opacity: 0.9;
  }
  .search-box {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
  }
  .search-box input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
  }
  .search-clear {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 1;
  }
  .search-clear:hover { background: rgba(0,0,0,0.3); }
  .search-box.has-text::before { display: none; }
  .no-result {
    display: none;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-top: 50px;
  }
  .search-box::before {
    content: "🔍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
  }
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 30px;
  }
  @media (max-width: 1100px) {
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
  }
  @media (max-width: 768px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 480px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .tool-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }
  .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .tool-card h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
  }
  .tool-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  .modal.active {
    display: flex;
  }
  .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
  }
  .close-btn:hover { color: #333; }
  .modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    padding-right: 40px;
  }
  .input-group {
    margin-bottom: 15px;
  }
  .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
  }
  textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
  }
  textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #667eea;
  }
  textarea {
    min-height: 120px;
    resize: vertical;
  }
  .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
  }
  .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
  }
  .btn-secondary {
    background: #f5f5f5;
    color: #666;
  }
  .btn-secondary:hover {
    background: #e8e8e8;
  }
  .result-box {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    white-space: pre-wrap;
  }
  .stats-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .stat-item {
    background: #f0f2f5;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  .stat-item strong {
    color: #667eea;
    margin-left: 5px;
  }
  .color-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
  }
  .password-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
