* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 600px;
        }
        
        .main-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .header h1 {
            font-size: 36px;
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            font-weight: 800;
        }
        
        .header p {
            color: #666;
            font-size: 16px;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .form-container {
            max-width: 500px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 10px;
            color: #2c3e50;
            font-weight: 600;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .input-wrapper {
            position: relative;
        }
        
        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #1a2980;
            font-size: 18px;
        }
        
        .form-input {
            width: 100%;
            padding: 16px 16px 16px 50px;
            border: 2px solid #e1e8ed;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s;
            background: #f8f9fa;
            font-family: monospace;
        }
        
        .form-input:focus {
            outline: none;
            border-color: #1a2980;
            box-shadow: 0 0 0 3px rgba(26, 41, 128, 0.1);
            background: white;
        }
        
        .form-hint {
            font-size: 12px;
            color: #7f8c8d;
            margin-top: 5px;
            margin-left: 10px;
        }
        
        .submit-btn {
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            color: white;
            border: none;
            padding: 18px;
            width: 100%;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }
        
        .submit-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }
        
        .submit-btn:hover::before {
            left: 100%;
        }
        
        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(26, 41, 128, 0.3);
        }
        
        .submit-btn:active {
            transform: translateY(0);
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        
        .submit-btn:disabled::before {
            display: none;
        }
        
        .loading {
            display: none;
            text-align: center;
            margin: 30px 0;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #1a2980;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .result {
            margin-top: 30px;
            padding: 25px;
            border-radius: 15px;
            display: none;
            animation: fadeIn 0.5s;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .success {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            color: #155724;
            border: 2px solid #b1dfbb;
        }
        
        .error {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
            border: 2px solid #f1b0b7;
        }
        
        .warning {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            color: #856404;
            border: 2px solid #ffecb5;
        }
        
        .info {
            background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
            color: #004085;
            border: 2px solid #b3d7ff;
        }
        
        .result-content {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }
        
        .result-icon {
            font-size: 28px;
            margin-top: 2px;
            flex-shrink: 0;
        }
        
        .result-text {
            flex: 1;
        }
        
        .result-title {
            font-weight: 700;
            margin-bottom: 10px;
            font-size: 20px;
        }
        
        .result-details {
            font-size: 15px;
            line-height: 1.7;
        }
        
        .result-details br {
            margin-bottom: 5px;
            display: block;
            content: "";
        }
        
        .result-stats {
            margin-top: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 8px;
            font-size: 13px;
            color: #666;
        }
        
        .refresh-btn {
            background: #1a2980;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 15px;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .refresh-btn:hover {
            background: #0d1c6e;
            transform: translateY(-2px);
        }
        
        .footer {
            text-align: center;
            margin-top: 40px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            padding: 20px;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }
        
        .system-status {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .link-btn {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            text-decoration: none;
            font-size: 12px;
            transition: all 0.3s;
        }
        
        .link-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .system-status {
            margin-top: 15px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .status-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
            animation: pulse 2s infinite;
        }
        
        .status-dot.connected {
            background: #4CAF50;
        }
        
        .status-dot.disconnected {
            background: #f44336;
        }
        
        @keyframes pulse {
            0% { opacity: 0.7; }
            50% { opacity: 1; }
            100% { opacity: 0.7; }
        }
        
        @media (max-width: 768px) {
            .main-card {
                padding: 25px;
            }
            
            .header h1 {
                font-size: 28px;
            }
            
            .form-input {
                padding: 14px 14px 14px 45px;
            }
        }
        
        @media (max-width: 480px) {
            .header h1 {
                font-size: 24px;
            }
            
            .header p {
                font-size: 14px;
            }
            
            .form-input {
                font-size: 14px;
            }
            
            .submit-btn {
                padding: 15px;
                font-size: 16px;
            }
        }
        
        /* 添加动画效果 */
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        
        /* 输入提示样式 */
        .format-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            font-size: 13px;
            color: #666;
        }
        
        .format-info i {
            color: #1a2980;
        }
        
        
        
        /* 卡密格式示例 */
        .examples {
            margin-top: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            font-size: 12px;
        }
        
        .examples-title {
            font-weight: bold;
            margin-bottom: 5px;
            color: #555;
        }
        
        .example-item {
            margin: 3px 0;
            padding: 3px 8px;
            background: white;
            border-radius: 4px;
            border-left: 3px solid #4CAF50;
            font-family: monospace;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .example-item:hover {
            background: #f0f0f0;
            transform: translateX(5px);
        }
        .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        animation: fadeIn 0.3s ease-out;
    }
    
    .modal-container {
        background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
        border-radius: 20px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        animation: slideUp 0.5s ease-out;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-header {
        background: rgba(0, 0, 0, 0.2);
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-header h3 {
        margin: 0;
        color: white;
        font-size: 22px;
        font-weight: 700;
    }
    
    .modal-header h3 i {
        margin-right: 10px;
        color: #FFD700;
    }
    
    .modal-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    .modal-body {
        padding: 30px;
        color: white;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .tutorial-icon {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .tutorial-icon i {
        font-size: 60px;
        color: #FFD700;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .modal-body h4 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 15px;
        font-weight: 700;
        color: #FFD700;
    }
    
    .modal-body p {
        text-align: center;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
        opacity: 0.9;
    }

    .tutorial-link-container {
        text-align: center;
        margin-top: 20px;
    }
    
    .tutorial-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
        color: white;
        padding: 18px 30px;
        border-radius: 15px;
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
        transition: all 0.3s;
        box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 15px;
        animation: glow 2s infinite;
        position: relative;
        overflow: hidden;
    }
    
    @keyframes glow {
        0% { box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3); }
        50% { box-shadow: 0 10px 30px rgba(255, 65, 108, 0.6); }
        100% { box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3); }
    }
    
    .tutorial-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }
    
    .tutorial-link:hover::before {
        left: 100%;
    }
    
    .tutorial-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(255, 65, 108, 0.5);
    }
    
    .tutorial-link i {
        font-size: 20px;
    }
    
    .tutorial-link span {
        font-size: 18px;
        font-weight: 700;
    }
    
    .tutorial-note {
        font-size: 14px;
        opacity: 0.8;
        margin-top: 10px;
        font-style: italic;
    }
    
    .modal-footer {
        padding: 20px;
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .btn-understood {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
        padding: 15px 40px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .btn-understood:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .btn-understood i {
        font-size: 18px;
    }
    
    @media (max-width: 768px) {
        .modal-container {
            width: 95%;
            max-width: 400px;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-body h4 {
            font-size: 20px;
        }
        
        .tutorial-link {
            padding: 15px 20px;
            font-size: 16px;
        }
        
        .tutorial-link span {
            font-size: 16px;
        }
    }
    
    @media (max-width: 480px) {
        .modal-container {
            width: 95%;
            max-width: 350px;
        }
        
        .modal-header h3 {
            font-size: 18px;
        }
        
        .modal-body h4 {
            font-size: 18px;
        }
        
        .modal-body p {
            font-size: 14px;
        }
        
        .tutorial-link {
            padding: 12px 15px;
            font-size: 14px;
            flex-direction: column;
            gap: 8px;
        }
        
        .tutorial-link span {
            font-size: 14px;
            text-align: center;
        }
        
    }