    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      color: #e0e0e0;
    }

    .card {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 20px;
      padding: 20px 18px;
      width: 580px;
      max-width: 95vw;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    h1 {
      font-weight: 600;
      text-align: center;
      margin-bottom: 28px;
      letter-spacing: 1px;
      color: #fff;
    }

    h1 span {
      display: inline-block;
      margin-right: 8px;
    }

    .input-group {
      margin-bottom: 16px;
    }

    label {
      display: block;
      font-size: 13px;
      color: #a0aec0;
      margin-bottom: 6px;
    }

    textarea {
      width: 100%;
      height: 100px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      color: #fff;
      font-size: 14px;
      resize: vertical;
      outline: none;
      transition: border-color 0.2s;
      font-family: inherit;
    }

    textarea::placeholder { color: #4a5568; }

    textarea:focus {
      border-color: #63b3ed;
      background: rgba(255, 255, 255, 0.1);
    }

    .options-row {
      display: flex;
      gap: 12px;
      margin-bottom: 20px;
    }

    .option-item {
      flex: 1;
    }

    .option-item input[type="color"] {
      width: 100%;
      height: 38px;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      background: rgba(255,255,255,0.07);
      cursor: pointer;
      padding: 2px 4px;
    }

    .option-item input[type="range"] {
      width: 100%;
      accent-color: #63b3ed;
      cursor: pointer;
    }

    .option-item span {
      font-size: 12px;
      color: #718096;
    }

    .btn {
      width: 100%;
      padding: 13px;
      background: linear-gradient(135deg, #3182ce, #2b6cb0);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.1s;
      letter-spacing: 0.5px;
    }

    .btn:hover { opacity: 0.9; }
    .btn:active { transform: scale(0.98); }

    .qr-wrapper {
      margin-top: 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    #qr-canvas {
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    .download-btn {
      padding: 9px 28px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 8px;
      color: #e2e8f0;
      font-size: 13px;
      cursor: pointer;
      transition: background 0.2s;
      text-decoration: none;
    }

    .download-btn:hover { background: rgba(255,255,255,0.15); }

    .error-msg {
      margin-top: 14px;
      color: #fc8181;
      font-size: 13px;
      text-align: center;
    }

    .hidden { display: none; }
    .footer {text-align:center;clear:both;margin: 50px auto 0;max-width:500px;font-size: 14px;}
    
        footer {
            text-align: center;
            color: rgba(255,255,255,0.7);
            padding: 40px 0;
        }
    .footer-links {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .footer-link {
            padding: 10px 20px;
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s;
        }
        .footer-link:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }